zoukankan      html  css  js  c++  java
  • mybatisplus异常: 栏位索引超过许可范围:2,栏位数:1。

    在正常使用mybtis的标签时报了一个错误:栏位索引超过许可范围:2,栏位数:1。
    xml代码where部分如下:

                     te.enable_flag = 1
                     <if test="elevatorCode != null and elevatorCode != ''">
                         AND te.elevator_code like '%' || #{elevatorCode} || '%'
                     </if>
                     <if test="projName != null and projName != ''">
                          AND
                          tebr.project_name like '%' || #{projName} || '%'
                     </if>
                     <if test="projAddress != null and projAddress != ''">
                          AND
                          tebr.project_address like '%' || #{projAddress} || '%'
                     </if>
                     <if test="compName != null and compName != ''">
                          AND
                	      telr.company_name like '%' || #{compName} || '%'
                     </if>
                 </where>
                -- 	AND
                -- 	tebr.project_address like '%' || '常德代理商测试项目02' || '%'```
    *解决*:将最底层的注释部分去掉就好了
  • 相关阅读:
    E. You Are Given Some Strings...
    神奇函数
    AC自动机再加强版
    AC自动机2
    AC自动机
    three arrays
    permutation 2
    string matching
    permutation 1
    equation
  • 原文地址:https://www.cnblogs.com/qds1401744017/p/14721882.html
Copyright © 2011-2022 走看看