车车 2 сар өмнө
parent
commit
f030f5c211

+ 14 - 1
yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/controller/admin/exception/vo/ExceptionRespVO.java

@@ -62,7 +62,7 @@ public class ExceptionRespVO {
 
 
     @Schema(description = "引发人")
     @Schema(description = "引发人")
     @ExcelProperty("引发人")
     @ExcelProperty("引发人")
-    private Long raiserName;
+    private String raiserName;
 
 
     @Schema(description = "参数ID")
     @Schema(description = "参数ID")
     @ExcelProperty("参数ID")
     @ExcelProperty("参数ID")
@@ -84,4 +84,17 @@ public class ExceptionRespVO {
     @ExcelProperty("创建时间")
     @ExcelProperty("创建时间")
     private LocalDateTime createTime;
     private LocalDateTime createTime;
 
 
+    @Schema(description = "异常发生时间")
+    private String startRaiseTime;
+
+    @Schema(description = "异常发生时间")
+    private String endRaiseTime;
+
+    @Schema(description = "异常处理时间")
+    private String startHandleTime;
+
+    @Schema(description = "异常处理时间")
+    private String endHandleTime;
+
+
 }
 }

+ 2 - 3
yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/service/sop/SopExecutionPlanServiceImpl.java

@@ -73,7 +73,7 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
         SopExecutionPlanRespVO sopExecutionPlan1 = getSopExecutionPlan(sopExecutionPlan.getId());
         SopExecutionPlanRespVO sopExecutionPlan1 = getSopExecutionPlan(sopExecutionPlan.getId());
         if (!sopExecutionPlan1.getPreviewDataList().isEmpty()) {
         if (!sopExecutionPlan1.getPreviewDataList().isEmpty()) {
             sopExecutionPlanMapper.update(Wrappers.<SopExecutionPlanDO>lambdaUpdate()
             sopExecutionPlanMapper.update(Wrappers.<SopExecutionPlanDO>lambdaUpdate()
-                    .eq(SopExecutionPlanDO::getSopId, sopExecutionPlan.getId())
+                    .eq(SopExecutionPlanDO::getId, sopExecutionPlan.getId())
                     .set(SopExecutionPlanDO::getNextExecutDate, sopExecutionPlan1.getPreviewDataList().get(0).getPlanDay()));
                     .set(SopExecutionPlanDO::getNextExecutDate, sopExecutionPlan1.getPreviewDataList().get(0).getPlanDay()));
             /*if (sopExecutionPlan1.getPreviewDataList().get(0).getPlanDay().equals(DateUtil.format(new Date(), "yyyy-MM-dd"))) {
             /*if (sopExecutionPlan1.getPreviewDataList().get(0).getPlanDay().equals(DateUtil.format(new Date(), "yyyy-MM-dd"))) {
                 // 如果初始化的
                 // 如果初始化的
@@ -95,7 +95,7 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
                 !updateReqVO.getTimePoint().equals(byId.getTimePoint())) {
                 !updateReqVO.getTimePoint().equals(byId.getTimePoint())) {
             // 改动了计划的实质性内容,需要直接修改计划的开始时间
             // 改动了计划的实质性内容,需要直接修改计划的开始时间
             updateReqVO.setCreateTime(LocalDateTime.now());
             updateReqVO.setCreateTime(LocalDateTime.now());
-            // 获取新的书简周期
+            // 获取新的数据周期
             List<String> previewDateList = getPreviewDateList(updateReqVO.getEffectiveTime(), updateReqVO.getFrequencyUnit(), updateReqVO.getFrequency(), updateReqVO.getTimePoint());
             List<String> previewDateList = getPreviewDateList(updateReqVO.getEffectiveTime(), updateReqVO.getFrequencyUnit(), updateReqVO.getFrequency(), updateReqVO.getTimePoint());
             updateReqVO.setNextExecutDate(previewDateList.isEmpty() ? "" : previewDateList.get(0));
             updateReqVO.setNextExecutDate(previewDateList.isEmpty() ? "" : previewDateList.get(0));
         }
         }
@@ -372,7 +372,6 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
     @Transactional
     @Transactional
     @Override
     @Override
     public Boolean addJobBySopExecutionPlan() throws JsonProcessingException {
     public Boolean addJobBySopExecutionPlan() throws JsonProcessingException {
-
         String yyyymmdd = DateUtil.format(new Date(), "yyyy-MM-dd");
         String yyyymmdd = DateUtil.format(new Date(), "yyyy-MM-dd");
         SopExecutionPlanRespVO sopExecutionPlanRespVO = new SopExecutionPlanRespVO();
         SopExecutionPlanRespVO sopExecutionPlanRespVO = new SopExecutionPlanRespVO();
         sopExecutionPlanRespVO.setNextExecutDate(yyyymmdd);
         sopExecutionPlanRespVO.setNextExecutDate(yyyymmdd);

+ 1 - 1
yudao-module-iscs/src/main/resources/mapper/StatisticsMapper.xml

@@ -17,7 +17,6 @@
                 LEFT JOIN isc_workstation w ON w.id = c.workstation_id
                 LEFT JOIN isc_workstation w ON w.id = c.workstation_id
                 LEFT JOIN ( SELECT o.cabinet_id, count( o.id ) AS open_count FROM isc_cabinet_open_record o
                 LEFT JOIN ( SELECT o.cabinet_id, count( o.id ) AS open_count FROM isc_cabinet_open_record o
                 <where>
                 <where>
-                    c.deleted = 0
                     <if test="startTime != null and startTime.trim != ''">
                     <if test="startTime != null and startTime.trim != ''">
                         and o.open_time &gt;= #{startTime}
                         and o.open_time &gt;= #{startTime}
                     </if>
                     </if>
@@ -48,6 +47,7 @@
                     </if>
                     </if>
                 </where>
                 </where>
                 GROUP BY e.loan_from_id ) lex ON lex.loan_from_id = c.id
                 GROUP BY e.loan_from_id ) lex ON lex.loan_from_id = c.id
+        where  c.deleted = 0
         order by c.id asc
         order by c.id asc
     </select>
     </select>