评价人评价数据隔离

This commit is contained in:
liang.chao 2025-08-06 15:42:24 +08:00
parent dc0a45b8ff
commit 4bed5855c8
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@
left join (
select group_concat(post_id) as postId,evaluate_id from pj_task_evaluated GROUP BY evaluate_id
)task on task.evaluate_id = per.evaluate_id
where per.is_active = 1 and FIND_IN_SET(#{deptId},task.postId)
where per.is_active = 1 and FIND_IN_SET(#{deptId},task.postId) and poi.id = #{userDeptId}
<if test="evaluateDeptId != null and evaluateDeptId != ''">
and per.dept_id = #{evaluateDeptId}
</if>