| | |
| | | package cn.gistack.sm.materials.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.FieldStrategy; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.mp.base.BaseEntity; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @PROJECT_NAME: skjcmanager |
| | |
| | | * @DATE: 2023/5/30 14:52 |
| | | */ |
| | | @Data |
| | | @TableName("sm_materials_manage") |
| | | @TableName(value = "sm_materials_manage",autoResultMap = true) |
| | | @ApiModel(value = "应急物资管理对象", description = "应急物资管理对象") |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class MaterialsManage extends BaseEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 防汛年度 |
| | | */ |
| | | private Integer materialsYear; |
| | | |
| | | /** |
| | | * 水库id |
| | |
| | | private String resName; |
| | | |
| | | /** |
| | | * 行政区 |
| | | * 城市 |
| | | */ |
| | | @ApiModelProperty(value = "行政区") |
| | | private String adCode; |
| | | @ApiModelProperty(value = "城市") |
| | | @TableField(value = "city",updateStrategy = FieldStrategy.IGNORED) |
| | | private String city; |
| | | |
| | | /** |
| | | * 乡镇 |
| | | */ |
| | | @ApiModelProperty(value = "区县") |
| | | @TableField(value = "county",updateStrategy = FieldStrategy.IGNORED) |
| | | private String county; |
| | | |
| | | /** |
| | | * 乡镇 |
| | | */ |
| | | @ApiModelProperty(value = "乡镇") |
| | | @TableField(value = "town",updateStrategy = FieldStrategy.IGNORED) |
| | | private String town; |
| | | |
| | | /** |
| | | * 物资类型 |
| | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remarks; |
| | | |
| | | /** |
| | | * 合同 |
| | | */ |
| | | @ApiModelProperty(value = "合同") |
| | | @TableField(value = "contract",typeHandler = FastjsonTypeHandler.class,updateStrategy = FieldStrategy.IGNORED) |
| | | private Object[] contract; |
| | | |
| | | /** |
| | | * 图片 |
| | | */ |
| | | @ApiModelProperty("图片") |
| | | @TableField(value = "images",typeHandler = FastjsonTypeHandler.class,updateStrategy = FieldStrategy.IGNORED) |
| | | private Object[] images; |
| | | |
| | | /** |
| | | * 入库时间 |
| | | */ |
| | | @ApiModelProperty(value = "入库时间") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date importTime; |
| | | } |