|
|
@@ -1763,7 +1763,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
} else {
|
|
|
persistProduct.setSpec((String) specResultMap.getData());
|
|
|
}
|
|
|
- if (productPrivate.getStandard() == IntegerConstant.NO_SHORT) {
|
|
|
+ if (productPrivate.getStandard() == IntegerConstant.NO_SHORT || StringUtils.isEmpty(productPrivate.getCmpUuId())) {
|
|
|
Component component = findBybrNameAndcmpCode(productPrivate.getPbranden(), productPrivate.getPcmpcode());
|
|
|
if (component != null) {
|
|
|
//更新物料信息
|
|
|
@@ -2160,7 +2160,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
ps.setObject(11, t.getB2cBranden());
|
|
|
ps.setObject(12, t.getBrandId());
|
|
|
ps.setObject(13, t.getBranduuid());
|
|
|
- ps.setObject(14, (t.getComponentUuId() == null ? 0 : 1));
|
|
|
+ ps.setObject(14, (StringUtilB2C.isEmpty(t.getComponentUuId()) ? 0 : 1));
|
|
|
ps.setObject(15, new Date(System.currentTimeMillis()));
|
|
|
ps.setObject(16, t.getSpec());
|
|
|
ps.setObject(17, t.getKindName());
|
|
|
@@ -2388,8 +2388,9 @@ public class ProductServiceImpl implements ProductService {
|
|
|
for (Integer id : list) {
|
|
|
prids.add(Long.valueOf(id));
|
|
|
}
|
|
|
- List<Product> products = productDao.findProductInId(prids);
|
|
|
- return products;
|
|
|
+ if (CollectionUtils.isNotEmpty(prids)) {
|
|
|
+ return productDao.findProductInId(prids);
|
|
|
+ }
|
|
|
}
|
|
|
return new ArrayList<>();
|
|
|
}
|