package org.springblade.modules.farmplant.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import org.springblade.core.tenant.mp.TenantEntity;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 农产品库存表实体类
|
* @since 2022-05-18
|
* @author zhongrj
|
*/
|
@Data
|
@TableName("sys_farm_product_stock")
|
public class FarmProductStock implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id",type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 品种id
|
*/
|
private Integer strainId;
|
|
/**
|
* 采收重量
|
*/
|
private String weight;
|
|
/**
|
* 产品等级(0:一等品 1:二等品 2:三等品 3:四等品4:五等品)
|
*/
|
private String leaves;
|
|
|
/**
|
* 采收时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date time;
|
|
/**
|
* 操作人(用户id)
|
*/
|
private String operator;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 种植记录id
|
*/
|
private Integer farmPlantId;
|
|
|
/**
|
* 农场id
|
*/
|
private String deptId;
|
|
/**
|
* 租户id
|
*/
|
private String tenantId;
|
|
}
|