优化数据表结构同时同步代码
This commit is contained in:
parent
d23e169d9e
commit
c626d34010
@ -1,25 +1,21 @@
|
|||||||
package com.mt.wms.core.dal.entity;
|
package com.mt.wms.core.dal.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
import com.baomidou.mybatisplus.annotation.Version;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 当前任务
|
* 当前任务
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author mt
|
* @author mt
|
||||||
* @since 2021-11-09
|
* @since 2021-11-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ -100,6 +96,12 @@ public class CurrTask extends Model<CurrTask> {
|
|||||||
@TableField("task_type")
|
@TableField("task_type")
|
||||||
private Integer taskType;
|
private Integer taskType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加工类型:0 初始加工,1 复加工 ,2 追加加工
|
||||||
|
*/
|
||||||
|
@TableField("process_type")
|
||||||
|
private Integer processType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 托盘编码
|
* 托盘编码
|
||||||
*/
|
*/
|
||||||
@ -191,6 +193,8 @@ public class CurrTask extends Model<CurrTask> {
|
|||||||
|
|
||||||
public static final String TASK_TYPE = "task_type";
|
public static final String TASK_TYPE = "task_type";
|
||||||
|
|
||||||
|
public static final String PROCESS_TYPE = "process_type";
|
||||||
|
|
||||||
public static final String PALLET_CODE = "pallet_code";
|
public static final String PALLET_CODE = "pallet_code";
|
||||||
|
|
||||||
public static final String A_BEGIN_TIME = "a_begin_time";
|
public static final String A_BEGIN_TIME = "a_begin_time";
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
package com.mt.wms.core.dal.entity;
|
package com.mt.wms.core.dal.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
import com.baomidou.mybatisplus.annotation.Version;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 订单历史信息
|
* 订单任务历史表
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author mt
|
* @author mt
|
||||||
* @since 2021-09-29
|
* @since 2021-11-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ -70,6 +66,12 @@ public class OrderInfoHis extends Model<OrderInfoHis> {
|
|||||||
@Version
|
@Version
|
||||||
private String version;
|
private String version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 来源:1.APMS 2.人工输入
|
||||||
|
*/
|
||||||
|
@TableField("order_source")
|
||||||
|
private Integer orderSource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态: 0等待执行,1执行中,2执行完成,3追加后完成(追加后就按完成来算)
|
* 状态: 0等待执行,1执行中,2执行完成,3追加后完成(追加后就按完成来算)
|
||||||
*/
|
*/
|
||||||
@ -169,6 +171,8 @@ public class OrderInfoHis extends Model<OrderInfoHis> {
|
|||||||
|
|
||||||
public static final String VERSION = "version";
|
public static final String VERSION = "version";
|
||||||
|
|
||||||
|
public static final String ORDER_SOURCE = "order_source";
|
||||||
|
|
||||||
public static final String STATUS = "status";
|
public static final String STATUS = "status";
|
||||||
|
|
||||||
public static final String INTER_CODE = "inter_code";
|
public static final String INTER_CODE = "inter_code";
|
||||||
|
@ -1,18 +1,14 @@
|
|||||||
package com.mt.wms.core.dal.entity;
|
package com.mt.wms.core.dal.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
import com.baomidou.mybatisplus.annotation.Version;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 任务明细历史表
|
* 任务明细历史表
|
||||||
@ -92,7 +88,7 @@ public class TaskDetHis extends Model<TaskDetHis> {
|
|||||||
* 历史任务id,关联当前任务表:t_task_his
|
* 历史任务id,关联当前任务表:t_task_his
|
||||||
*/
|
*/
|
||||||
@TableField("task_id")
|
@TableField("task_id")
|
||||||
private Integer taskId;
|
private Long taskId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单号
|
* 订单号
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
package com.mt.wms.core.dal.entity;
|
package com.mt.wms.core.dal.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||||
import com.baomidou.mybatisplus.annotation.Version;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 任务历史表
|
* 任务历史
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author mt
|
* @author mt
|
||||||
* @since 2021-09-29
|
* @since 2021-11-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@ -83,11 +79,29 @@ public class TaskHis extends Model<TaskHis> {
|
|||||||
private String interCode;
|
private String interCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务编码
|
* 任务编码, 查看任务编码规则
|
||||||
*/
|
*/
|
||||||
@TableField("task_code")
|
@TableField("task_code")
|
||||||
private String taskCode;
|
private String taskCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务来源 0:人工 扩展字段
|
||||||
|
*/
|
||||||
|
@TableField("task_source")
|
||||||
|
private Integer taskSource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务类型:0:入库到窑炉,1:入库到缓存区,2:出库到窑炉到缓存区,3:缓存区出库
|
||||||
|
*/
|
||||||
|
@TableField("task_type")
|
||||||
|
private Integer taskType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加工类型:0 初始加工,1 复加工 ,2 追加加工
|
||||||
|
*/
|
||||||
|
@TableField("process_type")
|
||||||
|
private Integer processType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 托盘编码
|
* 托盘编码
|
||||||
*/
|
*/
|
||||||
@ -122,7 +136,7 @@ public class TaskHis extends Model<TaskHis> {
|
|||||||
* 窑炉id,关联设备窑炉表:t_kiln_info
|
* 窑炉id,关联设备窑炉表:t_kiln_info
|
||||||
*/
|
*/
|
||||||
@TableField("kiln_id")
|
@TableField("kiln_id")
|
||||||
private Integer kilnId;
|
private Long kilnId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 窑炉名称
|
* 窑炉名称
|
||||||
@ -134,7 +148,7 @@ public class TaskHis extends Model<TaskHis> {
|
|||||||
* 车辆id,关联车辆表:t_vehicle_info
|
* 车辆id,关联车辆表:t_vehicle_info
|
||||||
*/
|
*/
|
||||||
@TableField("vehicle_id")
|
@TableField("vehicle_id")
|
||||||
private Integer vehicleId;
|
private Long vehicleId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否缓存,如果当前指的窑炉正在加工,系统自动分配货物到缓存位置, 并且记录缓存库位,这是当指定窑炉加工完成后系统先判断是否当前缓存有当前等待执行的任务,然后按照先来先执行原则(等待多个任务)自动调用车辆来执行
|
* 是否缓存,如果当前指的窑炉正在加工,系统自动分配货物到缓存位置, 并且记录缓存库位,这是当指定窑炉加工完成后系统先判断是否当前缓存有当前等待执行的任务,然后按照先来先执行原则(等待多个任务)自动调用车辆来执行
|
||||||
@ -146,7 +160,7 @@ public class TaskHis extends Model<TaskHis> {
|
|||||||
* 库位id,关联库位表:t_location
|
* 库位id,关联库位表:t_location
|
||||||
*/
|
*/
|
||||||
@TableField("location_id")
|
@TableField("location_id")
|
||||||
private Integer locationId;
|
private Long locationId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 库位名称
|
* 库位名称
|
||||||
@ -175,6 +189,12 @@ public class TaskHis extends Model<TaskHis> {
|
|||||||
|
|
||||||
public static final String TASK_CODE = "task_code";
|
public static final String TASK_CODE = "task_code";
|
||||||
|
|
||||||
|
public static final String TASK_SOURCE = "task_source";
|
||||||
|
|
||||||
|
public static final String TASK_TYPE = "task_type";
|
||||||
|
|
||||||
|
public static final String PROCESS_TYPE = "process_type";
|
||||||
|
|
||||||
public static final String PALLET_CODE = "pallet_code";
|
public static final String PALLET_CODE = "pallet_code";
|
||||||
|
|
||||||
public static final String A_BEGIN_TIME = "a_begin_time";
|
public static final String A_BEGIN_TIME = "a_begin_time";
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<result column="task_code" property="taskCode" />
|
<result column="task_code" property="taskCode" />
|
||||||
<result column="task_source" property="taskSource" />
|
<result column="task_source" property="taskSource" />
|
||||||
<result column="task_type" property="taskType" />
|
<result column="task_type" property="taskType" />
|
||||||
|
<result column="process_type" property="processType"/>
|
||||||
<result column="pallet_code" property="palletCode" />
|
<result column="pallet_code" property="palletCode" />
|
||||||
<result column="a_begin_time" property="aBeginTime" />
|
<result column="a_begin_time" property="aBeginTime" />
|
||||||
<result column="a_end_time" property="aEndTime" />
|
<result column="a_end_time" property="aEndTime" />
|
||||||
@ -31,7 +32,9 @@
|
|||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, task_code, task_source, task_type, pallet_code, a_begin_time, a_end_time, start_position, target_position, kiln_id, kiln_name, vehicle_id, is_cache, location_id, location_name
|
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, task_code,
|
||||||
|
task_source, task_type, process_type, pallet_code, a_begin_time, a_end_time, start_position, target_position,
|
||||||
|
kiln_id, kiln_name, vehicle_id, is_cache, location_id, location_name
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<result column="updater_id" property="updaterId" />
|
<result column="updater_id" property="updaterId" />
|
||||||
<result column="update_time" property="updateTime" />
|
<result column="update_time" property="updateTime" />
|
||||||
<result column="version" property="version" />
|
<result column="version" property="version" />
|
||||||
|
<result column="order_source" property="orderSource"/>
|
||||||
<result column="status" property="status" />
|
<result column="status" property="status" />
|
||||||
<result column="inter_code" property="interCode" />
|
<result column="inter_code" property="interCode" />
|
||||||
<result column="code" property="code" />
|
<result column="code" property="code" />
|
||||||
@ -29,7 +30,9 @@
|
|||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, code, order_no, iden_card_num, customer_no, customer_name, product_name, product_model, material_des, craft_ill, unit, weight, quantity
|
id, valid, create_time, creator_id, updater_id, update_time, version, order_source, status, inter_code, code,
|
||||||
|
order_no, iden_card_num, customer_no, customer_name, product_name, product_model, material_des, craft_ill, unit,
|
||||||
|
weight, quantity
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -4,32 +4,37 @@
|
|||||||
|
|
||||||
<!-- 通用查询映射结果 -->
|
<!-- 通用查询映射结果 -->
|
||||||
<resultMap id="BaseResultMap" type="com.mt.wms.core.dal.entity.TaskHis">
|
<resultMap id="BaseResultMap" type="com.mt.wms.core.dal.entity.TaskHis">
|
||||||
<id column="id" property="id" />
|
<id column="id" property="id"/>
|
||||||
<result column="valid" property="valid" />
|
<result column="valid" property="valid"/>
|
||||||
<result column="create_time" property="createTime" />
|
<result column="create_time" property="createTime"/>
|
||||||
<result column="creator_id" property="creatorId" />
|
<result column="creator_id" property="creatorId"/>
|
||||||
<result column="updater_id" property="updaterId" />
|
<result column="updater_id" property="updaterId"/>
|
||||||
<result column="update_time" property="updateTime" />
|
<result column="update_time" property="updateTime"/>
|
||||||
<result column="version" property="version" />
|
<result column="version" property="version"/>
|
||||||
<result column="status" property="status" />
|
<result column="status" property="status"/>
|
||||||
<result column="inter_code" property="interCode" />
|
<result column="inter_code" property="interCode"/>
|
||||||
<result column="task_code" property="taskCode" />
|
<result column="task_code" property="taskCode"/>
|
||||||
<result column="pallet_code" property="palletCode" />
|
<result column="task_source" property="taskSource"/>
|
||||||
<result column="a_begin_time" property="aBeginTime" />
|
<result column="task_type" property="taskType"/>
|
||||||
<result column="a_end_time" property="aEndTime" />
|
<result column="process_type" property="processType"/>
|
||||||
<result column="start_position" property="startPosition" />
|
<result column="pallet_code" property="palletCode"/>
|
||||||
<result column="target_position" property="targetPosition" />
|
<result column="a_begin_time" property="aBeginTime"/>
|
||||||
<result column="kiln_id" property="kilnId" />
|
<result column="a_end_time" property="aEndTime"/>
|
||||||
<result column="kiln_name" property="kilnName" />
|
<result column="start_position" property="startPosition"/>
|
||||||
<result column="vehicle_id" property="vehicleId" />
|
<result column="target_position" property="targetPosition"/>
|
||||||
<result column="is_cache" property="isCache" />
|
<result column="kiln_id" property="kilnId"/>
|
||||||
<result column="location_id" property="locationId" />
|
<result column="kiln_name" property="kilnName"/>
|
||||||
|
<result column="vehicle_id" property="vehicleId"/>
|
||||||
|
<result column="is_cache" property="isCache"/>
|
||||||
|
<result column="location_id" property="locationId"/>
|
||||||
<result column="location_name" property="locationName" />
|
<result column="location_name" property="locationName" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, task_code, pallet_code, a_begin_time, a_end_time, start_position, target_position, kiln_id, kiln_name, vehicle_id, is_cache, location_id, location_name
|
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, task_code,
|
||||||
|
task_source, task_type, process_type, pallet_code, a_begin_time, a_end_time, start_position, target_position,
|
||||||
|
kiln_id, kiln_name, vehicle_id, is_cache, location_id, location_name
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user