@Test public void testQueryOrderStatus() throws Exception { ResultActions results = mockMvc.perform( MockMvcRequestBuilders.post("/settlementservice/orderservice/v1/queryorderstatus") .param("orderSns", "D1301020000011701030001")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("*********"+result.getResponse().getContentAsString()); } }); }
@PostMapping(value="/queryorderstatus") public ResBodyData queryOrderStatus(String[] orderSns) { List<EcmMzfOrderStatus> queryorderstatus = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { queryorderstatus = orderService.queryOrderStatus(Arrays.asList(orderSns)); } return SettlementUtil.success(queryorderstatus); }
OrderController { @PostMapping(value="/queryorderstatus") public ResBodyData queryOrderStatus(String[] orderSns) { List<EcmMzfOrderStatus> queryorderstatus = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { queryorderstatus = orderService.queryOrderStatus(Arrays.asList(orderSns)); } return SettlementUtil.success(queryorderstatus); } }
OrderController { @PostMapping(value="/queryorderstatus") public ResBodyData queryOrderStatus(String[] orderSns) { List<EcmMzfOrderStatus> queryorderstatus = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { queryorderstatus = orderService.queryOrderStatus(Arrays.asList(orderSns)); } return SettlementUtil.success(queryorderstatus); }  }
OrderController { @PostMapping(value="/queryorderstatus") public ResBodyData queryOrderStatus(String[] orderSns) { List<EcmMzfOrderStatus> queryorderstatus = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { queryorderstatus = orderService.queryOrderStatus(Arrays.asList(orderSns)); } return SettlementUtil.success(queryorderstatus); }  @PostMapping("/shareprofit") ResBodyData shareProfit(@Validated EcmOrder ecmOrder); @PostMapping(value="/queryorderstatus") ResBodyData queryOrderStatus(String[] orderSns); @PostMapping(value="/syncverifystatus") ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus); @PostMapping("/queryshareprofit") ResBodyData queryShareProfit(String[] orderSns); @PostMapping("/queryprofitbyrole") ResBodyData queryProfitByRole(String code,Integer accountRoleType); @PostMapping("/querytotalprofit") ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate); }
OrderController { @PostMapping(value="/queryorderstatus") public ResBodyData queryOrderStatus(String[] orderSns) { List<EcmMzfOrderStatus> queryorderstatus = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { queryorderstatus = orderService.queryOrderStatus(Arrays.asList(orderSns)); } return SettlementUtil.success(queryorderstatus); }  @PostMapping("/shareprofit") ResBodyData shareProfit(@Validated EcmOrder ecmOrder); @PostMapping(value="/queryorderstatus") ResBodyData queryOrderStatus(String[] orderSns); @PostMapping(value="/syncverifystatus") ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus); @PostMapping("/queryshareprofit") ResBodyData queryShareProfit(String[] orderSns); @PostMapping("/queryprofitbyrole") ResBodyData queryProfitByRole(String code,Integer accountRoleType); @PostMapping("/querytotalprofit") ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate);  }