From b6fa58652c12f0c61409cc44dfd8ad78f821b6c6 Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Wed, 11 Sep 2024 01:19:25 +0800
Subject: [PATCH] 1、流程bug修复
---
dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml | 27 +++++++++------------------
1 files changed, 9 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..3eeb159 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
@@ -18,24 +18,15 @@
</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"
+ 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