From 68ae0e6a2dc077d8b85187ee3dbee4b87a6c9b90 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 21 三月 2024 18:02:16 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
server/dmvisit_service/src/main/java/com/doumee/dao/web/reqeust/ErpVisitDTO.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/server/dmvisit_service/src/main/java/com/doumee/dao/web/reqeust/ErpVisitDTO.java b/server/dmvisit_service/src/main/java/com/doumee/dao/web/reqeust/ErpVisitDTO.java
index 1eebcab..dc375df 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/dao/web/reqeust/ErpVisitDTO.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/dao/web/reqeust/ErpVisitDTO.java
@@ -8,6 +8,9 @@
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
@@ -21,18 +24,23 @@
@ApiModel("ERP璁垮鐢宠涓荤被")
public class ErpVisitDTO extends BaseRequst {
+ @NotBlank(message = "ERP璁板綍涓婚敭涓嶈兘涓虹┖")
@ApiModelProperty(value = "ERP璁板綍涓婚敭")
private String erpId;
+ @NotBlank(message = "璁垮濮撳悕涓嶈兘涓虹┖")
@ApiModelProperty(value = "璁垮濮撳悕")
private String name;
+ @NotBlank(message = "鎵嬫満鍙蜂笉鑳戒负绌�")
@ApiModelProperty(value = "鎵嬫満鍙�")
private String phone;
+ @NotNull(message = "璇佷欢绫诲瀷涓嶈兘涓虹┖")
@ApiModelProperty(value = "璇佷欢绫诲瀷 0韬唤璇� 1娓境璇佷欢 2鎶ょ収")
private Integer idcardType;
+ @NotBlank(message = "璇佷欢鍙蜂笉鑳戒负绌�")
@ApiModelProperty(value = "璇佷欢鍙�")
private String idcardNo;
@@ -42,25 +50,31 @@
@ApiModelProperty(value = "鍋ュ悍璇�")
private String imgurl;
+ @NotBlank(message = "鍏徃鍚嶇О涓嶈兘涓虹┖")
@ApiModelProperty(value = "鍏徃鍚嶇О")
private String companyName;
+ @NotBlank(message = "琚浜轰笉鑳戒负绌�")
@ApiModelProperty(value = "琚浜� erp 涓婚敭 ")
private String receptMemberId;
+ @NotNull(message = "闂ㄧ鏈夋晥璧锋湡涓嶈兘涓虹┖")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "闂ㄧ鏈夋晥鏈熷紑濮�")
private Date starttime;
+ @NotNull(message = "闂ㄧ鏈夋晥姝㈡湡涓嶈兘涓虹┖")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "闂ㄧ鏈夋晥鏈熸埅姝�")
private Date endtime;
+ @NotBlank(message = "闂ㄧ缂栫爜涓嶈兘涓虹┖")
@ApiModelProperty(value = "闂ㄧ缂栫爜 娴峰悍绯荤粺涓婚敭 锛屽涓敤鑻辨枃閫楀彿闅斿紑")
private String doors;
+ @NotBlank(message = "鏉ヨ浜嬬敱涓嶈兘涓虹┖")
@ApiModelProperty(value = "鏉ヨ浜嬬敱")
private String reason;
--
Gitblit v1.9.3