| | |
| | | import com.nq.vo.position.PositionVO; |
| | | import com.nq.vo.position.UserPositionVO; |
| | | import com.nq.vo.stock.StockListVO; |
| | | import com.nq.vo.stock.ai.StockAiOrderTypeVO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取大宗交易订单 |
| | | * @param pageNum |
| | | * @param pageSize |
| | | * @param status |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ServerResponse getDzOrderList(int pageNum, int pageSize, Integer status, HttpServletRequest request) { |
| | | try { |
| | | User user = iUserService.getCurrentUser(request); |
| | | if (user == null ){ |
| | | return ServerResponse.createBySuccessMsg("请先登录"); |
| | | } |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List<UserPosition> userPositions = userPositionMapper.getUserPositionDzList(user.getId(), status); |
| | | // 获取分页信息 |
| | | PageInfo<UserPosition> pageInfo = new PageInfo<>(userPositions); |
| | | return ServerResponse.createBySuccess(pageInfo); |
| | | } catch (Exception e) { |
| | | log.error("StockAiService getStockAiOrderList error", e); |
| | | } |
| | | return ServerResponse.createByError(); |
| | | } |
| | | |
| | | private Result getResult(UserPosition position) { |
| | | // 检查订单是否存在 |
| | | if (position == null) { |