🐛 Fixing a bug.修复调整字段后导致的BUG

This commit is contained in:
lishangbu 2021-12-29 16:11:02 +08:00
parent 1caf3134dc
commit 02e4b264f3
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@
package com.pig4cloud.pig.common.mybatis;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.pig4cloud.pig.common.mybatis.config.MybatisPlusMetaObjectHandler;
@ -53,7 +52,7 @@ public class MybatisAutoConfiguration implements WebMvcConfigurer {
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PigPaginationInnerInterceptor(DbType.MYSQL));
interceptor.addInnerInterceptor(new PigPaginationInnerInterceptor());
return interceptor;
}

View File

@ -55,6 +55,6 @@
LEFT JOIN sys_role_menu ON sys_menu.menu_id = sys_role_menu.menu_id
WHERE sys_menu.del_flag = 0
AND sys_role_menu.role_id = #{roleId}
ORDER BY sys_menu.sort DESC
ORDER BY sys_menu.sort_order DESC
</select>
</mapper>