| | |
| | | import com.nq.pojo.StockAI; |
| | | import com.nq.pojo.StockAIOrderPosition; |
| | | import com.nq.service.IStockAiService; |
| | | import com.nq.service.IStockService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @Autowired |
| | | IStockAiService stockAiService; |
| | | @Autowired |
| | | IStockService stockService; |
| | | /** |
| | | * 获取ai交易产品列表 |
| | | * @return |
| | |
| | | return stockAiService.orderOperation(id, status); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据条件查询股票code 名称 或 spell |
| | | * @return |
| | | */ |
| | | @PostMapping({"getStocksByKeyWords.do"}) |
| | | @ResponseBody |
| | | public ServerResponse getStocksByKeyWords(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, |
| | | @RequestParam(value = "pageSize", defaultValue = "5") int pageSize, |
| | | @RequestParam(value = "keyWords") String keyWords) { |
| | | return stockService.getStocksByKeyWords(pageNum, pageSize, keyWords); |
| | | } |
| | | } |