联合查询使用resultMap获取自定义的结果集
前端页面展示Customer列表
List list = customerService.selectCustomerProductList(customer);
需要展示的是Customer和CustomerProduct的product字段
1、实体类domain添加product字段
2、使用联合查询
mapperXml中使用resultMap自定义结果集中添加product字段
查询返回list前端接收
一开始使用的resultType,返回的是数据库中的字段,一直没有返回正确数据