package org.dromara.qa.md.domain;
|
|
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 java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* 称重盒子主表
|
*
|
* @author ruoyi
|
* @date 2026-04-09
|
*/
|
@Data
|
@TableName("qm_weighing_box")
|
public class WeighingBox implements Serializable
|
{
|
private static final long serialVersionUID = 1L;
|
|
/** 主键ID */
|
@TableId(type = IdType.ASSIGN_ID)
|
private Long id;
|
|
/** 盒子名称 */
|
private String name;
|
|
/** 盒子编号(全局唯一) */
|
private String code;
|
|
/** 标准重量 */
|
private BigDecimal weight;
|
|
/** 重量单位(g/kg/mg) */
|
private String unit;
|
|
/** 存放位置 */
|
private String location;
|
|
/** 校准周期(天) */
|
private Integer calibCycleDays;
|
|
/** 提前提醒天数 */
|
private Integer remindDays;
|
|
/** 上次校准日期 */
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date lastCalibDate;
|
|
/** 下次校准日期(系统自动计算) */
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date nextCalibDate;
|
|
/** 启用状态(1启用 0停用) */
|
private Integer activeStatus;
|
|
/** 备注描述 */
|
private String description;
|
|
/** 删除标记(0正常 1删除) */
|
private Integer delFlag;
|
|
/** 创建人 */
|
private String createBy;
|
|
/** 创建时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/** 更新人 */
|
private String updateBy;
|
|
/** 更新时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
// 扩展字段
|
// 排除掉
|
@TableField(exist = false)
|
private String calibStatus;
|
@TableField(exist = false)
|
private Integer calibDaysLeft;
|
}
|