diff --git a/anrui-crm/anrui-crm-api/src/main/java/com/yxt/anrui/crm/api/crmcustomertemp/CrmCustomerTempDto.java b/anrui-crm/anrui-crm-api/src/main/java/com/yxt/anrui/crm/api/crmcustomertemp/CrmCustomerTempDto.java index 0d57f9e31f..23c2e2dc9d 100644 --- a/anrui-crm/anrui-crm-api/src/main/java/com/yxt/anrui/crm/api/crmcustomertemp/CrmCustomerTempDto.java +++ b/anrui-crm/anrui-crm-api/src/main/java/com/yxt/anrui/crm/api/crmcustomertemp/CrmCustomerTempDto.java @@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Pattern; import java.util.List; /** @@ -34,7 +33,7 @@ public class CrmCustomerTempDto implements Dto { @ApiModelProperty(value = "当前登录用户的sid") private String userSid; - @ApiModelProperty(value = "客户类型(个人/企业)", required = true) + @ApiModelProperty(value = "客户类型(1个人/2企业)", required = true) @NotBlank(message = "客户类型为必选项") private String customerType; @@ -56,7 +55,6 @@ public class CrmCustomerTempDto implements Dto { @ApiModelProperty("联系电话") @NotBlank(message = "联系电话为必填项") - @Pattern(regexp = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$", message = "手机号码格式不正确") private String mobile; @ApiModelProperty("微信号码") diff --git a/anrui-crm/anrui-crm-biz/src/main/java/com/yxt/anrui/crm/biz/crmcustomertemp/CrmCustomerTempService.java b/anrui-crm/anrui-crm-biz/src/main/java/com/yxt/anrui/crm/biz/crmcustomertemp/CrmCustomerTempService.java index cda367ab51..65c501fbe9 100644 --- a/anrui-crm/anrui-crm-biz/src/main/java/com/yxt/anrui/crm/biz/crmcustomertemp/CrmCustomerTempService.java +++ b/anrui-crm/anrui-crm-biz/src/main/java/com/yxt/anrui/crm/biz/crmcustomertemp/CrmCustomerTempService.java @@ -656,6 +656,22 @@ public class CrmCustomerTempService extends MybatisBaseService