@Test public void testQueryShareProfit() throws Exception { ResultActions results = mockMvc.perform( MockMvcRequestBuilders.post("/settlementservice/orderservice/v1/queryshareprofit") .param("orderSns", "D1301020000011701040001,D1301020000011701040002")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("========*********"+result.getResponse().getContentAsString()); } }); }
@PostMapping("/queryshareprofit") public ResBodyData queryShareProfit(String[] orderSns) { List<EcmMzfShareProfit> shareProfits = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { shareProfits = orderService.queryShareProfit(Arrays.asList(orderSns)); } return SettlementUtil.success(shareProfits); }
OrderController { @PostMapping("/queryshareprofit") public ResBodyData queryShareProfit(String[] orderSns) { List<EcmMzfShareProfit> shareProfits = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { shareProfits = orderService.queryShareProfit(Arrays.asList(orderSns)); } return SettlementUtil.success(shareProfits); } }
OrderController { @PostMapping("/queryshareprofit") public ResBodyData queryShareProfit(String[] orderSns) { List<EcmMzfShareProfit> shareProfits = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { shareProfits = orderService.queryShareProfit(Arrays.asList(orderSns)); } return SettlementUtil.success(shareProfits); }  }
OrderController { @PostMapping("/queryshareprofit") public ResBodyData queryShareProfit(String[] orderSns) { List<EcmMzfShareProfit> shareProfits = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { shareProfits = orderService.queryShareProfit(Arrays.asList(orderSns)); } return SettlementUtil.success(shareProfits); }  @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("/queryshareprofit") public ResBodyData queryShareProfit(String[] orderSns) { List<EcmMzfShareProfit> shareProfits = new ArrayList<>(); if (orderSns != null && orderSns.length > 0) { shareProfits = orderService.queryShareProfit(Arrays.asList(orderSns)); } return SettlementUtil.success(shareProfits); }  @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);  }