|
|
|
@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="aiResultModifyTime" column="ai_result_modify_time" />
|
|
|
|
|
<result property="hospitalName" column="hospital_name" />
|
|
|
|
|
<result property="doctorName" column="doctor_name"/>
|
|
|
|
|
<result property="updateFlag" column="update_flag"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTRecordVo">
|
|
|
|
@ -39,7 +40,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
create_time,
|
|
|
|
|
update_time,
|
|
|
|
|
upload_time,
|
|
|
|
|
response_time
|
|
|
|
|
response_time,
|
|
|
|
|
update_flag
|
|
|
|
|
from t_record tr
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="selectTRecordWithResult">
|
|
|
|
@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
tr.img_sx AS imgSx,
|
|
|
|
|
tr.img_sm AS imgSm,
|
|
|
|
|
tr.response_time AS responseTime,
|
|
|
|
|
tr.update_flag as updateFlag,
|
|
|
|
|
td.NAME AS doctorName,
|
|
|
|
|
tp.identifier,
|
|
|
|
|
tp.NAME AS patientName,
|
|
|
|
@ -92,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
tr.ai_result_modify_time AS aiResultModifyTime,
|
|
|
|
|
tr.response_time AS responseTime,
|
|
|
|
|
tr.del_flag as delFlag,
|
|
|
|
|
tr.update_flag as updateFlag,
|
|
|
|
|
td.NAME AS doctorName,
|
|
|
|
|
tp.identifier,
|
|
|
|
|
tp.NAME AS patientName,
|
|
|
|
@ -125,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
tr.ai_result_return_time AS aiResultReturnTime,
|
|
|
|
|
tr.ai_result_modify_time AS aiResultModifyTime,
|
|
|
|
|
tr.response_time AS responseTime,
|
|
|
|
|
tr.update_flag as updateFlag,
|
|
|
|
|
td. NAME AS doctorName,
|
|
|
|
|
tp.identifier,
|
|
|
|
|
tp. NAME AS patientName,
|
|
|
|
@ -386,6 +391,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<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>
|
|
|
|
|
<if test="updateFlag != null and updateFlag != ''">update_flag,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="patientId != null">#{patientId},</if>
|
|
|
|
@ -405,6 +411,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="aiResultReturnTime != null">#{aiResultReturnTime},</if>
|
|
|
|
|
<if test="aiResultModifyTime != null">#{aiResultModifyTime},</if>
|
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
|
<if test="updateFlag != null and updateFlag != ''">#{updateFlag},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -429,6 +436,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="aiResultModifyTime != null">ai_result_modify_time = #{aiResultModifyTime},</if>
|
|
|
|
|
<if test="appDealTime != null">app_deal_time = #{appDealTime},</if>
|
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
|
<if test="updateFlag != null and updateFlag != ''">update_flag = #{updateFlag},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|