fix: 结算单空指针异常
@@ -2061,7 +2061,8 @@ public class FormalSettlementServiceImpl extends BaseServiceImpl<FormalSettlemen
|
||||
.orderByAsc(FormalSettlementDetailFee::getLineNo)).stream()
|
||||
.collect(Collectors.groupingBy(FormalSettlementDetailFee::getFormalSettlementDetailId, LinkedHashMap::new, Collectors.toList()));
|
||||
for (FormalSettlementDetail detail : details) {
|
||||
Waybill waybill = waybillMap.get(detail.getWaybillId());
|
||||
// waybillMap 为不可变空 Map(全部明细均无运单号时),get(null) 会抛 NPE,需先判空
|
||||
Waybill waybill = detail.getWaybillId() == null ? null : waybillMap.get(detail.getWaybillId());
|
||||
LinkedHashSet<String> goodsNames = new LinkedHashSet<>();
|
||||
LinkedHashSet<String> goodsTypes = new LinkedHashSet<>();
|
||||
if (waybill != null) {
|
||||
|
||||
|
After Width: | Height: | Size: 238 KiB |
|
After Width: | Height: | Size: 234 KiB |
|
After Width: | Height: | Size: 259 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 305 KiB |
|
After Width: | Height: | Size: 180 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 293 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 219 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 299 KiB |
|
After Width: | Height: | Size: 279 KiB |
|
After Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 291 KiB |
|
After Width: | Height: | Size: 191 KiB |