Kaynağa Gözat

feat(national-motion-system-biz): 添加 originId 字段并更新相关逻辑

- 在 AppIsin 和 DataRecord 类中添加 originId 字段
- 更新 synchronousDoorOpeningAndClosingRecords 方法,增加 originId相关逻辑
- 移除 synchronousDoorOpeningAndClosingRecords 方法中的冗余注释
SheepHy 3 hafta önce
ebeveyn
işleme
89b51758f4

+ 5 - 0
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/quartz/job/OrTeachingJobService.java

@@ -242,6 +242,7 @@ public class OrTeachingJobService {
      * @Param
      * @return
      **/
+//    @Scheduled(fixedDelay = 30000)
     @Scheduled(fixedDelay = 30000)
     public void synchronousDoorOpeningAndClosingRecords(){
         try {
@@ -256,6 +257,7 @@ public class OrTeachingJobService {
                     appIsin.setUpdateTime(DateUtils.str2Date(data.getGmtCreate(), new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")));
                     appIsin.setIsinStatus(1);
                     appIsin.setUseImage(data.getPortraitUrl());
+                    appIsin.setOriginId(data.getPortraitUrl());
                     appIsinMapper.updateById(appIsin);
                     AppOrderProInfo orderProInfo = appOrderProInfoMapper.selectById(appIsin.getOrderProInfoId());
                     orderProInfo.setOrderStatus(2);
@@ -349,6 +351,7 @@ public class OrTeachingJobService {
                             record.getEmployeeNo(),
                             record.getAuthResultMsg(),
                             record.getGmtCreate(),
+                            record.getOriginId(),
                             record.getPortraitUrl()  // 可能为null,不影响
                     ))
                     .filter(data -> data.getEmployeeNo() != null)  // 可选:排除无效数据
@@ -377,6 +380,7 @@ public class OrTeachingJobService {
         private String gmtCreate;
         private String portraitUrl;
         private String secMsgCode;
+        private String originId;
     }
 
     /**
@@ -389,5 +393,6 @@ public class OrTeachingJobService {
         private String authResultMsg;
         private String gmtCreate;
         private String portraitUrl;
+        private String originId;
     }
 }