Przeglądaj źródła

考核指标表

chenshudong 1 miesiąc temu
rodzic
commit
4bbcee6f17

+ 8 - 0
airport-system/src/main/java/com/sundot/airport/system/mapper/BasePerformanceIndicatorMapper.java

@@ -66,4 +66,12 @@ public interface BasePerformanceIndicatorMapper {
66
      * @return 结果
66
      * @return 结果
67
      */
67
      */
68
     public int deleteBasePerformanceIndicatorByIds(Long[] ids);
68
     public int deleteBasePerformanceIndicatorByIds(Long[] ids);
69
+
70
+    /**
71
+     * 查询考核指标列表
72
+     *
73
+     * @param list 所属二级分类编码列表
74
+     * @return 考核指标集合
75
+     */
76
+    public List<BasePerformanceIndicator> selectBasePerformanceIndicatorListByCategoryCodeList(List<String> list);
69
 }
77
 }

+ 8 - 0
airport-system/src/main/java/com/sundot/airport/system/service/IBasePerformanceIndicatorService.java

@@ -75,4 +75,12 @@ public interface IBasePerformanceIndicatorService {
75
      * @return 导入结果信息
75
      * @return 导入结果信息
76
      */
76
      */
77
     public String importData(List<BasePerformanceIndicator> list, boolean updateSupport);
77
     public String importData(List<BasePerformanceIndicator> list, boolean updateSupport);
78
+
79
+    /**
80
+     * 查询考核指标列表
81
+     *
82
+     * @param categoryCodeList 所属二级分类编码列表
83
+     * @return 考核指标集合
84
+     */
85
+    public List<BasePerformanceIndicator> selectBasePerformanceIndicatorListByCategoryCodeList(List<String> categoryCodeList);
78
 }
86
 }

+ 15 - 0
airport-system/src/main/java/com/sundot/airport/system/service/impl/BasePerformanceIndicatorServiceImpl.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.system.service.impl;
1
 package com.sundot.airport.system.service.impl;
2
 
2
 
3
 import java.math.BigDecimal;
3
 import java.math.BigDecimal;
4
+import java.util.Collections;
4
 import java.util.List;
5
 import java.util.List;
5
 import java.util.Map;
6
 import java.util.Map;
6
 import java.util.stream.Collectors;
7
 import java.util.stream.Collectors;
@@ -305,4 +306,18 @@ public class BasePerformanceIndicatorServiceImpl implements IBasePerformanceIndi
305
             data.setLeaveType(leaveTypeMap.get(data.getLeaveTypeDesc()));
306
             data.setLeaveType(leaveTypeMap.get(data.getLeaveTypeDesc()));
306
         }
307
         }
307
     }
308
     }
309
+
310
+    /**
311
+     * 查询考核指标列表
312
+     *
313
+     * @param categoryCodeList 所属二级分类编码列表
314
+     * @return 考核指标集合
315
+     */
316
+    @Override
317
+    public List<BasePerformanceIndicator> selectBasePerformanceIndicatorListByCategoryCodeList(List<String> categoryCodeList) {
318
+        if (CollUtil.isEmpty(categoryCodeList)) {
319
+            return Collections.emptyList();
320
+        }
321
+        return basePerformanceIndicatorMapper.selectBasePerformanceIndicatorListByCategoryCodeList(categoryCodeList);
322
+    }
308
 }
323
 }

+ 11 - 0
airport-system/src/main/resources/mapper/system/BasePerformanceIndicatorMapper.xml

@@ -176,4 +176,15 @@
176
             #{id}
176
             #{id}
177
         </foreach>
177
         </foreach>
178
     </delete>
178
     </delete>
179
+
180
+    <select id="selectBasePerformanceIndicatorListByCategoryCodeList"
181
+            resultMap="BasePerformanceIndicatorResult">
182
+        <include refid="selectBasePerformanceIndicatorVo"/>
183
+        where 1 = 1
184
+        and category_code in
185
+        <foreach item="item" collection="list" open="(" separator="," close=")">
186
+            #{item}
187
+        </foreach>
188
+        order by create_time desc
189
+    </select>
179
 </mapper>
190
 </mapper>