|
@@ -231,7 +231,9 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
List<Long> customerIds = new ArrayList<>();
|
|
List<Long> customerIds = new ArrayList<>();
|
|
for (ProductInfoVo record : records) {
|
|
for (ProductInfoVo record : records) {
|
|
ProductInfoEhsdJson productInfoEhsdJson = JSONObject.parseObject(record.getEhsdJson(), ProductInfoEhsdJson.class);
|
|
ProductInfoEhsdJson productInfoEhsdJson = JSONObject.parseObject(record.getEhsdJson(), ProductInfoEhsdJson.class);
|
|
- customerIds.add(Long.parseLong(productInfoEhsdJson.getCustomerId()));
|
|
|
|
|
|
+ if(ObjectUtil.isNotEmpty(productInfoEhsdJson.getCustomerId())) {
|
|
|
|
+ customerIds.add(Long.parseLong(productInfoEhsdJson.getCustomerId()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (ObjectUtil.isNotEmpty(customerIds)) {
|
|
if (ObjectUtil.isNotEmpty(customerIds)) {
|
|
Map<Long, String> customerMap = customerService.mapKV(Customer::getId, Customer::getName, q -> q.in(Customer::getId, customerIds));
|
|
Map<Long, String> customerMap = customerService.mapKV(Customer::getId, Customer::getName, q -> q.in(Customer::getId, customerIds));
|