|
|
@@ -40,6 +40,18 @@
|
|
|
bp.patient_code LIKE concat('%',#{query.queryCondition,jdbcType=VARCHAR},'%')
|
|
|
or bp.name like concat('%',#{query.queryCondition,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
|
+ <if test="query.ageRange != null and query.ageRange.size() > 0">
|
|
|
+ AND bcr.patient_age >= #{query.ageRange[0]}
|
|
|
+ </if>
|
|
|
+ <if test="query.ageRange != null and query.ageRange.size() > 1">
|
|
|
+ AND bcr.patient_age <= #{query.ageRange[1]}
|
|
|
+ </if>
|
|
|
+ <if test="query.gender != null and query.gender != ''">
|
|
|
+ AND bcr.patient_gender = #{query.gender,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="query.deptId != null and query.deptId != ''">
|
|
|
+ AND bcr.dept_id = #{query.deptId,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="selectPatientByConditionList" resultType="cn.tr.module.smart.common.dto.BizPatientDTO">
|