<select id="findall" resultType="com.ly.bean.Cardian">
select * from cardian
<where>
<if test="phone!=null">
and phone=#{phone}
</if>
<if test="name!=null">
and name=#{name}
</if>
</where>
</select>
mapper动态sql查询语句
最新推荐文章于 2023-12-25 11:34:51 发布