mapper 对象别名错误修复

master
wyb 2 years ago
parent d006e6c4e7
commit 9a861b49ce

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

Loading…
Cancel
Save