| | |
| | | } |
| | | |
| | | default void onApplyFailed(StoreInTaskContext context, InTaskApplyResult result) { |
| | | String warning = "请求入库失败,WMS返回=" + buildFailureMessage(result); |
| | | String warning = "请求入库失败,WMS返回=" + result.getResponse() + ",WCS响应=" + result.getMessage(); |
| | | setSystemWarning(context, warning); |
| | | } |
| | | |
| | | default String buildFailureMessage(InTaskApplyResult result) { |
| | | if (!Cools.isEmpty(result.getResponse())) { |
| | | return result.getResponse(); |
| | | } |
| | | return result.getMessage(); |
| | | } |
| | | |
| | | default void syncWarningToBackStation(StoreInTaskContext context, String warning) { |