liusheng
2024-11-22 5389773b2d1ae86daec68b00f67c3682dc907e01
ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
@@ -60,6 +60,7 @@
    <select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
      <include refid="selectGenTableVo"/>
      <where>
         del_flag= 0
         <if test="tableName != null and tableName != ''">
            AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
         </if>
@@ -115,7 +116,7 @@
            c.column_id, c.column_name, c.column_comment, c.column_type, c.java_type, c.java_field, c.is_pk, c.is_increment, c.is_required, c.is_insert, c.is_edit, c.is_list, c.is_query, c.query_type, c.html_type, c.dict_type, c.sort
      FROM gen_table t
          LEFT JOIN gen_table_column c ON t.table_id = c.table_id
      where t.table_id = #{tableId} order by c.sort
      where del_flag= 0 and t.table_id = #{tableId} order by c.sort
   </select>
   
   <select id="selectGenTableByName" parameterType="String" resultMap="GenTableResult">
@@ -189,7 +190,7 @@
            <if test="remark != null">remark = #{remark},</if>
            update_time = sysdate()
        </set>
        where table_id = #{tableId}
        where table_id = #{tableId} and del_flag= 0
    </update>
    
    <delete id="deleteGenTableByIds" parameterType="Long">