记录一条容易遗忘的点.
对于mybatis时间范围内查询数据是我sql记录.
select name,phone,DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') create_time from t_1702_user where 1=1
<if test="startTime !=null and startTime !=''">
AND create_time <![CDATA[ >= ]]> #{startTime}
</if>
<if test="endTime !=null and endTime !=''">
AND create_time <![CDATA[ <= ]]> #{endTime}
</if>