package cn.gov.customs.data.entity.wxjy.common;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * APP计量单位代码表实体类
 *
 * @author BladeX
 * @since 2022-01-04
 */
@Entity
@Data
@Table(name = "WXJY_APP_UNIT")
public class Unit implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 计量单位代码
	*/
	@Id
	@Column(name = "UNIT_CODE", length = 3)
	private String unitCode;
	/**
	* 计量单位名称
	*/
		@Column(name = "UNIT_NAME", length = 32)
	private String unitName;
	/**
	* 对应统计计量单位代码
	*/
		@Column(name = "CONV_CODE", length = 3)
	private String convCode;
	/**
	* 换算率
	*/
		@Column(name = "CONV_RATIO", precision = 19, scale = 4)
	private BigDecimal convRatio;


}
