|
@@ -69,6 +69,7 @@ func (d *StaffAssessDao) SearchAssessTaskMe(executorId int, companyId int, limit |
|
@@ -69,6 +69,7 @@ func (d *StaffAssessDao) SearchAssessTaskMe(executorId int, companyId int, limit |
69
|
sqlStr := `SELECT DISTINCT staff_assess_task.* FROM staff_assess_task
|
69
|
sqlStr := `SELECT DISTINCT staff_assess_task.* FROM staff_assess_task
|
70
|
JOIN staff_assess ON staff_assess_task."id" = staff_assess."staff_assess_task_id"
|
70
|
JOIN staff_assess ON staff_assess_task."id" = staff_assess."staff_assess_task_id"
|
71
|
WHERE staff_assess.company_id=?
|
71
|
WHERE staff_assess.company_id=?
|
|
|
72
|
+ and staff_assess_task.deleted_at isnull
|
72
|
and staff_assess.executor->>'userId'='?'
|
73
|
and staff_assess.executor->>'userId'='?'
|
73
|
order by staff_assess_task.id desc
|
74
|
order by staff_assess_task.id desc
|
74
|
limit ? offset ?
|
75
|
limit ? offset ?
|
|
@@ -88,6 +89,7 @@ func (d *StaffAssessDao) CountAssessTaskMe(executorId int, companyId int) (int, |
|
@@ -88,6 +89,7 @@ func (d *StaffAssessDao) CountAssessTaskMe(executorId int, companyId int) (int, |
88
|
sqlStr := `SELECT count( DISTINCT staff_assess_task."id") FROM staff_assess_task
|
89
|
sqlStr := `SELECT count( DISTINCT staff_assess_task."id") FROM staff_assess_task
|
89
|
JOIN staff_assess ON staff_assess_task."id" = staff_assess."staff_assess_task_id"
|
90
|
JOIN staff_assess ON staff_assess_task."id" = staff_assess."staff_assess_task_id"
|
90
|
WHERE staff_assess.company_id=?
|
91
|
WHERE staff_assess.company_id=?
|
|
|
92
|
+ and staff_assess_task.deleted_at isnull
|
91
|
and staff_assess.executor->>'userId'='?'
|
93
|
and staff_assess.executor->>'userId'='?'
|
92
|
`
|
94
|
`
|
93
|
tx := d.transactionContext.PgTx
|
95
|
tx := d.transactionContext.PgTx
|