Showing
1 changed file
with
3 additions
and
2 deletions
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/ledger/FundCoordinationController.java
| ... | ... | @@ -290,10 +290,11 @@ public class FundCoordinationController extends DefaultBaseController { |
| 290 | 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 | 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 | 299 | long daysBetween = ChronoUnit.DAYS.between(bo1.getDueDate(), receipt.getCoordinateDate()); |
| 299 | 300 | bo1.setActualTimeout(String.valueOf(daysBetween)); | ... | ... |