生成合同
This commit is contained in:
parent
d9d9bdd8b3
commit
a24d186920
@ -99,6 +99,10 @@ public class PsContractInfoVo implements Serializable {
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date endServiceDate;
|
||||
/**
|
||||
* 合同结束天数
|
||||
*/
|
||||
private Integer endNum;
|
||||
/**
|
||||
* 办理期限
|
||||
*/
|
||||
@ -232,5 +236,6 @@ public class PsContractInfoVo implements Serializable {
|
||||
/**
|
||||
* 续费日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date renewalDate;
|
||||
}
|
||||
|
@ -637,6 +637,11 @@ public class PsContractInfoServiceImpl implements IPsContractInfoService {
|
||||
if(StringUtils.equals(CommonStatusEnum.FAIL.getCode(),vo.getIsCancel())){
|
||||
vo.setContractStatusDesc(approverRecordService.getLastFail(vo.getContractCode(),vo.getContractCode(),List.of(ApproverTypeEnum.CANCELLA.getCode())));
|
||||
}
|
||||
//天数
|
||||
if(vo.getEndServiceDate() != null){
|
||||
int num = DateUtils.differentDaysByMillisecond(new Date(), vo.getEndServiceDate());
|
||||
vo.setEndNum(Math.max(num, 0));
|
||||
}
|
||||
return vo;
|
||||
}
|
||||
private void fillMoney(PsContractInfoVo vo){
|
||||
|
Loading…
Reference in New Issue
Block a user