mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
📖 CRM:【产品】code review 产品的代码,补全对应的 todo list
This commit is contained in:
parent
b9f1e8ffaf
commit
2668e0cfeb
@ -40,6 +40,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
|
||||
private AdminUserApi adminUserApi;
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public Long createCustomerLimitConfig(CrmCustomerLimitConfigCreateReqVO createReqVO) {
|
||||
validateUserAndDept(createReqVO.getUserIds(), createReqVO.getDeptIds());
|
||||
// 插入
|
||||
@ -50,6 +51,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void updateCustomerLimitConfig(CrmCustomerLimitConfigUpdateReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateCustomerLimitConfigExists(updateReqVO.getId());
|
||||
@ -60,6 +62,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void deleteCustomerLimitConfig(Long id) {
|
||||
// 校验存在
|
||||
validateCustomerLimitConfigExists(id);
|
||||
|
@ -38,6 +38,7 @@ public class CrmCustomerPoolConfigServiceImpl implements CrmCustomerPoolConfigSe
|
||||
* @param saveReqVO 更新信息
|
||||
*/
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void saveCustomerPoolConfig(CrmCustomerPoolConfigSaveReqVO saveReqVO) {
|
||||
// 存在,则进行更新
|
||||
CrmCustomerPoolConfigDO dbConfig = getCustomerPoolConfig();
|
||||
|
@ -35,6 +35,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
|
||||
private CrmProductService crmProductService;
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public Long createProductCategory(CrmProductCategoryCreateReqVO createReqVO) {
|
||||
// 1.1 校验父分类存在
|
||||
validateParentProductCategory(createReqVO.getParentId());
|
||||
@ -47,6 +48,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void updateProductCategory(CrmProductCategoryCreateReqVO updateReqVO) {
|
||||
// 1.1 校验存在
|
||||
validateProductCategoryExists(updateReqVO.getId());
|
||||
@ -91,6 +93,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void deleteProductCategory(Long id) {
|
||||
// 1.1 校验存在
|
||||
validateProductCategoryExists(id);
|
||||
|
@ -48,6 +48,7 @@ public class CrmProductServiceImpl implements CrmProductService {
|
||||
private AdminUserApi adminUserApi;
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public Long createProduct(CrmProductSaveReqVO createReqVO) {
|
||||
// 校验产品
|
||||
adminUserApi.validateUserList(Collections.singleton(createReqVO.getOwnerUserId()));
|
||||
@ -66,6 +67,7 @@ public class CrmProductServiceImpl implements CrmProductService {
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void updateProduct(CrmProductSaveReqVO updateReqVO) {
|
||||
// 校验产品
|
||||
updateReqVO.setOwnerUserId(null); // 不修改负责人
|
||||
@ -102,6 +104,7 @@ public class CrmProductServiceImpl implements CrmProductService {
|
||||
}
|
||||
|
||||
@Override
|
||||
// TODO @puhui999:操作日志
|
||||
public void deleteProduct(Long id) {
|
||||
// 校验存在
|
||||
validateProductExists(id);
|
||||
|
Loading…
Reference in New Issue
Block a user