mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	CRM:【线索】SaveReqVO去除客户编号字段
This commit is contained in:
		| @@ -22,10 +22,6 @@ public class CrmClueSaveReqVO { | ||||
|     @NotEmpty(message = "线索名称不能为空") | ||||
|     private String name; | ||||
|  | ||||
|     // TODO @min:是不是不传递 customerId? | ||||
|     @Schema(description = "客户 id", example = "520") | ||||
|     private Long customerId; | ||||
|  | ||||
|     @Schema(description = "下次联系时间", example = "2023-10-18 01:00:00") | ||||
|     @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | ||||
|     private LocalDateTime contactNextTime; | ||||
|   | ||||
| @@ -30,7 +30,6 @@ import java.util.Objects; | ||||
|  | ||||
| import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; | ||||
| import static cn.iocoder.yudao.module.crm.enums.ErrorCodeConstants.CLUE_NOT_EXISTS; | ||||
| import static cn.iocoder.yudao.module.crm.enums.ErrorCodeConstants.CUSTOMER_NOT_EXISTS; | ||||
| import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.USER_NOT_EXISTS; | ||||
|  | ||||
| /** | ||||
| @@ -156,13 +155,7 @@ public class CrmClueServiceImpl implements CrmClueService { | ||||
|     } | ||||
|  | ||||
|     private void validateRelationDataExists(CrmClueSaveReqVO reqVO) { | ||||
|         // 校验客户 | ||||
|         if (Objects.nonNull(reqVO.getCustomerId()) && | ||||
|                 Objects.isNull(customerService.getCustomer(reqVO.getCustomerId()))) { | ||||
|             throw exception(CUSTOMER_NOT_EXISTS); | ||||
|         } | ||||
|         // 校验负责人 | ||||
|         // 2. 校验负责人 | ||||
|         if (Objects.nonNull(reqVO.getOwnerUserId()) && | ||||
|                 Objects.isNull(adminUserApi.getUser(reqVO.getOwnerUserId()))) { | ||||
|             throw exception(USER_NOT_EXISTS); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 min
					min