![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
一只Miao
这个作者很懒,什么都没留下…
展开
-
多条件查询及查询最近时间点
<if test="instantmaxwindDto.type!='所有'"> and type=#{instantmaxwindDto.type} </if>abs(timestampdiff(SECOND,beijing_time,#{time})) asc原创 2020-10-21 16:34:23 · 328 阅读 · 0 评论 -
mybatis中sql语句整除
mybatis中sql语句整除mabatis xml文件中//整除 不四舍五入 <![CDATA[ TRUNCATE(hour(currentTime)/6,0)=TRUNCATE(hour(#{time})/6,0)]]>//整除 四舍五入<![CDATA[ format(hour(currentTime)/6,0)=format(hour(#{time})/6,0)]]>java中//四舍五入版本//DecimalFormat df = new DecimalF原创 2020-06-08 10:54:46 · 2284 阅读 · 0 评论