正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -344,7 +344,7 @@ func (d *StaffAssessDao) SearchUserAssessContentV2(param SearchConditin3) ([]Use | @@ -344,7 +344,7 @@ func (d *StaffAssessDao) SearchUserAssessContentV2(param SearchConditin3) ([]Use | ||
344 | staff_assess.company_id , | 344 | staff_assess.company_id , |
345 | to_char(staff_assess.begin_time at time zone 'PRC','YYYY-MM-DD') as begin_day | 345 | to_char(staff_assess.begin_time at time zone 'PRC','YYYY-MM-DD') as begin_day |
346 | from staff_assess | 346 | from staff_assess |
347 | - join t_project_4 on staff_assess.evaluation_project_id =t_project_4.project_id | 347 | + join t_project_4 on staff_assess.evaluation_project_id =t_project_4.project_id and staff_assess.target_user ->>'userId' = t_project_4.target_user_id |
348 | where 1=1 | 348 | where 1=1 |
349 | and staff_assess.cycle_id =? | 349 | and staff_assess.cycle_id =? |
350 | and staff_assess.deleted_at isnull | 350 | and staff_assess.deleted_at isnull |
@@ -404,7 +404,7 @@ func (d *StaffAssessDao) CountUserSelfStaffAssess(param SearchConditin3) (int, e | @@ -404,7 +404,7 @@ func (d *StaffAssessDao) CountUserSelfStaffAssess(param SearchConditin3) (int, e | ||
404 | sqlStr := `select | 404 | sqlStr := `select |
405 | count(*) | 405 | count(*) |
406 | from staff_assess | 406 | from staff_assess |
407 | - join t_project_4 on staff_assess.evaluation_project_id =t_project_4.project_id | 407 | + join t_project_4 on staff_assess.evaluation_project_id =t_project_4.project_id and staff_assess.target_user ->>'userId' = t_project_4.target_user_id |
408 | where 1=1 | 408 | where 1=1 |
409 | and staff_assess.cycle_id =? | 409 | and staff_assess.cycle_id =? |
410 | and staff_assess.deleted_at isnull | 410 | and staff_assess.deleted_at isnull |
-
请 注册 或 登录 后发表评论