From f80afdbc853857579ef24f6e679bde4be8b57e39 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 05 十二月 2022 14:15:43 +0800 Subject: [PATCH] Merge branch 'local_20221104' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ShopFlowerApi.java | 31 ++++++++++++++++++++++++++++--- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ShopFlowerApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ShopFlowerApi.java index 117710e..73880de 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ShopFlowerApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ShopFlowerApi.java @@ -176,7 +176,15 @@ @GetMapping("orderDetail") @ApiImplicitParam(name = "orderId", value = "订单id", required = true) public R orderDetail(@RequestParam("orderId") Long orderId) { - return communityService.orderDetailFlower(orderId); + return communityService.orderDetailFlower(orderId,null); + } + + @ApiOperation(value = "自提点查询订单详情", response = ComShopFlowerOrderPageVO.class) + @GetMapping("pointOrderDetail") + @ApiImplicitParam(name = "orderId", value = "订单id", required = true) + public R pointOrderDetail(@RequestParam("orderId") Long orderId) { + String phone = this.getLoginUserInfo().getPhone(); + return communityService.orderDetailFlower(orderId,phone); } @ApiOperation(value = "取消订单") @@ -224,12 +232,25 @@ * @param merchantId * @return */ - @ApiOperation(value = "获取自提点") + @ApiOperation(value = "获取自提点",response = ConvenientElevatingPointVO.class) @ApiImplicitParams({@ApiImplicitParam(name = "merchantId", value = "商家Id", required = true), @ApiImplicitParam(name = "lat", value = "经度", required = true), @ApiImplicitParam(name = "lng", value = "纬度", required = true)}) @GetMapping("/point/findPointByMerchantId") public R findPointByMerchantId(@RequestParam("merchantId") Long merchantId, @RequestParam("lat") String lat, @RequestParam("lng") String lng) { return communityService.findPointByMerchantId(merchantId, lat, lng); + } + /** + * 获取商家周围 n(km)的自提点数量 + * + * @param distance + * @return + */ + @ApiOperation(value = "获取商家周围 n(km)的自提点数量") + @ApiImplicitParams({@ApiImplicitParam(name = "merchantId", value = "商家Id", required = true), + @ApiImplicitParam(name = "lat", value = "经度", required = true), @ApiImplicitParam(name = "lng", value = "纬度", required = true)}) + @GetMapping("/point/findPointNumByDistance") + public R findPointNumByDistance(@RequestParam("distance") Integer distance, @RequestParam("lat") String lat, @RequestParam("lng") String lng) { + return communityService.findPointNumByDistance(distance, lat, lng); } /** @@ -406,7 +427,10 @@ @PostMapping("pageRefundOrder") @ApiOperation(value = "退款订单分页查询 用户", response = ComShopFlowerRefundOrderVO.class) public R pageRefundOrder(@RequestBody PageComOrderRefundDTO pageComOrderRefundDTO) { - if (null == pageComOrderRefundDTO.getStoreId()){ + LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); + if (null != loginUserInfo.getBackstageType() && 5 == loginUserInfo.getBackstageType()){ + pageComOrderRefundDTO.setStoreId(loginUserInfo.getStoreIdId()); + }else { pageComOrderRefundDTO.setUserId(this.getUserId()); } return communityService.pageRefundOrder(pageComOrderRefundDTO); @@ -534,6 +558,7 @@ @PostMapping("/shipOrderFlower") @ApiOperation(value = "订单发货") public R shipOrderFlower(@RequestBody ComShopOrderShipDTO orderShipDTO) { + orderShipDTO.setOperUserAccount(this.getLoginUserInfo().getAccount()); return communityService.shipOrderFlower(orderShipDTO); } } -- Gitblit v1.7.1