调整诊断记录查询

master
chenfei 2 years ago
parent c9ed837d64
commit f4dea8df30

@ -82,6 +82,11 @@ public class TRecordResp
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date aiResultReturnTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date aiResultModifyTime;
public Long getId()
{
@ -282,4 +287,24 @@ public class TRecordResp
{
this.createTime = createTime;
}
public Date getAiResultReturnTime()
{
return aiResultReturnTime;
}
public void setAiResultReturnTime(Date aiResultReturnTime)
{
this.aiResultReturnTime = aiResultReturnTime;
}
public Date getAiResultModifyTime()
{
return aiResultModifyTime;
}
public void setAiResultModifyTime(Date aiResultModifyTime)
{
this.aiResultModifyTime = aiResultModifyTime;
}
}

@ -64,4 +64,6 @@ public interface TRecordMapper
public int deleteTRecordByIds(Long[] ids);
List<TRecordResp> selectTRecordListWithoutResult(TRecordResultReq tRecord);
TRecordResp selectTById(Long id);
}

@ -62,4 +62,6 @@ public interface ITRecordService
public int deleteTRecordById(Long id);
List<TRecordResp> selectTRecordListWithoutResult(TRecordResultReq tRecord);
TRecordResp selectTById(Long id);
}

@ -101,4 +101,10 @@ public class TRecordServiceImpl implements ITRecordService
{
return tRecordMapper.selectTRecordListWithoutResult(tRecord);
}
@Override
public TRecordResp selectTById(Long id)
{
return tRecordMapper.selectTById(id);
}
}

@ -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>

Loading…
Cancel
Save