| | |
| | | throw new CoolException("reason仅支持1或2"); |
| | | } |
| | | |
| | | /** WCS 返回非成功码时抛错 */ |
| | | private void requireWcsPauseOk(R wcsR) { |
| | | if (wcsR == null) { |
| | | throw new CoolException("WCS取消出库任务无返回"); |
| | | } |
| | | Object codeObj = wcsR.get("code"); |
| | | int code = codeObj instanceof Number ? ((Number) codeObj).intValue() : -1; |
| | | if (code != 200) { |
| | | Object msgObj = wcsR.get("msg"); |
| | | throw new CoolException(msgObj == null ? "WCS取消出库任务失败" : String.valueOf(msgObj)); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public R pakoutOrderExecute(OpenOrderPakoutExecuteParam param) { |
| | | return null; |