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

學無先后,達者為師

網站首頁 編程語言 正文

Failed to process, please exclude the tableName or statementId.

作者:何中應 更新時間: 2023-12-10 編程語言

說明:執行一次查詢時,報下面這個錯誤;

Failed to process, please exclude the tableName or statementId.

排查結果,在Mapper.xml里面,對應的statement使用了復雜的函數,

    <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>

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

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

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