♻️ Refactoring code. rename class name AND fix #I195SV

This commit is contained in:
冷冷 2020-02-11 16:23:07 +08:00
parent 46ca125bcb
commit 679347bbe4
13 changed files with 24 additions and 6 deletions

View File

@ -17,7 +17,6 @@
package com.pig4cloud.pig.codegen.config; package com.pig4cloud.pig.codegen.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -26,8 +25,7 @@ import org.springframework.context.annotation.Configuration;
* @date 2019/2/1 * @date 2019/2/1
*/ */
@Configuration @Configuration
@MapperScan("com.pig4cloud.pig.codegen.mapper") public class MybatisPlusConfiguration {
public class MybatisPlusConfigurer {
/** /**
* 分页插件 * 分页插件
* *

View File

@ -18,6 +18,7 @@ package com.pig4cloud.pig.codegen.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -29,6 +30,7 @@ import java.util.Map;
* @author lengleng * @author lengleng
* @date 2019/2/1 * @date 2019/2/1
*/ */
@Mapper
public interface SysGeneratorMapper { public interface SysGeneratorMapper {
/** /**

View File

@ -18,7 +18,6 @@ package com.pig4cloud.pig.admin.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.pig4cloud.pig.common.core.mybatis.DataScopeInterceptor; import com.pig4cloud.pig.common.core.mybatis.DataScopeInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -27,8 +26,7 @@ import org.springframework.context.annotation.Configuration;
* @date 2019/2/1 * @date 2019/2/1
*/ */
@Configuration @Configuration
@MapperScan("com.pig4cloud.pig.admin.mapper") public class MybatisPlusConfiguration {
public class MybatisPlusConfigurer {
/** /**
* 分页插件 * 分页插件
* *

View File

@ -18,6 +18,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysDept; import com.pig4cloud.pig.admin.api.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
@ -29,6 +30,7 @@ import java.util.List;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> { public interface SysDeptMapper extends BaseMapper<SysDept> {
/** /**

View File

@ -18,6 +18,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysDeptRelation; import com.pig4cloud.pig.admin.api.entity.SysDeptRelation;
import org.apache.ibatis.annotations.Mapper;
/** /**
* <p> * <p>
@ -27,6 +28,7 @@ import com.pig4cloud.pig.admin.api.entity.SysDeptRelation;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysDeptRelationMapper extends BaseMapper<SysDeptRelation> { public interface SysDeptRelationMapper extends BaseMapper<SysDeptRelation> {
/** /**
* 删除部门关系表数据 * 删除部门关系表数据

View File

@ -18,6 +18,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysDict; import com.pig4cloud.pig.admin.api.entity.SysDict;
import org.apache.ibatis.annotations.Mapper;
/** /**
* <p> * <p>
@ -27,6 +28,7 @@ import com.pig4cloud.pig.admin.api.entity.SysDict;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysDictMapper extends BaseMapper<SysDict> { public interface SysDictMapper extends BaseMapper<SysDict> {
} }

View File

@ -18,6 +18,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysLog; import com.pig4cloud.pig.admin.api.entity.SysLog;
import org.apache.ibatis.annotations.Mapper;
/** /**
* <p> * <p>
@ -27,5 +28,6 @@ import com.pig4cloud.pig.admin.api.entity.SysLog;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysLogMapper extends BaseMapper<SysLog> { public interface SysLogMapper extends BaseMapper<SysLog> {
} }

View File

@ -19,6 +19,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysMenu; import com.pig4cloud.pig.admin.api.entity.SysMenu;
import com.pig4cloud.pig.admin.api.vo.MenuVO; import com.pig4cloud.pig.admin.api.vo.MenuVO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
@ -30,6 +31,7 @@ import java.util.List;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> { public interface SysMenuMapper extends BaseMapper<SysMenu> {
/** /**

View File

@ -19,6 +19,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysOauthClientDetails; import com.pig4cloud.pig.admin.api.entity.SysOauthClientDetails;
import org.apache.ibatis.annotations.Mapper;
/** /**
* <p> * <p>
@ -28,6 +29,7 @@ import com.pig4cloud.pig.admin.api.entity.SysOauthClientDetails;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysOauthClientDetailsMapper extends BaseMapper<SysOauthClientDetails> { public interface SysOauthClientDetailsMapper extends BaseMapper<SysOauthClientDetails> {
} }

View File

@ -18,6 +18,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysRole; import com.pig4cloud.pig.admin.api.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
@ -29,6 +30,7 @@ import java.util.List;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> { public interface SysRoleMapper extends BaseMapper<SysRole> {
/** /**
* 通过用户ID查询角色信息 * 通过用户ID查询角色信息

View File

@ -19,6 +19,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysRoleMenu; import com.pig4cloud.pig.admin.api.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
/** /**
* <p> * <p>
@ -28,6 +29,7 @@ import com.pig4cloud.pig.admin.api.entity.SysRoleMenu;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> { public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {
} }

View File

@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.admin.api.dto.UserDTO; import com.pig4cloud.pig.admin.api.dto.UserDTO;
import com.pig4cloud.pig.admin.api.entity.SysUser; import com.pig4cloud.pig.admin.api.entity.SysUser;
import com.pig4cloud.pig.admin.api.vo.UserVO; import com.pig4cloud.pig.admin.api.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -34,6 +35,7 @@ import java.util.List;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> { public interface SysUserMapper extends BaseMapper<SysUser> {
/** /**
* 通过用户名查询用户信息含有角色信息 * 通过用户名查询用户信息含有角色信息

View File

@ -19,6 +19,7 @@ package com.pig4cloud.pig.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.SysUserRole; import com.pig4cloud.pig.admin.api.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**
@ -29,6 +30,7 @@ import org.apache.ibatis.annotations.Param;
* @author lengleng * @author lengleng
* @since 2019/2/1 * @since 2019/2/1
*/ */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> { public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
/** /**
* 根据用户Id删除该用户的角色关系 * 根据用户Id删除该用户的角色关系