丽知:出入库、组装修改:修改时间作为单据日期
This commit is contained in:
parent
08b74914be
commit
3d861fd4da
|
@ -269,7 +269,8 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
||||||
public void implement(List<StockinOrderSearchResponse.StockinOrder> filterStockinOrders) {
|
public void implement(List<StockinOrderSearchResponse.StockinOrder> filterStockinOrders) {
|
||||||
for (StockinOrderSearchResponse.StockinOrder stockinOrder : filterStockinOrders) {
|
for (StockinOrderSearchResponse.StockinOrder stockinOrder : filterStockinOrders) {
|
||||||
String mapStr = "";
|
String mapStr = "";
|
||||||
String format = "";
|
String create = "";
|
||||||
|
String modify = "";
|
||||||
String response = "";
|
String response = "";
|
||||||
String ofsCode = "";
|
String ofsCode = "";
|
||||||
String ofsId = "";
|
String ofsId = "";
|
||||||
|
@ -296,15 +297,15 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
||||||
//vnote--备注
|
//vnote--备注
|
||||||
parentvo.setVnote(ofsHeader.getNote());
|
parentvo.setVnote(ofsHeader.getNote());
|
||||||
//dbilldate--单据日期--oms入库时间
|
//dbilldate--单据日期--oms入库时间
|
||||||
// Date created = ofsHeader.getCreated();
|
create = ofsHeader.getCreated();
|
||||||
// format = DateUtil.format(created, "yyyy-MM-dd HH:mm:ss");
|
modify = ofsHeader.getLastUpdated();
|
||||||
format = ofsHeader.getCreated();
|
// parentvo.setDbilldate(StringUtils.substring(create, 0, 10));
|
||||||
parentvo.setDbilldate(StringUtils.substring(format, 0, 10));
|
parentvo.setDbilldate(StringUtils.substring(modify, 0, 10));
|
||||||
//coperatorid--制单人
|
//coperatorid--制单人
|
||||||
String createdBy = ofsHeader.getCreatedBy();
|
String createdBy = ofsHeader.getCreatedBy();
|
||||||
parentvo.setCoperatorid("tbadmin");
|
parentvo.setCoperatorid("tbadmin");
|
||||||
//审核时间dauditdate
|
//审核时间dauditdate
|
||||||
parentvo.setDauditdate(StringUtils.substring(format, 0, 10));
|
parentvo.setDauditdate(StringUtils.substring(modify, 0, 10));
|
||||||
|
|
||||||
//cdispatcherid--收发类别,
|
//cdispatcherid--收发类别,
|
||||||
List<OFSAdjustOrderSearchResponse.OFSAdjustOrder> ofsAdjustOrders = queryOfsAdjustOrders(ofsHeader.getRefOrderCode());
|
List<OFSAdjustOrderSearchResponse.OFSAdjustOrder> ofsAdjustOrders = queryOfsAdjustOrders(ofsHeader.getRefOrderCode());
|
||||||
|
@ -332,7 +333,7 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
||||||
GeneralBillVO_4ADto.Childrenvo children = new GeneralBillVO_4ADto.Childrenvo();
|
GeneralBillVO_4ADto.Childrenvo children = new GeneralBillVO_4ADto.Childrenvo();
|
||||||
|
|
||||||
//dbizdate业务日期
|
//dbizdate业务日期
|
||||||
children.setDbizdate(format);
|
children.setDbizdate(modify);
|
||||||
|
|
||||||
//存货档案id
|
//存货档案id
|
||||||
children.setCinventoryid(ofsDetail.getSkuCode());
|
children.setCinventoryid(ofsDetail.getSkuCode());
|
||||||
|
@ -384,7 +385,7 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(response);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(response);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setNewSystemPrimary(vbillId);
|
integrationTaskLivingDetailsEntity.setNewSystemPrimary(vbillId);
|
||||||
|
@ -411,7 +412,7 @@ public class AdjustInPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
|
|
|
@ -288,7 +288,8 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
|
||||||
public void implement(List<StockinOrderSearchResponse.StockinOrder> filterStockinOrders) {
|
public void implement(List<StockinOrderSearchResponse.StockinOrder> filterStockinOrders) {
|
||||||
for (StockinOrderSearchResponse.StockinOrder stockinOrder : filterStockinOrders) {
|
for (StockinOrderSearchResponse.StockinOrder stockinOrder : filterStockinOrders) {
|
||||||
String mapStr = "";
|
String mapStr = "";
|
||||||
String format = "";
|
String create = "";
|
||||||
|
String modify = "";
|
||||||
String response = "";
|
String response = "";
|
||||||
String ofsCode = "";
|
String ofsCode = "";
|
||||||
try {
|
try {
|
||||||
|
@ -306,8 +307,10 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
|
||||||
|
|
||||||
parentvo.setPk_corp(bdCorpEntity.getPkCorp());
|
parentvo.setPk_corp(bdCorpEntity.getPkCorp());
|
||||||
//dbilldate 单据日期
|
//dbilldate 单据日期
|
||||||
format = ofsHeader.getCreated();
|
create = ofsHeader.getCreated();
|
||||||
parentvo.setDbilldate(StringUtils.substring(format, 0, 10));
|
modify = ofsHeader.getLastUpdated();
|
||||||
|
// parentvo.setDbilldate(StringUtils.substring(create, 0, 10));
|
||||||
|
parentvo.setDbilldate(StringUtils.substring(modify, 0, 10));
|
||||||
//coperatorid 制单人
|
//coperatorid 制单人
|
||||||
parentvo.setCoperatorid(OverallConstant.getOverAllValue("u8cApiZdrPK"));
|
parentvo.setCoperatorid(OverallConstant.getOverAllValue("u8cApiZdrPK"));
|
||||||
//cinwarehouseid 入库仓库(审批,3.6及上版本支持)
|
//cinwarehouseid 入库仓库(审批,3.6及上版本支持)
|
||||||
|
@ -402,7 +405,7 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(response);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(response);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode+"_"+detail.getSkuCode());
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode+"_"+detail.getSkuCode());
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setNewSystemNumber(vbillcode);
|
integrationTaskLivingDetailsEntity.setNewSystemNumber(vbillcode);
|
||||||
|
@ -427,7 +430,7 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode+"_"+detail.getSkuCode());
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode+"_"+detail.getSkuCode());
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
|
@ -446,7 +449,7 @@ public class AdjustInZZPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode+"_"+detail.getSkuCode());
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode+"_"+detail.getSkuCode());
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
|
|
|
@ -270,7 +270,8 @@ public class AdjustOutPluginInitializer extends PluginBaseEntity {
|
||||||
public void implement(List<StockoutOrderSearchResponse.StockoutOrder> filterStockoutOrders) {
|
public void implement(List<StockoutOrderSearchResponse.StockoutOrder> filterStockoutOrders) {
|
||||||
for (StockoutOrderSearchResponse.StockoutOrder stockoutOrder : filterStockoutOrders) {
|
for (StockoutOrderSearchResponse.StockoutOrder stockoutOrder : filterStockoutOrders) {
|
||||||
String mapStr = "";
|
String mapStr = "";
|
||||||
String format = "";
|
String create = "";
|
||||||
|
String modify = "";
|
||||||
String response = "";
|
String response = "";
|
||||||
String ofsCode = "";
|
String ofsCode = "";
|
||||||
String ofsId = "";
|
String ofsId = "";
|
||||||
|
@ -299,15 +300,14 @@ public class AdjustOutPluginInitializer extends PluginBaseEntity {
|
||||||
//vnote--备注
|
//vnote--备注
|
||||||
parentvo.setVnote(ofsHeader.getShipmentNote());
|
parentvo.setVnote(ofsHeader.getShipmentNote());
|
||||||
//dbilldate--单据日期--oms入库时间
|
//dbilldate--单据日期--oms入库时间
|
||||||
String created1 = ofsHeader.getCreated();
|
create = ofsHeader.getCreated();
|
||||||
// Date created = ofsHeader.getCreated();
|
modify = ofsHeader.getLastUpdated();
|
||||||
// format = DateUtil.format(created, "yyyy-MM-dd HH:mm:ss");
|
// parentvo.setDbilldate(StringUtils.substring(create, 0, 10));
|
||||||
format = created1;
|
parentvo.setDbilldate(StringUtils.substring(modify, 0, 10));
|
||||||
parentvo.setDbilldate(StringUtils.substring(format, 0, 10));
|
|
||||||
//coperatorid--制单人
|
//coperatorid--制单人
|
||||||
parentvo.setCoperatorid("tbadmin");
|
parentvo.setCoperatorid("tbadmin");
|
||||||
//审核时间dauditdate
|
//审核时间dauditdate
|
||||||
parentvo.setDauditdate(StringUtils.substring(format, 0, 10));
|
parentvo.setDauditdate(StringUtils.substring(modify, 0, 10));
|
||||||
|
|
||||||
//cdispatcherid--收发类别
|
//cdispatcherid--收发类别
|
||||||
List<OFSAdjustOrderSearchResponse.OFSAdjustOrder> ofsAdjustOrders = queryOfsAdjustOrders(ofsHeader.getRefOrderCode());
|
List<OFSAdjustOrderSearchResponse.OFSAdjustOrder> ofsAdjustOrders = queryOfsAdjustOrders(ofsHeader.getRefOrderCode());
|
||||||
|
@ -340,7 +340,7 @@ public class AdjustOutPluginInitializer extends PluginBaseEntity {
|
||||||
GeneralBillVO_4IDto.Childrenvo children = new GeneralBillVO_4IDto.Childrenvo();
|
GeneralBillVO_4IDto.Childrenvo children = new GeneralBillVO_4IDto.Childrenvo();
|
||||||
|
|
||||||
//dbizdate业务日期
|
//dbizdate业务日期
|
||||||
children.setDbizdate(format);
|
children.setDbizdate(modify);
|
||||||
|
|
||||||
//存货档案id
|
//存货档案id
|
||||||
children.setCinventoryid(ofsDetail.getSkuCode());
|
children.setCinventoryid(ofsDetail.getSkuCode());
|
||||||
|
@ -389,7 +389,7 @@ public class AdjustOutPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(attribute.getData());
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(attribute.getData());
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setNewSystemNumber(ofsHeader.getCompanyCode()+"_"+vbillcode);//u8c其他出库单号
|
integrationTaskLivingDetailsEntity.setNewSystemNumber(ofsHeader.getCompanyCode()+"_"+vbillcode);//u8c其他出库单号
|
||||||
|
@ -415,7 +415,7 @@ public class AdjustOutPluginInitializer extends PluginBaseEntity {
|
||||||
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
integrationTaskLivingDetailsEntity.setRootAppNewData(mapStr);
|
||||||
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
integrationTaskLivingDetailsEntity.setNewTransmitInfo(ErrMessage);
|
||||||
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
|
||||||
integrationTaskLivingDetailsEntity.setBusinessDate(format);
|
integrationTaskLivingDetailsEntity.setBusinessDate(modify);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppPk(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
integrationTaskLivingDetailsEntity.setRootAppBill(ofsCode);
|
||||||
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
|
||||||
|
|
Loading…
Reference in New Issue