From f974bf528f0fd1f7316bdb3f06be8004e8db9f15 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Wed, 21 Aug 2024 17:24:07 +0800
Subject: [PATCH] 用户中心部分迁移1

---
 dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml |   28 ++++++++++------------------
 1 files changed, 10 insertions(+), 18 deletions(-)

diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml b/dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml
index 701c112..ad55d69 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml
+++ b/dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml
@@ -15,27 +15,19 @@
         <result property="name" column="name"/>
         <result property="comments" column="comments"/>
         <result property="dataType" column="dataType"/>
+        <result property="dataScale" column="dataScale"/>
     </resultMap>
     <!--自定义查询-->
     <select id="getTabInfo" parameterType="String" resultMap="reslutMap">
-        SELECT
-            t1.table_name AS "tableName",
-            t2.comments AS "tableComments",
-            t1.column_name AS "name",
-            t1.data_type AS "dataType",
-            c.comments AS "comments"
-        FROM
-            user_tab_columns t1
-                JOIN
-            user_tab_comments t2
-            ON
-                t1.table_name = t2.table_name
-                LEFT JOIN
-            user_col_comments c
-            ON
-                t1.table_name = c.table_name AND t1.column_name = c.column_name
-        WHERE
-            t1.table_name = #{tableName}
+        SELECT t1.table_name AS "tableName", t2.comments AS "tableComments", t1.column_name AS "name",
+               t1.data_type AS "dataType", t3.comments AS "comments", t1.data_default AS "dataScale"
+        FROM all_tab_columns t1
+            LEFT JOIN all_tab_comments t2 ON t1.table_name = t2.table_name
+            LEFT JOIN user_col_comments t3 ON t1.table_name = t3.table_name AND t1.column_name = t3.column_name
+        WHERE t1.table_name = #{tableName}
+          AND t1.OWNER = #{tableSchema}
+          AND t2.OWNER = #{tableSchema}
+          AND t3.OWNER = #{tableSchema}
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0