|
|
|
@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTRecordVo">
|
|
|
|
|
select id, patient_id, doctor_id, hospital_id, status, ai_result, ai_result2, update_result, update_result2, create_time, update_time, upload_time, img_sx, img_sm, response_time from t_record
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="selectTRecordWithResult">
|
|
|
|
|
SELECT
|
|
|
|
|
tr.id,
|
|
|
|
|
tr.patient_id AS patientId,
|
|
|
|
@ -37,8 +40,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
tr.update_result2 AS updateResult2,
|
|
|
|
|
tr.update_time AS updateTime,
|
|
|
|
|
tr.upload_time AS uploadTime,
|
|
|
|
|
tr.ai_result_return_time,
|
|
|
|
|
tr.ai_result_modify_time,
|
|
|
|
|
tr.ai_result_return_time AS aiResultReturnTime,
|
|
|
|
|
tr.ai_result_modify_time AS aiResultModifyTime,
|
|
|
|
|
td.NAME AS doctorName,
|
|
|
|
|
tp.identifier,
|
|
|
|
|
tp.NAME AS patientName,
|
|
|
|
@ -63,8 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
tr.update_result2 AS updateResult2,
|
|
|
|
|
tr.update_time AS updateTime,
|
|
|
|
|
tr.upload_time AS uploadTime,
|
|
|
|
|
tr.ai_result_return_time,
|
|
|
|
|
tr.ai_result_modify_time,
|
|
|
|
|
tr.ai_result_return_time AS aiResultReturnTime,
|
|
|
|
|
tr.ai_result_modify_time AS aiResultModifyTime,
|
|
|
|
|
td.NAME AS doctorName,
|
|
|
|
|
tp.identifier,
|
|
|
|
|
tp.NAME AS patientName,
|
|
|
|
@ -186,4 +189,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectTById" parameterType="Long" resultType="TRecordResp">
|
|
|
|
|
<include refid="selectTRecordWithResult"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|