<select id="query" resultType="map">
        select * from ${tbName}
        <where>
            <foreach item="item" index="index" collection="queryList">
                ${item.logic} ${item.field} ${item.operator} 
                <choose>
                    <when test = "item.ftype == 'date'">
                        to_date(#{item.value},'yyyy-mm-dd')
                    </when>
                    <otherwise>
                        #{item.value}
                    </otherwise>
                </choose>
            </foreach>
        </where> 
    </select>

 

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-10-08
相关资源
相似解决方案