feat(oms):出库导入校验送貨線號/車次并回填线路名称
1. 出库导入(预约/执行两侧)增加validateLineAndShuttle校验: 送貨線號/車次缺失直接报错;线路须在WMS线路管理存在(route_code精确匹配); 车次须在该线路车次清单(shuttle_json)内;校验通过回填lineName, 线路/车次一并落lineCode/lineName/shuttleNo。 2. WmsServiceFeign新增listLineManagement(复用WMS /lineManagementApi/listByApp) 供OMS跨库查线路,附降级实现;顺带移除FeignClient写死的本机url,恢复Nacos服务发现。 3. 执行侧DynamicDeliveryExcelListener(关键字版)补送貨線號/車次独立成行的解析, 原实现仅支持与送貨日期同行取值,该模板为分行布局导致解析不到。
This commit is contained in:
@@ -151,4 +151,12 @@ public interface WmsServiceFeign {
|
||||
@ApiOperation("OMS批量签名-同步WMS入/出库单签名字段")
|
||||
@PostMapping("/stockSignatureApi/batchSign")
|
||||
public AjaxResult batchSignWms(@RequestBody SignatureBatchFeignDTO dto);
|
||||
|
||||
/**
|
||||
* OMS查询WMS线路管理列表(按线路编码模糊查,OMS侧自行精确匹配),
|
||||
* 出库导入时校验送貨線號/車次并回填线路名称
|
||||
*/
|
||||
@ApiOperation("OMS查询WMS线路管理列表")
|
||||
@GetMapping("/lineManagementApi/listByApp")
|
||||
public AjaxResult listLineManagement(@RequestParam("routeCode") String routeCode);
|
||||
}
|
||||
+6
@@ -125,6 +125,12 @@ public class RemoteWmsFallbackFactory implements FallbackFactory<WmsServiceFeign
|
||||
log.error("WMS批量签名调用失败");
|
||||
return AjaxResult.error("WMS批量签名调用失败:" + cause.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult listLineManagement(String routeCode) {
|
||||
log.error("OMS查询WMS线路管理失败, routeCode:{}", routeCode);
|
||||
return AjaxResult.error("WMS线路管理查询失败:" + cause.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user