fix:修改状态方法
This commit is contained in:
parent
4504b4cec4
commit
72b3c89815
@ -563,7 +563,8 @@ public class MaterialReceiveActController {
|
|||||||
SDKMaterialPackingServiceImpl.updateMaterialPackingUndoIdByReceive(receiveRequestName, undoId);
|
SDKMaterialPackingServiceImpl.updateMaterialPackingUndoIdByReceive(receiveRequestName, undoId);
|
||||||
// 更新库存状态
|
// 更新库存状态
|
||||||
SDKMaterialPackingServiceImpl.SaveUnDoInfo( undoId,commitDate);
|
SDKMaterialPackingServiceImpl.SaveUnDoInfo( undoId,commitDate);
|
||||||
SDKMaterialPackingServiceImpl.updateStockState(makeEventInfo, undoId,opCode,erpLocation, erpFactory1);
|
// SDKMaterialPackingServiceImpl.updateStockState(makeEventInfo, undoId,opCode,erpLocation, erpFactory1);
|
||||||
|
SDKMaterialPackingServiceImpl.updateStockState(makeEventInfo, undoId,opCode);
|
||||||
}
|
}
|
||||||
// 到货单据更新状态
|
// 到货单据更新状态
|
||||||
if (Objects.nonNull(materialDelivery)) {
|
if (Objects.nonNull(materialDelivery)) {
|
||||||
|
@ -3353,14 +3353,15 @@ public class InvoiceServiceImpl implements InvoiceService {
|
|||||||
Boolean success = untils.sendMaterialInfoToMES_NEW2(shipRequestName, "", materialPackingKeyList,billCode,eventUser);
|
Boolean success = untils.sendMaterialInfoToMES_NEW2(shipRequestName, "", materialPackingKeyList,billCode,eventUser);
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
|
|
||||||
String undo = cancelShipInter(billCode, eventUser);
|
String undo = cancelShipInter(billCode, eventUser);
|
||||||
if (undo == null || undo.isEmpty()) {
|
if (undo == null || undo.isEmpty()) {
|
||||||
throw new GlobalException("下发mes失败后冲销失败!");
|
throw new GlobalException("下发mes失败后冲销失败!");
|
||||||
}
|
}else {
|
||||||
throw new GlobalException("发送到mes失败!");
|
throw new GlobalException("发送到mes失败!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
WlySaveUnDoInfo( billCode,commitDate);
|
WlySaveUnDoInfo( billCode,commitDate);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -3380,9 +3381,10 @@ public class InvoiceServiceImpl implements InvoiceService {
|
|||||||
String undo = cancelShipInter(billCode, eventUser);
|
String undo = cancelShipInter(billCode, eventUser);
|
||||||
if (undo == null || undo.isEmpty()) {
|
if (undo == null || undo.isEmpty()) {
|
||||||
throw new GlobalException("下发mes失败后冲销失败!");
|
throw new GlobalException("下发mes失败后冲销失败!");
|
||||||
}
|
}else {
|
||||||
throw new GlobalException("发送到mes失败!");
|
throw new GlobalException("发送到mes失败!");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
untils.SaveUnDoInfo_ForSap(materialPackingKeyList, billCode, makeEventInfo);
|
untils.SaveUnDoInfo_ForSap(materialPackingKeyList, billCode, makeEventInfo);
|
||||||
}
|
}
|
||||||
@ -3396,13 +3398,13 @@ public class InvoiceServiceImpl implements InvoiceService {
|
|||||||
Boolean success = untils.sendMaterialInfoToMES_NEW(shipRequestName, "", materialPackingKeyList,billCode,eventUser);
|
Boolean success = untils.sendMaterialInfoToMES_NEW(shipRequestName, "", materialPackingKeyList,billCode,eventUser);
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
|
|
||||||
String undo = cancelShipInter(billCode, eventUser);
|
String undo = cancelShipInter(billCode, eventUser);
|
||||||
if (undo == null || undo.isEmpty()) {
|
if (undo == null || undo.isEmpty()) {
|
||||||
throw new GlobalException("下发mes失败后冲销失败!");
|
throw new GlobalException("下发mes失败后冲销失败!");
|
||||||
}
|
}else {
|
||||||
throw new GlobalException("发送到mes失败!");
|
throw new GlobalException("发送到mes失败!");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//更新MES管芯数据
|
//更新MES管芯数据
|
||||||
new MESServiceImpl().updateDurable_ByCostcenter(shipRequestName, "SDK", eventUser, materialPackingKeyList);
|
new MESServiceImpl().updateDurable_ByCostcenter(shipRequestName, "SDK", eventUser, materialPackingKeyList);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user