package org.jeecg.modules.base.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 计量单位表
|
* </p>
|
*
|
* @Author cuijian
|
* @since 2022-10-26
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@TableName("mom_base_unit_conversion")
|
@Accessors(chain = true)
|
public class UnitConversion implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
private String id;
|
|
/**
|
* 计量单位id
|
*/
|
private String unitId;
|
|
/**
|
* 目标计量单位id
|
*/
|
private String targetUnitId;
|
|
/**
|
* 换算比例
|
*/
|
private String conversionRatio;
|
|
/**
|
* 状态 0:禁用 1:启用
|
*/
|
private String status = "1";
|
|
/**
|
* 租户id
|
*/
|
private String tenantId;
|
|
|
/**
|
* 创建人
|
*/
|
private String createBy;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 更新人
|
*/
|
private String updateBy;
|
|
/**
|
* 更新时间
|
*/
|
private Date updateTime;
|
|
/**
|
* 状态,0:正常,1:删除
|
*/
|
private String delFlag = "0";
|
|
//备注
|
private String remark;
|
|
//计量单位代码
|
@TableField(exist = false)
|
private String unitNum;
|
|
//目标计量单位代码
|
@TableField(exist = false)
|
private String targetUnitNum;
|
|
//目标计量单位名称
|
@TableField(exist = false)
|
private String targetUnitName;
|
|
//计量单位名称
|
@TableField(exist = false)
|
private String unitName;
|
|
}
|