| | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.moral.api.pojo.enums.AllocationApproveEnum; |
| | | import com.moral.api.pojo.enums.ChangeEnum; |
| | | import com.moral.api.pojo.ext.allocation.AllocationPageExt; |
| | | import com.moral.api.pojo.vo.allocation.AllocationPageVo; |
| | | import com.moral.api.utils.BeanConverts; |
| | |
| | | |
| | | @ApiModelProperty(value = "状态名字") |
| | | private String stateName; |
| | | //上报单位名字 |
| | | private String escalationUnitName; |
| | | |
| | | public Integer getResidueDay() { |
| | | int day = this.changeDay; |
| | | int day=0; |
| | | if (this.changeType==ChangeEnum.DEADLINE.value){ |
| | | day = this.changeDay; |
| | | if(AllocationApproveEnum.UNDER_RECTIFICATION.value.equals(state)){ |
| | | Date date = new Date(); |
| | | int days = DateUtils.getDays(escalationTime, date); |
| | | return day-days; |
| | | } |
| | | } |
| | | return day; |
| | | } |
| | | public static AppAllocationFindVo convert(AllocationPageExt allocationPageExt) { |