|
|
@@ -69,15 +69,17 @@ public class OutpatientAuditLogJob implements Job {
|
|
|
log.error("门诊结算主单为:{} 没有诊断编码", outpatientSettleBill.getId());
|
|
|
return;
|
|
|
}
|
|
|
- AfterIncidentLog afterIncidentLog = afterIncidentLogService.addAfterIncidentLogByOutpatient(outpatientSettleBill);
|
|
|
- List<OutpatientSettlementDetails> outpatientSettlementDetailsList = outpatientSettlementDetailsService.lambdaQuery().eq(OutpatientSettlementDetails::getHisid, outpatientSettleBill.getHisid()).list();
|
|
|
- List<AfterIncidentDetailLog> afterIncidentDetailLogList = new ArrayList<>();
|
|
|
- AfterIncidentDetailLog afterIncidentDetailLog = null;
|
|
|
- List<SysUser> sysUserList = sysUserService.lambdaQuery().eq(SysUser::getDoctorId, afterIncidentLog.getDoctorId()).list();
|
|
|
+ List<SysUser> sysUserList = sysUserService.lambdaQuery().eq(SysUser::getDoctorId, outpatientSettleBill.getDoctorId()).list();
|
|
|
String doctorLevel = "0";
|
|
|
if (CollectionUtil.isNotEmpty(sysUserList)) {
|
|
|
doctorLevel = sysUserList.get(0).getDoctorLevel();
|
|
|
}
|
|
|
+ outpatientSettleBill.setDoctorLevel(outpatientSettleBill.getDoctorLevel());
|
|
|
+ AfterIncidentLog afterIncidentLog = afterIncidentLogService.addAfterIncidentLogByOutpatient(outpatientSettleBill);
|
|
|
+ List<OutpatientSettlementDetails> outpatientSettlementDetailsList = outpatientSettlementDetailsService.lambdaQuery().eq(OutpatientSettlementDetails::getHisid, outpatientSettleBill.getHisid()).list();
|
|
|
+ List<AfterIncidentDetailLog> afterIncidentDetailLogList = new ArrayList<>();
|
|
|
+ AfterIncidentDetailLog afterIncidentDetailLog = null;
|
|
|
+
|
|
|
for (OutpatientSettlementDetails outpatientSettlementDetails : outpatientSettlementDetailsList) {
|
|
|
|
|
|
afterIncidentDetailLog = new AfterIncidentDetailLog();
|