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 25dbc39..d99fee4 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 @@ -82,20 +82,6 @@ public class TRecordServiceImpl implements ITRecordService @Override public int updateTRecord(TRecord tRecord) { - // 处理无图片信息 -// try { -// if (tRecord.getAiResult() != null) { -// JSONObject jsonObject = JSONObject.parseObject(tRecord.getAiResult()); -// tRecord.setAiResult2(noPicture(jsonObject)); -// } -// if (tRecord.getUpdateResult() != null) { -// JSONObject jsonObject = JSONObject.parseObject(tRecord.getUpdateResult()); -// tRecord.setUpdateResult2(noPicture(jsonObject)); -// } -// } catch (JSONException jsonException) { -// logger.error("Json 解析异常,请检查入参。"); -// throw new ServiceException("Json 解析异常,请检查入参。"); -// } tRecord.setUpdateTime(DateUtils.getNowDate()); if (null == tRecord.getAiResultModifyTime()) { tRecord.setAiResultModifyTime(DateUtils.getNowDate()); @@ -103,17 +89,6 @@ public class TRecordServiceImpl implements ITRecordService return tRecordMapper.updateTRecord(tRecord); } - private static String noPicture(JSONObject jsonObject) { - jsonObject.getJSONObject("shezhi").getJSONObject("shemian").put("img_sz", null); - jsonObject.getJSONObject("shezhi").getJSONObject("yudian").put("img_sz_yudian", null); - jsonObject.getJSONObject("shezhi").getJSONObject("yuban").put("img_sz_yuban", null); - jsonObject.getJSONObject("shezhi").getJSONObject("liewen").put("img_sz_liewen", null); - jsonObject.getJSONObject("shetai").put("img_st", null); - jsonObject.getJSONObject("shexia").put("img_sx", null); - jsonObject.getJSONObject("shexia").put("img_sx_vein", null); - return jsonObject.toString(); - } - /** * 批量删除诊断记录信息 * @@ -180,17 +155,6 @@ public class TRecordServiceImpl implements ITRecordService return AjaxResult.success(recordHistoryDataRespMap); } - /** - * 查询医生诊断次数 - * - * @param doctorId 医生id - * @return int - */ - @Override - public int queryDoctorNumberOfDiagnosis(Long doctorId) { - return tRecordMapper.queryDoctorNumberOfDiagnosis(doctorId); - } - private RecordHistoryDataResp getDataList(List records, List jsonKeyList) { @@ -235,4 +199,15 @@ public class TRecordServiceImpl implements ITRecordService } return recordHistoryDataResp; } + + /** + * 查询医生诊断次数 + * + * @param doctorId 医生id + * @return int + */ + @Override + public int queryDoctorNumberOfDiagnosis(Long doctorId) { + return tRecordMapper.queryDoctorNumberOfDiagnosis(doctorId); + } } diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index ab1e9c3..809a91c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -405,6 +405,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"