|
|
@ -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);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|