|
|
|
@ -440,16 +440,14 @@ public class WisdomCarService implements IWisdomCarService { |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
for (WisdomCarVo.QueryAllCar queryAllCar : queryAllCarList) { |
|
|
|
PatientWisdomCarExample patientWisdomCarExample = new PatientWisdomCarExample(); |
|
|
|
patientWisdomCarExample.createCriteria().andCarIdEqualTo(queryAllCar.getId()); |
|
|
|
//通过平车id
|
|
|
|
List<PatientWisdomCar> patientWisdomCars = patientWisdomCarDao.selectByExample(patientWisdomCarExample); |
|
|
|
if(CollectionUtil.isEmpty(patientWisdomCars)){ |
|
|
|
WisdomCarVo.BindingCarInfo bindingCar = patientWisdomCarDao.queryBindingCar(queryAllCar.getId()); |
|
|
|
if(ObjectUtil.isNull(bindingCar)){ |
|
|
|
//未绑定
|
|
|
|
queryAllCar.setType((byte) 0); |
|
|
|
} else { |
|
|
|
queryAllCar.setPatientCarId(patientWisdomCars.get(0).getId()); |
|
|
|
queryAllCar.setPatientId(patientWisdomCars.get(0).getPatientId()); |
|
|
|
queryAllCar.setPatientCarId(bindingCar.getPatientCarId()); |
|
|
|
queryAllCar.setPatientId(bindingCar.getPatientId()); |
|
|
|
PatientProject patientProject = patientProjectDao.selectByPrimaryKey(queryAllCar.getPatientId()); |
|
|
|
if(ObjectUtil.isNotNull(patientProject)){ |
|
|
|
queryAllCar.setMedicalRecordNum(patientProject.getMedicalRecordNum()); |
|
|
|
|