fix: 88314 外来标准法规文本库--到了代替标准的新认证车实施日期,没有发送消息
This commit is contained in:
+3
-3
@@ -158,7 +158,7 @@ public class ReplaceImplementationDateMsgJob implements Job {
|
||||
return;
|
||||
}
|
||||
Map<String, LawsDomesticStandard> standardMap =
|
||||
standardList.stream().collect(Collectors.toMap(LawsDomesticStandard::getId, es -> es));
|
||||
standardList.stream().collect(Collectors.toMap(LawsDomesticStandard::getStandardNumber, es -> es));
|
||||
// 获取今天0点
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.set(Calendar.HOUR_OF_DAY, 0);
|
||||
@@ -179,7 +179,7 @@ public class ReplaceImplementationDateMsgJob implements Job {
|
||||
}
|
||||
// 判断实施日期大于今天0点小于明天0点
|
||||
if (implementationDate.equals(todayMidnight) && implementationDate.before(tomorrowMidnight)) {
|
||||
allExpireStandardNumberList.add(gb.getId());
|
||||
allExpireStandardNumberList.add(gb.getStandardNumber());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ public class ReplaceImplementationDateMsgJob implements Job {
|
||||
LawsDomesticStandard mainStandard = standardMap.get(s);
|
||||
// 根据所有到期的标准编号,找到他们代替的标准
|
||||
LambdaQueryWrapper<LawsReplacedStandard> replaceStandardWrapper = new LambdaQueryWrapper<>();
|
||||
replaceStandardWrapper.in(LawsReplacedStandard::getReplacedBy, allExpireStandardNumberList);
|
||||
replaceStandardWrapper.eq(LawsReplacedStandard::getReplacedBy, mainStandard.getStandardNumber());
|
||||
replaceStandardWrapper.eq(LawsReplacedStandard::getType, 1);
|
||||
List<LawsReplacedStandard> replacedStandardList = replacedStandardService.list(replaceStandardWrapper);
|
||||
if (replacedStandardList.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user