Procházet zdrojové kódy

设置doctorlevel数据

0027005599 před 2 roky
rodič
revize
ded895570b

+ 4 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/entity/OutpatientSettleBill.java

@@ -5,6 +5,7 @@ import java.io.UnsupportedEncodingException;
 import java.util.Date;
 import java.math.BigDecimal;
 import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.baomidou.mybatisplus.annotation.TableLogic;
@@ -259,4 +260,7 @@ public class OutpatientSettleBill implements Serializable {
     private String invalidDate;
 
     private String backReceiptNo;
+
+    @TableField(exist = false)
+    private String doctorLevel;
 }

+ 7 - 5
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/job/OutpatientAuditLogJob.java

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

+ 1 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/service/impl/AfterIncidentLogServiceImpl.java

@@ -90,6 +90,7 @@ public class AfterIncidentLogServiceImpl extends ServiceImpl<AfterIncidentLogMap
         }
         afterIncidentLog.setMedicalInsurance(medicalINsurance);
         afterIncidentLog.setHisid(outpatientSettleBill.getHisid());
+        afterIncidentLog.setDoctorLevel(outpatientSettleBill.getDoctorLevel());
         this.save(afterIncidentLog);
         return afterIncidentLog;
     }