From 30bcaac63cafe8ed46a7ab09eac6b90fa7aea1d5 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 08 十一月 2023 09:38:36 +0800
Subject: [PATCH] 代码整理,及应用MybatisPlus,使得可不用mapper.xml配置文件进行查询demo实现

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java
index cfc2764..1c5f61c 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoBa/BaUser.java
@@ -8,20 +8,22 @@
 import com.dy.common.po.BaseEntity;
 import lombok.*;
 
-import java.io.Serializable;
+import java.util.List;
 
 
 /**
- * @TableName(value = 鈥渁鈥�, autoResultMap = true)
+ * TableName(value = 鈥渁鈥�, autoResultMap = true)
  * autoResultMap鍙傛暟涓簍rue鏃讹紝琛ㄦ槑涓埆瀛楁鍦ㄦ煡璇㈠鐞嗙殑鏃跺�欒嚜鍔ㄨ浆鎹负瀵硅薄锛�
  * 鍙�傚悎璁剧疆浜員ypeHandler銆乯dbcTyped鐨勬儏鍐点�俛utoResultMap 鑷姩鏄犲皠锛�
  * 閫氬父閰嶅悎 @TableField() 涓�璧蜂娇鐢紝纭畾鏄犲皠瑙勮寖鎬с��
  * 2023-10-24缁忓疄楠岋細
- * 绠�鍗曠殑@TableField("name")涓嶇敤鍔犱笂锛屽嵆浣垮瓨绫诲睘鎬ф槸椹煎嘲锛屾暟鎹簱瀛楁鏄笅
+ * 绠�鍗曠殑@TableField("name")涓嶇敤鍔犱笂锛屽嵆浣跨被灞炴�у悕鏄┘宄帮紝鏁版嵁搴撳瓧娈垫槸涓�
  * 鍒掔嚎鎯呭喌锛屼篃涓嶇敤鍔燖TableField("name")銆�
  */
 //2023-10-24涓嬮潰TableName涓嶇敤閰嶇疆琛ㄥ悕绉帮紙value="BaUser"鎴栤�渂a_user鈥濓級
-@TableName(autoResultMap = true)
+//鍙閫氳繃椹煎嘲鍛藉悕娉曞垯绫诲悕涓庤〃鍚嶅搴旇捣鏉ュ氨鍙互浜嗭紝濡傛灉涓嶈兘瀵瑰簲璧锋潵锛岄渶瑕佹寚瀹氳〃鍚嶇О
+//渚嬪@TableName(value="TestUser" autoResultMap = true)
+@TableName(value="ba_user", autoResultMap = true)
 @Data
 @Builder
 @ToString
@@ -31,7 +33,7 @@
 
     public static final long serialVersionUID = 202310100926001L;
 
-    /*
+    /* 濡傛灉涓嶆槑纭� type绫诲瀷锛孧P灏嗚嚜鍔ㄤ负鍏惰祴鍊硷紙闆姳ID锛�
     IdType:
     AUTO(0),  //鑷
     NONE(1), //鏈缃富閿�
@@ -61,12 +63,14 @@
     /**
      * 渚涙按鏈烘瀯鏍囩
      */
+    @TableField(value = "orgTag")
     public String orgTag;
 
     /**
      * 鏄惁瓒呯骇绠$悊鍛� 1:鏄�,0:鍚�
      */
-    public Byte superAdmin;
+    @TableField(value = "supperAdmin")
+    public Byte supperAdmin;
 
     /**
      * 鏄惁绂佺敤 0:鍚�,1:鏄�
@@ -77,4 +81,11 @@
      * 鏄惁鍒犻櫎: 0琛ㄧず鏈垹闄�  1琛ㄧず鍒犻櫎.
      */
     public Deleted deleted;
+
+    /**
+     * 鐢ㄦ埛鎵�鎷ユ湁鐨勬潈闄�
+     */
+    @TableField(exist = false)
+    public List<Integer> privileges;
+    //public transient List<Integer> privileges;//姝ょ鏂瑰紡鍙橀噺涓嶅瓨搴擄紝 涔熶笉鍙備笌搴忓垪鍖栦簡
 }
\ No newline at end of file

--
Gitblit v1.8.0