New file |
| | |
| | | package com.moral.api.pojo.vo.allocationextension; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.moral.api.pojo.ext.allocationextension.AllocationExtensionPageExt; |
| | | import com.moral.api.utils.BeanConverts; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 交办单延期 |
| | | * </p> |
| | | * deyt template generate |
| | | * @author JI |
| | | * @since 2023-09-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="AllocationExtension - 分页VO对象", description="AllocationExtension - 分页VO对象") |
| | | public class AllocationExtensionPageVo implements Serializable { |
| | | |
| | | |
| | | @ApiModelProperty(value = "主键id") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "交办单号") |
| | | private String allocationNum; |
| | | |
| | | @ApiModelProperty(value = "上报时间") |
| | | @JsonFormat(pattern="yyyy-MM-dd") |
| | | private Date escalationTime; |
| | | @ApiModelProperty(value = "责任单位id") |
| | | private Integer unitId; |
| | | |
| | | @ApiModelProperty(value = "污染分类id") |
| | | private Integer polluteType; |
| | | |
| | | @ApiModelProperty(value = "整改类型id") |
| | | private Integer changeType; |
| | | |
| | | @ApiModelProperty(value = "期限天数") |
| | | private Integer changeDay; |
| | | |
| | | |
| | | @ApiModelProperty(value = "延期天数") |
| | | private Integer extensionNum; |
| | | |
| | | @ApiModelProperty(value = "状态") |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty(value = "上报单位id") |
| | | private Integer escalationUnitId; |
| | | |
| | | @ApiModelProperty(value = "上报人") |
| | | private String escalationName; |
| | | |
| | | @ApiModelProperty(value = "创建人id") |
| | | private Integer createId; |
| | | |
| | | @ApiModelProperty(value = "创建人姓名") |
| | | private String createName; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "更新人id") |
| | | private Integer updateId; |
| | | |
| | | @ApiModelProperty(value = "更新人姓名") |
| | | private String updateName; |
| | | |
| | | @ApiModelProperty(value = "更新时间") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | |
| | | |
| | | public static AllocationExtensionPageVo convert(AllocationExtensionPageExt allocationExtensionPageExt) { |
| | | AllocationExtensionPageVo allocationExtensionPageVo = BeanConverts.convert(allocationExtensionPageExt, AllocationExtensionPageVo.class); |
| | | return allocationExtensionPageVo; |
| | | } |
| | | |
| | | public static List<AllocationExtensionPageVo> convert(List<AllocationExtensionPageExt> allocationExtensionPageExtList) { |
| | | return allocationExtensionPageExtList.stream().map(AllocationExtensionPageVo::convert).collect(Collectors.toList()); |
| | | } |
| | | } |