|
|
@@ -1739,7 +1739,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
return new ResultMap(CodeType.NOT_EXiST, "数据库找不到对应的信息,请重新操作");
|
|
|
}
|
|
|
Product persistProduct = productDao.findOne(id);
|
|
|
- if (productPrivate.getB2cEnabled() != IntegerConstant.YES_SHORT) {
|
|
|
+ if (IntegerConstant.NO_SHORT.equals(productPrivate.getB2cEnabled())) {
|
|
|
return new ResultMap(CodeType.NOT_PERMIT, "该物料商城未启用,不能操作");
|
|
|
}
|
|
|
persistProduct.setMinPackQty(product.getMinPackQty());
|
|
|
@@ -2680,7 +2680,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
private void bindToPerson(Product productInfo, Long userUU, Long enUU) {
|
|
|
List<ProductPerson> productPersonList = productPersonDao.findByProductIdAndUserUU(productInfo.getId(), userUU);
|
|
|
if (CollectionUtils.isEmpty(productPersonList)) {
|
|
|
- ProductPerson productPerson = new ProductPerson(userUU, enUU, productInfo.getId());
|
|
|
+ ProductPerson productPerson = new ProductPerson(enUU, userUU, productInfo.getId());
|
|
|
productPerson = productPersonDao.save(productPerson);
|
|
|
logger.info("个人物料", "新增个人物料", "通过卖家中心单个物料上传绑定个人物料", productInfo.getProdNum(), productPerson.getId());
|
|
|
}
|