Merge remote-tracking branch 'origin/dev' into dev

yun-zuoyi
汪云昊 5 years ago
commit 2a80a4c720

@ -713,7 +713,8 @@ public class WmsEnumUtil {
KT_PICK_RC(480, "KT_PICK_RC", "坤泰拣货"),
PRODUCE_INSTOCK(490, "PRODUCE_INSTOCK", "VDA生产入库"),
UTENSIL_CONSUMING(500, "UTENSIL_CONSUMING", "器具领用"),
TG_PICKING_GOODS(510, "TG_PICKING_GOODS", "TG生产领料");
TG_PICKING_GOODS(510, "TG_PICKING_GOODS", "TG生产领料"),
EXTERNAL_PULL(520, "EXTERNAL_PULL", "外部拉动");
private int value;
private String code;
@ -4512,7 +4513,9 @@ public class WmsEnumUtil {
SAFETY_STOCK_PULL(10, "安全库存拉动"),
ELECTRONIC_KANBAN_PULL(20, "电子看板拉动"),
LINE_PULL(30, "巡线拉动"),
PLANNED_PULL(40, "计划拉动");
PLANNED_PULL(40, "计划拉动"),
ANDON_PULL(50, "安灯拉动"),
EXTERNAL_PULL(60, "手工拉动");
private int value;
private String description;
@ -4551,6 +4554,53 @@ public class WmsEnumUtil {
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TAIL_QTY_MODE {
NONE(1, "不处理"),
ORIGIN_NUMBER(10, "原数值"),
UP_ROUND(20, "向上取整"),
DOWN_ROUND(30, "向下取整");
private int value;
private String description;
TAIL_QTY_MODE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static TAIL_QTY_MODE codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -5490,4 +5540,189 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
* -
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ZONE_PULL_WAY {
JOB_CYCLE(10, "JOB周期"),
FIXED_CYCLE(20, "固定周期");
private int value;
private String description;
ZONE_PULL_WAY(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static ZONE_PULL_WAY codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* -
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PULL_TASK_TYPE {
NORMAL_PULL(10, "普通拉动"),
GROUP_PULL(20, "组合拉动");
private int value;
private String description;
PULL_TASK_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static PULL_TASK_TYPE codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DOCK_ORDER_STATUS {
WAIT_SEND(10, "待送货"),
ARRIVED(20, "已到达"),
RECEIVED(30, "已收货"),
CANCELED(40, "已取消");
private int value;
private String description;
DOCK_ORDER_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static DOCK_ORDER_STATUS codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DOCK_APPOINTMENT_STATUS {
WAIT_SEND(10, "待送货"),
HAS_SENDED(20, "已送达"),
RECEIVING(30, "收货中"),
COMPLETED(40, "已完成"),
OVERTIME(50, "供货超时");
private int value;
private String description;
DOCK_APPOINTMENT_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static DOCK_APPOINTMENT_STATUS codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -3,6 +3,7 @@ package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.mes.annotation.ElasticSearch;
import cn.estsh.i3plus.pojo.mes.annotation.Json4Es;
//import com.sun.tools.javac.util.List;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;

@ -89,6 +89,10 @@ public class BasVendor extends BaseBean{
@Column(name = "VENDOR_TYPE")
private Integer vendorType;
@Column(name = "MAP_LOCATION")
@ApiParam("经纬度")
private String mapLocation;
public BasVendor() {
}

@ -52,6 +52,10 @@ public class MesPpDetails extends BaseBean{
@ApiParam(value = "工单数量", example = "0")
public Double qty;
@Column(name="PART_GROUP_NO")
@ApiParam("零件组号")
public String partGroupNo;
public Integer getItem() {
return item == null ? 0 : this.item.intValue();
}

@ -58,6 +58,10 @@ public class MesPpMaster extends BaseBean{
@ApiParam(value = "单据状态", example = "0")
private Integer orderStatus = 0;
@Column(name="SEQ")
@ApiParam(value = "排序号", example = "0")
private Integer seq = 0;
public Integer getOrderStatus() {
return orderStatus == null ? 0 : this.orderStatus.intValue();
}

@ -68,6 +68,10 @@ public class WareHouse extends BaseBean {
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER)
private Double baseUnit;
@Column(name = "MAP_LOCATION")
@ApiParam("经纬度")
private String mapLocation;
@Transient
@ApiParam(value = "存储区列表")
private List<WmsZones> zoneList;

@ -61,4 +61,8 @@ public class WmsCar extends BaseBean {
@Transient
@ApiParam(value = "供应商名称")
private String vendorNameRdd;
@Column(name = "MAP_LOCATION")
@ApiParam("经纬度")
private String mapLocation;
}

@ -0,0 +1,51 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-29
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="WMS_DOCK")
@Api("道口预约信息")
public class WmsDock extends BaseBean {
@Column(name="DOCK_CODE")
@ApiParam("道口代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String dockCode;
@Column(name="DOCK_ADDRESS")
@ApiParam("道口发运地址")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String dockAddress;
@Column(name="DOCK_DESC")
@ApiParam("道口发运地址描述")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String dockDesc;
@Column(name="DOCK_TYPE")
@ApiParam("道口类型")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String dockType;
}

@ -0,0 +1,72 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-29
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="WMS_DOCK_ORDER_INFO")
@Api("道口预约信息")
public class WmsDockOrderInfo extends BaseBean {
@Column(name="DOCK_CODE")
@ApiParam("道口代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String dockCode;
@Column(name="ORDER_DATE")
@ApiParam("预约日期")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME)
private String orderDate;
@Column(name="WINDOW_TIME")
@ApiParam("窗口时间")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME)
private String windowTime;
@Column(name="ORDER_STATUS")
@ApiParam("预约状态")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "DOCK_ORDER_STATUS")
private Integer orderStatus;
@Column(name="SUPPLIER_CODE")
@ApiParam("供应商编码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String supplierCode;
@Column(name="CAR_NO")
@ApiParam("车辆编号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String carNo;
@Column(name="DRIVER_NAME")
@ApiParam("驾驶员")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String driverName;
@Column(name="ORDER_NO")
@ApiParam("单据号")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT)
private String orderNo;
}

@ -0,0 +1,42 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-29
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="WMS_DOCK_WINDOW_TIME")
@Api("道口窗口时间")
public class WmsDockWindowTime extends BaseBean {
@Column(name="DOCK_CODE")
@ApiParam("道口代码")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String dockCode;
@Column(name="WINDOW_TIME")
@ApiParam("窗口时间")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME)
private String windowTime;
}

@ -62,6 +62,10 @@ public class WmsLocatePart extends BaseBean {
@ApiParam(value = "安全库存", example = "0")
private Double safetyStock;
@Column(name = "MOQ", columnDefinition = "decimal(18,8)")
@ApiParam(value = "起订量", example = "0")
private Double moq;
@Transient
@ApiParam("库位类型")
private Integer locateType;

@ -244,6 +244,11 @@ public class WmsPart extends BaseBean {
@ApiParam(value = "拉动方式")
private String pullWay;
@Column(name = "TAIL_QTY_MODE")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, entityName = "TAIL_QTY_MODE")
@ApiParam(value = "尾数计算方式", example = "1")
private Integer tailQtyMode;
@Column(name = "CYCLE_RQUEST_PERIOD")
@ApiParam(value = "循环补货周期", example = "0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)

@ -0,0 +1,51 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
* @Description
* @Author Jason
* @Date 2020-03-20
* @ModifyDate 2020-03-20
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_PULL_RULE")
@Api("拉动规则")
public class WmsPullRule extends BaseBean {
@Column(name = "PULL_WAY")
@ApiParam(value = "拉动类型", example = "10")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, entityName = "PULL_WAY_STATUS")
private Integer pullWay;
@Column(name = "CONTAIN_UNFINISH_ORDER")
@ApiParam(value = "考虑未完成的移库单", example = "0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, entityName = "TRUE_OR_FALSE")
private Integer containUnfinishOrder;
@Column(name = "CONTAIN_EXIST_PERIOD")
@ApiParam(value = "考虑现有库存", example = "0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, entityName = "TRUE_OR_FALSE")
private Integer containExistStock;
@Column(name = "TAIL_QTY_MODE")
@ApiParam(value = "尾数计算方式", example = "0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, entityName = "TAIL_QTY_MODE")
private Integer tailQtyMode;
}

@ -110,6 +110,10 @@ public class WmsPullTaskDetails extends BaseBean{
@ApiParam(value = "明细状态", example = "0")
private Integer orderStatus = 0;
@Column(name="PART_GROUP_NO")
@ApiParam("零件组号")
public String partGroupNo;
public Integer getOrderStatus() {
return orderStatus == null ? 0 : this.orderStatus.intValue();
}

@ -62,6 +62,14 @@ public class WmsPullTaskMaster extends BaseBean{
@ApiParam(value = "是否暂停", example = "0")
private Integer isSuspend = 2;
@Column(name="PULL_TASK_TYPE")
@ApiParam(value = "拉动任务类型", example = "10")
private Integer pullTaskType;
@Column(name="SEQ")
@ApiParam(value = "排序号", example = "0")
private Integer seq;
public Integer getOrderStatus() {
return orderStatus == null ? 0 : this.orderStatus.intValue();
}

@ -117,6 +117,21 @@ public class WmsZones extends BaseBean {
@ApiParam(value = "三维位置")
private String position;
@Column(name = "ZONE_PULL_WAY")
@ApiParam(value = "补货方式", example = "10")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, entityName = "ZONE_PULL_WAY")
private Integer zonePullWay;
@Column(name = "PULL_CYCLE")
@ApiParam(value = "固定拉动周期", example = "0")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Integer pullCycle;
@Column(name = "LAST_PULL_TIME")
@ApiParam(value = "上次拉动时间")
@DynamicField(webFieldType = WmsEnumUtil.FIELD_TYPE.DATETIME, isRequire = 2)
private String lastPullTime;
@Transient
@ApiParam(value = "子存储区列表")
private List<WmsZones> childList;

@ -0,0 +1,32 @@
package cn.estsh.i3plus.pojo.wms.modelbean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @description
* @author jason.niu
* @date 2020/03/31
*/
@Data
@Api("道口看板数据模型")
public class DockDashboardModel {
@ApiParam("预约时间")
private String orderDate;
@ApiParam("预约状态")
private Integer appointmentStatus;
@ApiParam("供应商编码")
private String supplierCode;
@ApiParam("单号")
private String orderNo;
@ApiParam("车牌号")
private String carNo;
@ApiParam("驾驶员")
private String driverName;
}

@ -84,4 +84,7 @@ public class WmsDocMovementModel {
@ApiParam(value = "一步法/两步法")
private Integer isSingleStep;
@ApiParam(value = "创建时间")
private String createDateTime;
}

@ -0,0 +1,54 @@
package cn.estsh.i3plus.pojo.wms.modelbean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @description
* @author jason.niu
* @date 2020/03/25
*/
@Data
@Api("外部拉动单模型")
public class WmsPullOrderModel {
@ApiParam("工厂代码")
private String organizeCode;
@ApiParam("产线")
private String lineNo;
@ApiParam("仓库代码")
public String WhNo;
@ApiParam("存储区代码")
public String ZoneNo;
@ApiParam("目标库位代码")
public String destLocateNo;
@ApiParam("库位")
private String locateNo;
@ApiParam("物料编码")
private String partNo;
@ApiParam("物料名称")
public String partName;
@ApiParam("源仓库代码")
public String srcWhNo;
@ApiParam("源存储区代码")
public String srcZoneNo;
@ApiParam("数量")
private Double qty;
@ApiParam("单位")
public String unit;
@ApiParam("批次")
public String lotNo;
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsDockOrderInfo;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-29
* @Modify:
**/
@Repository
public interface WmsDockOrderInfoRepository extends BaseRepository<WmsDockOrderInfo, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsDock;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-30
* @Modify:
**/
@Repository
public interface WmsDockRepository extends BaseRepository<WmsDock, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsDockWindowTime;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-29
* @Modify:
**/
@Repository
public interface WmsDockWindowTimeRepository extends BaseRepository<WmsDockWindowTime, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsPullRule;
import org.springframework.stereotype.Repository;
/**
* @Description :Repository
* @Reference :
* @Author : jason.niu
* @CreateDate : 2020-03-23 15:38
* @Modify:
**/
@Repository
public interface WmsPullRuleRepository extends BaseRepository<WmsPullRule, Long> {
}

@ -559,6 +559,22 @@ public class WmsHqlPack {
}
/**
*
* @param rule
* @return
*/
public static DdlPackBean packHqlWmsPullRule(WmsPullRule rule) {
//查询参数封装
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getNumEqualPack(rule.getPullWay(), "pullWay", result);
getStringBuilderPack(rule, result);
return result;
}
/**
*
*
* @param wmsLocate

@ -14,7 +14,6 @@
<packaging>jar</packaging>
<version>1.0-${profileActive}-SNAPSHOT</version>
<profiles>
<profile>
<id>dev</id>

Loading…
Cancel
Save