Browse Source

解决核查年龄排序问题

songxinlu 3 years ago
parent
commit
d92c23eb96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/MedCheckInfoMapper.xml

+ 1 - 1
src/main/resources/mapper/MedCheckInfoMapper.xml

@@ -236,7 +236,7 @@
         mbi.`name`,
         mbi.file_code fileCode,
         mbi.sex,
-        mbi.birthday,
+        TIMESTAMPDIFF(day,ifnull(mhp.birthday,mbi.birthday),mbi.behospital_date) as birthday,
         mhp.age,
         mbi.beh_dept_name behDeptName,
         mbi.leave_hospital_date leaveHospitalDate,