forked from gzzfw/backEnd/gz-dyh

liyj
2024-08-26 0817f426f3ff66c6ab07f81d17e77be106b9c622
dyh-service/dyh-cust/src/main/java/cn/huge/module/buildcode/dao/mapper/xml/BuildCodeMapper.xml
@@ -15,12 +15,11 @@
        <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", t3.comments AS "comments", t1.data_default AS "dataScale"
               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