package com.ruoyi.system.dto;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 新增维修记录DTO
|
* </p>
|
*
|
* @author WuGuanFengYue
|
* @since 2025-10-09
|
*/
|
@Data
|
@ApiModel(value="AssetRepairRecordAddDTO对象", description="新增维修记录DTO")
|
public class AssetRepairRecordAddDTO {
|
|
@ApiModelProperty(value = "事项标题", required = true)
|
@NotBlank(message = "事项标题不能为空")
|
private String title;
|
|
@ApiModelProperty(value = "维护资产类型ID", required = true)
|
@NotBlank(message = "维护资产类型ID不能为空")
|
private String assetTypeId;
|
|
@ApiModelProperty(value = "当前维修状态:0-维修中,1-无需维修,2-维修完成", required = true)
|
@NotNull(message = "维修状态不能为空")
|
private Integer repairStatus;
|
|
@ApiModelProperty(value = "维修费用", required = true)
|
@NotNull(message = "维修费用不能为空")
|
private BigDecimal totalFee;
|
|
@ApiModelProperty(value = "维修人", required = true)
|
@NotBlank(message = "维修人不能为空")
|
private String repairBy;
|
|
@ApiModelProperty(value = "附件URL列表(多个附件使用英文逗号拼接)")
|
private String attachmentUrls;
|
|
@ApiModelProperty(value = "维修备注")
|
private String repairRemarks;
|
|
@ApiModelProperty(value = "关联报修单号(非必填,保存时需要校验报修单是否存在)")
|
private String repairRequestNo;
|
|
@ApiModelProperty(value = "维修资产ID列表", required = true)
|
@NotNull(message = "维修资产ID列表不能为空")
|
private List<Integer> assetMainIds;
|
}
|