| | |
| | | default void afterTaskCreated(StoreInTaskContext context, WrkMast wrkMast) { |
| | | } |
| | | |
| | | default void onApplyFailed(StoreInTaskContext context, InTaskApplyResult result) { |
| | | String warning = "请求入库失败,WMS返回=" + buildFailureMessage(result); |
| | | default void setSystemWarning(StoreInTaskContext context, String warning) { |
| | | if (context == null || context.getStationProtocol() == null) { |
| | | return; |
| | | } |
| | | context.getStationProtocol().setSystemWarning(warning); |
| | | syncWarningToBackStation(context, warning); |
| | | } |
| | | |
| | | default void clearSystemWarning(StoreInTaskContext context) { |
| | | setSystemWarning(context, ""); |
| | | } |
| | | |
| | | default void onApplyFailed(StoreInTaskContext context, InTaskApplyResult result) { |
| | | String warning = "请求入库失败,WMS返回=" + buildFailureMessage(result); |
| | | setSystemWarning(context, warning); |
| | | } |
| | | |
| | | default String buildFailureMessage(InTaskApplyResult result) { |
| | | if (!Cools.isEmpty(result.getResponse())) { |
| | | return result.getResponse(); |