|
@@ -2225,15 +2225,18 @@ public class SetlListUpldService {
|
|
|
**/
|
|
|
public ResultVo<List<QualityInfoVO>> drgQualityTest(ZyInactpatient param) {
|
|
|
List<QualityInfoVO> qualityInfoVOS;
|
|
|
- SiLog siLog = null;
|
|
|
+ SiLog siLog = new SiLog(SiUtil.makeMsgId(), SiFunction.QUALITY_INFO.getCode(),null, redisLikeService.getUserInfoByToken().getCode(),null, null, param.getInpatientNo(), param.getAdmissTimes(), param.getLedgerSn(), 1, null);
|
|
|
try {
|
|
|
SetlinfoUpld setlinfoUpldInfo = getSetlinfoUpldInfo(param.getInpatientNo(), param.getAdmissTimes(), param.getLedgerSn());
|
|
|
+ siLog.setInsuplcAdmdvs(setlinfoUpldInfo.getInsuplc());
|
|
|
+ siLog.setPsnNo(setlinfoUpldInfo.getPsnNo());
|
|
|
AssertUtil.isnotBlank(setlinfoUpldInfo, "结算清单基本信息为空");
|
|
|
Map<String, Object> tempResult = getDrgQualityResult(param, setlinfoUpldInfo);
|
|
|
JSONObject resultInfo = (JSONObject) tempResult.get("result");
|
|
|
Object qualityParam = tempResult.get("param");
|
|
|
log.info("质控测算返回:{}", JSON.toJSONString(resultInfo));
|
|
|
- siLog = new SiLog(SiUtil.makeMsgId(), SiFunction.QUALITY_INFO.getCode(), setlinfoUpldInfo.getInsuplc(), redisLikeService.getUserInfoByToken().getCode(), JSON.toJSONString(qualityParam), JSON.toJSONString(resultInfo), param.getInpatientNo(), param.getAdmissTimes(), param.getLedgerSn(), 1, setlinfoUpldInfo.getPsnNo());
|
|
|
+ siLog.setBody(JSON.toJSONString(qualityParam));
|
|
|
+ siLog.setResult(JSON.toJSONString(resultInfo));
|
|
|
if (resultInfo.getBooleanValue("isSuccess")) {
|
|
|
siLog.setInfcode(0);
|
|
|
JSONArray jsonArray = resultInfo.getJSONObject("result").getJSONArray("quality_info");
|
|
@@ -2248,12 +2251,14 @@ public class SetlListUpldService {
|
|
|
}
|
|
|
} else {
|
|
|
siLog.setInfcode(-1);
|
|
|
+ siLog.setBody("{\"errMsg\":\"质控测算报错\"}");
|
|
|
siLogService.delAndSave(siLog);
|
|
|
throw new BizException(ExceptionEnum.LOGICAL_ERROR, "创智质控测算接口调用失败");
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
siLog.setInfcode(-1);
|
|
|
+ siLog.setBody("{\"errMsg\":\"质控测算报错\"}");
|
|
|
siLogService.delAndSave(siLog);
|
|
|
if (e instanceof BizException) {
|
|
|
throw new BizException(ExceptionEnum.LOGICAL_ERROR, e.getMessage());
|