1.区分员工和管理的查询接口
This commit is contained in:
@@ -81,7 +81,7 @@ public class EmployeeHostsController {
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得员工分配主播分页")
|
||||
@Operation(summary = "管理获得员工分配主播分页")
|
||||
@PreAuthorize("@ss.hasPermission('server:employee-hosts:query')")
|
||||
public CommonResult<PageResult<EmployeeHostsRespVO>> getEmployeeHostsPage(@Valid EmployeeHostsPageReqVO pageReqVO) {
|
||||
PageResult<EmployeeHostsDO> pageResult = employeeHostsService.getEmployeeHostsPage(pageReqVO);
|
||||
|
||||
@@ -64,5 +64,7 @@ public interface EmployeeHostsMapper extends BaseMapperX<EmployeeHostsDO> {
|
||||
|
||||
int batchInsertIgnore(List<EmployeeHostsDO> list);
|
||||
|
||||
IPage<EmployeeHostsDO> selectPageWithXMLWithSelf(IPage<EmployeeHostsDO> page, @Param("req") EmployeeHostsPageReqVO reqVO);
|
||||
|
||||
IPage<EmployeeHostsDO> selectPageWithXML(IPage<EmployeeHostsDO> page, @Param("req") EmployeeHostsPageReqVO reqVO);
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class EmployeeHostsServiceImpl implements EmployeeHostsService {
|
||||
if (loginUser != null) {
|
||||
pageReqVO.setUserId(loginUser.getId());
|
||||
IPage<EmployeeHostsDO> iPage = new Page<>(pageReqVO.getPageNo(),pageReqVO.getPageSize());
|
||||
IPage<EmployeeHostsDO> newHostsDOIPage = employeeHostsMapper.selectPageWithXML(iPage, pageReqVO);
|
||||
IPage<EmployeeHostsDO> newHostsDOIPage = employeeHostsMapper.selectPageWithXMLWithSelf(iPage, pageReqVO);
|
||||
return new PageResult<>(newHostsDOIPage.getRecords(),newHostsDOIPage.getTotal());
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user