| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "id", dataType = "String", required = true) |
| | | }) |
| | | public R<Boolean> confirm(@RequestParam Integer id) { |
| | | public R<Boolean> confirm(@RequestParam String id) { |
| | | if (tokenService.getLoginUser1() == null) { |
| | | return R.tokenError("登录失效"); |
| | | } |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "id", dataType = "String", required = true) |
| | | }) |
| | | public R<Boolean> confirmStudy(@RequestParam Integer id) { |
| | | public R<Boolean> confirmStudy(@RequestParam String id) { |
| | | if (tokenService.getLoginUserStudy() == null) { |
| | | return R.tokenError("登录失效"); |
| | | } |
| | |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", dataType = "String", required = true), |
| | | @ApiImplicitParam(value = "地址信息id", name = "recipientId", dataType = "String", required = true) |
| | | }) |
| | | public R updateOrderAddressParent(@RequestParam Integer orderId, @RequestParam Integer recipientId) { |
| | | public R updateOrderAddressParent(@RequestParam String orderId, @RequestParam Integer recipientId) { |
| | | if (tokenService.getLoginUser1() == null) { |
| | | return R.tokenError("登录失效"); |
| | | } |
| | |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", dataType = "String", required = true), |
| | | @ApiImplicitParam(value = "地址信息id", name = "recipientId", dataType = "String", required = true) |
| | | }) |
| | | public R updateOrderAddress(@RequestParam Integer orderId, @RequestParam Integer recipientId) { |
| | | public R updateOrderAddress(@RequestParam String orderId, @RequestParam Integer recipientId) { |
| | | if (tokenService.getLoginUserStudy() == null) { |
| | | return R.tokenError("登录失效"); |
| | | } |
| | |
| | | if (null != goods.getBasicCount()) { |
| | | number += goods.getBasicCount(); |
| | | } |
| | | number += orderService.getGoodBuyNumber(goods.getId()); |
| | | List<TOrder> list = orderService.list(new QueryWrapper<TOrder>().eq("goodsId", goods.getId())); |
| | | for (TOrder tOrder : list) { |
| | | number+=tOrder.getCount(); |
| | | } |
| | | // 剩余兑换数量 |
| | | Integer residueNumber = null; |
| | | if (null != goods.getTotal()) { |
| | |
| | | if (null != goods.getBasicCount()) { |
| | | number += goods.getBasicCount(); |
| | | } |
| | | number += orderService.getGoodBuyNumber(goods.getId()); |
| | | List<TOrder> list = orderService.list(new QueryWrapper<TOrder>().eq("goodsId", goods.getId())); |
| | | for (TOrder tOrder : list) { |
| | | number+=tOrder.getCount(); |
| | | } |
| | | // 剩余兑换数量 |
| | | Integer residueNumber = null; |
| | | if (null != goods.getTotal()) { |