摘要:
1注解开发: @select ( “select * from user where id=#{id} and name=#{user}”) User getUserList(@Param("id2") int id,@Param("user") String name) :@Param :应该是防 阅读全文
摘要:
1.注意事项:Mapper 里字符串用""双引号, select * from table where concat(col1,col2) like "%"#{col3}"%"; select count(id) from table; 1.实体类的属性名和数据库字段一致 2.绑定映射resourc 阅读全文