mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +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;
|
private AdminUserApi adminUserApi;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public Long createCustomerLimitConfig(CrmCustomerLimitConfigCreateReqVO createReqVO) {
|
public Long createCustomerLimitConfig(CrmCustomerLimitConfigCreateReqVO createReqVO) {
|
||||||
validateUserAndDept(createReqVO.getUserIds(), createReqVO.getDeptIds());
|
validateUserAndDept(createReqVO.getUserIds(), createReqVO.getDeptIds());
|
||||||
// 插入
|
// 插入
|
||||||
@ -50,6 +51,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void updateCustomerLimitConfig(CrmCustomerLimitConfigUpdateReqVO updateReqVO) {
|
public void updateCustomerLimitConfig(CrmCustomerLimitConfigUpdateReqVO updateReqVO) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateCustomerLimitConfigExists(updateReqVO.getId());
|
validateCustomerLimitConfigExists(updateReqVO.getId());
|
||||||
@ -60,6 +62,7 @@ public class CrmCustomerLimitConfigServiceImpl implements CrmCustomerLimitConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void deleteCustomerLimitConfig(Long id) {
|
public void deleteCustomerLimitConfig(Long id) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateCustomerLimitConfigExists(id);
|
validateCustomerLimitConfigExists(id);
|
||||||
|
@ -38,6 +38,7 @@ public class CrmCustomerPoolConfigServiceImpl implements CrmCustomerPoolConfigSe
|
|||||||
* @param saveReqVO 更新信息
|
* @param saveReqVO 更新信息
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void saveCustomerPoolConfig(CrmCustomerPoolConfigSaveReqVO saveReqVO) {
|
public void saveCustomerPoolConfig(CrmCustomerPoolConfigSaveReqVO saveReqVO) {
|
||||||
// 存在,则进行更新
|
// 存在,则进行更新
|
||||||
CrmCustomerPoolConfigDO dbConfig = getCustomerPoolConfig();
|
CrmCustomerPoolConfigDO dbConfig = getCustomerPoolConfig();
|
||||||
|
@ -35,6 +35,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
|
|||||||
private CrmProductService crmProductService;
|
private CrmProductService crmProductService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public Long createProductCategory(CrmProductCategoryCreateReqVO createReqVO) {
|
public Long createProductCategory(CrmProductCategoryCreateReqVO createReqVO) {
|
||||||
// 1.1 校验父分类存在
|
// 1.1 校验父分类存在
|
||||||
validateParentProductCategory(createReqVO.getParentId());
|
validateParentProductCategory(createReqVO.getParentId());
|
||||||
@ -47,6 +48,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void updateProductCategory(CrmProductCategoryCreateReqVO updateReqVO) {
|
public void updateProductCategory(CrmProductCategoryCreateReqVO updateReqVO) {
|
||||||
// 1.1 校验存在
|
// 1.1 校验存在
|
||||||
validateProductCategoryExists(updateReqVO.getId());
|
validateProductCategoryExists(updateReqVO.getId());
|
||||||
@ -91,6 +93,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void deleteProductCategory(Long id) {
|
public void deleteProductCategory(Long id) {
|
||||||
// 1.1 校验存在
|
// 1.1 校验存在
|
||||||
validateProductCategoryExists(id);
|
validateProductCategoryExists(id);
|
||||||
|
@ -48,6 +48,7 @@ public class CrmProductServiceImpl implements CrmProductService {
|
|||||||
private AdminUserApi adminUserApi;
|
private AdminUserApi adminUserApi;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public Long createProduct(CrmProductSaveReqVO createReqVO) {
|
public Long createProduct(CrmProductSaveReqVO createReqVO) {
|
||||||
// 校验产品
|
// 校验产品
|
||||||
adminUserApi.validateUserList(Collections.singleton(createReqVO.getOwnerUserId()));
|
adminUserApi.validateUserList(Collections.singleton(createReqVO.getOwnerUserId()));
|
||||||
@ -66,6 +67,7 @@ public class CrmProductServiceImpl implements CrmProductService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void updateProduct(CrmProductSaveReqVO updateReqVO) {
|
public void updateProduct(CrmProductSaveReqVO updateReqVO) {
|
||||||
// 校验产品
|
// 校验产品
|
||||||
updateReqVO.setOwnerUserId(null); // 不修改负责人
|
updateReqVO.setOwnerUserId(null); // 不修改负责人
|
||||||
@ -102,6 +104,7 @@ public class CrmProductServiceImpl implements CrmProductService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
// TODO @puhui999:操作日志
|
||||||
public void deleteProduct(Long id) {
|
public void deleteProduct(Long id) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateProductExists(id);
|
validateProductExists(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user