|
|
@ -2747,7 +2747,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
// 校验是否已经有了客户物料 没有则新增 |
|
|
// 校验是否已经有了客户物料 没有则新增 |
|
|
|
|
|
|
|
|
List<PartInformationVo> customerPartToAdd = partList.stream() |
|
|
List<PartInformationVo> customerPartToAdd = partList.stream() |
|
|
.filter(a -> partInformationMapper.getProjectCustomerPartNo(a) == null) |
|
|
|
|
|
|
|
|
.filter(a -> partInformationMapper.getProjectCustomerPartNo(a).isEmpty()) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
if (!customerPartToAdd.isEmpty()) { |
|
|
if (!customerPartToAdd.isEmpty()) { |
|
|
partInformationMapper.addCustomerPartInfo(customerPartToAdd); |
|
|
partInformationMapper.addCustomerPartInfo(customerPartToAdd); |
|
|
|