|
@@ -869,10 +869,10 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
//可能会有同一就诊次数不同缴费次数的数据,老医生系统产生,导致更新的时候索引重复,无法缴费
|
|
|
List<Clinic> clinicList = clinicMapper.selectByPatientIdAndTimes(mzDepositFileVo.getPatientId(), mzDepositFileVo.getTimes());
|
|
|
if (clinicList != null && clinicList.size() > 0) {
|
|
|
+ log.error("[chargeFee]更新就诊记录报错,删除重复的就诊记录:{}",clinicList.get(0));
|
|
|
clinicMapper.deleteById(clinicList.get(0).getId());
|
|
|
clinicMapper.updateClinicByPatientIdAndTimes(clinic);
|
|
|
}
|
|
|
- e.printStackTrace();
|
|
|
log.error(e.getLocalizedMessage());
|
|
|
}
|
|
|
|
|
@@ -1272,6 +1272,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
|
|
|
}
|
|
|
mzYjReqMapper.deleteNotPayYjReByPatientId(mzPrescriptionVo.getPatientId(), dbClinic.getTimes());
|
|
|
mzBlRecordMapper.deleteNotPayBlRecordByPatientId(mzPrescriptionVo.getPatientId(), dbClinic.getTimes());
|
|
|
+ log.error("[savePrescription]删除就诊记录:{}",dbClinic);
|
|
|
clinicMapper.deleteById(dbClinic.getId());
|
|
|
if(mzPrescriptionVo.getMzZyReq() != null && StrUtil.isNotBlank(mzPrescriptionVo.getMzZyReq().getReqDept())){
|
|
|
List<MzZyReq> zyReqList= mzZyReqMapper.selectMzZyReqByDoctorCode(mzPrescriptionVo.getPatientId(),dbClinic.getDoctorCode());
|