|
|
@@ -263,7 +263,7 @@
|
|
|
from project_task a
|
|
|
left join sys_user c on a.aid=c.user_id
|
|
|
left join sys_dept d on c.dept_id=d.dept_id
|
|
|
- where 1=1
|
|
|
+ where project_status > 0
|
|
|
<if test="roleType ==0">
|
|
|
and (a.aid =#{uid} or a.id in (select pid from project_staff where aid= #{uid}))
|
|
|
</if>
|
|
|
@@ -273,8 +273,11 @@
|
|
|
<if test="headName !=null">
|
|
|
and a.admin_name like concat('%',#{headname},'%')
|
|
|
</if>
|
|
|
+ <if test="staffId !=null">
|
|
|
+ and a.id in (select pid from project_staff where aid= #{staffId})
|
|
|
+ </if>
|
|
|
<if test="staffName !=null">
|
|
|
- and a.staff_name like concat('%',#{staffName},'%')
|
|
|
+ and a.id in (select pid from project_staff where a.name like concat('%',#{staffName},'%'))
|
|
|
</if>
|
|
|
<if test="createAid !=null">
|
|
|
and a.create_aid= #{createAid}
|