增加超期日期
This commit is contained in:
parent
86f12a5413
commit
cfc9e975e3
|
|
@ -265,6 +265,11 @@ public class MaterialSltAgreementInfo extends BaseEntity {
|
|||
*/
|
||||
private String actualExitTime;
|
||||
|
||||
/**
|
||||
* 超期时间
|
||||
*/
|
||||
private String overTime;
|
||||
|
||||
private BigDecimal reduceNum;
|
||||
|
||||
private String wsProId;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ import javax.annotation.Resource;
|
|||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
|
@ -840,7 +842,13 @@ public class ClzSltAgreementInfoServiceImpl implements ClzSltAgreementInfoServic
|
|||
}else{
|
||||
bean.setOverDay(overdueDays-7);
|
||||
}
|
||||
if(date!=null && !date.isEmpty()){
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
|
||||
LocalDate dateParm = LocalDate.parse(date, formatter);
|
||||
LocalDate resultDate = dateParm.plusDays(7);
|
||||
bean.setOverTime(resultDate+"");
|
||||
}
|
||||
|
||||
bean.setActualExitTime(date);
|
||||
BigDecimal leasePrice = bean.getLeasePrice();
|
||||
|
|
|
|||
Loading…
Reference in New Issue