@Test public void testQueryTotalProfit() throws Exception { ResultActions results = mockMvc.perform( MockMvcRequestBuilders.post("/settlementservice/orderservice/v1/querytotalprofit") .param("codes", "440511000001,4405111112").param("billStartDate", "1480867200").param("billEndDate", "1481472000")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("*********"+result.getResponse().getContentAsString()); } }); }
@PostMapping("/querytotalprofit") public ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate) { List<ShareProfitVO> shareProfitVOs=new ArrayList<>(); if(codes!=null && codes.length>0){ shareProfitVOs = orderService.queryTotalProfit(Arrays.asList(codes), billStartDate, billEndDate); } return SettlementUtil.success(shareProfitVOs); }
OrderController { @PostMapping("/querytotalprofit") public ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate) { List<ShareProfitVO> shareProfitVOs=new ArrayList<>(); if(codes!=null && codes.length>0){ shareProfitVOs = orderService.queryTotalProfit(Arrays.asList(codes), billStartDate, billEndDate); } return SettlementUtil.success(shareProfitVOs); } }
OrderController { @PostMapping("/querytotalprofit") public ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate) { List<ShareProfitVO> shareProfitVOs=new ArrayList<>(); if(codes!=null && codes.length>0){ shareProfitVOs = orderService.queryTotalProfit(Arrays.asList(codes), billStartDate, billEndDate); } return SettlementUtil.success(shareProfitVOs); }  }
OrderController { @PostMapping("/querytotalprofit") public ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate) { List<ShareProfitVO> shareProfitVOs=new ArrayList<>(); if(codes!=null && codes.length>0){ shareProfitVOs = orderService.queryTotalProfit(Arrays.asList(codes), billStartDate, billEndDate); } return SettlementUtil.success(shareProfitVOs); }  @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("/querytotalprofit") public ResBodyData queryTotalProfit(String[] codes,Integer billStartDate,Integer billEndDate) { List<ShareProfitVO> shareProfitVOs=new ArrayList<>(); if(codes!=null && codes.length>0){ shareProfitVOs = orderService.queryTotalProfit(Arrays.asList(codes), billStartDate, billEndDate); } return SettlementUtil.success(shareProfitVOs); }  @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);  }