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