|
|
@@ -14,30 +14,21 @@ import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.medical.common.bo.*;
|
|
|
import org.jeecg.modules.medical.common.bo.after.response.AfterDeptDetailRequest;
|
|
|
-import org.jeecg.modules.medical.common.bo.after.response.AfterwardsAuditDetailResponse;
|
|
|
-import org.jeecg.modules.medical.common.bo.before.AuditAdvanceWarningAuditDetailResponse;
|
|
|
-import org.jeecg.modules.medical.common.bo.mid.AuditMidDetailListResponse;
|
|
|
-import org.jeecg.modules.medical.common.bo.mid.request.AuditMidDetailListRequest;
|
|
|
-import org.jeecg.modules.medical.common.bo.mid.response.MidAuditViolateProjectStatisticsResponse;
|
|
|
import org.jeecg.modules.medical.common.enums.AfterwardsAuditStatusEnum;
|
|
|
import org.jeecg.modules.medical.entity.AfterwardsAudit;
|
|
|
import org.jeecg.modules.medical.entity.AfterwardsAuditDetail;
|
|
|
import org.jeecg.modules.medical.entity.MedicalDoctorAppealRecord;
|
|
|
import org.jeecg.modules.medical.entity.PrescriptionOrder;
|
|
|
import org.jeecg.modules.medical.mapper.AfterwardsAuditMapper;
|
|
|
-import org.jeecg.modules.medical.ruleengine.projectcache.HisMedicalProjectCache;
|
|
|
import org.jeecg.modules.medical.service.*;
|
|
|
import org.jeecg.modules.medical.vo.StaticResponse;
|
|
|
import org.jeecg.modules.system.entity.SysDepart;
|
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
|
-import org.jeecg.modules.system.entity.SysUserDepart;
|
|
|
-import org.jeecg.modules.system.model.DepartIdModel;
|
|
|
import org.jeecg.modules.system.service.ISysDepartService;
|
|
|
import org.jeecg.modules.system.service.ISysDictService;
|
|
|
import org.jeecg.modules.system.service.ISysUserDepartService;
|
|
|
import org.jeecg.modules.system.service.ISysUserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -593,12 +584,22 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public InpatientSettlementDetailResponse loadInpatientSettlementDetail(Page<MedicalInsuranceProjectDetailsResponse> page, Integer id) {
|
|
|
+ public InpatientSettlementDetailResponse loadInpatientSettlementDetail(Page<MedicalInsuranceProjectDetailsResponse> page, Integer id,String hisid) {
|
|
|
// 获取患者信息
|
|
|
- PatientInfoResponse patientInfo = baseMapper.loadInpatientSettlementInfo(id);
|
|
|
- String hisid = patientInfo.getSettlementBillNumber();
|
|
|
+ List<PatientInfoResponse> patientInfo = baseMapper.loadInpatientSettlementInfo(id);
|
|
|
+ if(oConvertUtils.isEmpty(hisid)){
|
|
|
+ hisid=patientInfo.get(0).getHisid();
|
|
|
+ }
|
|
|
// 获取医保项目明细
|
|
|
- IPage<MedicalInsuranceProjectDetailsResponse> medicalInsuranceProjects = baseMapper.loadMedicalInsuranceProjectDetails(page, hisid);
|
|
|
+ IPage<MedicalInsuranceProjectDetailsResponse> medicalInsuranceProjects = new Page<>();
|
|
|
+ if(patientInfo.get(0).getTreatmentType().equals("2")){
|
|
|
+ //门诊
|
|
|
+ medicalInsuranceProjects = baseMapper.loadMedicalOutpatientProjectDetails(page, hisid);
|
|
|
+ }else{
|
|
|
+ medicalInsuranceProjects = baseMapper.loadMedicalInsuranceProjectDetails(page, hisid);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
InpatientSettlementDetailResponse r = new InpatientSettlementDetailResponse();
|
|
|
r.setPatientInfo(patientInfo);
|
|
|
|
|
|
@@ -640,6 +641,11 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
|
|
|
return baseMapper.loadInpatientSettlementMaster(page, id);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public IPage<InpatientSettlementMasterResponse> loadTreatSettlementMaster(Page<MedicalInsuranceProjectDetailsResponse> page, Integer id) {
|
|
|
+ return baseMapper.loadTreatSettlementMaster(page, id);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public BigDecimal statisticsAfterAuditTotal(AfterDeptDetailRequest afterwardsAuditDetail) {
|
|
|
return baseMapper.statisticsAfterAuditTotal(afterwardsAuditDetail);
|