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 c9bf904..d00375e 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 @@ -138,6 +138,7 @@ public class TRecordServiceImpl implements ITRecordService @Override public AjaxResult getHistoryList(TRecord tRecord) { + logger.info("get history list param is : {} ", tRecord); List tRecords = tRecordMapper.selectTRecordList(tRecord); tRecords.removeIf(o->"0".equals(o.getStatus())); if (CollectionUtils.isEmpty(tRecords)){ @@ -166,9 +167,9 @@ public class TRecordServiceImpl implements ITRecordService List result = records.stream().map(tRecord -> { JSONObject jsonObject = new JSONObject(); if(StringUtils.isEmpty(tRecord.getUpdateResult2())){ - jsonObject = JSONObject.parseObject(tRecord.getAiResult2()); + jsonObject = JSONObject.parseObject(tRecord.getAiResult()); }else if(!StringUtils.isEmpty(tRecord.getUpdateResult2())){ - jsonObject = JSONObject.parseObject(tRecord.getUpdateResult2()); + jsonObject = JSONObject.parseObject(tRecord.getUpdateResult()); } return jsonObject; }).filter(Objects::nonNull).collect(Collectors.toList()); @@ -183,7 +184,7 @@ public class TRecordServiceImpl implements ITRecordService } /** - * 得到json关键字 + * 获取json数据 * * @param obj obj * @param listName 列表名称 diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index 809a91c..f7b492b 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -25,7 +25,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, patient_id, doctor_id, hospital_id, status,ai_result2,update_result2, create_time, update_time, upload_time,response_time from t_record + select id, + patient_id, + doctor_id, + hospital_id, + status, + ai_result, + update_result, + ai_result2, + update_result2, + create_time, + update_time, + upload_time, + response_time + from t_record SELECT