@Test public void testQueryOrderSuccess() throws Exception { Map<String, Object> map = new HashMap<>(); Orders orders = new Orders(); orders.setPayModeId(1); orders.setPrice(10); orders.setSubmitDate(new Date().getTime()); map.put("order", orders); List<CommodityAmount> list = new ArrayList<>(); CommodityAmount ca = new CommodityAmount(); ca.setCommodityId(46L); ca.setAmount(1); list.add(ca); map.put("ca", list); String s = "{\"ca\":\"[{\"commodityId\":4,\"amount\":1},{\"commodityId\":8,\"amount\":2}]}"; System.out.println(JSON.toJSONString(map)); post("/api/v1/user/orders/suc", JSON.toJSONString(map)); }
@ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId) { Map<String, Object> mapInfo = ordersService.selectPaySuccess(getUserId(), ordersId); return success(mapInfo); }
OrdersController extends BaseController { @ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId) { Map<String, Object> mapInfo = ordersService.selectPaySuccess(getUserId(), ordersId); return success(mapInfo); } }
OrdersController extends BaseController { @ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId) { Map<String, Object> mapInfo = ordersService.selectPaySuccess(getUserId(), ordersId); return success(mapInfo); }  }
OrdersController extends BaseController { @ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId) { Map<String, Object> mapInfo = ordersService.selectPaySuccess(getUserId(), ordersId); return success(mapInfo); }  @ResponseBody @ApiOperation("用户提交订单") @RequestMapping(value = "/api/v1/user/orders/sub", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addOrders(@RequestBody OrderFormData orderFormData); @ResponseBody @ApiOperation("用户查看订单信息（tip:未使用、未实现功能）") @RequestMapping(value = "/api/v1/user/orders/info", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryOrder(@RequestParam("orderid") Long orderid); @ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId); @ResponseBody @RequestMapping(value = "/api/v1/user/orders/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryAllUserOrders(); @ResponseBody @RequestMapping(value = "/api/v1/user/orders/show/code", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryOrderCodes(@ApiParam("订单ID") @RequestParam("orderId") Long orderId) {; }
OrdersController extends BaseController { @ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId) { Map<String, Object> mapInfo = ordersService.selectPaySuccess(getUserId(), ordersId); return success(mapInfo); }  @ResponseBody @ApiOperation("用户提交订单") @RequestMapping(value = "/api/v1/user/orders/sub", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addOrders(@RequestBody OrderFormData orderFormData); @ResponseBody @ApiOperation("用户查看订单信息（tip:未使用、未实现功能）") @RequestMapping(value = "/api/v1/user/orders/info", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryOrder(@RequestParam("orderid") Long orderid); @ResponseBody @ApiOperation("订单支付成功返回客户端信息接口") @RequestMapping(value = "/api/v1/user/orders/suc", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryOrderSuccess(@RequestParam("ordersId") Long ordersId); @ResponseBody @RequestMapping(value = "/api/v1/user/orders/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryAllUserOrders(); @ResponseBody @RequestMapping(value = "/api/v1/user/orders/show/code", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryOrderCodes(@ApiParam("订单ID") @RequestParam("orderId") Long orderId) {;  }