1. fuzzy query
<if test="filename != null and filename != '' "> and filename like CONCAT('%',#{filename},'%')</if>
2. The time of the query
Greater than> <If test = "! Params.beginTime = null and params.beginTime = ''!"> <-! Start time search -> AND date_format(u.create_time,'%Y-%m-%d') >= date_format(#{params.beginTime},'%Y-%m-%d') </if> Less than < <If test = "! Params.beginTime = null and params.beginTime = ''!"> <-! End time search -> AND date_format(u.create_time,'%Y-%m-%d %H:%i:%s') <= date_format(#{params.beginTime},'%Y-%m-%d %H:%i:%s')</if>