| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.nq.Repository.ExchangeRateRepository; |
| | | import com.nq.common.ResponseCode; |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.dao.StockAiMapper; |
| | |
| | | import com.nq.enums.*; |
| | | import com.nq.pojo.*; |
| | | import com.nq.service.*; |
| | | import com.nq.vo.stock.ai.StockAIOrderPositionVO; |
| | | import com.nq.vo.stock.ai.StockAiOrderTypeVO; |
| | | import com.nq.vo.stock.ai.StockAiOrderVO; |
| | | import com.nq.vo.stock.ai.StockAiVO; |
| | |
| | | } |
| | | return ServerResponse.createByError(); |
| | | } |
| | | |
| | | /** |
| | | * 建仓列表 |
| | | * 建仓列表 |
| | | * @param pageNum |
| | | * @param pageSize |
| | | * @param stockAiOrderId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ServerResponse getPositionList(Integer pageNum, Integer pageSize, Integer stockAiOrderId) { |
| | | try { |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List<StockAIOrderPositionVO> positionVOList = stockAiOrderPositionMapper.getPositionListByOrderId(stockAiOrderId); |
| | | PageInfo<StockAIOrderPositionVO> pageInfo = new PageInfo<>(positionVOList); |
| | | return ServerResponse.createBySuccess(pageInfo); |
| | | } catch (Exception e) { |
| | | log.error("StockAiService getPositionList error", e); |
| | | } |
| | | return ServerResponse.createByError(); |
| | | } |
| | | } |