chenshudong месяцев назад: 3
Родитель
Сommit
9d478038b6

+ 20 - 4
airport-check/src/main/java/com/sundot/airport/check/service/impl/CheckLargeScreenServiceImpl.java

@@ -1813,8 +1813,14 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
1813
         Long deptId = dto.getDeptId();
1813
         Long deptId = dto.getDeptId();
1814
         if (ObjUtil.isNotNull(deptId)) {
1814
         if (ObjUtil.isNotNull(deptId)) {
1815
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
1815
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
1816
-            if (!StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
1817
-                dto.setDeptId(null);
1816
+            if (StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
1817
+                dto.setCheckedBrigadeId(deptId);
1818
+            } else if (StrUtil.equals(DeptTypeEnum.MANAGER.getCode(), sysDept.getDeptType())) {
1819
+                dto.setCheckedDepartmentId(deptId);
1820
+            } else if (StrUtil.equals(DeptTypeEnum.TEAMS.getCode(), sysDept.getDeptType())) {
1821
+                dto.setCheckedTeamId(deptId);
1822
+            } else {
1823
+
1818
             }
1824
             }
1819
         }
1825
         }
1820
         List<CheckLargeScreenPlanOverviewDto> list = checkLargeScreenMapper.managementPromotionRecord(dto);
1826
         List<CheckLargeScreenPlanOverviewDto> list = checkLargeScreenMapper.managementPromotionRecord(dto);
@@ -1851,8 +1857,14 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
1851
         Long deptId = dto.getDeptId();
1857
         Long deptId = dto.getDeptId();
1852
         if (ObjUtil.isNotNull(deptId)) {
1858
         if (ObjUtil.isNotNull(deptId)) {
1853
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
1859
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
1854
-            if (!StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
1855
-                dto.setDeptId(null);
1860
+            if (StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
1861
+                dto.setCheckedBrigadeId(deptId);
1862
+            } else if (StrUtil.equals(DeptTypeEnum.MANAGER.getCode(), sysDept.getDeptType())) {
1863
+                dto.setCheckedDepartmentId(deptId);
1864
+            } else if (StrUtil.equals(DeptTypeEnum.TEAMS.getCode(), sysDept.getDeptType())) {
1865
+                dto.setCheckedTeamId(deptId);
1866
+            } else {
1867
+
1856
             }
1868
             }
1857
         }
1869
         }
1858
         CheckLargeScreenCorrectionDto result = checkLargeScreenMapper.managementPromotionCorrection(dto);
1870
         CheckLargeScreenCorrectionDto result = checkLargeScreenMapper.managementPromotionCorrection(dto);
@@ -1925,6 +1937,10 @@ public class CheckLargeScreenServiceImpl implements ICheckLargeScreenService {
1925
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
1937
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
1926
             if (StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
1938
             if (StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
1927
                 all = all.stream().filter(item -> item.getCheckedBrigadeId().equals(deptId)).collect(Collectors.toList());
1939
                 all = all.stream().filter(item -> item.getCheckedBrigadeId().equals(deptId)).collect(Collectors.toList());
1940
+            } else if (StrUtil.equals(DeptTypeEnum.MANAGER.getCode(), sysDept.getDeptType())) {
1941
+                all = all.stream().filter(item -> item.getCheckedDepartmentId().equals(deptId)).collect(Collectors.toList());
1942
+            } else if (StrUtil.equals(DeptTypeEnum.TEAMS.getCode(), sysDept.getDeptType())) {
1943
+                all = all.stream().filter(item -> item.getCheckedTeamId().equals(deptId)).collect(Collectors.toList());
1928
             }
1944
             }
1929
         }
1945
         }
1930
 
1946
 

+ 16 - 4
airport-check/src/main/resources/mapper/check/CheckLargeScreenMapper.xml

@@ -726,8 +726,14 @@
726
         <if test="isSelfCheck != null">
726
         <if test="isSelfCheck != null">
727
             and ct.is_self_check=#{isSelfCheck}
727
             and ct.is_self_check=#{isSelfCheck}
728
         </if>
728
         </if>
729
-        <if test="deptId != null">
730
-            and cr.checked_brigade_id=#{deptId}
729
+        <if test="checkedBrigadeId != null">
730
+            and cr.checked_brigade_id=#{checkedBrigadeId}
731
+        </if>
732
+        <if test="checkedDepartmentId != null">
733
+            and cr.checked_department_id=#{checkedDepartmentId}
734
+        </if>
735
+        <if test="checkedTeamId != null">
736
+            and cr.checked_team_id=#{checkedTeamId}
731
         </if>
737
         </if>
732
         <if test="startDate != null and endDate != null">
738
         <if test="startDate != null and endDate != null">
733
             and (cr.check_time >= #{startDate}
739
             and (cr.check_time >= #{startDate}
@@ -763,8 +769,14 @@
763
         <if test="processStatus != null">
769
         <if test="processStatus != null">
764
             and cc.process_status=#{processStatus}
770
             and cc.process_status=#{processStatus}
765
         </if>
771
         </if>
766
-        <if test="deptId != null">
767
-            and cc.checked_brigade_id=#{deptId}
772
+        <if test="checkedBrigadeId != null">
773
+            and cc.checked_brigade_id=#{checkedBrigadeId}
774
+        </if>
775
+        <if test="checkedDepartmentId != null">
776
+            and cc.checked_department_id=#{checkedDepartmentId}
777
+        </if>
778
+        <if test="checkedTeamId != null">
779
+            and cc.checked_team_id=#{checkedTeamId}
768
         </if>
780
         </if>
769
         <if test="startDate != null and endDate != null">
781
         <if test="startDate != null and endDate != null">
770
             and (cc.check_time >= #{startDate}
782
             and (cc.check_time >= #{startDate}