代码暂存

This commit is contained in:
梁州 2024-07-12 17:04:27 +08:00
parent 2dd6dd7997
commit f947208003
9 changed files with 335 additions and 14 deletions

View File

@ -0,0 +1,11 @@
package com.wms.entity.app.dto.extend;
import lombok.Data;
@Data
public class KanbanEntity {
/**
* 看板id
*/
private String kanbanId;
}

View File

@ -0,0 +1,33 @@
package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 电子标签库位对应工单工位盒子
*/
@Data
@TableName(value = "tbl_app_e_location_config", autoResultMap = true)
public class ELocationConfig {
/**
* 工站
*/
@TableField("work_station")
private String workStation;
/**
* 工单
*/
@TableField("work_order")
private String workOrder;
/**
* 工位
*/
@TableField("work_center")
private String workCenter;
/**
* 电子标签库位
*/
@TableField("e_location_id")
private String eLocationId;
}

View File

@ -33,6 +33,11 @@ public class ETagLocation {
*/ */
@TableField("e_location_status") @TableField("e_location_status")
private Integer eLocationStatus; private Integer eLocationStatus;
/**
* 工作站台
*/
@TableField("work_station")
private String workStation;
/** /**
* 工单工位盒子号 * 工单工位盒子号
*/ */

View File

@ -3,9 +3,13 @@ package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import com.wms.entity.app.dto.extend.KanbanEntity;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List;
/** /**
* 物料 * 物料
@ -13,14 +17,13 @@ import java.util.Date;
@Data @Data
@TableName(value = "tbl_app_goods", autoResultMap = true) @TableName(value = "tbl_app_goods", autoResultMap = true)
public class Goods { public class Goods {
// TODO 物料详细信息根据卡特方提供的信息来完善
/** /**
* 物料编号 * 物料编号
*/ */
@TableId("goods_id") @TableId("goods_id")
private String goodsId; private String goodsId;
/** /**
* 物料名称 * 物料名称/描述
*/ */
@TableField("goods_name") @TableField("goods_name")
private String goodsName; private String goodsName;
@ -29,26 +32,98 @@ public class Goods {
*/ */
@TableField("goods_unit") @TableField("goods_unit")
private String goodsUnit; private String goodsUnit;
/**
* 物料ID
*/
@TableField("item_id")
private String itemId;
/** /**
* 物料分类 * 物料分类
*/ */
@TableField("goods_type") @TableField("goods_type")
private String goodsType; private String goodsType;
/** /**
* 有效天数 * 供应商分类
*/ */
@TableField("life_days") @TableField("provider_type")
private Integer lifeDays; private String providerType;
/** /**
* 仓储分类 * 重量
*/ */
@TableField("inv_category") @TableField("weight")
private String invCategory; private BigDecimal weight;
/**
* 重量单位
*/
@TableField("weight_unit")
private String weightUnit;
/**
* 每盒数量
*/
@TableField("quantity_per_box")
private BigDecimal quantityPerBox;
/**
* 拆包方式
*/
@TableField("")
private String unpackingType;
/**
* 载具类型
*/
@TableField("")
private String vehicleType;
/**
* 载具类型描述
*/
@TableField("")
private String vehicleTypeDescription;
/**
* 物料载具类型
*/
@TableField("")
private String goodsInVehicleType;
/**
* 补料方式
* PULL有看板
* PUSH无看板
*/
@TableField("")
private String feedingType;
/**
* 每个看板包含物料数量
*/
@TableField("")
private BigDecimal quantityPerKanban;
/**
* 看板的数量
*/
@TableField("")
private Integer kanbanNum;
/**
* 看板详细信息
*/
@TableField(value = "goods_related", typeHandler = Fastjson2TypeHandler.class)
private List<KanbanEntity> kanbanList;
/**
* 补货点
*/
@TableField("")
private BigDecimal feedingValue;
/**
* 备注1
*/
@TableField("")
private String remark1;
/**
* 备注2
*/
@TableField("")
private String remark2;
/**
* 备注3
*/
@TableField("")
private String remark3;
/**
* 数据来源
*/
@TableField("")
private String dataSource;
/** /**
* 最后更新日期 * 最后更新日期
*/ */

View File

@ -0,0 +1,44 @@
package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
/**
* 每个站台物料分配
*/
@Data
@TableName(value = "tbl_app_goods_to_station", autoResultMap = true)
public class GoodsToStation {
/**
* 工作站台
*/
@TableField("work_station")
private String workStation;
/**
* 物料编号
*/
@TableField("goods_id")
private String goodsId;
/**
* 已分配数量
*/
@TableField("distributed_num")
private BigDecimal distributedNum;
/**
* 需求总数量
*/
@TableField("total_num")
private BigDecimal totalNum;
/**
* 分配状态
* 0未分配
* 1分配但未完全分配
* 2分配完成
* 3分配完成但库存缺料
*/
@TableField("distribute_status")
private Integer distributeStatus;
}

View File

@ -1,6 +1,30 @@
package com.wms.entity.table; package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
/**
* 当前出库中的载具和物料
*/
@Data
@TableName(value = "tbl_app_outside_vehicles")
public class OutsideVehicles { public class OutsideVehicles {
/**
* 载具号
*/
@TableField("vehicle_id")
private String vehicleId; private String vehicleId;
/**
* 物料编号
*/
@TableField("goods_id")
private String goodsId; private String goodsId;
/**
* 剩余数量
*/
@TableField("remain_num")
private BigDecimal remainNum;
} }

View File

@ -1,5 +1,6 @@
package com.wms.entity.table; package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
@ -20,10 +21,12 @@ public class PickTask {
/** /**
* 载具号 * 载具号
*/ */
@TableField("vehicle_id")
private String vehicleId; private String vehicleId;
/** /**
* 站台号 * 站台号
*/ */
@TableField("stand_id")
private String standId; private String standId;
/** /**
* 拣选任务状态 * 拣选任务状态
@ -32,9 +35,11 @@ public class PickTask {
* 1已发送 * 1已发送
* 2已完成 * 2已完成
*/ */
@TableField("pick_status")
private Integer pickStatus; private Integer pickStatus;
/** /**
* 最近更新时间 * 最近更新时间
*/ */
@TableField("last_update_time")
private LocalDateTime lastUpdateTime; private LocalDateTime lastUpdateTime;
} }

View File

@ -1,25 +1,67 @@
package com.wms.entity.table; package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
/** /**
* 工作站台-工单-工位的工作流 * 工作站台-工单-工位的工作流
*/ */
@Data
@TableName(value = "tbl_app_work_flow", autoResultMap = true)
public class WorkFlow { public class WorkFlow {
/** /**
* id * id
*/ */
@TableId("work_flow_id")
private String workFlowId; private String workFlowId;
/** /**
* 工作站台 * 工作站台
*/ */
@TableField("work_station")
private String workStation; private String workStation;
/** /**
* 工单 * 工单
*/ */
@TableField("work_order")
private String workOrder; private String workOrder;
/** /**
* 工位 * 工位
*/ */
@TableField("work_center")
private String workCenter; private String workCenter;
/**
* 物料编号
*/
@TableField("goods_id")
private String goodsId; private String goodsId;
/**
* 已拣货数量
*/
@TableField("picked_num")
private BigDecimal pickedNum;
/**
* 需求数量
*/
@TableField("need_num")
private BigDecimal needNum;
/**
* 亮灯状态
* 0未亮灯
* 1已亮灯
* 2已拍灯
*/
@TableField("light_status")
private Integer lightStatus;
/**
* 工作状态
* 0未开始
* 1正在做
* 2已完成
*/
@TableField("work_status")
private Integer workStatus;
} }

View File

@ -0,0 +1,82 @@
package com.wms.entity.table;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 工作总结
*/
@Data
@TableName(value = "tbl_app_work_summary", autoResultMap = true)
public class WorkSummary {
/**
* id
*/
@TableId("work_flow_id")
private String workFlowId;
/**
* 工作站台
*/
@TableField("work_station")
private String workStation;
/**
* 工单
*/
@TableField("work_order")
private String workOrder;
/**
* 工位
*/
@TableField("work_center")
private String workCenter;
/**
* 物料编号
*/
@TableField("goods_id")
private String goodsId;
/**
* 已拣货数量
*/
@TableField("picked_num")
private BigDecimal pickedNum;
/**
* 需求数量
*/
@TableField("need_num")
private BigDecimal needNum;
/**
* 缺件数量
*/
@TableField("lack_num")
private BigDecimal lackNum;
/**
* 工作日期
*/
@TableField("work_date")
private LocalDateTime workDate;
/**
* 工作状态
* 0未开始
* 1正在做
* 2已完成
*/
@TableField("work_status")
private Integer workStatus;
/**
* 缺件状态
* 0不缺件
* 1缺件
*/
@TableField("lack_status")
private Integer lackStatus;
/**
* 完成时间
*/
@TableField("finish_time")
private LocalDateTime finishTime;
}