- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 多条件查询及查询最近时间点
<if test="instantmaxwindDto.type!='所有'"> and type=#{instantmaxwindDto.type} </if>abs(timestampdiff(SECOND,beijing_time,#{time})) asc
2020-10-21 16:34:23
391
原创 mybati时间
// 根据时间获取一小时数据 SELECT * FROM t_fylighting where to_days(currentTime)=to_days(#{time}) and type=#{type} and hour(currentTime)=hour(#{time})//获取一天内小时数据
2020-06-08 11:02:11
125
原创 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
2395
geoserver.war
2019-12-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人