zhangjinli 3 years ago
parent fbf1e21fc5
commit c81957d1c3

@ -57,8 +57,11 @@
<if test='openid!=null'> <if test='openid!=null'>
and and
IF((SELECT count(*)!=0 FROM taskDepartment WHERE taskId = t1.id)>0, IF((SELECT count(*)!=0 FROM taskDepartment WHERE taskId = t1.id)>0,
t1.id in (SELECT taskId from taskDepartment inner JOIN user on user.openid =#{openid} t1.id in
and user.main_department = taskDepartment.departmentId), <!-- (SELECT taskId from taskDepartment inner JOIN user on user.openid =#{openid}-->
<!-- and user.main_department = taskDepartment.departmentId),-->
(SELECT taskId from taskDepartment WHERE departmentId in
(SELECT departmentId from qywxDepartmentUserLink WHERE openid = #{openid}) GROUP BY taskId),
1=1) 1=1)
</if> </if>
<if test='ew != null'> <if test='ew != null'>

Loading…
Cancel
Save