From e2c14ffb0a6237bb5c397f5d0baaa4fa70cfe3b0 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期一, 11 九月 2023 11:20:01 +0800
Subject: [PATCH] MOM系统-9-11
---
inventory-server/src/main/java/com/yuanchu/mom/pojo/dto/SaleDto.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/inventory-server/src/main/java/com/yuanchu/mom/pojo/dto/SaleDto.java b/inventory-server/src/main/java/com/yuanchu/mom/pojo/dto/SaleDto.java
index f0e4955..a97829f 100644
--- a/inventory-server/src/main/java/com/yuanchu/mom/pojo/dto/SaleDto.java
+++ b/inventory-server/src/main/java/com/yuanchu/mom/pojo/dto/SaleDto.java
@@ -5,6 +5,8 @@
import com.yuanchu.mom.pojo.SaleMaterial;
import lombok.Data;
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;
@@ -15,38 +17,47 @@
public class SaleDto {
//璁㈠崟缂栧彿
+ @NotBlank(message = "璁㈠崟缂栧彿涓嶈兘涓虹┖")
@JsonSerialize
private String orderNumber;
//宸ョ▼鍚嶇О
+ @NotBlank(message = "宸ョ▼鍚嶇О涓嶈兘涓虹┖")
@JsonSerialize
private String name;
//鍚堝悓缂栧彿
+ @NotBlank(message = "鍚堝悓缂栧彿涓嶈兘涓虹┖")
@JsonSerialize
private String code;
//瀹㈡埛鍚嶇О
+ @NotBlank(message = "瀹㈡埛鍚嶇О涓嶈兘涓虹┖")
@JsonSerialize
private String proname;
//鏀惰揣鍦板潃
+ @NotBlank(message = "鏀惰揣鍦板潃涓嶈兘涓虹┖")
@JsonSerialize
private String adress;
//鑱旂郴浜�
+ @NotBlank(message = "鑱旂郴浜轰笉鑳戒负绌�")
@JsonSerialize
private String username;
//鑱旂郴鐢佃瘽
+ @NotBlank(message = "鑱旂郴鐢佃瘽涓嶈兘涓虹┖")
@JsonSerialize
private String phone;
//涓嬪崟浜�
@JsonSerialize
+ @NotBlank(message = "涓嬪崟浜轰笉鑳戒负绌�")
private String orderName;
//浜よ揣鏃ユ湡
+ @NotNull(message = "浜よ揣鏃ユ湡涓嶈兘涓虹┖")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date delTime;
--
Gitblit v1.9.3