|
@@ -31,6 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if>
|
|
|
<if test="level != null and level != ''"> and level = #{level}</if>
|
|
|
<if test="magnetName != null and magnetName != ''"> and magnet_name like concat('%', #{magnetName}, '%')</if>
|
|
|
+ <if test="params.beginTime != null and params.beginTime != ''">
|
|
|
+ and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
+ </if>
|
|
|
+ <if test="params.endTime != null and params.endTime != ''">
|
|
|
+ and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by create_time desc
|
|
|
</select>
|