瀏覽代碼

质控核查字段排序

chengyao 3 年之前
父節點
當前提交
68103e06d6
共有 1 個文件被更改,包括 2 次插入1 次删除
  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`,