|
|
@@ -2885,7 +2885,7 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
if (!StringUtils.isEmpty(goods.getUuid())) {
|
|
|
uuids.add(goods.getUuid());
|
|
|
}
|
|
|
- if (goods.getProductid() == null) {
|
|
|
+ if (goods.getProductid() != null) {
|
|
|
Product product = productDao.findOne(goods.getProductid());
|
|
|
if (product != null) {
|
|
|
Integer count = product.getBatchCount();
|