diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java index 4330a29..146b708 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/resp/TRecordResp.java @@ -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; + } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java index bc1b81d..3ca39b0 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java @@ -64,4 +64,6 @@ public interface TRecordMapper public int deleteTRecordByIds(Long[] ids); List selectTRecordListWithoutResult(TRecordResultReq tRecord); + + TRecordResp selectTById(Long id); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java index 123a898..449f570 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java @@ -62,4 +62,6 @@ public interface ITRecordService public int deleteTRecordById(Long id); List selectTRecordListWithoutResult(TRecordResultReq tRecord); + + TRecordResp selectTById(Long id); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java index 40ef61f..f30b620 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java @@ -101,4 +101,10 @@ public class TRecordServiceImpl implements ITRecordService { return tRecordMapper.selectTRecordListWithoutResult(tRecord); } + + @Override + public TRecordResp selectTById(Long id) + { + return tRecordMapper.selectTById(id); + } } diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index 61c9cbe..713bcc9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + 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 + + 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} + +