丽知:OFS调整入库单推送U8C其他入库单调整。
This commit is contained in:
parent
a80fea45ed
commit
181ca8d7d8
|
@ -99,8 +99,8 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
|||
String endTimeStr = DateUtil.format(endTime, "yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
QueryOfsStockinOrderRequestVO queryOfsStockinOrderRequestVO = new QueryOfsStockinOrderRequestVO();
|
||||
queryOfsStockinOrderRequestVO.setCreated_start("2024-08-12 00:00:00");
|
||||
queryOfsStockinOrderRequestVO.setCreated_end("2024-08-13 23:59:59");
|
||||
queryOfsStockinOrderRequestVO.setCreated_start(startTimeStr);
|
||||
queryOfsStockinOrderRequestVO.setCreated_end(endTimeStr);
|
||||
queryOfsStockinOrderRequestVO.setCompanyCode("SHLZ");
|
||||
// queryOfsTransferOrderRequestVO.setStatus("900");//状态 500待同步 510已同步 700收货中 900入库完成 911作废 100订单池 200暂挂 400待合单 410待出库单出库
|
||||
queryOfsStockinOrderRequestVO.setPageNo(1L);
|
||||
|
@ -170,6 +170,30 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
|||
Date business_end = DateUtil.parse(endTime);
|
||||
String start = DateUtil.format(business_start, "yyyy-MM-dd") + " 00:00:00";
|
||||
String end = DateUtil.format(business_end, "yyyy-MM-dd") + " 23:59:59";
|
||||
|
||||
QueryOfsStockinOrderRequestVO queryOfsStockinOrderRequestVO = new QueryOfsStockinOrderRequestVO();
|
||||
queryOfsStockinOrderRequestVO.setCreated_start(start);
|
||||
queryOfsStockinOrderRequestVO.setCreated_end(end);
|
||||
queryOfsStockinOrderRequestVO.setCompanyCode("SHOFF");
|
||||
// queryOfsTransferOrderRequestVO.setStatus("900");//状态 500待同步 510已同步 700收货中 900入库完成 911作废 100订单池 200暂挂 400待合单 410待出库单出库
|
||||
queryOfsStockinOrderRequestVO.setPageNo(1L);
|
||||
queryOfsStockinOrderRequestVO.setPageSize(500L);
|
||||
List<StockinOrderSearchResponse.StockinOrder> stockinOrders = queryOfsStockinOrder(queryOfsStockinOrderRequestVO);
|
||||
System.out.println(stockinOrders);
|
||||
|
||||
if (stockinOrders.size() == 0) {
|
||||
return;
|
||||
}
|
||||
//过滤日志
|
||||
List<StockinOrderSearchResponse.StockinOrder> filterStockinOrders = filterData(stockinOrders);
|
||||
if (filterStockinOrders.size() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
//推送
|
||||
implement(filterStockinOrders);
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error("丽知:OFS调整入库--->U8C其它入库,start(String startTime, String endTime)方法报错:", e);
|
||||
}
|
||||
|
@ -217,7 +241,9 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
|||
GeneralBillVO_4ADto generalBillVO_4A = new GeneralBillVO_4ADto();
|
||||
GeneralBillVO_4ADto.Parentvo parentvo = new GeneralBillVO_4ADto.Parentvo();
|
||||
|
||||
//ofs订单号,自定义项19
|
||||
ofsCode=ofsHeader.getCode();
|
||||
parentvo.setVuserdef19(ofsCode);
|
||||
|
||||
//pk_corp--公司
|
||||
parentvo.setPk_corp(ofsHeader.getCompanyCode());
|
||||
|
|
|
@ -31,7 +31,8 @@ public class GeneralBillVO_4ADto {
|
|||
private String dbilldate;//单据日期
|
||||
private String dauditdate;//签字日期
|
||||
|
||||
private String vuserdef20;//自定义项20---》存旺店通出库单号:20240418习老师
|
||||
private String vuserdef19;//自定义项19--->ofs调整单号
|
||||
private String vuserdef20;//自定义项20
|
||||
|
||||
}
|
||||
@Data
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
package com.hzya.frame.plugin.lets.u8cdto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 库存其他出库单
|
||||
* @author zyd
|
||||
*/
|
||||
@Data
|
||||
public class GeneralBillVO_4IDto {
|
||||
/**
|
||||
* 表头
|
||||
|
@ -16,7 +19,7 @@ public class GeneralBillVO_4IDto {
|
|||
* 表体
|
||||
*/
|
||||
private List<Childrenvo> childrenvo;
|
||||
|
||||
@Data
|
||||
public static class Parentvo{
|
||||
/**
|
||||
* 自动拣货标识
|
||||
|
@ -33,103 +36,10 @@ public class GeneralBillVO_4IDto {
|
|||
private String vnote;
|
||||
private String dauditdate;//签字日期
|
||||
|
||||
private String vuserdef20;//自定义项20---》存旺店通出库单号:20240418习老师
|
||||
|
||||
public String getVuserdef20() {
|
||||
return vuserdef20;
|
||||
}
|
||||
|
||||
public void setVuserdef20(String vuserdef20) {
|
||||
this.vuserdef20 = vuserdef20;
|
||||
}
|
||||
|
||||
public String getDauditdate() {
|
||||
return dauditdate;
|
||||
}
|
||||
|
||||
public void setDauditdate(String dauditdate) {
|
||||
this.dauditdate = dauditdate;
|
||||
}
|
||||
|
||||
public String getIsautopick() {
|
||||
return isautopick;
|
||||
}
|
||||
|
||||
public void setIsautopick(String isautopick) {
|
||||
this.isautopick = isautopick;
|
||||
}
|
||||
|
||||
public String getVbillcode() {
|
||||
return vbillcode;
|
||||
}
|
||||
|
||||
public void setVbillcode(String vbillcode) {
|
||||
this.vbillcode = vbillcode;
|
||||
}
|
||||
|
||||
public String getPk_corp() {
|
||||
return pk_corp;
|
||||
}
|
||||
|
||||
public void setPk_corp(String pk_corp) {
|
||||
this.pk_corp = pk_corp;
|
||||
}
|
||||
|
||||
public String getClastmodiid() {
|
||||
return clastmodiid;
|
||||
}
|
||||
|
||||
public void setClastmodiid(String clastmodiid) {
|
||||
this.clastmodiid = clastmodiid;
|
||||
}
|
||||
|
||||
public String getDbilldate() {
|
||||
return dbilldate;
|
||||
}
|
||||
|
||||
public void setDbilldate(String dbilldate) {
|
||||
this.dbilldate = dbilldate;
|
||||
}
|
||||
|
||||
public String getCwarehouseid() {
|
||||
return cwarehouseid;
|
||||
}
|
||||
|
||||
public void setCwarehouseid(String cwarehouseid) {
|
||||
this.cwarehouseid = cwarehouseid;
|
||||
}
|
||||
|
||||
public String getPk_calbody() {
|
||||
return pk_calbody;
|
||||
}
|
||||
|
||||
public void setPk_calbody(String pk_calbody) {
|
||||
this.pk_calbody = pk_calbody;
|
||||
}
|
||||
|
||||
public String getVnote() {
|
||||
return vnote;
|
||||
}
|
||||
|
||||
public void setVnote(String vnote) {
|
||||
this.vnote = vnote;
|
||||
}
|
||||
|
||||
public String getCoperatorid() {
|
||||
return coperatorid;
|
||||
}
|
||||
public void setCoperatorid(String coperatorid) {
|
||||
this.coperatorid = coperatorid;
|
||||
}
|
||||
|
||||
public String getCdispatcherid() {
|
||||
return cdispatcherid;
|
||||
}
|
||||
|
||||
public void setCdispatcherid(String cdispatcherid) {
|
||||
this.cdispatcherid = cdispatcherid;
|
||||
}
|
||||
private String vuserdef19;//自定义项19--->ofs调整单号
|
||||
private String vuserdef20;//自定义项20
|
||||
}
|
||||
@Data
|
||||
public static class Childrenvo{
|
||||
private String cinventoryid;
|
||||
private String castunitid;
|
||||
|
@ -159,126 +69,6 @@ public class GeneralBillVO_4IDto {
|
|||
* 来源单据行id
|
||||
*/
|
||||
private String csourcebillbid;
|
||||
|
||||
public String getDbizdate() {
|
||||
return dbizdate;
|
||||
}
|
||||
|
||||
public void setDbizdate(String dbizdate) {
|
||||
this.dbizdate = dbizdate;
|
||||
}
|
||||
|
||||
public String getCsourcebillbid() {
|
||||
return csourcebillbid;
|
||||
}
|
||||
|
||||
public void setCsourcebillbid(String csourcebillbid) {
|
||||
this.csourcebillbid = csourcebillbid;
|
||||
}
|
||||
|
||||
public String getCsourcebillhid() {
|
||||
return csourcebillhid;
|
||||
}
|
||||
|
||||
public void setCsourcebillhid(String csourcebillhid) {
|
||||
this.csourcebillhid = csourcebillhid;
|
||||
}
|
||||
|
||||
public String getVsourcerowno() {
|
||||
return vsourcerowno;
|
||||
}
|
||||
|
||||
public void setVsourcerowno(String vsourcerowno) {
|
||||
this.vsourcerowno = vsourcerowno;
|
||||
}
|
||||
|
||||
public String getVsourcebillcode() {
|
||||
return vsourcebillcode;
|
||||
}
|
||||
|
||||
public void setVsourcebillcode(String vsourcebillcode) {
|
||||
this.vsourcebillcode = vsourcebillcode;
|
||||
}
|
||||
|
||||
public String getCinventoryid() {
|
||||
return cinventoryid;
|
||||
}
|
||||
|
||||
public void setCinventoryid(String cinventoryid) {
|
||||
this.cinventoryid = cinventoryid;
|
||||
}
|
||||
|
||||
public String getCastunitid() {
|
||||
return castunitid;
|
||||
}
|
||||
|
||||
public void setCastunitid(String castunitid) {
|
||||
this.castunitid = castunitid;
|
||||
}
|
||||
|
||||
public String getNoutnum() {
|
||||
return noutnum;
|
||||
}
|
||||
|
||||
public void setNoutnum(String noutnum) {
|
||||
this.noutnum = noutnum;
|
||||
}
|
||||
|
||||
public String getNprice() {
|
||||
return nprice;
|
||||
}
|
||||
|
||||
public void setNprice(String nprice) {
|
||||
this.nprice = nprice;
|
||||
}
|
||||
|
||||
public String getVnotebody() {
|
||||
return vnotebody;
|
||||
}
|
||||
|
||||
public void setVnotebody(String vnotebody) {
|
||||
this.vnotebody = vnotebody;
|
||||
}
|
||||
|
||||
public String getBonroadflag() {
|
||||
return bonroadflag;
|
||||
}
|
||||
|
||||
public void setBonroadflag(String bonroadflag) {
|
||||
this.bonroadflag = bonroadflag;
|
||||
}
|
||||
|
||||
public String getFlargess() {
|
||||
return flargess;
|
||||
}
|
||||
|
||||
public void setFlargess(String flargess) {
|
||||
this.flargess = flargess;
|
||||
}
|
||||
|
||||
public String getNshouldoutnum() {
|
||||
return nshouldoutnum;
|
||||
}
|
||||
|
||||
public void setNshouldoutnum(String nshouldoutnum) {
|
||||
this.nshouldoutnum = nshouldoutnum;
|
||||
}
|
||||
}
|
||||
|
||||
public Parentvo getParentvo() {
|
||||
return parentvo;
|
||||
}
|
||||
|
||||
public void setParentvo(Parentvo parentvo) {
|
||||
this.parentvo = parentvo;
|
||||
}
|
||||
|
||||
public List<Childrenvo> getChildrenvo() {
|
||||
return childrenvo;
|
||||
}
|
||||
|
||||
public void setChildrenvo(List<Childrenvo> childrenvo) {
|
||||
this.childrenvo = childrenvo;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -55,6 +55,10 @@ public class TransferTest {
|
|||
public void t31(){
|
||||
adjustInPluginInitializer.start("LETS-AH2024081300000003");
|
||||
}
|
||||
@Test
|
||||
public void t32(){
|
||||
adjustInPluginInitializer.start("2024-08-14","2024-08-14");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////调整出库单
|
||||
|
||||
|
|
Loading…
Reference in New Issue