|
@@ -205,11 +205,14 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
billetQuery.in(BilletBasicInfo::getBilletNo, billetNos);
|
|
billetQuery.in(BilletBasicInfo::getBilletNo, billetNos);
|
|
List<BilletBasicInfo> basicList = billetBasicInfoService.list(billetQuery);
|
|
List<BilletBasicInfo> basicList = billetBasicInfoService.list(billetQuery);
|
|
|
|
|
|
- billetToAssemblyMap = basicList.stream().collect(Collectors.toMap(
|
|
|
|
- BilletBasicInfo::getBilletNo,
|
|
|
|
- BilletBasicInfo::getAssemblyNumber,
|
|
|
|
- (existing, replacement) -> existing // 遇重复保留第一个
|
|
|
|
- ));
|
|
|
|
|
|
+ billetToAssemblyMap = basicList.stream()
|
|
|
|
+ .filter(info -> StringUtils.isNotBlank(info.getBilletNo()) && StringUtils.isNotBlank(info.getAssemblyNumber()))
|
|
|
|
+ .collect(Collectors.toMap(
|
|
|
|
+ BilletBasicInfo::getBilletNo,
|
|
|
|
+ BilletBasicInfo::getAssemblyNumber,
|
|
|
|
+ (existing, replacement) -> existing // 遇重复保留第一个
|
|
|
|
+ ));
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
// 7. 遍历 StorageBill,填充 amountTotal 和 assemblyNumber
|
|
// 7. 遍历 StorageBill,填充 amountTotal 和 assemblyNumber
|