c.b.m.e.p.i.PaginationInnerInterceptor : optimize this sql to a count sql has exception

错误:

2024-09-04 19:31:38.286  WARN 9224 --- [  XNIO-1 task-1] c.b.m.e.p.i.PaginationInnerInterceptor   : optimize this sql to a count sql has exception, sql:"select
            b.userid,
            b.promoterid,
            b.remark,
            b.created_by,
            b.created_at,
            b.updated_by,
            b.updated_at,
            b.delete,
            u.channel,
            u.platformid,
            u.username,
            u.nickname,
            pu.username as pusername,
            u.level as level,
            lev.name as levelName,
            c.amount,
            c.currencytype AS currencytype,
            game.agentMoney as goldBankSurplus,
            ord.deposit_amount as depositAmount,
            ord.withdraw_count as withdrawCount,
            pro.dan as vip,
            ur.main_vbet,
            ur.main_win,
            ur.main_charge,

            ur.ab_vbet,
            ur.third_vbet,
            ur.item_cost,
            ur.insurance_rec,
            ur.ab_win,
            ur.third_win,
            ur.total_dividend,
            ur.total_back_water,

            u.registerip,
            u.deposittime as deposittime,
            u.lastlogintime as lastlogintime,
            u.lastloginip as lastloginip,
            u.registertime as registertime
        from info_promoter_user_bind b
        left join info_user u on u.userid = b.userid
        left join info_user pu on pu.userid = b.promoterid
        left join info_order_user ord ON
             b.userid = ord.user_id
        LEFT JOIN info_user_currency c ON b.userid = c.userid
        left join info_agent_game_user game on b.userid= game.userid
        left join info_user_properties pro ON b.userid = pro.userid
        left join  cfg_user_level  lev  on (u.level = lev.level and lev.platformid = u.platformid)
        left join (
            SELECT
            userid, sum(main_charge) as main_charge, sum(main_vbet) as main_vbet, sum(main_win) as main_win
        ,sum(ab_vbet) as ab_vbet ,sum(third_vbet) as third_vbet ,sum(item_cost) as item_cost ,sum(insurance_rec) as insurance_rec ,sum(ab_win) as ab_win
        ,sum(third_win) as third_win ,sum(total_dividend) as total_dividend ,sum(total_back_water) as total_back_water
            FROM
             
                    game_center_bi_dev.bi_user_report bi
                 
             GROUP BY userid
        ) ur
        ON b.userid = ur.userid
         WHERE  b.promoterid in
                (
                    ?
                ) 
        order by b.created_at desc", exception:
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "." "."
    at line 9, column 14.

Was expecting one of:

    "&"
    "::"
    ";"
    "<<"
    ">>"
    "ACTION"
    "ACTIVE"
    "ALGORITHM"
    "ARCHIVE"
    "ARRAY"
    "AS"
    "AT"
    "BYTE"
    "CASCADE"
    "CASE"
    "CAST"
    "CHANGE"
    "CHAR"
    "CHARACTER"
    "CHECKPOINT"
    "COLLATE"
    "COLUMN"
    "COLUMNS"
    "COMMENT"
    "COMMIT"
    "CONNECT"
    "COSTS"
    "CYCLE"
    "DBA_RECYCLEBIN"
    "DEFAULT"
    "DESC"
    "DESCRIBE"
    "DISABLE"
    "DISCONNECT"
    "DIV"
    "DO"
    "DUMP"
    "DUPLICATE"
    "EMIT"
    "ENABLE"
    "END"
    "EXCLUDE"
    "EXTRACT"
    "FALSE"
    "FILTER"
    "FIRST"
    "FLUSH"
    "FN"
    "FOLLOWING"
    "FORMAT"
    "FULLTEXT"
    "GROUP"
    "HAVING"
    "HISTORY"
    "INDEX"
    "INSERT"
    "INTERVAL"
    "INTO"
    "ISNULL"
    "JSON"
    "KEY"
    "LAST"
    "LEADING"
    "LINK"
    "LOCAL"
    "LOG"
    "MATERIALIZED"
    "NO"
    "NOLOCK"
    "NULLS"
    "OF"
    "OPEN"
    "OVER"
    "PARALLEL"
    "PARTITION"
    "PATH"
    "PERCENT"
    "PRECISION"
    "PRIMARY"
    "PRIOR"
    "QUERY"
    "QUIESCE"
    "RANGE"
    "READ"
    "RECYCLEBIN"
    "REGISTER"
    "REPLACE"
    "RESTRICTED"
    "RESUME"
    "ROW"
    "ROWS"
    "SCHEMA"
    "SEPARATOR"
    "SEQUENCE"
    "SESSION"
    "SHUTDOWN"
    "SIBLINGS"
    "SIGNED"
    "SIZE"
    "SKIP"
    "START"
    "SUSPEND"
    "SWITCH"
    "SYNONYM"
    "SYSTEM"
    "TABLE"
    "TABLESPACE"
    "TEMP"
    "TEMPORARY"
    "TIMEOUT"
    "TO"
    "TOP"
    "TRUE"
    "TRUNCATE"
    "TRY_CAST"
    "TYPE"
    "UNQIESCE"
    "UNSIGNED"
    "USER"
    "VALIDATE"
    "VALUE"
    "VALUES"
    "VIEW"
    "WINDOW"
    "XML"
    "ZONE"
    "["
    "^"
    "|"
    <EOF>
    <K_DATETIMELITERAL>
    <K_DATE_LITERAL>
    <K_NEXTVAL>
    <K_STRING_FUNCTION_NAME>
    <S_CHAR_LITERAL>
    <S_IDENTIFIER>
    <S_QUOTED_IDENTIFIER>

原因:MybatisPlus 优化sql计数器 报的错误,sql可以正常执行,不用理会!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值