Quellcode durchsuchen

处理介绍信失效允许登记离开时间

jingyuanchao vor 1 Jahr
Ursprung
Commit
d926c5988a

+ 3 - 2
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/letter/service/impl/CoreIntroduceLetterServiceImpl.java

@@ -465,7 +465,8 @@ public class CoreIntroduceLetterServiceImpl extends ServiceImpl<CoreIntroduceLet
             coreIntroduceLetterMapper.batchUpdateOutInRequestStatus(overdueOutInRequestList);
         }
 
-        final LambdaQueryWrapper<CoreOutInRecord> oqw1 = new LambdaQueryWrapper<CoreOutInRecord>();
+        //815版本需求允许介绍信失效后登记了进入时间的,未登记离开时间,可以随时登记离开时间
+       /* final LambdaQueryWrapper<CoreOutInRecord> oqw1 = new LambdaQueryWrapper<CoreOutInRecord>();
         oqw1.notIn(CoreOutInRecord::getStatus, 2,3)
             .isNull(CoreOutInRecord::getDepartureTime)
             .le(CoreOutInRecord::getOutInRequestEffectiveEndTime,currentDate);
@@ -475,7 +476,7 @@ public class CoreIntroduceLetterServiceImpl extends ServiceImpl<CoreIntroduceLet
 
             // 将出入记录设置为已失效状态
             coreOutInRecordMapper.batchUpdateCoreOutInRecordStatus(outInRecords);
-        }
+        }*/
     }
 
 

+ 2 - 2
soc-modules/soc-modules-job/src/main/java/com/xunmei/job/task/CoreLetterTask.java

@@ -18,9 +18,9 @@ public class CoreLetterTask {
 
 
     public void updateLetterStatus() {
-      /*  String id = UUID.fastUUID().toString();
+        String id = UUID.fastUUID().toString();
         log.info("开始执行介绍信修改状态定时任务,超过出入申请有效期的数据状态修改为 已逾期,当前任务 id:{}", id);
         R<Boolean> booleanR = remoteLetterService.updateLetterStatus(SecurityConstants.INNER);
-        log.info("执行介绍信修改状态定时任务,超过出入申请有效期的数据状态修改为 已逾期已结束,当前任务 id:{},结果:{}", id, JSON.toJSONString(booleanR));*/
+        log.info("执行介绍信修改状态定时任务,超过出入申请有效期的数据状态修改为 已逾期已结束,当前任务 id:{},结果:{}", id, JSON.toJSONString(booleanR));
     }
 }