...
|
...
|
@@ -344,7 +344,7 @@ func (d *StaffAssessDao) SearchUserAssessContentV2(param SearchConditin3) ([]Use |
|
|
staff_assess.company_id ,
|
|
|
to_char(staff_assess.begin_time at time zone 'PRC','YYYY-MM-DD') as begin_day
|
|
|
from staff_assess
|
|
|
join t_project_4 on staff_assess.evaluation_project_id =t_project_4.project_id
|
|
|
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
|
|
|
where 1=1
|
|
|
and staff_assess.cycle_id =?
|
|
|
and staff_assess.deleted_at isnull
|
...
|
...
|
@@ -404,7 +404,7 @@ func (d *StaffAssessDao) CountUserSelfStaffAssess(param SearchConditin3) (int, e |
|
|
sqlStr := `select
|
|
|
count(*)
|
|
|
from staff_assess
|
|
|
join t_project_4 on staff_assess.evaluation_project_id =t_project_4.project_id
|
|
|
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
|
|
|
where 1=1
|
|
|
and staff_assess.cycle_id =?
|
|
|
and staff_assess.deleted_at isnull
|
...
|
...
|
|