正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -381,17 +381,17 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int, | @@ -381,17 +381,17 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int, | ||
381 | params := []interface{}{ | 381 | params := []interface{}{ |
382 | companyId, userId, cycleId, hrbp, cycleId, userId, cycleId, | 382 | companyId, userId, cycleId, hrbp, cycleId, userId, cycleId, |
383 | } | 383 | } |
384 | - | 384 | + extWhere := "" |
385 | if len(beginDay) > 0 { | 385 | if len(beginDay) > 0 { |
386 | str := fmt.Sprintf(staffAssessWhere["beginDay"]+"\n", beginDay) | 386 | str := fmt.Sprintf(staffAssessWhere["beginDay"]+"\n", beginDay) |
387 | - params = append(params, str) | 387 | + extWhere += str |
388 | } | 388 | } |
389 | 389 | ||
390 | if len(assessType) > 0 { | 390 | if len(assessType) > 0 { |
391 | str := fmt.Sprintf(staffAssessWhere["assessType"]+"\n", assessType) | 391 | str := fmt.Sprintf(staffAssessWhere["assessType"]+"\n", assessType) |
392 | - params = append(params, str) | 392 | + extWhere += str |
393 | } | 393 | } |
394 | - params = append(params, limit, offset) | 394 | + params = append(params, extWhere, limit, offset) |
395 | sqlstr = fmt.Sprintf(sqlstr, params...) | 395 | sqlstr = fmt.Sprintf(sqlstr, params...) |
396 | return sqlstr | 396 | return sqlstr |
397 | } | 397 | } |
-
请 注册 或 登录 后发表评论