Procházet zdrojové kódy

Merge remote-tracking branch 'origin/v1.0' into v1.0

zhangc před 7 měsíci
rodič
revize
e5d95a0360

+ 4 - 1
src/main/java/com/inkasso/factoring/businessConsulting/model/request/AddBusinessConsultingRequest.java

@@ -2,6 +2,8 @@ package com.inkasso.factoring.businessConsulting.model.request;
 
 import java.util.Date;
 import lombok.Data;
+
+import javax.validation.constraints.Email;
 import javax.validation.constraints.NotEmpty;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
@@ -36,12 +38,13 @@ public class AddBusinessConsultingRequest {
     *工作邮箱
     */
     @Size(max=100,message="工作邮箱长度不能超过{max}位")
+    @Email()
     private String email;
 
     /**
     *手机号(大陆)
     */
-    @Size(max=11,message="手机号(大陆)长度不能超过{max}位")
+    @Size(max=11,min = 11,message="手机号(大陆)长度不能超过{max}位")
     private String phoneNumber;
 
     /**