mapper动态sql查询语句

tech2026-03-15  5

<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>
最新回复(0)