package org.springblade.modules.farm.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-13
|
* @author zhongrj
|
*/
|
@Data
|
@TableName("sys_farming_record")
|
public class FarmingRecord implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id",type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 土地id
|
*/
|
private String landId;
|
|
/**
|
* 农事类型 (0:施肥 1:翻耕 2:灌溉 3:起垄(整畦)4:用药 5:追肥 6:投料 7:除草 8: 修剪 9: 浸种 10:拌种 )
|
*/
|
private String type;
|
|
|
/**
|
* 作业方式(0:人工 1:机械)
|
*/
|
private String jobWay;
|
|
/**
|
* 操作时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
private Date time;
|
|
/**
|
* 操作人
|
*/
|
private String operator;
|
|
/**
|
* 图片
|
*/
|
private String tp;
|
|
/**
|
* 备注
|
*/
|
private String remarks;
|
|
/**
|
* 农资id
|
*/
|
private String stockId;
|
|
/**
|
* 创建时间
|
*/
|
@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 strainId;
|
|
|
/**
|
* 农场id
|
*/
|
private String deptId;
|
|
|
/**
|
* 租户id
|
*/
|
private String tenantId;
|
private String content;
|
private Double census;
|
|
}
|