Merge branch 'main' of http://162.14.99.253:3000/10539622/2025-03-JS-SDK-svr
This commit is contained in:
commit
78bb0fcdbc
@ -352,7 +352,8 @@ public class ToSAPServiceImpl {
|
||||
rcode = returnJsonObject.get("STATUS").toString();
|
||||
rmsg = returnJsonObject.get("MSGTXT").toString();
|
||||
if ("S".equals(rcode)) {
|
||||
undoId2 = returnJsonObject.get("MBLNR").toString()+"_"+returnJsonObject.get("MJAHR").toString();//将物料凭证号与凭证年度拼在一起
|
||||
undoId2 = returnJsonObject.get("MBLNR") == null ? "" : returnJsonObject.get("MBLNR").toString()
|
||||
+"_"+returnJsonObject.get("MJAHR") == null ? "" : returnJsonObject.get("MJAHR").toString();//将物料凭证号与凭证年度拼在一起
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("WMS请求SAP异常:" + e.getMessage(), e);
|
||||
|
@ -48,18 +48,26 @@ public class MESToWMSController {
|
||||
|
||||
@ApiOperation(value = "取消物料入库请求")
|
||||
@RequestMapping(value = "/meswms_cancelship_request", method = RequestMethod.POST)
|
||||
public AjaxResult cancelShipByMES(@RequestBody JSONArray in) throws Exception {
|
||||
public AjaxResult cancelShipByMES(@RequestBody JSONArray in) {
|
||||
log.info("Received cancel ship request: {}", in.toJSONString());
|
||||
String undoId = in.getJSONObject(0).getString("undoId");
|
||||
String userId = in.getJSONObject(0).getString("userId");
|
||||
// return mesToWMSService.cancelShipByMES(in);
|
||||
try {
|
||||
return mesToWMSService.sapcprkUndo(undoId, userId);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "物料入库请求")
|
||||
@RequestMapping(value = "/meswms_ship_request", method = RequestMethod.POST)
|
||||
public AjaxResult shipByMES(@RequestBody JSONArray in) throws Exception {
|
||||
public AjaxResult shipByMES(@RequestBody JSONArray in) {
|
||||
log.info("Received ship request: {}", in.toJSONString());
|
||||
try {
|
||||
return mesToWMSService.shipByMES(in);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user