提交 31bab47f 作者: zhangqiliang

辅材发货不用考虑收货仓库

父级 827b6a3c
......@@ -73,9 +73,11 @@ public class DeliveryController {
//String orderid= snowFlakeService.getNextId(0,0)+"";
return new BaseResponse(deliveryAddVoList.stream()
.map(da->{
if(!ProductType.辅材.name().equals(da.getIsproduct())){
if (da.getArrivalWarehouseId().equals(da.getWarehouseId())){
throw new ServiceException("400","发货仓库和到货仓库请选择不同的仓库!");
}
}
List<String> list=new ArrayList<>();
if (list.contains(da.getInstallOrder())){
throw new ServiceException("400","不能发重复的订单号!");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论