@Select("<script>"
+ "select * from user "
+ " <trim prefix=\"WHERE (\" suffix=\")\" prefixOverrides=\"AND |OR \">"
+ " <if test=\"id != null and id != '' \"> and id = #{id}</if> "
+ " <if test=\"name != null and name != '' \"> and name = #{name}</if> "
+ "</trim>"
+ " </script>")
public List<User> selectUserByPage(Map<String, Object> map,Page<User> page);
网友评论