multipleselect
multipleselect copied to clipboard
java 结合mybatis-plus 实现非手写sql多表查询
required a bean of type 'com.freedomen.multipleselect.service.MultipleService' that could not be found. The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)
包怎么找?
你说导入包到项目中,但是你的包怎么查不到呀?
生成sql报错
   怎么久生成了这样的sql了 你的mybatis-plus什么版本  只改了一个这个com.baomidou.mybatisplus.annotations的区别
表自连
`select distinct meuproductcategory.serial_version_u_i_d serialVersionUID,meuproductcategory.id id,meuproductcategory.id parentId,meuproductcategory.name name,meuproductcategory.level level,meuproductcategory.product_count productCount,meuproductcategory.product_unit productUnit,meuproductcategory.nav_status navStatus,meuproductcategory.show_status showStatus,meuproductcategory.sort sort,meuproductcategory.icon icon,meuproductcategory.keywords keywords,meuproductcategory.description description,meuproductcategory.serial_version_u_i_d serialVersionUID,meuproductcategory.id id,meuproductcategory.id parentId,meuproductcategory.name name,meuproductcategory.level level,meuproductcategory.product_count productCount,meuproductcategory.product_unit productUnit,meuproductcategory.nav_status navStatus,meuproductcategory.show_status showStatus,meuproductcategory.sort sort,meuproductcategory.icon icon,meuproductcategory.keywords keywords,meuproductcategory.description description from...
提议
多表连接连接字段自己定义
1.有没有只查询总记录的入口 2.设置参数 -2.1 根据字段去重如: count(distinct hs_id) -2.2 目前有没有别的方法来设置字段,活用的那种 MultipleSelect m2 = MultipleSelect.newInstance("${1}.hsId", new Abb(), new Bcc()); m2.setColumns("abb.hs_Id"); 这种方法设置参数都是写死的 abb.hs_id 能否提供一种便捷的参数类型设置类似${1}.hsId Please☺
namespace in MultipleMapper.xml should be namespace="com.freedomen.multipleselect.mapper.MultipleMapper"