<if test="start_time != null">
and a.created > str_to_date(#{start_time}, '%Y-%m-%d %H:%i:%s')
</if>
<if test="end_time != null">
and a.created <= str_to_date(#{end_time}, '%Y-%m-%d %H:%i:%s')
</if>
<if test="start_time != null">
and a.created > str_to_date(#{start_time}, '%Y-%m-%d %H:%i:%s')
</if>
<if test="end_time != null">
and a.created <= str_to_date(#{end_time}, '%Y-%m-%d %H:%i:%s')
</if>