提交 31bab47f 作者: zhangqiliang

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

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