Commit 2c12ae25c1f9e85b19c8d64f0fc48372c53bd050

Authored by 房远帅
1 parent 8d6ac47b

资金协调手续:协调办理日期取值

@@ -290,10 +290,11 @@ public class FundCoordinationController extends DefaultBaseController { @@ -290,10 +290,11 @@ public class FundCoordinationController extends DefaultBaseController {
290 bo1.setTimeout(String.valueOf(daysBetween)); 290 bo1.setTimeout(String.valueOf(daysBetween));
291 } 291 }
292 //协调办理日期 292 //协调办理日期
293 - if (receipt.getCoordinateDate() != null) { 293 + if (receipt.getCoordinateDate() != null && !receipt.getCoordinateDate().isBefore(LocalDate.now())) {
294 bo1.setCoordinateHandleDate(receipt.getCoordinateDate()); 294 bo1.setCoordinateHandleDate(receipt.getCoordinateDate());
295 } 295 }
296 - if (receipt.getCoordinateDate() != null && bo1.getDueDate() != null) { 296 + if (receipt.getCoordinateDate() != null && !receipt.getCoordinateDate().isBefore(LocalDate.now())
  297 + && bo1.getDueDate() != null) {
297 //实际超时(协调办理日期-应办理日期) 298 //实际超时(协调办理日期-应办理日期)
298 long daysBetween = ChronoUnit.DAYS.between(bo1.getDueDate(), receipt.getCoordinateDate()); 299 long daysBetween = ChronoUnit.DAYS.between(bo1.getDueDate(), receipt.getCoordinateDate());
299 bo1.setActualTimeout(String.valueOf(daysBetween)); 300 bo1.setActualTimeout(String.valueOf(daysBetween));