Bläddra i källkod

修改名称开发

anderx 2 år sedan
förälder
incheckning
aabc73f1a7

+ 1 - 1
ruoyi-system/src/main/resources/mapper/project/ProjectStaffRecordMapper.xml

@@ -229,7 +229,7 @@
       and a.record_time between #{startTime} and #{endTime}
     </if>
     <if test="fullJob != null">and c.full_job= #{fullJob}</if>
-    <if test="deptId != null">and c.dept_id= #{deptId}</if>
+    <if test="deptId != null">and (d.dept_id= #{deptId} or find_in_set(#{deptId},d.ancestors)) </if>
   </select>