Browse Source

提交代码

recovery
wang0018 4 years ago
parent
commit
bebb803781
  1. 1
      beneficiation/src/main/java/com/ccsens/beneficiation/service/RecordService.java
  2. 2
      tcm/src/main/java/com/ccsens/tcm/service/PatientService.java

1
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 cn.hutool.core.lang.Snowflake;
import com.ccsens.beneficiation.bean.dto.Message.BeneficiationMessageDto; import com.ccsens.beneficiation.bean.dto.Message.BeneficiationMessageDto;
import com.ccsens.beneficiation.bean.po.*; 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.dao.RecordDao;
import com.ccsens.beneficiation.persist.mapper.AdjustRecordMapper; import com.ccsens.beneficiation.persist.mapper.AdjustRecordMapper;
import com.ccsens.beneficiation.persist.mapper.EquipmentMapper; import com.ccsens.beneficiation.persist.mapper.EquipmentMapper;

2
tcm/src/main/java/com/ccsens/tcm/service/PatientService.java

@ -306,7 +306,7 @@ public class PatientService implements IPatientService {
PatientInformationExample patientInformationExample=new PatientInformationExample(); PatientInformationExample patientInformationExample=new PatientInformationExample();
patientInformationExample.createCriteria().andHospitalizationEqualTo(param.getHospitalization()).andRecStatusEqualTo((byte)0); patientInformationExample.createCriteria().andHospitalizationEqualTo(param.getHospitalization()).andRecStatusEqualTo((byte)0);
List<PatientInformation> patientInformations = patientInformationMapper.selectByExample(patientInformationExample); List<PatientInformation> patientInformations = patientInformationMapper.selectByExample(patientInformationExample);
if(patientInformations.size()>=1){ if(patientInformations.size()!=1){
throw new BaseException(CodeEnum.QUANTITYERROR); throw new BaseException(CodeEnum.QUANTITYERROR);
} }
BiologicalSamples biologicalSamples=new BiologicalSamples(); BiologicalSamples biologicalSamples=new BiologicalSamples();

Loading…
Cancel
Save