Commit a886ad978553427ef532bf295e81fd9014e26a31
1 parent
410c551e
📖 CRM:跟进记录的 code review
Showing
2 changed files
with
5 additions
and
1 deletions
yudao-module-crm/yudao-module-crm-api/src/main/java/cn/iocoder/yudao/module/crm/enums/DictTypeConstants.java
| @@ -13,6 +13,6 @@ public interface DictTypeConstants { | @@ -13,6 +13,6 @@ public interface DictTypeConstants { | ||
| 13 | String CRM_AUDIT_STATUS = "crm_audit_status"; // CRM 审批状态 | 13 | String CRM_AUDIT_STATUS = "crm_audit_status"; // CRM 审批状态 |
| 14 | String CRM_PRODUCT_UNIT = "crm_product_unit"; // CRM 产品单位 | 14 | String CRM_PRODUCT_UNIT = "crm_product_unit"; // CRM 产品单位 |
| 15 | String CRM_PRODUCT_STATUS = "crm_product_status"; // CRM 产品状态 | 15 | String CRM_PRODUCT_STATUS = "crm_product_status"; // CRM 产品状态 |
| 16 | - String CRM_FOLLOW_UP_TYPE = "crm_follow_up_type"; // 跟进方式 | 16 | + String CRM_FOLLOW_UP_TYPE = "crm_follow_up_type"; // CRM 跟进方式 |
| 17 | 17 | ||
| 18 | } | 18 | } |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/followup/CrmFollowUpRecordServiceImpl.java
| @@ -25,6 +25,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | @@ -25,6 +25,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | ||
| 25 | @Resource | 25 | @Resource |
| 26 | private CrmFollowUpRecordMapper crmFollowUpRecordMapper; | 26 | private CrmFollowUpRecordMapper crmFollowUpRecordMapper; |
| 27 | 27 | ||
| 28 | + // TODO @puhui999:数据权限 | ||
| 28 | @Override | 29 | @Override |
| 29 | public Long createFollowUpRecord(CrmFollowUpRecordSaveReqVO createReqVO) { | 30 | public Long createFollowUpRecord(CrmFollowUpRecordSaveReqVO createReqVO) { |
| 30 | CrmFollowUpRecordDO followUpRecord = BeanUtils.toBean(createReqVO, CrmFollowUpRecordDO.class); | 31 | CrmFollowUpRecordDO followUpRecord = BeanUtils.toBean(createReqVO, CrmFollowUpRecordDO.class); |
| @@ -34,6 +35,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | @@ -34,6 +35,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | ||
| 34 | return followUpRecord.getId(); | 35 | return followUpRecord.getId(); |
| 35 | } | 36 | } |
| 36 | 37 | ||
| 38 | + // TODO @puhui999:不能编辑~~~ | ||
| 37 | @Override | 39 | @Override |
| 38 | public void updateFollowUpRecord(CrmFollowUpRecordSaveReqVO updateReqVO) { | 40 | public void updateFollowUpRecord(CrmFollowUpRecordSaveReqVO updateReqVO) { |
| 39 | // 校验存在 | 41 | // 校验存在 |
| @@ -43,6 +45,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | @@ -43,6 +45,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | ||
| 43 | crmFollowUpRecordMapper.updateById(updateObj); | 45 | crmFollowUpRecordMapper.updateById(updateObj); |
| 44 | } | 46 | } |
| 45 | 47 | ||
| 48 | + // TODO @puhui999:数据权限 | ||
| 46 | @Override | 49 | @Override |
| 47 | public void deleteFollowUpRecord(Long id) { | 50 | public void deleteFollowUpRecord(Long id) { |
| 48 | // 校验存在 | 51 | // 校验存在 |
| @@ -62,6 +65,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | @@ -62,6 +65,7 @@ public class CrmFollowUpRecordServiceImpl implements CrmFollowUpRecordService { | ||
| 62 | return crmFollowUpRecordMapper.selectById(id); | 65 | return crmFollowUpRecordMapper.selectById(id); |
| 63 | } | 66 | } |
| 64 | 67 | ||
| 68 | + // TODO @puhui999:数据权限 | ||
| 65 | @Override | 69 | @Override |
| 66 | public PageResult<CrmFollowUpRecordDO> getFollowUpRecordPage(CrmFollowUpRecordPageReqVO pageReqVO) { | 70 | public PageResult<CrmFollowUpRecordDO> getFollowUpRecordPage(CrmFollowUpRecordPageReqVO pageReqVO) { |
| 67 | return crmFollowUpRecordMapper.selectPage(pageReqVO); | 71 | return crmFollowUpRecordMapper.selectPage(pageReqVO); |