# Conflicts:
#	modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java
yun-zuoyi
shiyanghuan 6 years ago
commit 54d7190bf0

@ -0,0 +1,81 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description : ASN
* @Reference :
* @Author : amy
* @CreateDate : 2019-06-17 10:50
* @Modify:
**/
@Data
@Api(value = "ASN计划", description = "ASN计划")
public class SapAsn extends SapBase {
@ApiParam(value = "ASN号")
@AnnoOutputColumn
private String zasnno;
@ApiParam(value = "供应商代码")
@AnnoOutputColumn
private String lifnr;
@ApiParam(value = "ASN item")
@AnnoOutputColumn
private Double zrnum;
@ApiParam(value = "物料编码")
@AnnoOutputColumn
private String matnr;
@ApiParam(value = "数量")
@AnnoOutputColumn
private Double zcnNum;
@ApiParam(value = "计量单位")
@AnnoOutputColumn
private String unit;
@ApiParam(value = "特殊采购标识")
@AnnoOutputColumn
private String pstyp;
@ApiParam(value = "计划交货日期")
@AnnoOutputColumn
private String zdate;
@ApiParam(value = "计划交货时间")
@AnnoOutputColumn
private String zcjsj;
@ApiParam(value = "工厂代码")
@AnnoOutputColumn
private String werks;
@ApiParam(value = "收货库存地点")
@AnnoOutputColumn
private String lgort;
@ApiParam(value = "凭证标识")
@AnnoOutputColumn
private String zdoc;
@ApiParam(value = "状态", example = "U")
@AnnoOutputColumn
private String zstasI;
@ApiParam(value = "条码信息")
@AnnoOutputColumn
private String ztxm;
@ApiParam(value = "道口")
@AnnoOutputColumn
private String zdk;
}

@ -0,0 +1,71 @@
package cn.estsh.i3plus.pojo.wms.bean;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
/**
* @Description : sap
* @Reference :
* @Author : amy
* @CreateDate : 2019-06-17 16:21
* @Modify:
**/
@Data
public class SapBase {
@ApiParam(value = "处理人", example = "-1")
private String actusr = "导入";
@ApiParam(value = "SID", example = "-1")
private String sid = UUID.randomUUID().toString() + UUID.randomUUID().toString();
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ApiParam(value = "接收数据日期", example = "-1")
private String recymd;
@JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
@ApiParam(value = "接收数据时间", example = "-1")
private String rechms;
@ApiParam(value = "同步标志", example = "-1")
private String synflg = "Y";
@ApiParam(value = "同步日期", example = "-1")
private String synymd;
@ApiParam(value = "同步时间", example = "-1")
private String synhms;
@ApiParam(value = "处理标志", example = "-1")
private String actflg = "Y";
@ApiParam(value = "处理日期", example = "-1")
private String actymd;
@ApiParam(value = "处理时间", example = "-1")
private String acthms;
@ApiParam(value = "状态标志", example = "-1")
private String staflg;
@ApiParam(value = "顺序号", example = "-1")
private Integer seq;
@ApiParam(value = "GUID", example = "-1")
private String guid;
public String getSynymdTime() {
SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-DD");
return format.format(new Date());
}
public String getSynhmsTime() {
SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
return format.format(new Date());
}
}

@ -102,6 +102,11 @@ public class WmsStockQuan extends BaseBean {
@ApiParam(value = "锁定数量", example = "0")
private Double lockQty;
@Column(name = "SCRAP_QTY")
@ColumnDefault("0")
@ApiParam(value = "报废数量", example = "0")
private Double scrapQty;
public Double getQty() {
return this.qty == null ? 0 : this.qty;
}
@ -134,10 +139,14 @@ public class WmsStockQuan extends BaseBean {
return this.lockQty == null ? 0 : this.lockQty;
}
public Double getScrapQty() {
return this.scrapQty == null ? 0 : this.scrapQty;
}
public WmsStockQuan() {
}
public WmsStockQuan(Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty, Double consignQty, Double lockQty) {
public WmsStockQuan(Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty, Double consignQty, Double lockQty, Double scrapQty) {
this.qty = qty;
this.failQty = failQty;
this.holdQty = holdQty;
@ -146,5 +155,6 @@ public class WmsStockQuan extends BaseBean {
this.freezeQty = freezeQty;
this.consignQty = consignQty;
this.lockQty = lockQty;
this.scrapQty = scrapQty;
}
}

@ -28,6 +28,11 @@ public class MappingItem {
*/
public String destName;
/**
*
* 1=
*/
public Integer destPk;
/**
*
* 使 #date, #time, #guid, #Q.warehouse(#zone)
*/
@ -39,6 +44,7 @@ public class MappingItem {
+ this.srcName + ", destBeanName:"
+ this.destBeanName + ", destName"
+ this.destName + ", defaultValue:"
+ this.defaultValue;
+ this.defaultValue + ", destPk:"
+ this.destPk;
}
}

@ -89,4 +89,11 @@ public class WmsInterfaceDataMapper extends BaseBean {
*/
@Column(name = "DEST_COLUMN_MAPPING", length = 5000)
public String destColumnMapping;
/**
*
* SAP2WMS, WMS2SAP, MES2WMS
*/
@Column(name = "GROUP_NAME")
public String groupName;
}

@ -1687,9 +1687,20 @@ public class WmsHqlPack {
getStringBuilderPack(wmsLineLocatePart, result);
return result;
}
/**
*
*
* @param wmsTaskSrc
* @return
*/
public static DdlPackBean packHqlWmsTaskSrc(WmsTaskSrc wmsTaskSrc) {
DdlPackBean result = new DdlPackBean();
//查询参数封装
DdlPreparedPack.getStringEqualPack(wmsTaskSrc.getOpTypeCode(), "opTypeCode", result);
getStringBuilderPack(wmsTaskSrc, result);
return result;
}
/**
*
*
@ -1704,5 +1715,4 @@ public class WmsHqlPack {
getStringBuilderPack(wmsVendorPart, result);
return result;
}
}

Loading…
Cancel
Save