| | |
| | | import java.time.LocalDateTime; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_hazard_record") |
| | | @ApiModel(value = "SafeHazardRecord对象", description = "安全生产--危险物料管控") |
| | | @Schema(name = "SafeHazardRecord对象", description = "安全生产--危险物料管控") |
| | | public class SafeHazardRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("单号") |
| | | @Schema(description = "单号") |
| | | private String materialRecordCode; |
| | | |
| | | @ApiModelProperty("关联危险源台账 ID") |
| | | @Schema(description = "关联危险源台账 ID") |
| | | private Integer safeHazardId; |
| | | |
| | | @ApiModelProperty("领用人 ID") |
| | | @Schema(description = "领用人 ID") |
| | | private Integer applyUserId; |
| | | |
| | | @ApiModelProperty("领用时间") |
| | | @Schema(description = "领用时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate applyTime; |
| | | |
| | | @ApiModelProperty("领用数量") |
| | | @Schema(description = "领用数量") |
| | | private BigDecimal applyQty; |
| | | |
| | | @ApiModelProperty("领用用途") |
| | | @Schema(description = "领用用途") |
| | | private String applyPurpose; |
| | | |
| | | @ApiModelProperty("归还人 ID") |
| | | @Schema(description = "归还人 ID") |
| | | private Integer returnUserId; |
| | | |
| | | @ApiModelProperty("归还时间") |
| | | @Schema(description = "归还时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate returnTime; |
| | | |
| | | @ApiModelProperty("归还情况说明") |
| | | @Schema(description = "归还情况说明") |
| | | private String returnRemark; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |