fix 81518 未符合项-编辑没有根据时间重新判断状态
This commit is contained in:
+4
-2
@@ -165,10 +165,12 @@ public class LawsEvaluationNotMetServiceImpl extends ServiceImpl<LawsEvaluationN
|
||||
DateTime date = DateUtil.date();
|
||||
DateTime theDayBefore = DateUtil.offsetDay(date, 1);
|
||||
DateTime theDayAfter = DateUtil.offsetDay(date, -1);
|
||||
if (expectedTime.compareTo(theDayAfter)<0){
|
||||
if (expectedTime.compareTo(theDayAfter) < 0){
|
||||
lawsEvaluationNotMet.setState(AssessCommon.OVERDUE);
|
||||
}else if (expectedTime.compareTo(theDayBefore)<0){
|
||||
}else if (expectedTime.compareTo(theDayBefore) < 0){
|
||||
lawsEvaluationNotMet.setState(AssessCommon.WARNING);
|
||||
}else if (expectedTime.compareTo(theDayBefore) >= 0){
|
||||
lawsEvaluationNotMet.setState(AssessCommon.TO_BE_RECTIFIED);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user