yun-zuoyi
许心洁 5 years ago
commit 8a98efa9a6

@ -927,6 +927,9 @@ public class PtlPcnEnumUtil {
} }
} }
/**
* PTL_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASK_DETAIL_STATUS { public enum AREA_SECTION_TASK_DETAIL_STATUS {
CREATE(10, "CREATE", "创建"), CREATE(10, "CREATE", "创建"),
@ -956,67 +959,11 @@ public class PtlPcnEnumUtil {
} }
/** /**
* PTL_ * PTL_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TASK_DETAIL_STATUS {
CREATE(10, "CREATE", "新建"),
RECEIPT_FINISH(20, "RECEIPT_FINISH", "已完成");
private int value;
private String code;
private String description;
TASK_DETAIL_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
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;
}
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 String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
* PTL_
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASK_STATUS { public enum AREA_SECTION_TASK_STATUS {
CREATE(10, "CREATE", "新建"), CREATE(10, "CREATE", "新建"),
RECEIPT(20, "RECEIPT", "执行中"),
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成"); RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成");
private int value; private int value;
@ -1525,64 +1472,10 @@ public class PtlPcnEnumUtil {
return valueOf(val); return valueOf(val);
} }
} }
/**
* (ASN,PO,MOVE,QC)
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MASTER_ORDER_STATUS {
CREATE(10, "CREATE", "创建"),
RECEIPT(20, "IN_PROGRESS", "处理中"),
RECEIPT_FINISH(30, "COMPLETED", "已完成"),
CANCELLED(40, "CANCELLED", "已取消");
private int value;
private String code;
private String description;
MASTER_ORDER_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
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;
}
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 String valueOfDescription(int val) {
return valueOf(val);
}
}
/** /**
* (ASN,PO,MOVE,QC) *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_SECTION_TASK_TYPE { public enum AREA_SECTION_TASK_TYPE {
@ -1636,14 +1529,14 @@ public class PtlPcnEnumUtil {
return valueOf(val); return valueOf(val);
} }
} }
/** /**
* (ASN,PO,MOVE,QC) *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_TASK_STATUS { public enum AREA_TASK_STATUS {
CREATE(10, "CREATE", "创建"), CREATE(10, "CREATE", "创建"),
RECEIPT(20, "IN_PROGRESS", "处理中"), RECEIPT_FINISH(30, "COMPLETED", "完成");
RECEIPT_FINISH(30, "COMPLETED", "已完成");
private int value; private int value;
private String code; private String code;
@ -1693,7 +1586,7 @@ public class PtlPcnEnumUtil {
} }
/** /**
* (ASN,PO,MOVE,QC) *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AREA_TASK_TYPE { public enum AREA_TASK_TYPE {

@ -5087,4 +5087,67 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
* -退
* 10
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ORDER_BACK_TYPE {
REC_QTY(10, "REC_QTY", "已收货数量"),
PICK_QTY(20, "PICK_QTY", "已拣货数量"),
MOVE_QTY(30, "MOVE_QTY", "已移库数量"),
OUT_QTY(40, "OUT_QTY", "已出库数量");
private int value;
private String code;
private String description;
ORDER_BACK_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static ORDER_BACK_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;
}
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;
}
}
} }

@ -1551,10 +1551,10 @@ public class BaseRepositoryImpl<T, ID extends Serializable> extends SimpleJpaRep
@Override @Override
public List<T> findByHqlWhereByClear(DdlPackBean packBean, String dateTime) { public List<T> findByHqlWhereByClear(DdlPackBean packBean, String dateTime) {
LOGGER.info("ptl_pcn数据清除查询"); LOGGER.info("PTL-PCN数据清除查询");
StringBuffer queryString = new StringBuffer(); StringBuffer queryString = new StringBuffer();
queryString.append("select model from " + persistentClass.getSimpleName() queryString.append("select model from " + persistentClass.getSimpleName()
+ " as model where 1=1 and model.createDatetime <= " + "'" + dateTime + "'" + " "); + " as model where 1=1 and model.modifyDatetime < " + "'" + dateTime + "'" + " ");
if (packBean != null) { if (packBean != null) {
queryString.append(packBean.getWhereAppend()); queryString.append(packBean.getWhereAppend());

@ -77,6 +77,26 @@ public class PtlPcnSyncCfg extends BaseBean implements Serializable {
@ApiParam(value = "从数据库抽取的条件限制") @ApiParam(value = "从数据库抽取的条件限制")
private String extractCondition; private String extractCondition;
@Column(name = "IS_IGNORE_ORG")
@ApiParam(value = "同步的时候是否区分工厂")
private Integer isIgnoreOrg = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
@Transient
@ApiParam("同步方式")
private String syncPatternName;
@Transient
@ApiParam("同步类型名称")
private String syncTypeName;
@Transient
@ApiParam(value = "同步的时候是否区分工厂")
private String isIgnoreOrgName;
public int getIsIgnoreOrgVal() {
return this.isIgnoreOrg == null ? 0 : this.isIgnoreOrg;
}
public int getSyncFrequencyVal() { public int getSyncFrequencyVal() {
return this.syncFrequency == null ? 0 : this.syncFrequency; return this.syncFrequency == null ? 0 : this.syncFrequency;
} }

@ -44,4 +44,7 @@ public class LightOnModel implements Serializable {
@ApiParam("是否熄灯") @ApiParam("是否熄灯")
private Integer lightFlag; private Integer lightFlag;
@ApiParam("状态")
private Integer status;
} }

@ -160,6 +160,10 @@ public class WmsDocMovementDetails extends BaseBean {
@ApiParam("客户订单号") @ApiParam("客户订单号")
public String custOrderNo; public String custOrderNo;
@Column(name = "ASSIGN_DATE_CODE")
@ApiParam(value = "指定生产日期")
private String assignDateCode;
@Transient @Transient
@ApiParam("实际批次") @ApiParam("实际批次")
private String actualLot; private String actualLot;

@ -399,4 +399,12 @@ public class WmsStockSn extends BaseBean {
this.modifyDatetime = modifyDatetime; this.modifyDatetime = modifyDatetime;
this.modifyUser = modifyUser; this.modifyUser = modifyUser;
} }
public WmsStockSn (String partNo, String packageNo,String locateNo, String createDatetime, String modifyDatetime) {
this.partNo = partNo;
this.packageNo =packageNo;
this.locateNo = locateNo;
this.createDatetime=createDatetime;
this.modifyDatetime = modifyDatetime;
}
} }

@ -1,6 +1,8 @@
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.bean.BaseBean; import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -70,6 +72,11 @@ public class WmsTransType extends BaseBean {
@ApiParam(value = "是否发送异常邮件") @ApiParam(value = "是否发送异常邮件")
private Integer isSendErrorEmail; private Integer isSendErrorEmail;
@Column(name = "ORDER_BACK_TYPE")
@ApiParam(value = "单据回退类型")
@AnnoOutputColumn(refClass = WmsEnumUtil.ORDER_BACK_TYPE.class, refForeignKey = "value", value = "description")
private Integer orderBackType;
@Transient @Transient
@ApiParam("菜单URL") @ApiParam("菜单URL")
private String menuUrl; private String menuUrl;
@ -78,7 +85,6 @@ public class WmsTransType extends BaseBean {
@ApiParam("交易处理组件调用类") @ApiParam("交易处理组件调用类")
private String callClass; private String callClass;
public String getMenuUrl() { public String getMenuUrl() {
return "/handle?transTypeCode=" + this.transTypeCode; return "/handle?transTypeCode=" + this.transTypeCode;
} }

@ -418,6 +418,7 @@ public class WmsHqlPack {
//查询参数封装 //查询参数封装
DdlPreparedPack.getStringRightLikerPack(wmsTransType.getTransTypeCode(), "transTypeCode", result); DdlPreparedPack.getStringRightLikerPack(wmsTransType.getTransTypeCode(), "transTypeCode", result);
DdlPreparedPack.getStringLikerPack(wmsTransType.getTransTypeName(), "transTypeName", result); DdlPreparedPack.getStringLikerPack(wmsTransType.getTransTypeName(), "transTypeName", result);
DdlPreparedPack.getNumEqualPack(wmsTransType.getOrderBackType(),"orderBackType",result);
DdlPreparedPack.getNumEqualPack(wmsTransType.getAgId(), "agId", result); DdlPreparedPack.getNumEqualPack(wmsTransType.getAgId(), "agId", result);
getStringBuilderPack(wmsTransType, result); getStringBuilderPack(wmsTransType, result);

Loading…
Cancel
Save