package com.ruoyi.system.dto.asset;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import java.time.LocalDate;
|
import java.util.List;
|
|
/**
|
* 资产变更申请DTO
|
* @author mitao
|
* @date 2025/9/29
|
*/
|
@Data
|
@ApiModel("资产变更申请DTO")
|
public class OaApprovalApplicationChangeDTO {
|
|
@ApiModelProperty("事项标题")
|
@NotNull(message = "事项标题不能为空")
|
private String title;
|
|
@ApiModelProperty("资产类型ID")
|
@NotNull(message = "资产类型不能为空")
|
private Integer assetTypeId;
|
|
@ApiModelProperty("变更日期")
|
@NotNull(message = "变更日期不能为空")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private LocalDate changeTime;
|
|
@ApiModelProperty("变更备注")
|
private String applicationReason;
|
|
@ApiModelProperty(value = "使用/位置类型 0-部门,1-仓库,2-录入地址")
|
@NotNull(message = "使用/位置类型不能为空")
|
private Integer addressType;
|
|
@ApiModelProperty(value = "使用部门ID")
|
private Integer useDeptId;
|
|
@ApiModelProperty(value = "仓库ID")
|
private Integer warehouseId;
|
|
@ApiModelProperty(value = "所在位置")
|
private String address;
|
|
@ApiModelProperty(value = "管理部门ID")
|
@NotNull(message = "管理部门不能为空")
|
private Integer ownershipDeptId;
|
|
@ApiModelProperty(value = "使用人")
|
@NotBlank(message = "使用人不能为空")
|
private String userName;
|
|
@ApiModelProperty("资产列表")
|
@NotEmpty(message = "资产列表不能为空")
|
private List<Integer> assetMainIds;
|
}
|