From bebb803781cf3103c0ec9219fce593a10cdcb006 Mon Sep 17 00:00:00 2001 From: wang0018 <1007152140@qq.com> Date: Mon, 22 Feb 2021 15:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ccsens/beneficiation/service/RecordService.java | 1 + tcm/src/main/java/com/ccsens/tcm/service/PatientService.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/service/RecordService.java b/beneficiation/src/main/java/com/ccsens/beneficiation/service/RecordService.java index d34e2b61..c81b9d88 100644 --- a/beneficiation/src/main/java/com/ccsens/beneficiation/service/RecordService.java +++ b/beneficiation/src/main/java/com/ccsens/beneficiation/service/RecordService.java @@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.lang.Snowflake; import com.ccsens.beneficiation.bean.dto.Message.BeneficiationMessageDto; import com.ccsens.beneficiation.bean.po.*; +import com.ccsens.beneficiation.bean.po.Record; import com.ccsens.beneficiation.persist.dao.RecordDao; import com.ccsens.beneficiation.persist.mapper.AdjustRecordMapper; import com.ccsens.beneficiation.persist.mapper.EquipmentMapper; diff --git a/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java b/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java index 56ba1acd..0163cb8e 100644 --- a/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java +++ b/tcm/src/main/java/com/ccsens/tcm/service/PatientService.java @@ -306,7 +306,7 @@ public class PatientService implements IPatientService { PatientInformationExample patientInformationExample=new PatientInformationExample(); patientInformationExample.createCriteria().andHospitalizationEqualTo(param.getHospitalization()).andRecStatusEqualTo((byte)0); List patientInformations = patientInformationMapper.selectByExample(patientInformationExample); - if(patientInformations.size()>=1){ + if(patientInformations.size()!=1){ throw new BaseException(CodeEnum.QUANTITYERROR); } BiologicalSamples biologicalSamples=new BiologicalSamples();