Browse Source

[bug-9272]人员能力监督取人员的主部门

huangws 2 giờ trước cách đây
mục cha
commit
7310ebe074

+ 3 - 1
GetDataByView/src/main/java/com/jyxt/getdatabyview/HandleData.java

@@ -766,7 +766,9 @@ public class HandleData {
             for (Map<String, Object> employeeMap : employeeList) {
                 String userID = (String) employeeMap.get("ID_");
                 String userName = (String) employeeMap.get("NAME_");
-                String depIDStr = (String) employeeMap.get("POSITIONS_");
+                //String depIDStr = (String) employeeMap.get("POSITIONS_");
+                //改成取主部门
+                String depIDStr = ibpsRepository.getMainPos(userID);
                 if (depIDStr == null || depIDStr.trim().isEmpty()) {
                     continue;
                 }