瀏覽代碼

修复corpwxUserId赋值为departmentName的BUG

seyason 2 年之前
父節點
當前提交
d0b0e1c421

+ 1 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java

@@ -3198,7 +3198,6 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
             Integer corpwxDeptId = (Integer) data.get("corpwxDeptId");
             Map<String, Object> map = new HashMap<>();
             String date = new SimpleDateFormat("yyyy-MM-dd").format((Date)data.get("createDate"));
-            String corpwxUserid = (String) data.get("corpwxUserId");
             map.put("workingTime", data.get("workingTime"));
             map.put("createDate", date);
             if (id.equals(lastUserId)) {
@@ -3210,7 +3209,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                 lastUserData.userId = id;
                 lastUserData.name = name;
                 lastUserData.departmentName = departmentName;
-                lastUserData.corpwxUserId = departmentName;
+                lastUserData.corpwxUserId = corpwxUserId;
                 lastUserData.corpwxDeptId = departmentName;
                 lastUserData.worktimeList = new ArrayList<>();
                 lastUserData.worktimeList.add(map);