cjl
2023-09-26 346288bc38bdab442721d7609caed86d03b9d2d4
screen-api/src/main/java/com/moral/api/pojo/query/allocation/AllocationUpdateCond.java
New file
@@ -0,0 +1,85 @@
package com.moral.api.pojo.query.allocation;
import com.moral.api.entity.Allocation;
import com.moral.api.pojo.vo.file.FileVo;
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 javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * <p>
 * 交办单
 * </p>
 * deyt template generate
 * @author JI
 * @since 2023-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Allocation - 更新对象", description="Allocation - 更新对象")
public class AllocationUpdateCond implements Serializable {
    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空!")
    private Integer allocationId;
    @ApiModelProperty(value = "上报时间")
    @NotNull(message = "上报时间不能为空!")
    private Date escalationTime;
    @ApiModelProperty(value = "污染位置")
    @NotEmpty(message = "污染位置不能为空!")
    private String pollutePosition;
    @ApiModelProperty(value = "责任单位id")
    @NotNull(message = "责任单位不能为空!")
    private Integer unitId;
    @ApiModelProperty(value = "污染分类id")
    @NotNull(message = "污染分类不能为空!")
    private Integer polluteType;
    @ApiModelProperty(value = "整改类型id")
    @NotNull(message = "整改类型不能为空!")
    private Integer changeType;
    @ApiModelProperty(value = "期限天数")
    private Integer changeDay;
    @ApiModelProperty(value = "上报单位id")
    @NotNull(message = "上报单位不能为空!")
    private Integer escalationUnitId;
    @ApiModelProperty(value = "上报人")
    @NotEmpty(message = "上报人不能为空!")
    private String escalationName;
    @ApiModelProperty(value = "排查方式id")
    @NotNull(message = "排查方式不能为空!")
    private Integer investigationType;
    @ApiModelProperty(value = "问题描述")
    private String problemDescribe;
    @ApiModelProperty(value = "状态")
    @NotNull(message = "状态不能为空!")
    private Integer state;
    @ApiModelProperty(value = "基础附件")
    private List<FileVo> fileBaseList;
    public Allocation convert() {
        Allocation allocation = BeanConverts.convert(this, Allocation.class);
        return allocation;
    }
}