优化zlt-db-spring-boot-starter自动装配MybatisPlus配置,去掉DefaultMybatisPlusConfig类
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
package com.central.user.config;
|
||||
|
||||
import com.central.db.config.DefaultMybatisPlusConfig;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
* @date 2018/12/10
|
||||
*/
|
||||
@Configuration
|
||||
@MapperScan({"com.central.user.mapper*"})
|
||||
public class MybatisPlusConfig extends DefaultMybatisPlusConfig {
|
||||
}
|
||||
@@ -2,12 +2,14 @@ package com.central.user.mapper;
|
||||
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.central.common.model.SysMenu;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 菜单
|
||||
*
|
||||
* @author zlt
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysMenuMapper extends SuperMapper<SysMenu> {
|
||||
|
||||
}
|
||||
|
||||
@@ -7,12 +7,14 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
|
||||
import com.central.common.model.SysRole;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
* 角色
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysRoleMapper extends SuperMapper<SysRole> {
|
||||
List<SysRole> findList(Page<SysRole> page, @Param("r") Map<String, Object> params);
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.central.user.mapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.central.db.mapper.SuperMapper;
|
||||
import com.central.common.model.SysUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
@@ -14,6 +15,7 @@ import java.util.Map;
|
||||
* @author zlt
|
||||
* @data 2018-10-29
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysUserMapper extends SuperMapper<SysUser> {
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
|
||||
Reference in New Issue
Block a user