Commit 99b8465e29e8c2a27d0ac8c9d99b33cda6beab6a
1 parent
1280f49a
CRM:【线索】SaveReqVO去除客户编号字段
Showing
2 changed files
with
0 additions
and
11 deletions
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/clue/vo/CrmClueSaveReqVO.java
| ... | ... | @@ -22,10 +22,6 @@ public class CrmClueSaveReqVO { |
| 22 | 22 | @NotEmpty(message = "线索名称不能为空") |
| 23 | 23 | private String name; |
| 24 | 24 | |
| 25 | - // TODO @min:是不是不传递 customerId? | |
| 26 | - @Schema(description = "客户 id", example = "520") | |
| 27 | - private Long customerId; | |
| 28 | - | |
| 29 | 25 | @Schema(description = "下次联系时间", example = "2023-10-18 01:00:00") |
| 30 | 26 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| 31 | 27 | private LocalDateTime contactNextTime; | ... | ... |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/clue/CrmClueServiceImpl.java
| ... | ... | @@ -30,7 +30,6 @@ import java.util.Objects; |
| 30 | 30 | |
| 31 | 31 | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| 32 | 32 | import static cn.iocoder.yudao.module.crm.enums.ErrorCodeConstants.CLUE_NOT_EXISTS; |
| 33 | -import static cn.iocoder.yudao.module.crm.enums.ErrorCodeConstants.CUSTOMER_NOT_EXISTS; | |
| 34 | 33 | import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.USER_NOT_EXISTS; |
| 35 | 34 | |
| 36 | 35 | /** |
| ... | ... | @@ -156,13 +155,7 @@ public class CrmClueServiceImpl implements CrmClueService { |
| 156 | 155 | } |
| 157 | 156 | |
| 158 | 157 | private void validateRelationDataExists(CrmClueSaveReqVO reqVO) { |
| 159 | - // 校验客户 | |
| 160 | - if (Objects.nonNull(reqVO.getCustomerId()) && | |
| 161 | - Objects.isNull(customerService.getCustomer(reqVO.getCustomerId()))) { | |
| 162 | - throw exception(CUSTOMER_NOT_EXISTS); | |
| 163 | - } | |
| 164 | 158 | // 校验负责人 |
| 165 | - // 2. 校验负责人 | |
| 166 | 159 | if (Objects.nonNull(reqVO.getOwnerUserId()) && |
| 167 | 160 | Objects.isNull(adminUserApi.getUser(reqVO.getOwnerUserId()))) { |
| 168 | 161 | throw exception(USER_NOT_EXISTS); | ... | ... |