package cn.iocoder.yudao.module.mes.dal.dataobject.wm.stocktaking.plan;
|
|
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import cn.iocoder.yudao.module.mes.enums.wm.MesWmStockTakingTypeEnum;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.time.LocalDateTime;
|
import cn.iocoder.yudao.module.mes.enums.DictTypeConstants;
|
|
/**
|
* MES 盘点方案 DO
|
*
|
* @author 超级管理员
|
*/
|
@TableName("mes_wm_stock_taking_plan")
|
@KeySequence("mes_wm_stock_taking_plan_seq")
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class MesWmStockTakingPlanDO extends BaseDO {
|
|
/**
|
* 编号
|
*/
|
@TableId
|
private Long id;
|
|
/**
|
* 方案编码
|
*/
|
private String code;
|
|
/**
|
* 方案名称
|
*/
|
private String name;
|
|
/**
|
* 盘点类型
|
*
|
* 字典 {@link DictTypeConstants#MES_WM_STOCK_TAKING_TYPE}
|
* 枚举 {@link MesWmStockTakingTypeEnum}
|
*/
|
private Integer type;
|
/**
|
* 计划开始时间
|
*/
|
private LocalDateTime startTime;
|
/**
|
* 计划结束时间
|
*/
|
private LocalDateTime endTime;
|
|
/**
|
* 是否盲盘
|
*/
|
private Boolean blindFlag;
|
/**
|
* 是否冻结库存
|
*/
|
private Boolean frozen;
|
|
/**
|
* 是否定期自动生成盘点任务
|
*
|
* 为 true 时由后台定时任务按 {@link #generateCron} 周期自动创建盘点任务
|
*/
|
private Boolean autoGenerate;
|
/**
|
* 自动生成周期 cron 表达式
|
*
|
* autoGenerate 为 true 时必填,Quartz 6 段 cron,如 {@code 0 0 8 * * ?} 表示每天 8 点
|
*/
|
private String generateCron;
|
/**
|
* 上次自动生成时间
|
*
|
* 定时任务据此判断周期是否到期,避免同一周期重复生成
|
*/
|
private LocalDateTime lastGenerateTime;
|
|
/**
|
* 状态
|
*
|
* 枚举 {@link CommonStatusEnum}
|
*/
|
private Integer status;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|