|
|
|
@ -2,10 +2,13 @@ package com.glxp.api.controller.auth;
|
|
|
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.entity.auth.DeptEntity;
|
|
|
|
|
import com.glxp.api.entity.auth.DeptUserEntity;
|
|
|
|
|
import com.glxp.api.req.auth.FilterDeptUserReqeust;
|
|
|
|
|
import com.glxp.api.req.auth.FilterInvWarehouseRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.auth.DeptUserResponse;
|
|
|
|
|
import com.glxp.api.service.auth.DeptService;
|
|
|
|
|
import com.glxp.api.service.auth.DeptUserService;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
@ -23,10 +26,16 @@ public class DeptUserController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
DeptUserService deptUserService;
|
|
|
|
|
@Resource
|
|
|
|
|
DeptService deptService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udi/auth/dept/user/filter")
|
|
|
|
|
public BaseResponse filterList(FilterDeptUserReqeust filterDeptUserReqeust) {
|
|
|
|
|
//获取部门id
|
|
|
|
|
Long idByCode = deptService.getIdByCode(filterDeptUserReqeust.getDeptId());
|
|
|
|
|
filterDeptUserReqeust.setDeptId(idByCode);
|
|
|
|
|
List<DeptUserResponse> deptEntityList = deptUserService.selectJoinDeptUser(filterDeptUserReqeust);
|
|
|
|
|
PageInfo<DeptUserResponse> pageInfo = new PageInfo<>(deptEntityList);
|
|
|
|
|
PageSimpleResponse<DeptUserResponse> deptEntityPageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|