| | |
| | | package com.nq.controller; |
| | | |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.service.ExchangeRateService; |
| | | import com.nq.service.IStockAiService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | |
| | | @Autowired |
| | | IStockAiService stockAiService; |
| | | @Autowired |
| | | ExchangeRateService exchangeRateService; |
| | | |
| | | private static final ThreadLocal<Boolean> buyOrderCreated = ThreadLocal.withInitial(() -> false); |
| | | private final Lock buyLock = new ReentrantLock(); |
| | |
| | | |
| | | /** |
| | | * 获取ai交易产品订单列表 |
| | | * @param pageNum |
| | | * @param pageSize |
| | | * @param status 状态 |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @RequestMapping("getStockAiOrderList.do") |
| | |
| | | HttpServletRequest request) { |
| | | return stockAiService.getStockAiOrderList(pageNum, pageSize, status ,request); |
| | | } |
| | | |
| | | //查询汇率信息 |
| | | @RequestMapping({"getRateInfo.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getInfo() { |
| | | return exchangeRateService.getInfo(); |
| | | } |
| | | } |