liusheng
2 天以前 da026a34bcc97b2eb49607a3b02d94d8f683f997
ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml
@@ -59,20 +59,22 @@
    <select id="selectGenTableList" parameterType="GenTable" resultMap="GenTableResult">
      <include refid="selectGenTableVo"/>
      <where>
         <if test="tableName != null and tableName != ''">
            AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
         </if>
         <if test="tableComment != null and tableComment != ''">
            AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
         </if>
         <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
            AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
         </if>
         <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
            AND date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
         </if>
      </where>
      where 1=1
      <if test="orgid != null and orgid != ''">
         AND orgid = #{orgid}
      </if>
      <if test="tableName != null and tableName != ''">
         AND lower(table_name) like lower(concat('%', #{tableName}, '%'))
      </if>
      <if test="tableComment != null and tableComment != ''">
         AND lower(table_comment) like lower(concat('%', #{tableComment}, '%'))
      </if>
      <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
         AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
      </if>
      <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
         AND date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
      </if>
   </select>
   <select id="selectDbTableList" parameterType="GenTable" resultMap="GenTableResult">