增加超期日期
This commit is contained in:
parent
cfc9e975e3
commit
4ca6bc49d2
|
|
@ -44,6 +44,8 @@ import java.math.BigDecimal;
|
||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@Api(tags = "材料站结算申请接口")
|
@Api(tags = "材料站结算申请接口")
|
||||||
|
|
@ -244,6 +246,15 @@ public class ClzSltAgreementInfoController extends BaseController {
|
||||||
}else{
|
}else{
|
||||||
bean.setOverDay(overdueDays-7);
|
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);
|
bean.setActualExitTime(date);
|
||||||
BigDecimal leasePrice = bean.getLeasePrice();
|
BigDecimal leasePrice = bean.getLeasePrice();
|
||||||
BigDecimal num = bean.getNum();
|
BigDecimal num = bean.getNum();
|
||||||
|
|
@ -527,6 +538,8 @@ public class ClzSltAgreementInfoController extends BaseController {
|
||||||
|
|
||||||
if(date!=null && !date.isEmpty()){
|
if(date!=null && !date.isEmpty()){
|
||||||
listAll.get(0).setActualExitTime(date);
|
listAll.get(0).setActualExitTime(date);
|
||||||
|
}else{
|
||||||
|
listAll.get(0).setActualExitTime("暂无");
|
||||||
}
|
}
|
||||||
projectNames.add(listAll.get(0).getProjectName());
|
projectNames.add(listAll.get(0).getProjectName());
|
||||||
unitNames.add(listAll.get(0).getUnitName());
|
unitNames.add(listAll.get(0).getUnitName());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue