<select id="count" resultType="java.lang.Integer">
select count(*) from ai_appointment_visitor
where 1=1
<if test="entity.opStatus != null and entity.opStatus != ''">
op_status = #{entity.opStatus}
</if>
<if test="entity.beginTime != null">
create_time >= DATE_FORMAT(#{entity.beginTime},'%Y-%m-%d 00:00:00')
</if>
<if test="entity.endTime != null">
create_time > DATE_FORMAT(#{entity.endTime},'%Y-%m-%d 23:59:59')
</if>
</select>
mybatis xml 日期格式化
最新推荐文章于 2024-01-21 20:08:36 发布