Commit 40eaae0a authored by daniel's avatar daniel

feat(bag): 申请存包处理

parent ad916e08
......@@ -140,7 +140,10 @@ public class BagDeliveryService {
return Result.fail().setMsg("存包站点不能为空");
}
List<BagDropPoints> points = bagDeliveryMapper.queryBagDropPoints(bagDelivery.getCmptId());
Set<Integer> pointSet = points.stream().map(BagDropPoints::getId).collect(Collectors.toSet());
// 转换为字符串集合
Set<String> pointSet = points.stream()
.map(p -> String.valueOf(p.getId()))
.collect(Collectors.toSet());
if(pointSet == null || !pointSet.contains(bagDelivery.getStoragePoint())){
return Result.fail().setMsg("存包点不存在");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment