Commit 2668e0cfebd0b3793d6698dfa66ecb4444e97c8e

Authored by YunaiV
1 parent b9f1e8ff

📖 CRM:【产品】code review 产品的代码,补全对应的 todo list

yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/customer/CrmCustomerLimitConfigServiceImpl.java
... ... @@ -40,6 +40,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
40 40 private AdminUserApi adminUserApi;
41 41  
42 42 @Override
  43 + // TODO @puhui999:操作日志
43 44 public Long createCustomerLimitConfig(CrmCustomerLimitConfigCreateReqVO createReqVO) {
44 45 validateUserAndDept(createReqVO.getUserIds(), createReqVO.getDeptIds());
45 46 // 插入
... ... @@ -50,6 +51,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
50 51 }
51 52  
52 53 @Override
  54 + // TODO @puhui999:操作日志
53 55 public void updateCustomerLimitConfig(CrmCustomerLimitConfigUpdateReqVO updateReqVO) {
54 56 // 校验存在
55 57 validateCustomerLimitConfigExists(updateReqVO.getId());
... ... @@ -60,6 +62,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
60 62 }
61 63  
62 64 @Override
  65 + // TODO @puhui999:操作日志
63 66 public void deleteCustomerLimitConfig(Long id) {
64 67 // 校验存在
65 68 validateCustomerLimitConfigExists(id);
... ...
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/customer/CrmCustomerPoolConfigServiceImpl.java
... ... @@ -38,6 +38,7 @@ public class CrmCustomerPoolConfigServiceImpl implements CrmCustomerPoolConfigSe
38 38 * @param saveReqVO 更新信息
39 39 */
40 40 @Override
  41 + // TODO @puhui999:操作日志
41 42 public void saveCustomerPoolConfig(CrmCustomerPoolConfigSaveReqVO saveReqVO) {
42 43 // 存在,则进行更新
43 44 CrmCustomerPoolConfigDO dbConfig = getCustomerPoolConfig();
... ...
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/product/CrmProductCategoryServiceImpl.java
... ... @@ -35,6 +35,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
35 35 private CrmProductService crmProductService;
36 36  
37 37 @Override
  38 + // TODO @puhui999:操作日志
38 39 public Long createProductCategory(CrmProductCategoryCreateReqVO createReqVO) {
39 40 // 1.1 校验父分类存在
40 41 validateParentProductCategory(createReqVO.getParentId());
... ... @@ -47,6 +48,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
47 48 }
48 49  
49 50 @Override
  51 + // TODO @puhui999:操作日志
50 52 public void updateProductCategory(CrmProductCategoryCreateReqVO updateReqVO) {
51 53 // 1.1 校验存在
52 54 validateProductCategoryExists(updateReqVO.getId());
... ... @@ -91,6 +93,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
91 93 }
92 94  
93 95 @Override
  96 + // TODO @puhui999:操作日志
94 97 public void deleteProductCategory(Long id) {
95 98 // 1.1 校验存在
96 99 validateProductCategoryExists(id);
... ...
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/product/CrmProductServiceImpl.java
... ... @@ -48,6 +48,7 @@ public class CrmProductServiceImpl implements CrmProductService {
48 48 private AdminUserApi adminUserApi;
49 49  
50 50 @Override
  51 + // TODO @puhui999:操作日志
51 52 public Long createProduct(CrmProductSaveReqVO createReqVO) {
52 53 // 校验产品
53 54 adminUserApi.validateUserList(Collections.singleton(createReqVO.getOwnerUserId()));
... ... @@ -66,6 +67,7 @@ public class CrmProductServiceImpl implements CrmProductService {
66 67 }
67 68  
68 69 @Override
  70 + // TODO @puhui999:操作日志
69 71 public void updateProduct(CrmProductSaveReqVO updateReqVO) {
70 72 // 校验产品
71 73 updateReqVO.setOwnerUserId(null); // 不修改负责人
... ... @@ -102,6 +104,7 @@ public class CrmProductServiceImpl implements CrmProductService {
102 104 }
103 105  
104 106 @Override
  107 + // TODO @puhui999:操作日志
105 108 public void deleteProduct(Long id) {
106 109 // 校验存在
107 110 validateProductExists(id);
... ...