From 6838eef8a7ad0e899c18b9039c39071af6c7d852 Mon Sep 17 00:00:00 2001
From: liuxm <liuxm@fescotech.com>
Date: 星期四, 16 五月 2024 10:49:24 +0800
Subject: [PATCH] 权限id序列化时不转String
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoBa/BaPrivilege.java | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoBa/BaPrivilege.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoBa/BaPrivilege.java
index a5c4b52..e3de553 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoBa/BaPrivilege.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoBa/BaPrivilege.java
@@ -33,7 +33,7 @@
ASSIGN_ID(3), //榛樿鍏ㄥ眬鍞竴ID
ASSIGN_UUID(4), //鍏ㄥ眬鍞竴鐨� uuid
*/
- @JSONField(serializeUsing= ObjectWriterImplToString.class)
+// @JSONField(serializeUsing= ObjectWriterImplToString.class)
@TableId(value = "id", type = IdType.INPUT)
public Long id;
@@ -48,7 +48,7 @@
* 鏉冮檺鍚嶇О
*/
@NotEmpty(message = "鏉冮檺鍚嶇О涓嶈兘涓虹┖") //涓嶈兘涓虹┖涔熶笉鑳戒负null
- @Length(message = "鏉冮檺鍚嶇О涓嶅ぇ浜巤max}瀛楋紝涓嶅皬浜巤min}瀛�", min = 2, max = 25)
+ @Length(message = "鏉冮檺鍚嶇О涓嶅ぇ浜巤max}瀛楋紝涓嶅皬浜巤min}瀛�", min = 2, max = 50)
public String name;
/**
@@ -58,4 +58,11 @@
@Length(message = "鏉冮檺绫诲瀷涓嶅ぇ浜巤max}瀛楋紝涓嶅皬浜巤min}瀛�", min = 4, max = 4)
public Integer type;
+ /**
+ * 绫诲埆鍚嶇О
+ */
+ @NotEmpty(message = "绫诲埆鍚嶇О涓嶈兘涓虹┖") //涓嶈兘涓虹┖涔熶笉鑳戒负null
+ @Length(message = "鏉冮檺绫诲瀷涓嶅ぇ浜巤max}瀛楋紝涓嶅皬浜巤min}瀛�", min = 3, max = 6)
+ public String typeName;
+
}
\ No newline at end of file
--
Gitblit v1.8.0