|
@@ -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`,
|