|
|
|
@ -171,7 +171,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="sex !=null and sex !=''">and tp.sex = #{sex} </if>
|
|
|
|
|
<if test="identifier !=null and identifier != ''">and tp.identifier like concat('%', #{identifier}, '%')</if>
|
|
|
|
|
<if test="delFlag == null">
|
|
|
|
|
and td.del_flag = '0' and tp.del_flag = '0'
|
|
|
|
|
and td.del_flag = '0' and tp.del_flag = '0' and tr.del_flag = '0'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null and createTime !='' and createTime != 'all'">
|
|
|
|
|
and DATE_FORMAT(tp.create_time,'%Y-%m') = #{createTime}
|
|
|
|
@ -314,7 +314,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="sex !=null and sex !=''">and tp.sex = #{sex} </if>
|
|
|
|
|
<if test="identifier !=null and identifier != ''">and tp.identifier like concat('%', #{identifier}, '%')</if>
|
|
|
|
|
<if test="delFlag == null">
|
|
|
|
|
and td.del_flag = '0' and tp.del_flag = '0'
|
|
|
|
|
and td.del_flag = '0' and tp.del_flag = '0' and tr.del_flag = '0'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createTime != null and createTime !='' and createTime != 'all'">
|
|
|
|
|
and DATE_FORMAT(tp.create_time,'%Y-%m') = #{createTime}
|
|
|
|
@ -355,6 +355,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="responseTime != null">response_time,</if>
|
|
|
|
|
<if test="aiResultReturnTime != null">ai_result_return_time,</if>
|
|
|
|
|
<if test="aiResultModifyTime != null">ai_result_modify_time,</if>
|
|
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="patientId != null">#{patientId},</if>
|
|
|
|
@ -373,6 +374,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="responseTime != null">#{responseTime},</if>
|
|
|
|
|
<if test="aiResultReturnTime != null">#{aiResultReturnTime},</if>
|
|
|
|
|
<if test="aiResultModifyTime != null">#{aiResultModifyTime},</if>
|
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -395,6 +397,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="responseTime != null">response_time = #{responseTime},</if>
|
|
|
|
|
<if test="aiResultReturnTime != null">ai_result_return_time = #{aiResultReturnTime},</if>
|
|
|
|
|
<if test="aiResultModifyTime != null">ai_result_modify_time = #{aiResultModifyTime},</if>
|
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|