fix 81518 未符合项-编辑没有根据时间重新判断状态

This commit is contained in:
lijiarao
2024-01-31 19:31:03 +08:00
parent 9e374c0b0d
commit d8567ef01a
@@ -158,7 +158,9 @@ public class LawsEvaluationNotMetServiceImpl extends ServiceImpl<LawsEvaluationN
lawsEvaluationNotMet.setSource(source);
//如果待整改判断预警和超期
String state = lawsEvaluationNotMet.getState();
if (AssessCommon.TO_BE_RECTIFIED.equals(state)){
if (AssessCommon.TO_BE_RECTIFIED.equals(state)
||AssessCommon.OVERDUE.equals(state)
||AssessCommon.WARNING.equals(state)){
Date expectedTime = lawsEvaluationNotMet.getExpectedTime();
DateTime date = DateUtil.date();
DateTime theDayBefore = DateUtil.offsetDay(date, 1);