|
@@ -203,10 +203,10 @@
|
|
mbi.file_code fileCode,
|
|
mbi.file_code fileCode,
|
|
mbi.sex,
|
|
mbi.sex,
|
|
mhp.age,
|
|
mhp.age,
|
|
- mbi.beh_dept_name behospitalDept,
|
|
|
|
|
|
+ mbi.beh_dept_name behDeptName,
|
|
mbi.leave_hospital_date leaveHospitalDate,
|
|
mbi.leave_hospital_date leaveHospitalDate,
|
|
mhp.behospital_day_num behospitalDayNum,
|
|
mhp.behospital_day_num behospitalDayNum,
|
|
- mbi.doctor_name attendingDoctor,
|
|
|
|
|
|
+ mbi.doctor_name doctorName,
|
|
mqi.score_res scoreRes,
|
|
mqi.score_res scoreRes,
|
|
mqi.level,
|
|
mqi.level,
|
|
mbi.diagnose,
|
|
mbi.diagnose,
|
|
@@ -242,13 +242,13 @@
|
|
<if test="endDate != null">
|
|
<if test="endDate != null">
|
|
<![CDATA[ AND mbi.leave_hospital_date < #{endDate}]]>
|
|
<![CDATA[ AND mbi.leave_hospital_date < #{endDate}]]>
|
|
</if>
|
|
</if>
|
|
- <if test="creatStatus != null and creatStatus == '1'">
|
|
|
|
|
|
+ <if test="creatStatus != null and creatStatus == '1'.toString()">
|
|
AND mci.job_create_time is not null
|
|
AND mci.job_create_time is not null
|
|
<if test="jobType != null and jobType != ''">
|
|
<if test="jobType != null and jobType != ''">
|
|
AND mci.job_type=#{jobType}
|
|
AND mci.job_type=#{jobType}
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="creatStatus != null and creatStatus == 0">
|
|
|
|
|
|
+ <if test="creatStatus != null and creatStatus == '0'.toString()">
|
|
AND mci.job_create_time is null
|
|
AND mci.job_create_time is null
|
|
</if>
|
|
</if>
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
@@ -257,9 +257,9 @@
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
AND mbi.behospital_code like CONCAT('%',#{behospitalCode},'%')
|
|
AND mbi.behospital_code like CONCAT('%',#{behospitalCode},'%')
|
|
</if>
|
|
</if>
|
|
- <if test="departments !=null and departments.size > 0">
|
|
|
|
|
|
+ <if test="department !=null and department.size > 0">
|
|
and mbi.beh_dept_id in
|
|
and mbi.beh_dept_id in
|
|
- <foreach collection="departments" item="item" open="(" close=")" separator=",">
|
|
|
|
|
|
+ <foreach collection="department" item="item" open="(" close=")" separator=",">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|