|
|
@ -167,6 +167,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="status != null and status != ''"> and tr.status = #{status}</if>
|
|
|
|
<if test="status != null and status != ''"> and tr.status = #{status}</if>
|
|
|
|
<if test="age !=null">and tp.age = #{age} </if>
|
|
|
|
<if test="age !=null">and tp.age = #{age} </if>
|
|
|
|
<if test="sex !=null">and tp.sex = #{sex} </if>
|
|
|
|
<if test="sex !=null">and tp.sex = #{sex} </if>
|
|
|
|
|
|
|
|
<if test="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if>
|
|
|
|
<if test="startTime != null and endTime != null">
|
|
|
|
<if test="startTime != null and endTime != null">
|
|
|
|
AND tp.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
AND tp.create_time between DATE_FORMAT(#{startTime},'%Y-%m-%d %H:%i:%s') and DATE_FORMAT(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|