|  | @ -7877,7 +7877,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |             BasePatientDO patientDO = basePatientDao.findById(prescriptionDO.getPatientCode());
 |  |             BasePatientDO patientDO = basePatientDao.findById(prescriptionDO.getPatientCode());
 | 
												
													
														
															|  |             if (null!=patientDO&&StringUtils.isNotBlank(patientDO.getIdcard())) {
 |  |             if (null!=patientDO&&StringUtils.isNotBlank(patientDO.getIdcard())) {
 | 
												
													
														
															|  |                 age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard());
 |  |                 age = IdCardUtil.getAgeForIdcard(patientDO.getIdcard());
 | 
												
													
														
															|  |                 gender = IdCardUtil.getSexForIdcard(prescriptionDO.getIdcard());
 |  | 
 | 
												
													
														
															|  | 
 |  |                 gender = IdCardUtil.getSexForIdcard(patientDO.getIdcard());
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             data.put("name", prescriptionDO.getPatientName());
 |  |             data.put("name", prescriptionDO.getPatientName());
 | 
												
													
														
															|  |             data.put("age", age);
 |  |             data.put("age", age);
 |