SQl语句更新

页面设计(无数据交互
F_X_Zhe 6 months ago
parent 215c237ecf
commit 74b3addbf7

@ -6,5 +6,11 @@
<select id="findAll" resultType="com.keafmd.domain.User"> <select id="findAll" resultType="com.keafmd.domain.User">
select * from instructor select * from instructor
<if test = "ID != null">
AND ID like #{ID}
</if>
<if test = "name != null">
AND name like #{name}
</if>
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save