feat: 增加LMS日计划领域模型

This commit is contained in:
zhouz
2026-08-14 13:50:19 +08:00
parent ff047eae81
commit ff603a7124
9 changed files with 329 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
package cn.code.nl.module.lms.dal.dataobject.dailyplan;
import cn.code.nl.framework.tenant.core.db.TenantBaseDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* LMS 日计划 DO
*/
@TableName("lms_daily_plan")
@Data
@EqualsAndHashCode(callSuper = true)
public class DailyPlanDO extends TenantBaseDO {
/** 日计划 ID */
@TableId
private Long dailyPlanId;
/** 日计划编码 */
private String planCode;
/** 来源类型 */
private Integer sourceType;
/** ERP 订单号 */
private String erpOrderCode;
/** 人工订单号 */
private String manualOrderCode;
/** 计划日期 */
private LocalDate planDate;
/** 物料 ID */
private Long materialId;
/** 物料编码 */
private String materialCode;
/** 物料名称 */
private String materialName;
/** 物料规格 */
private String materialSpec;
/** 计划数量 */
private Integer planQty;
/** 追加数量 */
private Integer appendQty;
/** 已备货数量 */
private Integer stockedQty;
/** 已套管数量 */
private Integer sleevedQty;
/** 包装信息 */
private String packingInfo;
/** 排序序号 */
private Integer sortSeq;
/** 调度权重 */
private Integer weight;
/** 订单状态 */
private Integer orderStatus;
/** 备货状态 */
private Integer stockingStatus;
/** 套管状态 */
private Integer sleevingStatus;
/** 前一订单状态 */
private Integer previousOrderStatus;
/** 前一备货状态 */
private Integer previousStockingStatus;
/** 前一套管状态 */
private Integer previousSleevingStatus;
/** 订单开始时间 */
private LocalDateTime orderStartTime;
/** 订单结束时间 */
private LocalDateTime orderEndTime;
/** 备货开始时间 */
private LocalDateTime stockingStartTime;
/** 备货完成时间 */
private LocalDateTime stockingCompleteTime;
/** 套管开始时间 */
private LocalDateTime sleevingStartTime;
/** 套管完成时间 */
private LocalDateTime sleevingCompleteTime;
/** 乐观锁版本号 */
private Integer version;
}

View File

@@ -0,0 +1,43 @@
package cn.code.nl.module.lms.dal.dataobject.dailyplan;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
/**
* LMS 日计划操作日志 DO
*/
@TableName("lms_daily_plan_operation_log")
@Data
public class DailyPlanOperationLogDO {
/** 操作日志 ID */
@TableId
private Long operationLogId;
/** 日计划 ID */
private Long dailyPlanId;
/** 操作对象 */
private String operationTarget;
/** 操作类型 */
private String operationType;
/** 操作前值 */
private String beforeValue;
/** 操作后值 */
private String afterValue;
/** 变更数量 */
private Integer changeQty;
/** 操作原因 */
private String operationReason;
/** 操作人 */
private String operator;
/** 操作时间 */
private LocalDateTime operationTime;
/** 是否删除 */
@TableLogic
private Boolean deleted;
/** 租户编号 */
private Long tenantId;
}

View File

@@ -0,0 +1,28 @@
package cn.code.nl.module.lms.dal.dataobject.dailyplan;
import cn.code.nl.framework.tenant.core.db.TenantBaseDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* LMS 日计划调度策略 DO
*/
@TableName("lms_daily_plan_strategy")
@Data
@EqualsAndHashCode(callSuper = true)
public class DailyPlanStrategyDO extends TenantBaseDO {
/** 策略 ID */
@TableId
private Long strategyId;
/** 策略类型 */
private Integer strategyType;
/** 策略模式 */
private Integer strategyMode;
/** 当前游标日计划 ID */
private Long cursorDailyPlanId;
/** 乐观锁版本号 */
private Integer version;
}