From d209f2b1b0a7370bd4399b7673ca159a4026a071 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Mon, 22 Aug 2022 15:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E7=94=9F=E8=AF=8A=E6=96=AD=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TRecordServiceImpl.java | 47 +++++-------------- .../resources/mapper/system/TRecordMapper.xml | 2 +- 2 files changed, 12 insertions(+), 37 deletions(-) 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"