浏览代码

考勤工时异常表

QuYueTing 8 月之前
父节点
当前提交
57984c14c3

+ 20 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java

@@ -10329,6 +10329,26 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                 resultList.add(map);
             }
         }
+        //反向,检测有填报日报但是没有考勤的数据
+        for (Report report : reportList) {
+            boolean hasCardTime = false;
+            for (UserCorpwxTime corpwxTime : userCorpwxTimeList) {
+                if (corpwxTime.getCreateDate().isEqual(report.getCreateDate())) {
+                    if (corpwxTime.getWorkHours() > 0) {
+                        hasCardTime = true;
+                    }
+                    break;
+                }
+            }
+            if (!hasCardTime) {
+                Map<String, Object> map = new HashMap<>();
+                map.put("name", user.getName());
+                map.put("createDate", dateTimeFormatter.format(report.getCreateDate()));
+                map.put("workHours", 0);
+                map.put("reportTime", report.getWorkingTime());
+                resultList.add(map);
+            }
+        }
         HttpRespMsg msg = new HttpRespMsg();
         msg.setData(resultList);
         return msg;

+ 4 - 4
fhKeeper/formulahousekeeper/management-platform/src/main/resources/mapper/ProjectMapper.xml

@@ -1238,7 +1238,7 @@
         from report a
         left join task_group b on a.group_id=b.id
         left join project c on a.project_id=c.id
-        where c.company_id=#{companyId} and a.state=1
+        where c.company_id=#{companyId}
         <if test="startDate!=null and endDate!=null">
             and a.create_date &gt;=#{startDate} and a.create_date &lt;=#{endDate}
         </if>
@@ -1274,7 +1274,7 @@
         from report a
         left join task_group b on a.group_id=b.id
         left join project c on a.project_id=c.id
-        where c.company_id=#{companyId} and a.state=1
+        where c.company_id=#{companyId}
         <if test="startDate!=null and endDate!=null">
             and a.create_date &gt;=#{startDate} and a.create_date &lt;=#{endDate}
         </if>
@@ -1313,7 +1313,7 @@
         <if test="projectCategorySub!=null and projectCategorySub!=''">
             left join project_separate ps on ps.id=c.id
         </if>
-        where c.company_id=#{companyId} and a.state=1
+        where c.company_id=#{companyId}
         <if test="startDate!=null and endDate!=null">
             and a.create_date &gt;=#{startDate} and a.create_date &lt;=#{endDate}
         </if>
@@ -1357,7 +1357,7 @@
         <if test="projectCategorySub!=null and projectCategorySub!=''">
             left join project_separate ps on ps.id=c.id
         </if>
-        where c.company_id=#{companyId} and a.state=1
+        where c.company_id=#{companyId}
         <if test="startDate!=null and endDate!=null">
             and a.create_date &gt;=#{startDate} and a.create_date &lt;=#{endDate}
         </if>

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -2193,7 +2193,7 @@
   "zhuanYIGongShi": "Transfer of working hours",
   "zhuanYiChengGong": "Transfer successful",
   "zhuanYiZhi": "Transfer to",
-  "cardtimenotfull": "ReportTime less than cardTime data list",
+  "cardtimenotfull": "ReportTime and cardTime abnormal list",
   "fillReportTime": "Fill report time",
   "kaoqingjiabanjiaoyanTip": "Man-hour management type"
 }

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -2194,6 +2194,6 @@
   "zhuanYiZhi": "转移至",
   "queRenZhuanYi": "确认转移",
   "zhuanYiChengGong": "转移成功",
-  "cardtimenotfull": "考勤工时未完全填报列表",
+  "cardtimenotfull": "考勤工时异常列表",
   "fillReportTime": "填报时长"
 }