|
@@ -121,7 +121,9 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
public int insertFsStoreProduct(FsStoreProductScrm fsStoreProduct)
|
|
public int insertFsStoreProduct(FsStoreProductScrm fsStoreProduct)
|
|
{
|
|
{
|
|
fsStoreProduct.setCreateTime(DateUtils.getNowDate());
|
|
fsStoreProduct.setCreateTime(DateUtils.getNowDate());
|
|
- return fsStoreProductMapper.insertFsStoreProduct(fsStoreProduct);
|
|
|
|
|
|
+ fsStoreProductMapper.insertFsStoreProduct(fsStoreProduct);
|
|
|
|
+ storeAuditLogUtil.addOperLog(fsStoreProduct.getProductId());
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -134,6 +136,11 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
public int updateFsStoreProduct(FsStoreProductScrm fsStoreProduct)
|
|
public int updateFsStoreProduct(FsStoreProductScrm fsStoreProduct)
|
|
{
|
|
{
|
|
fsStoreProduct.setUpdateTime(DateUtils.getNowDate());
|
|
fsStoreProduct.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
+ storeAuditLogUtil.addOperLog(fsStoreProduct.getProductId());
|
|
|
|
+ //对已上架的商品进行修改需要重新审核
|
|
|
|
+ if(1 == fsStoreProduct.getIsShow() && "1".equals(fsStoreProduct.getIsAudit())){
|
|
|
|
+ fsStoreProduct.setIsAudit("0");
|
|
|
|
+ }
|
|
return fsStoreProductMapper.updateFsStoreProduct(fsStoreProduct);
|
|
return fsStoreProductMapper.updateFsStoreProduct(fsStoreProduct);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -313,6 +320,10 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
product.setCompanyIds(param.getCompanyIds());
|
|
product.setCompanyIds(param.getCompanyIds());
|
|
product.setVideo(param.getVideo());
|
|
product.setVideo(param.getVideo());
|
|
if(param.getProductId() != null){
|
|
if(param.getProductId() != null){
|
|
|
|
+ //对已上架的商品进行修改需要重新审核
|
|
|
|
+ if(1 == product.getIsShow() && "1".equals(product.getIsAudit())){
|
|
|
|
+ product.setIsAudit("0");
|
|
|
|
+ }
|
|
fsStoreProductMapper.updateFsStoreProduct(product);
|
|
fsStoreProductMapper.updateFsStoreProduct(product);
|
|
}
|
|
}
|
|
else{
|
|
else{
|