方法一:
<!-- 根据hid,hanme,grade,模糊查询医院信息--> <select id="getHospitalLike" resultType="com.hand.hand.domain.Hospital"> SELECT * FROM hospital where hid like ‘%‘||#{selectword}||‘%‘ or hname like ‘%‘||#{selectword}||‘%‘ or grade like ‘%‘||#{selectword}||‘%‘ </select> 其他拼接法,可参考:https://www.cnblogs.com/dushan/p/4766954.html
时间: 2024-10-01 02:48:47