Browse Source

过敏源删除

hurugang 2 years ago
parent
commit
8f8bf31b2f

+ 1 - 2
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -1195,10 +1195,9 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
         }
         MzBlRecord.formatMzBlRecord(mzBlRecord);
         mzBlRecordMapper.insertMzBlRecord(mzBlRecord);
-
+        patientAllergenInfoMapper.deleteByPatNo(mzPrescriptionVo.getPatientId());
         //设置过敏源信息
         if(mzPrescriptionVo.getPatientAllergenInfoList()!=null && mzPrescriptionVo.getPatientAllergenInfoList().size()>0){
-            patientAllergenInfoMapper.deleteByPatNo(mzPrescriptionVo.getPatientId());
             for (PatientAllergenInfo patientAllergenInfo : mzPrescriptionVo.getPatientAllergenInfoList()) {
                 patientAllergenInfo.setPatNo(mzPrescriptionVo.getPatientId());
                 patientAllergenInfoMapper.insert(patientAllergenInfo);