package cn.besteam.modules.medical.dto;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
@Data
|
@ApiModel
|
public class MwCollectRecordSaveDTO {
|
|
@ApiModelProperty(value = "科室ID")
|
@NotNull(message = "科室不能为空")
|
private Integer departmentId;
|
|
@ApiModelProperty(value = "科室人员ID")
|
// @NotNull(message = "科室人员不能为空")
|
private Integer departmentUserId;
|
|
@ApiModelProperty(value = "医废类型")
|
@NotNull(message = "医废类型不能为空")
|
private Integer wasteType;
|
|
@ApiModelProperty(value = "重量/数量")
|
@NotNull(message = "重量/数量不能为空")
|
private BigDecimal weight;
|
|
@ApiModelProperty(value = "备注")
|
private String description;
|
|
@ApiModelProperty(value = "收集时间")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date createTime;
|
|
@ApiModelProperty(value = "编码,不能重复")
|
@NotEmpty(message = "编码不能为空")
|
private String code;
|
|
@ApiModelProperty(value = "收集人员ID")
|
private Integer createBy;
|
|
@ApiModelProperty(value = "科室人员签名")
|
private String officePersonnelSignature;
|
|
|
}
|