动态sql
@Select({
"<script>",
" SELECT * FROM merchant",
" <where>",
"<if test='uname!= null '> AND uname =#{uname} </if> <if test='state!= null'> AND state =#{state} </if> ",
"</where>",
" </script>"
})
List<Merchant> SelectAll(Map map);
不知道这个错在哪里
你的html标签不对 少了“</”
是不是都少了一个</