Commit 722b33513c53ecaef02a1a6da1dadb9fb5ea93e7
1 parent
6a934842
📖 CRM:code review 线索模块
Showing
1 changed file
with
2 additions
and
0 deletions
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/clue/CrmClueServiceImpl.java
| ... | ... | @@ -135,6 +135,7 @@ public class CrmClueServiceImpl implements CrmClueService { |
| 135 | 135 | if (CollUtil.isEmpty(clues)) { |
| 136 | 136 | throw exception(CLUE_NOT_EXISTS); |
| 137 | 137 | } |
| 138 | + // TODO @min:如果已经转化,则不能重复转化 | |
| 138 | 139 | |
| 139 | 140 | // 遍历线索,创建对应的客户 |
| 140 | 141 | clues.forEach(clue -> { |
| ... | ... | @@ -142,6 +143,7 @@ public class CrmClueServiceImpl implements CrmClueService { |
| 142 | 143 | customerService.createCustomer(CrmCustomerConvert.INSTANCE.convert(clue), userId); |
| 143 | 144 | // 更新线索状态 |
| 144 | 145 | // TODO @min:新建一个 CrmClueDO 去更新。尽量规避直接用原本的对象去更新。因为这样万一并发更新,会存在覆盖的问题。 |
| 146 | + // TODO @puhui999:如果有跟进记录,需要一起转过去; | |
| 145 | 147 | clue.setTransformStatus(Boolean.TRUE); |
| 146 | 148 | clueMapper.updateById(clue); |
| 147 | 149 | }); | ... | ... |