dev
This commit is contained in:
parent
4010dc24b4
commit
154ab7386b
|
|
@ -220,8 +220,8 @@ public class OrganizationMemberService extends BaseService {
|
||||||
queryWrapper.eq("del_flag", false);
|
queryWrapper.eq("del_flag", false);
|
||||||
if (dockerSearchQuery.getKeyword() != null && !dockerSearchQuery.getKeyword().isEmpty()){
|
if (dockerSearchQuery.getKeyword() != null && !dockerSearchQuery.getKeyword().isEmpty()){
|
||||||
queryWrapper.and(wrapper -> wrapper
|
queryWrapper.and(wrapper -> wrapper
|
||||||
.like("name", dockerSearchQuery.getKeyword())
|
.or().like("name", dockerSearchQuery.getKeyword())
|
||||||
.like("section_names", dockerSearchQuery.getKeyword()));
|
.or().like("section_names", dockerSearchQuery.getKeyword()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return organizationMemberMapper.selectList(queryWrapper);
|
return organizationMemberMapper.selectList(queryWrapper);
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ public class PatientInfoService extends BaseService {
|
||||||
|
|
||||||
public PatientInfo save(PatientInfo patientInfo){
|
public PatientInfo save(PatientInfo patientInfo){
|
||||||
patientInfo.setCreateDatetime(LocalDateTime.now());
|
patientInfo.setCreateDatetime(LocalDateTime.now());
|
||||||
if (patientInfo.getBirthday() != null) {
|
if (patientInfo.getBirthday() != null && patientInfo.getAge() == null) {
|
||||||
int currentYear = LocalDate.now().getYear();
|
int currentYear = LocalDate.now().getYear();
|
||||||
int birthYear = patientInfo.getBirthday().getYear();
|
int birthYear = patientInfo.getBirthday().getYear();
|
||||||
patientInfo.setAge(currentYear - birthYear);
|
patientInfo.setAge(currentYear - birthYear);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue