Commit c234183d authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent d1834979
...@@ -508,8 +508,12 @@ public class THouseHoldLimitServiceImpl extends ServiceImpl<THouseHoldLimitMappe ...@@ -508,8 +508,12 @@ public class THouseHoldLimitServiceImpl extends ServiceImpl<THouseHoldLimitMappe
//当月办次月生效 //当月办次月生效
if (CommonConstants.ONE_STRING.equals(addHandleRule)){ if (CommonConstants.ONE_STRING.equals(addHandleRule)){
if (canBeHandle){ if (canBeHandle){
Date today = new Date(); if (isBeforeThreshold){
return DateUtil.dateToString(today, DateUtil.ISO_EXPANDED_DATE_FORMAT); Date today = new Date();
return DateUtil.dateToString(today, DateUtil.ISO_EXPANDED_DATE_FORMAT);
}else {
return DateUtil.dateToString(tomorrow, DateUtil.ISO_EXPANDED_DATE_FORMAT);
}
} else { } else {
return DateUtil.dateToString(nextMonthFirstDay, DateUtil.ISO_EXPANDED_DATE_FORMAT); return DateUtil.dateToString(nextMonthFirstDay, DateUtil.ISO_EXPANDED_DATE_FORMAT);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment