Bläddra i källkod

质控核查字段排序

chengyao 3 år sedan
förälder
incheckning
68103e06d6
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/main/resources/mapper/MedCheckInfoMapper.xml

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

@@ -236,10 +236,11 @@
         mbi.`name`,
         mbi.file_code fileCode,
         mbi.sex,
+        TIMESTAMPDIFF(day,ifnull(mhp.birthday,mbi.birthday),mbi.behospital_date) as birthday,
         mhp.age,
         mbi.beh_dept_name behDeptName,
         mbi.leave_hospital_date leaveHospitalDate,
-        mhp.behospital_day_num behospitalDayNum,
+        mhp.behospital_day_num+0 behospitalDayNum,
         mbi.doctor_name doctorName,
         mqi.score_res scoreRes,
         mqi.`level`,