|
@@ -34,13 +34,16 @@
|
|
<where>
|
|
<where>
|
|
1=1
|
|
1=1
|
|
<if test="ew.medicalDeptName != null and ew.medicalDeptName != ''">
|
|
<if test="ew.medicalDeptName != null and ew.medicalDeptName != ''">
|
|
- AND medical_dept_name like concat(concat('%',#{ew.medicalDeptName}),'%')
|
|
|
|
|
|
+ AND m.medical_dept_name like concat(concat('%',#{ew.medicalDeptName}),'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="ew.medicalDeptCode != null and ew.medicalDeptCode != ''" >
|
|
|
|
+ AND m.medical_dept_code = #{ew.medicalDeptCode}
|
|
</if>
|
|
</if>
|
|
<if test="ew.startTime != null and ew.startTime != ''">
|
|
<if test="ew.startTime != null and ew.startTime != ''">
|
|
- AND <![CDATA[ create_time >= #{ew.startTime,jdbcType=VARCHAR} ]]>
|
|
|
|
|
|
+ AND <![CDATA[ m.create_time >= #{ew.startTime,jdbcType=VARCHAR} ]]>
|
|
</if>
|
|
</if>
|
|
<if test="ew.endTime != null and ew.endTime != ''">
|
|
<if test="ew.endTime != null and ew.endTime != ''">
|
|
- AND <![CDATA[ create_time <= #{ew.endTime,jdbcType=VARCHAR} ]]>
|
|
|
|
|
|
+ AND <![CDATA[ m.create_time <= #{ew.endTime,jdbcType=VARCHAR} ]]>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
GROUP BY m.medical_dept_code
|
|
GROUP BY m.medical_dept_code
|