renren-generator自动生成的代码运行报错
版本:renren-generator |
开发环境:JDK8,IDEA |
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<CxConfigEntity> page = this.page(
new Query<CxConfigEntity>().getPage(params),
new QueryWrapper<CxConfigEntity>()
);
return new PageUtils(page);
}
Impl方法查询报错
nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM ( SELECT id,key,serviceid,code,desc,datastatus,issuccess,result,verbose,failurereason,remarks FROM mock_cx_config ) TOTAL
### The error may exist in io/renren/modules/mock/dao/CxConfigDao.java (best guess)
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM ( SELECT id,key,serviceid,code,desc,datastatus,issuccess,result,verbose,failurereason,remarks FROM mock_cx_config ) TOTAL
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM ( SELECT id,key,serviceid,code,desc,datastatus,issuccess,result,verbose,failurereason,remarks FROM mock_cx_config ) TOTAL
### The error may exist in io/renren/modules/mock/dao/CxConfigDao.java (best guess)
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM ( SELECT id,key,serviceid,code,desc,datastatus,issuccess,result,verbose,failurereason,remarks FROM mock_cx_config ) TOTAL