|
|
@@ -170,7 +170,7 @@ public class AdvanceWarningAuditServiceImpl extends ServiceImpl<AdvanceWarningAu
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public IPage<PrescriptionDetail> loadPrescriptionsByCase(Page<MedicalHistoryRecord> page, Integer id, String treatmentType) {
|
|
|
+ public IPage<PrescriptionDetail> loadPrescriptionsByCase(Page<MedicalHistoryRecord> page, String id, String treatmentType) {
|
|
|
|
|
|
String detailTableName = "";
|
|
|
String masterTableName = "";
|
|
|
@@ -214,6 +214,7 @@ public class AdvanceWarningAuditServiceImpl extends ServiceImpl<AdvanceWarningAu
|
|
|
|
|
|
String detailTableName = "";
|
|
|
String masterTableName = "";
|
|
|
+ treatmentType = treatmentType == null ? "1" : treatmentType;
|
|
|
if ("1".equalsIgnoreCase(treatmentType)) { // 住院
|
|
|
detailTableName = "hospitalizatio_settle_detail";
|
|
|
masterTableName = "master_admission_bill";
|
|
|
@@ -222,7 +223,7 @@ public class AdvanceWarningAuditServiceImpl extends ServiceImpl<AdvanceWarningAu
|
|
|
masterTableName = "outpatient_settle_bill";
|
|
|
}
|
|
|
//获取结算主单的科室,和医生信息
|
|
|
- PrescriptionDetail masterInfo = baseMapper.loadTreatmentMasterInfo(Integer.valueOf(id), masterTableName);
|
|
|
+ PrescriptionDetail masterInfo = baseMapper.loadTreatmentMasterInfo(id, masterTableName);
|
|
|
List<PrescriptionDetail> result = baseMapper.listPrescriptionsByCase( id, detailTableName);
|
|
|
if (!CollectionUtils.isEmpty(result)) {
|
|
|
for (PrescriptionDetail record : result) {
|