销售退货(pda)入库清除shiprequestname栏位
This commit is contained in:
parent
a3c5d53f38
commit
523b88391a
@ -555,7 +555,7 @@ public class MaterialReceiveActController {
|
||||
EventInfoUtil util = new EventInfoUtil();
|
||||
makeEventInfo = util.makeEventInfo("NormalStockInForSDK", user, "NormalStockInForSDK");
|
||||
// 更新入库凭证
|
||||
SDKMaterialPackingServiceImpl.updateUndoIdByReceive(receiveRequestName, undoId, makeEventInfo);
|
||||
SDKMaterialPackingServiceImpl.updateUndoIdByReceive(receiveRequestName, undoId, makeEventInfo, sign);
|
||||
/**
|
||||
* updateUndoIdByReceive和updateStockState都在MATERIALPACKINGHISTORY表插入了数据,导致有重复的入库记录
|
||||
* 为了不影响后续通过undoId作为条件处理其它业务,新建方法updateMaterialPackingUndoIdByReceive,只更新undoId,不插入MATERIALPACKINGHISTORY表
|
||||
|
@ -389,7 +389,7 @@ public class SDKMaterialPackingServiceImpl extends CommonServiceDAO<MaterialPack
|
||||
|
||||
}
|
||||
|
||||
public void updateUndoIdByReceive (String receiveRequestName,String UNDOID,EventInfo eventInfo) {
|
||||
public void updateUndoIdByReceive (String receiveRequestName,String UNDOID,EventInfo eventInfo, String sign) {
|
||||
String sql = "SELECT MATERIALPACKINGNAME, SITENAME FROM MATERIALPACKING WHERE RECEIVEREQUESTNAME = :RECEIVEREQUESTNAME AND STOCKSTATE = 'Created' ";
|
||||
Map<String, Object> hashMap = new HashMap<String,Object> ();
|
||||
hashMap.put("RECEIVEREQUESTNAME", receiveRequestName);
|
||||
@ -398,6 +398,9 @@ public class SDKMaterialPackingServiceImpl extends CommonServiceDAO<MaterialPack
|
||||
SetEventInfo setEventInfo = new SetEventInfo();
|
||||
Map<String, Object> bindMap = new HashMap<String, Object>();
|
||||
bindMap.put("unDoID",UNDOID);
|
||||
if ("app".equals(sign)) {
|
||||
bindMap.put("shipRequestName", "");
|
||||
}
|
||||
setEventInfo.setUserColumns(bindMap);
|
||||
MaterialPackingKey materialPackingKey = new MaterialPackingKey(map.get("SITENAME").toString(), map.get("MATERIALPACKINGNAME").toString());
|
||||
MaterialPackingServiceProxy.getMaterialPackingService().setEvent(materialPackingKey, eventInfo, setEventInfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user