@Test public void testQueryProfitByRole() throws Exception { ResultActions results = mockMvc.perform( MockMvcRequestBuilders.post("/settlementservice/orderservice/v1/queryprofitbyrole") .param("code", "440511").param("accountRoleType", "1")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("*********"+result.getResponse().getContentAsString()); } }); }
@PostMapping("/queryprofitbyrole") public ResBodyData queryProfitByRole(String code,Integer accountRoleType) { ShareProfitVO shareProfitVO = orderService.queryProfitByRole(code, accountRoleType); return SettlementUtil.success(shareProfitVO); }
OrderController { @PostMapping("/queryprofitbyrole") public ResBodyData queryProfitByRole(String code,Integer accountRoleType) { ShareProfitVO shareProfitVO = orderService.queryProfitByRole(code, accountRoleType); return SettlementUtil.success(shareProfitVO); } }
OrderController { @PostMapping("/queryprofitbyrole") public ResBodyData queryProfitByRole(String code,Integer accountRoleType) { ShareProfitVO shareProfitVO = orderService.queryProfitByRole(code, accountRoleType); return SettlementUtil.success(shareProfitVO); }  }
OrderController { @PostMapping("/queryprofitbyrole") public ResBodyData queryProfitByRole(String code,Integer accountRoleType) { ShareProfitVO shareProfitVO = orderService.queryProfitByRole(code, accountRoleType); return SettlementUtil.success(shareProfitVO); }  @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("/queryprofitbyrole") public ResBodyData queryProfitByRole(String code,Integer accountRoleType) { ShareProfitVO shareProfitVO = orderService.queryProfitByRole(code, accountRoleType); return SettlementUtil.success(shareProfitVO); }  @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);  }