日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

Failed to process, please exclude the tableName or statementId.

作者:何中應(yīng) 更新時(shí)間: 2023-12-10 編程語言

說明:執(zhí)行一次查詢時(shí),報(bào)下面這個(gè)錯(cuò)誤;

Failed to process, please exclude the tableName or statementId.

排查結(jié)果,在Mapper.xml里面,對(duì)應(yīng)的statement使用了復(fù)雜的函數(shù),

    <select id="getLastEleRank" resultType="java.lang.Integer">
        select t.rank_no from (
        SELECT
        @rownum := @rownum + 1 as rank_no,e.id
        FROM
        (SELECT @rownum := 0) r
        ,(select a.id from t_goods a
        where a.del_flag='0' and a.status=1
		...
    </select>

需要在對(duì)應(yīng)的Mapper方法上增加@SqlParser(filter = true)注解
在這里插入圖片描述

原文鏈接:https://blog.csdn.net/qq_42108331/article/details/133930897

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新