dev
This commit is contained in:
parent
d7906160d2
commit
9858ed6ca3
|
|
@ -163,7 +163,7 @@ public class PatientInfoService extends BaseService {
|
|||
public void create(PatientInfo patientInfo) {
|
||||
patientInfo.setCreateDatetime(LocalDateTime.now());
|
||||
Integer exp = patientInfo.getExp();
|
||||
if (patientInfo.getBirthday() != null) {
|
||||
if (patientInfo.getAge() == null &&patientInfo.getBirthday() != null) {
|
||||
int currentYear = LocalDate.now().getYear();
|
||||
int birthYear = patientInfo.getBirthday().getYear();
|
||||
patientInfo.setAge(currentYear - birthYear);
|
||||
|
|
|
|||
Loading…
Reference in New Issue