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
|
* @DESCRIPTION: 应急物资管理
|
* @USER: aix
|
* @DATE: 2023/5/30 14:52
|
*/
|
@Data
|
@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
|
*/
|
@ApiModelProperty(value = "水库id")
|
private String resGuid;
|
|
/**
|
* 水库名称
|
*/
|
@ApiModelProperty(value = "水库名称")
|
private String resName;
|
|
/**
|
* 城市
|
*/
|
@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 materialsType;
|
|
/**
|
* 物资名称
|
*/
|
@ApiModelProperty(value = "物资名称")
|
private String materialsName;
|
|
/**
|
* 物资数量
|
*/
|
@ApiModelProperty(value = "物资数量")
|
private Integer materialsAmount;
|
|
/**
|
* 物资单位
|
*/
|
@ApiModelProperty(value = "物资单位")
|
private String materialsUnit;
|
|
/**
|
* 备注
|
*/
|
@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;
|
}
|