正在显示
2 个修改的文件
包含
12 行增加
和
18 行删除
@@ -249,10 +249,11 @@ func (d *StaffAssessDao) SearchUserAssessContent(param SearchConditin1) ([]UserA | @@ -249,10 +249,11 @@ func (d *StaffAssessDao) SearchUserAssessContent(param SearchConditin1) ([]UserA | ||
249 | sqlStr += ` and t_staff_assess_1.target_user_name like ? ` | 249 | sqlStr += ` and t_staff_assess_1.target_user_name like ? ` |
250 | condition = append(condition, "%"+param.TargetUserName+"%") | 250 | condition = append(condition, "%"+param.TargetUserName+"%") |
251 | } | 251 | } |
252 | + condition = append(condition, param.Limit, param.Offset) | ||
252 | //加入排序 | 253 | //加入排序 |
253 | - sqlStr += ` order by convert_to(t_staff_assess_1.target_user_name,'GBK'),staff_assess_content.sort_by ` | 254 | + sqlStr += ` order by convert_to(t_staff_assess_1.target_user_name,'GBK'),staff_assess_content.sort_by limit ? offset ?` |
254 | //获取前置sql语句 | 255 | //获取前置sql语句 |
255 | - sqlStr0 := d.useTStaffAssess(param.CompanyId, param.CycleId, param.OperaterId, param.BeginDay, param.Hrbp, param.Limit, param.Offset, string(domain.AssessSelf)) | 256 | + sqlStr0 := d.useTStaffAssess(param.CompanyId, param.CycleId, param.OperaterId, param.BeginDay, param.Hrbp, 99999, 0, string(domain.AssessSelf)) |
256 | sqlStr = sqlStr0 + sqlStr | 257 | sqlStr = sqlStr0 + sqlStr |
257 | tx := d.transactionContext.PgTx | 258 | tx := d.transactionContext.PgTx |
258 | result := []UserAssessContent{} | 259 | result := []UserAssessContent{} |
@@ -299,22 +299,15 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi | @@ -299,22 +299,15 @@ func (d *StaffAssessDao) ListTargetUserNoInvite(companyId int, cycleId int, begi | ||
299 | } | 299 | } |
300 | 300 | ||
301 | type UserSelfStaffAssess struct { | 301 | type UserSelfStaffAssess struct { |
302 | - AssessId string `pg:"assess_id"` | ||
303 | - EvaluationProjectName string `pg:"evaluation_project_name"` //项目名称 | ||
304 | - CompanyId string `pg:"company_id"` //公司id | ||
305 | - ContentId int `pg:"content_id"` // | ||
306 | - TargetUserId string `pg:"target_user_id"` //被评估人的id | ||
307 | - TargetUserName string `pg:"target_user_name"` //被评估人的名称 | ||
308 | - BeginDay string `pg:"begin_day"` //评估的日期 | ||
309 | - EvaluationProjectId string `pg:"evaluation_project_id"` //项目id | ||
310 | - Value string `pg:"value"` //评估填写的值 | ||
311 | - LevelValue string `pg:"level_value"` //评级的值 | ||
312 | - Rule domain.EvaluationRule `pg:"rule"` //规则 | ||
313 | - SortBy int `pg:"sort_by"` //评估项顺序 | ||
314 | - Category string `pg:"category"` //评估项分类 | ||
315 | - ContentName string `pg:"content_name"` //评估项名称 | ||
316 | - Weight float64 `pg:"weight"` //权重 | ||
317 | - CycleId string `pg:"cycle_id"` //周期id | 302 | + AssessId string `pg:"assess_id"` |
303 | + EvaluationProjectName string `pg:"evaluation_project_name"` //项目名称 | ||
304 | + CompanyId string `pg:"company_id"` //公司id | ||
305 | + ContentId int `pg:"content_id"` // | ||
306 | + TargetUserId string `pg:"target_user_id"` //被评估人的id | ||
307 | + TargetUserName string `pg:"target_user_name"` //被评估人的名称 | ||
308 | + BeginDay string `pg:"begin_day"` //评估的日期 | ||
309 | + EvaluationProjectId string `pg:"evaluation_project_id"` //项目id | ||
310 | + CycleId string `pg:"cycle_id"` //周期id | ||
318 | } | 311 | } |
319 | 312 | ||
320 | type SearchConditin3 struct { | 313 | type SearchConditin3 struct { |
-
请 注册 或 登录 后发表评论