|
|
|
@ -9,9 +9,12 @@ import com.glxp.api.admin.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.admin.entity.auth.AuthRole;
|
|
|
|
|
import com.glxp.api.admin.entity.auth.AuthRoleAdmin;
|
|
|
|
|
import com.glxp.api.admin.entity.auth.DeptEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inout.WarehouseUserEntity;
|
|
|
|
|
import com.glxp.api.admin.entity.inventory.InvSubWarehouseEntity;
|
|
|
|
|
import com.glxp.api.admin.req.auth.AuthAdminQueryRequest;
|
|
|
|
|
import com.glxp.api.admin.req.auth.AuthAdminSaveRequest;
|
|
|
|
|
import com.glxp.api.admin.req.auth.FilterNoSelectUserRequest;
|
|
|
|
|
import com.glxp.api.admin.req.inventory.FilterInvLinkDataRequest;
|
|
|
|
|
import com.glxp.api.admin.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.admin.res.auth.AuthAdminResponse;
|
|
|
|
|
import com.glxp.api.admin.res.auth.AuthAdminRoleResponse;
|
|
|
|
@ -59,7 +62,6 @@ public class AuthAdminController {
|
|
|
|
|
private WarehouseUserService warehouseUserService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取管理员列表
|
|
|
|
|
*/
|
|
|
|
@ -285,7 +287,7 @@ public class AuthAdminController {
|
|
|
|
|
|
|
|
|
|
// 先删除之前的角色
|
|
|
|
|
authRoleAdminService.deleteByAdminId(authAdminSaveRequest.getId());
|
|
|
|
|
warehouseUserService.deleteByCodeAndId(authAdminSaveRequest.getId(),byId.getLocSubInvCode());
|
|
|
|
|
warehouseUserService.deleteByCodeAndId(authAdminSaveRequest.getId(), byId.getLocSubInvCode());
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -295,11 +297,31 @@ public class AuthAdminController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/admin/auth/admin/selectNotSelectUser")
|
|
|
|
|
public BaseResponse selectNotSelectUser(FilterInvLinkDataRequest filterInvLinkDataRequest) {
|
|
|
|
|
List<WarehouseUserEntity> warehouseUserEntities = warehouseUserService.getWarehouseUserList(filterInvLinkDataRequest);
|
|
|
|
|
List<Long> userIds = new ArrayList<>();
|
|
|
|
|
warehouseUserEntities.forEach(user -> {
|
|
|
|
|
userIds.add(user.getUserid());
|
|
|
|
|
});
|
|
|
|
|
FilterNoSelectUserRequest filterNoSelectUserRequest = new FilterNoSelectUserRequest();
|
|
|
|
|
BeanUtils.copyProperties(filterInvLinkDataRequest, filterNoSelectUserRequest);
|
|
|
|
|
filterNoSelectUserRequest.setUserIds(userIds);
|
|
|
|
|
List<AuthAdmin> hospitalUserList = authAdminService.selectNotSelectUser(filterNoSelectUserRequest);
|
|
|
|
|
PageInfo<AuthAdmin> authAdminPageInfo = new PageInfo<>(hospitalUserList);
|
|
|
|
|
PageSimpleResponse<AuthAdmin> authAdminPageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
authAdminPageSimpleResponse.setTotal(authAdminPageInfo.getTotal());
|
|
|
|
|
authAdminPageSimpleResponse.setList(hospitalUserList);
|
|
|
|
|
return ResultVOUtils.success(authAdminPageSimpleResponse);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//仓库未关联用户列表
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/admin/auth/admin/hospitalUserList")
|
|
|
|
|
public BaseResponse getHospitalUserList() {
|
|
|
|
|
List<AuthAdmin> hospitalUserList = authAdminService.getHospitalUserList();
|
|
|
|
|
return ResultVOUtils.success(hospitalUserList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|