冲销Bugfix
This commit is contained in:
parent
c833d4ea70
commit
4c836a398d
@ -48,18 +48,26 @@ public class MESToWMSController {
|
|||||||
|
|
||||||
@ApiOperation(value = "取消物料入库请求")
|
@ApiOperation(value = "取消物料入库请求")
|
||||||
@RequestMapping(value = "/meswms_cancelship_request", method = RequestMethod.POST)
|
@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());
|
log.info("Received cancel ship request: {}", in.toJSONString());
|
||||||
String undoId = in.getJSONObject(0).getString("undoId");
|
String undoId = in.getJSONObject(0).getString("undoId");
|
||||||
String userId = in.getJSONObject(0).getString("userId");
|
String userId = in.getJSONObject(0).getString("userId");
|
||||||
// return mesToWMSService.cancelShipByMES(in);
|
// return mesToWMSService.cancelShipByMES(in);
|
||||||
return mesToWMSService.sapcprkUndo(undoId, userId);
|
try {
|
||||||
|
return mesToWMSService.sapcprkUndo(undoId, userId);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "物料入库请求")
|
@ApiOperation(value = "物料入库请求")
|
||||||
@RequestMapping(value = "/meswms_ship_request", method = RequestMethod.POST)
|
@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());
|
log.info("Received ship request: {}", in.toJSONString());
|
||||||
return mesToWMSService.shipByMES(in);
|
try {
|
||||||
|
return mesToWMSService.shipByMES(in);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user