@Test public void testSyncVerifyStatus() throws Exception { ResultActions results = mockMvc .perform(MockMvcRequestBuilders.post("/settlementservice/orderservice/v1/syncverifystatus") .param("orderSn", "D4405110000011704060002").param("verifyStatus", "1") .param("verifyTime", "1484192393").param("verifyName", "admin")) .andExpect(status().isOk()); results.andDo(new ResultHandler() { @Override public void handle(MvcResult result) throws Exception { System.out.println("*********"+result.getResponse().getContentAsString()); } }); }
@PostMapping(value="/syncverifystatus") public ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus) { log.info("syncVerifyStatus() in the OrderController start--"); int statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_SUCCESS; boolean isSuccess=true; String msg="同步订单审核状态数据到结算系统成功!"; try { isSuccess = orderService.syncVerifyStatus(orderStatus); } catch (Exception e) { isSuccess=false; log.error("同步订单审核状态接口 出错，orderService.syncVerifyStatus() for orderSn:{} got error:{}",orderStatus.getOrderSn(),e.getMessage(),e); } if(!isSuccess){ msg="同步订单审核状态数据到结算系统失败!"; statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_FAILURE; log.info(msg); } return SettlementUtil.buildReponseData("", statusCode, msg); }
OrderController { @PostMapping(value="/syncverifystatus") public ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus) { log.info("syncVerifyStatus() in the OrderController start--"); int statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_SUCCESS; boolean isSuccess=true; String msg="同步订单审核状态数据到结算系统成功!"; try { isSuccess = orderService.syncVerifyStatus(orderStatus); } catch (Exception e) { isSuccess=false; log.error("同步订单审核状态接口 出错，orderService.syncVerifyStatus() for orderSn:{} got error:{}",orderStatus.getOrderSn(),e.getMessage(),e); } if(!isSuccess){ msg="同步订单审核状态数据到结算系统失败!"; statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_FAILURE; log.info(msg); } return SettlementUtil.buildReponseData("", statusCode, msg); } }
OrderController { @PostMapping(value="/syncverifystatus") public ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus) { log.info("syncVerifyStatus() in the OrderController start--"); int statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_SUCCESS; boolean isSuccess=true; String msg="同步订单审核状态数据到结算系统成功!"; try { isSuccess = orderService.syncVerifyStatus(orderStatus); } catch (Exception e) { isSuccess=false; log.error("同步订单审核状态接口 出错，orderService.syncVerifyStatus() for orderSn:{} got error:{}",orderStatus.getOrderSn(),e.getMessage(),e); } if(!isSuccess){ msg="同步订单审核状态数据到结算系统失败!"; statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_FAILURE; log.info(msg); } return SettlementUtil.buildReponseData("", statusCode, msg); }  }
OrderController { @PostMapping(value="/syncverifystatus") public ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus) { log.info("syncVerifyStatus() in the OrderController start--"); int statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_SUCCESS; boolean isSuccess=true; String msg="同步订单审核状态数据到结算系统成功!"; try { isSuccess = orderService.syncVerifyStatus(orderStatus); } catch (Exception e) { isSuccess=false; log.error("同步订单审核状态接口 出错，orderService.syncVerifyStatus() for orderSn:{} got error:{}",orderStatus.getOrderSn(),e.getMessage(),e); } if(!isSuccess){ msg="同步订单审核状态数据到结算系统失败!"; statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_FAILURE; log.info(msg); } return SettlementUtil.buildReponseData("", statusCode, msg); }  @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="/syncverifystatus") public ResBodyData syncVerifyStatus(@Validated EcmMzfOrderStatus orderStatus) { log.info("syncVerifyStatus() in the OrderController start--"); int statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_SUCCESS; boolean isSuccess=true; String msg="同步订单审核状态数据到结算系统成功!"; try { isSuccess = orderService.syncVerifyStatus(orderStatus); } catch (Exception e) { isSuccess=false; log.error("同步订单审核状态接口 出错，orderService.syncVerifyStatus() for orderSn:{} got error:{}",orderStatus.getOrderSn(),e.getMessage(),e); } if(!isSuccess){ msg="同步订单审核状态数据到结算系统失败!"; statusCode=ShareProfitConstants.RESPONSE_STATUS_CODE_FAILURE; log.info(msg); } return SettlementUtil.buildReponseData("", statusCode, msg); }  @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);  }