mapper 对象别名错误修复

master
wyb 2 years ago
parent d006e6c4e7
commit 9a861b49ce

@ -21,19 +21,19 @@
`docus_medicalrecord`.`t_basic`
WHERE
is_cancel=0
<if test="dto.patientId != null and dto.patientId != ''">
<if test="basic.patientId != null and basic.patientId != ''">
and `patient_id` = #{basic.patientId}
</if>
<if test="dto.jzh != null and dto.jzh != ''">
<if test="basic.jzh != null and basic.jzh != ''">
and `jzh` = #{basic.jzh}
</if>
<if test="basic.empId != null and basic.empId != ''">
and `emp_id` = #{basic.empId}
</if>
<if test="dto.inpatientNo != null and dto.inpatientNo != ''">
<if test="basic.inpatientNo != null and basic.inpatientNo != ''">
and `inpatient_no` = #{basic.inpatientNo}
</if>
<if test="dto.admisstimes != null">
<if test="basic.admisstimes != null">
and `admiss_times` = #{basic.admissTimes}
</if>
limit 2

Loading…
Cancel
Save