|
@ -90,7 +90,7 @@ public class PmsTreatmentServiceImpl implements PmsTreatmentService { |
|
|
PmsTreatment pmsTreatment = BeanUtil.copyProperties(dto, PmsTreatment.class); |
|
|
PmsTreatment pmsTreatment = BeanUtil.copyProperties(dto, PmsTreatment.class); |
|
|
|
|
|
|
|
|
PmsPatientExample pmsPatientExample = new PmsPatientExample(); |
|
|
PmsPatientExample pmsPatientExample = new PmsPatientExample(); |
|
|
pmsPatientExample.createCriteria().andDelFlagEqualTo((byte) 0).andIdCardEqualTo(dto.getIdCard()); |
|
|
pmsPatientExample.createCriteria().andDelFlagEqualTo((byte) 0).andNameEqualTo(dto.getName()).andPhoneEqualTo(dto.getPhone()); |
|
|
List<PmsPatient> pmsPatients = pmsPatientMapper.selectByExample(pmsPatientExample); |
|
|
List<PmsPatient> pmsPatients = pmsPatientMapper.selectByExample(pmsPatientExample); |
|
|
Long patientId = null; |
|
|
Long patientId = null; |
|
|
if (CollectionUtil.isEmpty(pmsPatients)) { |
|
|
if (CollectionUtil.isEmpty(pmsPatients)) { |
|
@ -139,8 +139,10 @@ public class PmsTreatmentServiceImpl implements PmsTreatmentService { |
|
|
patientQueueRelation.setPinyinSimple(PinyinUtil.getFirstLetter(pmsTreatment.getName(), "")); |
|
|
patientQueueRelation.setPinyinSimple(PinyinUtil.getFirstLetter(pmsTreatment.getName(), "")); |
|
|
patientQueueRelation.setCreateBy(SecurityUtils.getUsername()); |
|
|
patientQueueRelation.setCreateBy(SecurityUtils.getUsername()); |
|
|
patientQueueRelation.setTenantId(SecurityUtils.getTenantId()); |
|
|
patientQueueRelation.setTenantId(SecurityUtils.getTenantId()); |
|
|
patientQueueRelation.setIdCard(dto.getIdCard()); |
|
|
if (StrUtil.isNotEmpty(dto.getIdCard())) { |
|
|
patientQueueRelation.setIdCardType(dto.getIdCardType().byteValue()); |
|
|
patientQueueRelation.setIdCard(dto.getIdCard()); |
|
|
|
|
|
patientQueueRelation.setIdCardType(dto.getIdCardType().byteValue()); |
|
|
|
|
|
} |
|
|
patientQueueRelation.setPatientId(patientId); |
|
|
patientQueueRelation.setPatientId(patientId); |
|
|
patientQueueRelation.setQueueId(null); |
|
|
patientQueueRelation.setQueueId(null); |
|
|
patientQueueRelation.setCreateTime(new Date()); |
|
|
patientQueueRelation.setCreateTime(new Date()); |
|
@ -535,7 +537,7 @@ public class PmsTreatmentServiceImpl implements PmsTreatmentService { |
|
|
//查询租户
|
|
|
//查询租户
|
|
|
DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(pmsTreatment.getTenantId()); |
|
|
DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(pmsTreatment.getTenantId()); |
|
|
|
|
|
|
|
|
String pdfName = pmsTreatment.getName() + "_" + pmsTreatment.getVisitNumber(); |
|
|
String pdfName = pmsTreatment.getName() + "_" + pmsTreatment.getId(); |
|
|
String wordPath = profilePath + File.separator + pdfName + ".docx"; |
|
|
String wordPath = profilePath + File.separator + pdfName + ".docx"; |
|
|
String pdfPath = profilePath + File.separator + pdfName + ".pdf"; |
|
|
String pdfPath = profilePath + File.separator + pdfName + ".pdf"; |
|
|
try { |
|
|
try { |
|
|