医生诊断数量问题修复

master
gongzhenkun 2 years ago
parent ee71cb7a93
commit d209f2b1b0

@ -82,20 +82,6 @@ public class TRecordServiceImpl implements ITRecordService
@Override @Override
public int updateTRecord(TRecord tRecord) 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()); tRecord.setUpdateTime(DateUtils.getNowDate());
if (null == tRecord.getAiResultModifyTime()) { if (null == tRecord.getAiResultModifyTime()) {
tRecord.setAiResultModifyTime(DateUtils.getNowDate()); tRecord.setAiResultModifyTime(DateUtils.getNowDate());
@ -103,17 +89,6 @@ public class TRecordServiceImpl implements ITRecordService
return tRecordMapper.updateTRecord(tRecord); 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); return AjaxResult.success(recordHistoryDataRespMap);
} }
/**
*
*
* @param doctorId id
* @return int
*/
@Override
public int queryDoctorNumberOfDiagnosis(Long doctorId) {
return tRecordMapper.queryDoctorNumberOfDiagnosis(doctorId);
}
private RecordHistoryDataResp getDataList(List<TRecord> records, List<String> jsonKeyList) private RecordHistoryDataResp getDataList(List<TRecord> records, List<String> jsonKeyList)
{ {
@ -235,4 +199,15 @@ public class TRecordServiceImpl implements ITRecordService
} }
return recordHistoryDataResp; return recordHistoryDataResp;
} }
/**
*
*
* @param doctorId id
* @return int
*/
@Override
public int queryDoctorNumberOfDiagnosis(Long doctorId) {
return tRecordMapper.queryDoctorNumberOfDiagnosis(doctorId);
}
} }

@ -405,6 +405,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="queryDoctorNumberOfDiagnosis" resultType="java.lang.Integer"> <select id="queryDoctorNumberOfDiagnosis" resultType="java.lang.Integer">
SELECT COUNT(*) FROM t_record where doctor_id = #{doctorId}; SELECT COUNT(*) FROM t_record where doctor_id = #{doctorId} AND `status` = '1';
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save