Przeglądaj źródła

项目列表修改

anderx 1 rok temu
rodzic
commit
d9d08d2176

+ 5 - 2
ruoyi-system/src/main/resources/mapper/project/ProjectTaskMapper.xml

@@ -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}