|
@@ -502,7 +502,7 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if("纯正堂".equals(cloudHostProper.getCompanyName())){
|
|
if("纯正堂".equals(cloudHostProper.getCompanyName())){
|
|
|
product.setIsAudit("1");
|
|
product.setIsAudit("1");
|
|
@@ -556,6 +556,8 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
|
|
|
+ //新添加的商品默认都应该不是上架状态,流程都是需要先审核。即使你新增时候选择了上架状态,也应该是上架并待审核才对。
|
|
|
|
|
+ product.setIsShow(0);
|
|
|
fsStoreProductMapper.insertFsStoreProduct(product);
|
|
fsStoreProductMapper.insertFsStoreProduct(product);
|
|
|
}
|
|
}
|
|
|
storeAuditLogUtil.addOperLog(product.getProductId());
|
|
storeAuditLogUtil.addOperLog(product.getProductId());
|
|
@@ -1277,6 +1279,8 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
@Override
|
|
@Override
|
|
|
@Transactional
|
|
@Transactional
|
|
|
public void batchAudit(ProductAuditDTO auditDTO) {
|
|
public void batchAudit(ProductAuditDTO auditDTO) {
|
|
|
|
|
+ //如果审核通过就是上架,如果审核不通过就是处于下架状态,为了清晰这里可以添加枚举(0未审核1审核通过2审核退回),
|
|
|
|
|
+ // 正常情况是退回后可以申请重新上架的如果不通过2,那么show就变回0(直接在sql中去做的),按照原有逻辑去做
|
|
|
fsStoreProductMapper.batchAudit(auditDTO);
|
|
fsStoreProductMapper.batchAudit(auditDTO);
|
|
|
storeAuditLogUtil.addBatchAuditList(auditDTO.getProductIds(),auditDTO.getReason(),auditDTO.getAttachImage());
|
|
storeAuditLogUtil.addBatchAuditList(auditDTO.getProductIds(),auditDTO.getReason(),auditDTO.getAttachImage());
|
|
|
}
|
|
}
|
|
@@ -1426,7 +1430,9 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
copyProductInfo.setProductId(null);
|
|
copyProductInfo.setProductId(null);
|
|
|
copyProductInfo.setCreateTime(new Date());
|
|
copyProductInfo.setCreateTime(new Date());
|
|
|
copyProductInfo.setUpdateTime(new Date());
|
|
copyProductInfo.setUpdateTime(new Date());
|
|
|
|
|
+ //复制过来的商品应该是0审核,未上架的状态
|
|
|
copyProductInfo.setIsAudit("0");
|
|
copyProductInfo.setIsAudit("0");
|
|
|
|
|
+ copyProductInfo.setIsShow(0);
|
|
|
|
|
|
|
|
//插入复制商品
|
|
//插入复制商品
|
|
|
if(fsStoreProductMapper.insertFsStoreProduct(copyProductInfo) < 1){
|
|
if(fsStoreProductMapper.insertFsStoreProduct(copyProductInfo) < 1){
|