當(dāng)前位置:
首頁(yè) >
mybati内sql查询语句在两个日期内
發(fā)布時(shí)間:2025/7/25
65
豆豆
生活随笔
收集整理的這篇文章主要介紹了
mybati内sql查询语句在两个日期内
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
裝載自:
http://blog.csdn.net/u010442302/article/details/72902441?locationNum=9&fps=1
<select id="selectByParamCount" resultType="java.lang.Integer" parameterType="com.sss.fin.cif.vo.admin.BankCardAuditQuery"> select count(1) from tablename <where> <if test="operatorDateStart != null and operatorDateStart !='' " > operator_date >= #{operatorDateStart,jdbcType=VARCHAR} </if> <if test="operatorDateEnd != null and operatorDateEnd !='' " > <![CDATA[ and operator_date <= concat(#{operatorDateEnd,jdbcType=VARCHAR},'235959') ]]> </if> </where> </select><![CDATA[ ]]> 轉(zhuǎn)義< (小于號(hào)) sql語(yǔ)句中,默認(rèn)把yyyyMMdd定位成該日期的零點(diǎn)整 頂
轉(zhuǎn)載于:https://www.cnblogs.com/rzqz/p/7306542.html
總結(jié)
以上是生活随笔為你收集整理的mybati内sql查询语句在两个日期内的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Navigator 对象
- 下一篇: js 继承