| | |
| | | try { |
| | | User user = iUserService.getCurrentUser(request); |
| | | if (user == null ){ |
| | | return ServerResponse.createBySuccessMsg("请先登录"); |
| | | return ServerResponse.createByErrorCodeMsg(401,"请先登录"); |
| | | } |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List<UserPosition> userPositions = userPositionMapper.getUserPositionDzList(user.getId(), status); |
| | | List<UserPositionCheckDz> userPositionCheckDzs = userPositionCheckDzService.list( |
| | | new QueryWrapper<UserPositionCheckDz>() |
| | | .eq("user_id", user.getId()).eq(status != null,"check_type", status)); |
| | | // 获取分页信息 |
| | | PageInfo<UserPosition> pageInfo = new PageInfo<>(userPositions); |
| | | PageInfo<UserPositionCheckDz> pageInfo = new PageInfo<>(userPositionCheckDzs); |
| | | return ServerResponse.createBySuccess(pageInfo); |
| | | } catch (Exception e) { |
| | | log.error("StockAiService getStockAiOrderList error", e); |