提交 e7509f59 authored 作者: liuhaiquan's avatar liuhaiquan

修改创建货单一个车辆只能绑定一个定向单的拦截逻辑

上级 2eb68a62
......@@ -62,7 +62,7 @@ public abstract class GoodsOrderStrategy {
List<OrderGoodsTruckBind> binds = orderGoodsTruckBindDao.judgeTruckIsBindDxOrder(set);
if(CollectionUtils.isNotEmpty(binds)){
List<String> repeatBind = binds.stream().map(OrderGoodsTruckBind::getTruckNo).collect(Collectors.toList());
String trucks = repeatBind.stream().collect(Collectors.joining(", "));
String trucks = String.join(", ", repeatBind);
throw new ServiceSystemException(ResultEnum.DATA_ERROR,"已被定向单绑定车辆:"+ trucks);
}
//根据不同的订单类型创建不同的货单
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论