Pārlūkot izejas kodu

工作画像-组织支撑-培训测试平均分趋势图

chenshudong 3 mēneši atpakaļ
vecāks
revīzija
3a7edc473a

+ 2 - 2
airport-system/src/main/java/com/sundot/airport/system/service/impl/SysLearningGrowthServiceImpl.java

@@ -976,11 +976,11 @@ public class SysLearningGrowthServiceImpl implements ISysLearningGrowthService {
976 976
             dto.setStartDate(LargeScreenDateUtils.getDateBeforeDays(91));
977 977
         }
978 978
 
979
-        // 部门类型为非科室时查询全部数据
979
+        // 部门类型为非大队时查询全部数据
980 980
         Long deptId = dto.getDeptId();
981 981
         if (ObjUtil.isNotNull(deptId)) {
982 982
             SysDept sysDept = sysDeptService.selectDeptById(deptId);
983
-            if (!StrUtil.equals(DeptTypeEnum.DEPARTMENT.getCode(), sysDept.getDeptType())) {
983
+            if (!StrUtil.equals(DeptTypeEnum.BRIGADE.getCode(), sysDept.getDeptType())) {
984 984
                 dto.setDeptId(null);
985 985
             }
986 986
         }

+ 2 - 1
airport-system/src/main/resources/mapper/system/SysLearningGrowthMapper.xml

@@ -172,9 +172,10 @@
172 172
         inner join sys_user su on su.user_name = slg.user_code
173 173
         inner join sys_dept sd_bz on sd_bz.dept_id = su.dept_id
174 174
         inner join sys_dept sd_ks on sd_ks.dept_id = sd_bz.parent_id
175
+        inner join sys_dept sd_dd on sd_dd.dept_id = sd_ks.parent_id
175 176
         where 1 = 1
176 177
         <if test="deptId != null">
177
-            and sd_ks.dept_id=#{deptId}
178
+            and sd_dd.dept_id=#{deptId}
178 179
         </if>
179 180
         <if test="specifiedDate != null">
180 181
             and slg.exam_time=#{specifiedDate}