fix 80609 未符合项 新增编辑判断时间赋值
This commit is contained in:
+13
-9
@@ -156,17 +156,21 @@ public class LawsEvaluationNotMetServiceImpl extends ServiceImpl<LawsEvaluationN
|
|||||||
}
|
}
|
||||||
lawsEvaluationNotMet.setStandardId(standardId);
|
lawsEvaluationNotMet.setStandardId(standardId);
|
||||||
lawsEvaluationNotMet.setSource(source);
|
lawsEvaluationNotMet.setSource(source);
|
||||||
//判断预警和超期
|
//如果待整改判断预警和超期
|
||||||
Date expectedTime = lawsEvaluationNotMet.getExpectedTime();
|
String state = lawsEvaluationNotMet.getState();
|
||||||
DateTime date = DateUtil.date();
|
if (AssessCommon.TO_BE_RECTIFIED.equals(state)){
|
||||||
DateTime theDayBefore = DateUtil.offsetDay(date, 1);
|
Date expectedTime = lawsEvaluationNotMet.getExpectedTime();
|
||||||
DateTime theDayAfter = DateUtil.offsetDay(date, -1);
|
DateTime date = DateUtil.date();
|
||||||
if (expectedTime.compareTo(theDayAfter)<0){
|
DateTime theDayBefore = DateUtil.offsetDay(date, 1);
|
||||||
lawsEvaluationNotMet.setState(AssessCommon.OVERDUE);
|
DateTime theDayAfter = DateUtil.offsetDay(date, -1);
|
||||||
}else if (expectedTime.compareTo(theDayBefore)<0){
|
if (expectedTime.compareTo(theDayAfter)<0){
|
||||||
lawsEvaluationNotMet.setState(AssessCommon.WARNING);
|
lawsEvaluationNotMet.setState(AssessCommon.OVERDUE);
|
||||||
|
}else if (expectedTime.compareTo(theDayBefore)<0){
|
||||||
|
lawsEvaluationNotMet.setState(AssessCommon.WARNING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user