mybatis使用小结

来源:互联网 发布:opencv icp算法代码 编辑:程序博客网 时间:2024/06/06 20:40

mybatis使用时间戳实例:

<select id="findHoteventByMap" parameterType="java.util.Map" resultType="com.sz.module.customized.domain.IHotEvent">
select name,createTime
FROM i_hotevent t
<where>
isDelete=0
and t.createTime &gt;= #{startTime}
and t.createTime &lt;= #{endTime}
order by orderValue desc limit 10
</where>
</select>