Pārlūkot izejas kodu

20240904 导出任务修改

lwhhszx 1 gadu atpakaļ
vecāks
revīzija
1ce1512fa5

+ 1 - 1
src/main/java/cn/cslg/pas/service/business/PatentExportService.java

@@ -513,7 +513,6 @@ public class PatentExportService {
 
         }
 
-        this.sendWebSocketMessage(projectId, taskId, createId, total.intValue(), index, true);
 
         try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
 
@@ -527,6 +526,7 @@ public class PatentExportService {
             exportTask.setState(2);
             exportTask.setDoneNum(index);
             Integer reTaskId = importTaskService.updateExportTask(exportTask);
+            this.sendWebSocketMessage(projectId, taskId, createId, total.intValue(), index, true);
             if (reTaskId == null) {
                 throw new XiaoShiException("导出记录失败");
             }

+ 1 - 1
src/main/java/cn/cslg/pas/service/quartzService/SysImportPatentJobService.java

@@ -34,7 +34,7 @@ public class SysImportPatentJobService extends QuartzJobBean {
 
     @Override
     public void executeInternal(JobExecutionContext context) throws JobExecutionException {
-       // mailSendService.sendSysCycleStartEmail();
+        mailSendService.sendSysCycleStartEmail();
         CheckDateConditionVO checkDateConditionVO = DateUtils2.checkDateCycleCondition(null);
         Boolean ifMeetMonth = checkDateConditionVO.getIfMeetMonth();
         Boolean ifMeetQuarter = checkDateConditionVO.getIfMeetQuarter();