|
|
|
|
@ -1,8 +1,13 @@ |
|
|
|
|
package edu.ncst.award.service.impl.system; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import edu.ncst.award.common.core.page.TableDataInfo; |
|
|
|
|
import edu.ncst.award.common.util.spring.SpringUtils; |
|
|
|
|
import edu.ncst.award.mapper.system.SysRoleMapper; |
|
|
|
|
import edu.ncst.award.model.system.Role; |
|
|
|
|
import edu.ncst.award.model.system.User; |
|
|
|
|
import edu.ncst.award.service.ISysRoleService; |
|
|
|
|
import edu.ncst.award.vo.param.query.PageQuery; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
@ -31,7 +36,14 @@ public class SysRoleServiceImpl implements ISysRoleService { |
|
|
|
|
// 若依框架是这样写的但是不太理解
|
|
|
|
|
// SpringUtils.getAopProxy(this).selectRoleList(new Role());
|
|
|
|
|
// SpringUtils.getBean(SysRoleServiceImpl.class).selectRoleList(new Role());
|
|
|
|
|
return selectRoleList(new Role()); |
|
|
|
|
return SpringUtils.getAopProxy(this).selectRoleList(new Role()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public TableDataInfo<Role> selectPageRoleList(Role role, PageQuery pageQuery) { |
|
|
|
|
Page<Role> page = baseMapper.selectPageRoleList(pageQuery.build(), role); |
|
|
|
|
return TableDataInfo.build(page); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|