|
|
@ -222,6 +222,7 @@ public class PmsPatientServiceImpl implements IPmsPatientService { |
|
|
PmsPatientBodyExample patientBodyExample = new PmsPatientBodyExample(); |
|
|
PmsPatientBodyExample patientBodyExample = new PmsPatientBodyExample(); |
|
|
patientBodyExample.createCriteria().andPatientIdEqualTo(pmsPatient.getId()) |
|
|
patientBodyExample.createCriteria().andPatientIdEqualTo(pmsPatient.getId()) |
|
|
.andDelFlagEqualTo((byte) 0); |
|
|
.andDelFlagEqualTo((byte) 0); |
|
|
|
|
|
patientBodyExample.setOrderByClause("create_time desc"); |
|
|
List<PmsPatientBody> pmsPatientBodies = pmsPatientBodyMapper.selectByExample(patientBodyExample); |
|
|
List<PmsPatientBody> pmsPatientBodies = pmsPatientBodyMapper.selectByExample(patientBodyExample); |
|
|
if (CollUtil.isNotEmpty(pmsPatientBodies)) { |
|
|
if (CollUtil.isNotEmpty(pmsPatientBodies)) { |
|
|
PmsPatientBody body = pmsPatientBodies.get(0); |
|
|
PmsPatientBody body = pmsPatientBodies.get(0); |
|
|
|