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

yun-zuoyi
钮海涛 5 years ago
commit 8d29e72322

@ -6640,4 +6640,55 @@ public class MesEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum GROUP_SIDE {
POSITIVE(10, "A", "正面"),
REVERSE_SIDE(20, "B", "背面");
private Integer value;
private String code;
private String description;
GROUP_SIDE(Integer value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

@ -2385,6 +2385,7 @@ public class MesPcnEnumUtil {
INSTOCKED(40, "入库"), INSTOCKED(40, "入库"),
SHIPPING(50, "发运"), SHIPPING(50, "发运"),
REDO(60, "重做"), REDO(60, "重做"),
FORCE(70, "强过"),
CLOSE(90, "关闭"); CLOSE(90, "关闭");
private int value; private int value;

@ -572,7 +572,8 @@ public class WmsEnumUtil {
SPILLAGE_LOCATE(70, "Y", "溢料库"), SPILLAGE_LOCATE(70, "Y", "溢料库"),
TRANSIT_LOCATE(80, "T", "在途库"), TRANSIT_LOCATE(80, "T", "在途库"),
UTENSIL_LOCATE(90, "U", "器具库"), UTENSIL_LOCATE(90, "U", "器具库"),
OPERATION_PALTFORM(100, "W", "工作台"); OPERATION_PALTFORM(100, "W", "工作台"),
CUST_LOCATE(110, "CUST", "客户库位");
private int value; private int value;
private String code; private String code;
@ -2639,7 +2640,8 @@ public class WmsEnumUtil {
BOX(10, "BOX", "BOX"), BOX(10, "BOX", "BOX"),
CARTON(20, "CARTON", "CARTON"), CARTON(20, "CARTON", "CARTON"),
PALLET(30, "PALLET", "PALLET栈板"), PALLET(30, "PALLET", "PALLET栈板"),
CONTAINER(40, "PALLET", "PALLET集装箱"); CONTAINER(40, "PALLET", "PALLET集装箱"),
FEEDER(50, "FEEDER", "料架");
private String code; private String code;
private String description; private String description;
@ -2662,6 +2664,16 @@ public class WmsEnumUtil {
public String getDescription() { public String getDescription() {
return description; return description;
} }
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;
}
} }
/** /**
@ -8549,6 +8561,82 @@ public class WmsEnumUtil {
} }
/** /**
* RFID
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RFID_OPERATE_TYPE {
IN_STORAGE(10, "IN_STORAGE", "入库"),
SHIPEMNT(20, "SHIPEMNT", "发运"),
BACK_STORAGE(30, "BACK_STORAGE", "回库"),
UN_BUNDING(40, "UN_BUNDING", "解绑"),
BUNDING(50, "BUNDING", "绑定");
private String code;
private String description;
int value;
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
RFID_OPERATE_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
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;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String desc) {
return descOf(desc);
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static RFID_OPERATE_TYPE codeOf(Integer value) {
if (value == null) {
return null;
} else {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
}
return null;
}
}
/**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -8571,15 +8659,15 @@ public class WmsEnumUtil {
return value; return value;
} }
public String getDescription() {
return description;
}
public String getCode() { public String getCode() {
return code; return code;
} }
public static String valueOf(int val) { public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {

@ -36,7 +36,7 @@ public class MesJitIssueCfg extends BaseBean implements Serializable {
private String custPlantCode; private String custPlantCode;
@Column(name = "QTY") @Column(name = "QTY")
@ApiParam("数量") @ApiParam("配置数量")
private Integer qty; private Integer qty;
@Column(name = "THRESHOLD_QTY") @Column(name = "THRESHOLD_QTY")

@ -27,14 +27,14 @@ import java.io.Serializable;
@DynamicUpdate @DynamicUpdate
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROD_CFG_TYPE") @Table(name = "MES_PROD_CFG_TYPE")
@Api("产品配置类型") @Api("项目")
public class MesProdCfgType extends BaseBean implements Serializable { public class MesProdCfgType extends BaseBean implements Serializable {
private static final long serialVersionUID = -1726288926948811617L; private static final long serialVersionUID = -1726288926948811617L;
@Column(name = "PROD_CFG_TYPE_CODE") @Column(name = "PROD_CFG_TYPE_CODE")
@ApiParam("产品配置类型代码") @ApiParam("项目代码")
private String prodCfgTypeCode; private String prodCfgTypeCode;
@Column(name = "PROD_CFG_TYPE_NAME") @Column(name = "PROD_CFG_TYPE_NAME")
@ApiParam("产品配置类型名称") @ApiParam("项目名称")
private String prodCfgTypeName; private String prodCfgTypeName;
} }

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
/** /**
@ -46,4 +47,8 @@ public class MesQueueGroupCount extends BaseBean implements Serializable {
@Column(name = "CNT_QTY") @Column(name = "CNT_QTY")
@ApiParam("累计数") @ApiParam("累计数")
private Integer cntQty; private Integer cntQty;
@Column(name = "GROUP_SIDE")
@ApiParam("料架摆放位置")
private String groupSide;
} }

@ -14,7 +14,7 @@ import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
* @Description :MES_QUEUE_GROUP_COUNT * @Description :
* @Reference : * @Reference :
* @Author : joke * @Author : joke
* @CreateDate : 2020-03-06 10:16 * @CreateDate : 2020-03-06 10:16

@ -116,6 +116,10 @@ public class MesQueueOrderDetail extends BaseBean implements Serializable {
@ApiParam("已生产数量") @ApiParam("已生产数量")
private Double finsihQty; private Double finsihQty;
@Column(name = "GROUP_SIDE")
@ApiParam("料架摆放位置")
private String groupSide;
@Transient @Transient
@ApiParam("Vin") @ApiParam("Vin")
private String vinCode; private String vinCode;

@ -885,6 +885,23 @@ public class CoreHqlPack {
return result; return result;
} }
/**
*
*
* @param sysTask
* @return
*/
public static DdlPackBean packHqlCheckSysTaskOnly(SysTask sysTask) {
DdlPackBean result = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getNumNOEqualPack(sysTask.getId(), "id", result);
DdlPreparedPack.getStringEqualPack(sysTask.getName(), "name", result);
DdlPreparedPack.getStringEqualPack(sysTask.getTaskCode(), "taskCode", result);
return result;
}
public static String packHqlSysLocaleLanguageExistDefaultByIds(Long[] ids) { public static String packHqlSysLocaleLanguageExistDefaultByIds(Long[] ids) {
StringBuffer result = new StringBuffer(); StringBuffer result = new StringBuffer();

@ -39,10 +39,18 @@ public class IfPickData extends BaseBean implements Serializable {
@ApiParam("区段编号") @ApiParam("区段编号")
private String sectionNo; private String sectionNo;
@Column(name = "SECTION_TASK_NO")
@ApiParam("区段任务编号")
private String sectionTaskNo;
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ApiParam("物料编号") @ApiParam("物料编号")
private String partNo; private String partNo;
@Column(name = "BIN位代码")
@ApiParam("物料编号")
private String binNo;
@Column(name = "QTY") @Column(name = "QTY")
@ApiParam("拣货数量") @ApiParam("拣货数量")
private Integer qty; private Integer qty;

@ -335,6 +335,12 @@ public class PtlHqlPack {
return packBean; return packBean;
} }
/**
*
* @param area
* @param organizeCode
* @return
*/
public static DdlPackBean getPtlArea(PtlArea area, String organizeCode) { public static DdlPackBean getPtlArea(PtlArea area, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(area, organizeCode); DdlPackBean packBean = getAllBaseDataByNormalPro(area, organizeCode);
DdlPreparedPack.getStringLikerPack(area.getAreaNo(), "areaNo", packBean); DdlPreparedPack.getStringLikerPack(area.getAreaNo(), "areaNo", packBean);
@ -342,6 +348,12 @@ public class PtlHqlPack {
return packBean; return packBean;
} }
/**
*
* @param routeStatusErrorRecord
* @param organizeCode
* @return
*/
public static DdlPackBean getPtlRouteStatusErrorRecord(PtlRouteStatusErrorRecord routeStatusErrorRecord, String organizeCode) { public static DdlPackBean getPtlRouteStatusErrorRecord(PtlRouteStatusErrorRecord routeStatusErrorRecord, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(routeStatusErrorRecord, organizeCode); DdlPackBean packBean = getAllBaseDataByNormalPro(routeStatusErrorRecord, organizeCode);
DdlPreparedPack.getStringLikerPack(routeStatusErrorRecord.getRouteCode(), "routeCode", packBean); DdlPreparedPack.getStringLikerPack(routeStatusErrorRecord.getRouteCode(), "routeCode", packBean);
@ -351,4 +363,16 @@ public class PtlHqlPack {
DdlPreparedPack.getNumEqualPack(routeStatusErrorRecord.getHandleStatus(), "handleStatus", packBean); DdlPreparedPack.getNumEqualPack(routeStatusErrorRecord.getHandleStatus(), "handleStatus", packBean);
return packBean; return packBean;
} }
/**
* IF_
* @param pickData
* @param organizeCode
* @return
*/
public static DdlPackBean getIfPickData(IfPickData pickData, String organizeCode) {
DdlPackBean packBean = DdlPackBean.getDdlPackBean(organizeCode);
DdlPreparedPack.getNumEqualPack(pickData.getSyncFlag(), "syncFlag", packBean);
return packBean;
}
} }

@ -227,6 +227,10 @@ dataSrc ="cn.estsh.i3plus.pojo.wms.bean.WmsZones",
@ApiParam(value = "库位箱数") @ApiParam(value = "库位箱数")
private Long qty; private Long qty;
@Transient
@ApiParam(value = "不等于库位类型")
private Integer notLocateType;
public WmsLocate() { public WmsLocate() {
} }

@ -235,7 +235,7 @@ public class WmsMoveMaster extends BaseBean {
public WmsMoveMaster(String orderNo, String organizeCode, String partNo, String partNameRdd, String transTypeCode, String transTypeName, Integer itemStatus, public WmsMoveMaster(String orderNo, String organizeCode, String partNo, String partNameRdd, String transTypeCode, String transTypeName, Integer itemStatus,
String unit, String srcWhNo, String srcZoneNo, String destWhNo, String destZoneNo, Double transQty, Double rejectQty, String fixId, Integer busiTypeCode, String unit, String srcWhNo, String srcZoneNo, String destWhNo, String destZoneNo, Double transQty, Double rejectQty, String fixId, Integer busiTypeCode,
String createDatetime, String createUser, String modifyUser, String modifyDatetime) { String createDatetime, String createUser, String modifyUser, String modifyDatetime, String refSrc) {
this.orderNo = orderNo; this.orderNo = orderNo;
this.organizeCode = organizeCode; this.organizeCode = organizeCode;
this.partNo = partNo; this.partNo = partNo;
@ -256,6 +256,7 @@ public class WmsMoveMaster extends BaseBean {
this.createUser = createUser; this.createUser = createUser;
this.modifyUser = modifyUser; this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime; this.modifyDatetime = modifyDatetime;
this.refSrc = refSrc;
} }
public WmsMoveMaster(Long itemQty , String transTypeCode , Integer orderStatus){ public WmsMoveMaster(Long itemQty , String transTypeCode , Integer orderStatus){

@ -1,6 +1,10 @@
package cn.estsh.i3plus.pojo.wms.bean; package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -34,6 +38,7 @@ public class WmsPackage extends BaseBean {
public String packageNo; public String packageNo;
@Column(name="PACKAGE_TYPE_ID") @Column(name="PACKAGE_TYPE_ID")
@AnnoOutputColumn(refClass = WmsEnumUtil.PACKAGE_TYPE.class)
@ApiParam(value = "包装类型", example = "1") @ApiParam(value = "包装类型", example = "1")
public Integer packTypeId; public Integer packTypeId;
@ -64,4 +69,9 @@ public class WmsPackage extends BaseBean {
@Column(name="MEMO") @Column(name="MEMO")
@ApiParam(value = "备注") @ApiParam(value = "备注")
public String memo; public String memo;
@Column(name = "LOCATE_NO")
@ApiParam(value = "库位代码")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
private String locateNo;
} }

@ -0,0 +1,66 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
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 : RFID
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-07-10 14:38
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="WMS_RFID_OPERATE_RECORD")
@Api("RFID条码操作记录表")
public class WmsRfidOperateRecord extends BaseBean {
private static final long serialVersionUID = -2506345764570725810L;
@Column(name="RFID_SN")
@ApiParam("RFID_条码")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
public String rfidSn;
@Column(name="OPERATE_TYPE")
@ApiParam("操作类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.PACKAGE_TYPE.class)
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER)
public Integer operateType;
@Column(name="SRC_LOCATE")
@ApiParam("源库位")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
public String srcLocate;
@Column(name="DEST_LOCATE")
@ApiParam("目标库位")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
public String destLocate;
@Column(name="SRC_QTY")
@ApiParam("源数量")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER)
public Integer srcQty;
@Column(name="DEST_QTY")
@ApiParam("目标数量")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER)
public Integer destQty;
}

@ -94,6 +94,10 @@ public class WmsSerialSn extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT) @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
private String packageNo; private String packageNo;
@Column(name = "LOT_NO")
@ApiParam("生产批次")
private String lotNo;
public WmsSerialSn() { public WmsSerialSn() {
} }

@ -84,6 +84,11 @@ public class WmsShippingFlag extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2) @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String flagFax; private String flagFax;
@Column(name = "DEST_ZONE_NO")
@ApiParam(value = "存储区")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT, isRequire = 2)
private String destZoneNo;
@Column(name="TEMPLATE_NO") @Column(name="TEMPLATE_NO")
@ApiParam("模板编号") @ApiParam("模板编号")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.URL, @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.URL,

@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
public class MappingItem { public class MappingItem implements Comparable<MappingItem> {
/** /**
* *
*/ */
@ -38,6 +38,11 @@ public class MappingItem {
*/ */
public Object defaultValue; public Object defaultValue;
/**
*
*/
public int seq;
@Override @Override
public String toString() { public String toString() {
return "srcName:" return "srcName:"
@ -45,6 +50,12 @@ public class MappingItem {
+ this.destBeanName + ", destName" + this.destBeanName + ", destName"
+ this.destName + ", defaultValue:" + this.destName + ", defaultValue:"
+ this.defaultValue + ", destPk:" + this.defaultValue + ", destPk:"
+ this.destPk; + this.destPk + ", seq:"
+ this.seq;
}
@Override
public int compareTo(MappingItem o) {
return this.seq - o.seq;
} }
} }

@ -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.WmsRfidOperateRecord;
import org.springframework.stereotype.Repository;
/**
* @Description : RFID
* @Reference :
* @Author : jimmy.zeng
* @CreateDate : 2020-07-10 14:46
* @Modify:
**/
@Repository
public interface WmsRfidOperateRecordRepository extends BaseRepository<WmsRfidOperateRecord, Long> {
}

@ -198,6 +198,8 @@ public class WmsHqlPack {
DdlPackBean packBean = new DdlPackBean(); DdlPackBean packBean = new DdlPackBean();
//查询参数封装 //查询参数封装
DdlPreparedPack.getNumEqualPack(wmsPackage.getOrganizeCode(), "organizeCode", packBean); DdlPreparedPack.getNumEqualPack(wmsPackage.getOrganizeCode(), "organizeCode", packBean);
DdlPreparedPack.getStringLikerPack(wmsPackage.getMemo(), "memo", packBean);
DdlPreparedPack.getStringLikerPack(wmsPackage.getLocateNo(), "locateNo", packBean);
DdlPreparedPack.getNumEqualPack(wmsPackage.getPrintStatus(), "printStatus", packBean); DdlPreparedPack.getNumEqualPack(wmsPackage.getPrintStatus(), "printStatus", packBean);
DdlPreparedPack.getStringLikePack(wmsPackage.getPackageNo()==null?"":wmsPackage.getPackageNo()+"%", "packageNo", packBean); DdlPreparedPack.getStringLikePack(wmsPackage.getPackageNo()==null?"":wmsPackage.getPackageNo()+"%", "packageNo", packBean);
DdlPreparedPack.getStringEqualPack(wmsPackage.getPackSpec(), "packSpec", packBean); DdlPreparedPack.getStringEqualPack(wmsPackage.getPackSpec(), "packSpec", packBean);

Loading…
Cancel
Save