1 @RunWith(SpringRunner.class) 2 @SpringBootTest(classes = ServerStarter.class) 3 public class TadviseActionTest { 4 5 @Autowired 6 private ITradeService tradeService; 7 8 /** 9 * 期权报表_交收查询 10 */ 11 @Test 12 public void queryIpoProfitTest(){ 13 // 构建期权持仓查询的dto 14 CxtradeAdviseQueryRequest req = new CxtradeAdviseQueryRequest(); 15 req.setAdviseStatusList("1"); 16 req.setTradeInterfaceType("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,56,57,58,60,61,62,63,65,64,66,67,68,69,70,71,72,73,74,75,76,95,96,98,99,100,101,102,103,104,120,132,136,140,143,144,145"); 17 req.setBoardTypeList(""); 18 req.setLoginCompany(301001); 19 req.setLoginOperator(23); 20 req.setBeginDate(20210202); 21 req.setEndDate(20210202); 22 req.setInterCode(0); 23 req.setReportCode(""); 24 req.setOperatorList(""); 25 req.setMarketNoList(""); 26 req.setAssetTypeList(""); 27 req.setStockTypeList(""); 28 req.setType(0); 29 req.setTradeDate(20210202); 30 req.setDateType("1"); 31 req.setOperatorType("1"); 32 req.setCompanyId(301001); 33 req.setPageSize(100); 34 req.setPageNo(0); 35 req.setSortStr(""); 36 37 CxtradeAdviseQueryResponse response = tradeService.adviseQuery(req); 38 System.out.println(response.getRows()); 39 } 40 }