作者 Your Name

处理 sql错误

... ... @@ -381,17 +381,17 @@ func (d *StaffAssessDao) useTStaffAssess(companyId int, cycleId int, userId int,
params := []interface{}{
companyId, userId, cycleId, hrbp, cycleId, userId, cycleId,
}
extWhere := ""
if len(beginDay) > 0 {
str := fmt.Sprintf(staffAssessWhere["beginDay"]+"\n", beginDay)
params = append(params, str)
extWhere += str
}
if len(assessType) > 0 {
str := fmt.Sprintf(staffAssessWhere["assessType"]+"\n", assessType)
params = append(params, str)
extWhere += str
}
params = append(params, limit, offset)
params = append(params, extWhere, limit, offset)
sqlstr = fmt.Sprintf(sqlstr, params...)
return sqlstr
}
... ...