From 726f97c55b0937bf0d048313271bdd7a80cdd1f6 Mon Sep 17 00:00:00 2001 From: CeDo <cedoogle@gmail.com> Date: 星期二, 20 四月 2021 12:38:30 +0800 Subject: [PATCH] add:添加订单相关联字段 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 98 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java index a068fd1..d93dacc 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java @@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; +import java.util.Date; import java.util.List; import javax.validation.constraints.NotNull; @@ -96,6 +97,18 @@ return comShopStoreService.getOneInfo(id); } + + /** + * 获取用户商铺详细 + * + * @param userId 用户ID + * @return + */ + @GetMapping("/getUserStoreInfo") + public R getUserStoreInfo(@RequestParam("userId") Long userId) { + return comShopStoreService.getUserStoreInfo(userId); + } + /** * 添加商城后台日志 * @@ -145,6 +158,7 @@ */ @PostMapping("/pageShopGoods") public R pageShopGoods(@RequestBody ComShopGoodsDTO comShopGoodsDTO) { + return comShopGoodsService.pageShopGoods(comShopGoodsDTO); } @@ -363,7 +377,7 @@ } /** - * 删除商品 + * 修改商品状态 * @param id * @return */ @@ -372,4 +386,87 @@ return comShopGoodsService.changeStatus(id,status); } + /** + * 商家资金的订单详情 + * @param id + * @return + */ + @GetMapping("capitalDetailByStore") + public R capitalDetailByStore(@RequestParam("id") Long id) { + return comShopOrderService.capitalDetailByStore(id); + } + + /** + * 订单发货 + * @param orderShipDTO 发货信息 + * @return 发货结果 + */ + @PostMapping("/shipOrder") + R shipOrder(@RequestBody ComShopOrderShipDTO orderShipDTO){ + return comShopOrderService.shipOrder(orderShipDTO); + } + + /** + * 订单配送 + * @param deliverDTO 订单ID + * @return 配送结果 + */ + @PostMapping("/deliverOrder") + R deliverOrder(@RequestBody ComShopOrderDeliverDTO deliverDTO){ + Long orderId = deliverDTO.getOrderId(); + return comShopOrderService.deliverOrder(orderId); + } + /** + * 订单配送 + * @param deliverDTO 订单ID + * @return 配送完成 + */ + @PostMapping("/finishDeliverOrder") + R finishDeliverOrder(@RequestBody ComShopOrderDeliverDTO deliverDTO){ + Long orderId = deliverDTO.getOrderId(); + return comShopOrderService.finishDeliverOrder(orderId); + } + + /** + * 订单导出信息 + * @param comShopOrderExportDTO 订单导出信息 + * @return 订单导出信息 + */ + @PostMapping("/shopOrderExportData") + R shopOrderExportData(@RequestBody ComShopOrderExportDTO comShopOrderExportDTO){ + return comShopOrderService.shopOrderExportData(comShopOrderExportDTO); + } + + /** + * 资金管理导出信息 + * @param comShopFundsExportDTO 资金管理导出信息 + * @return 资金管理导出信息 + */ + @PostMapping("/shopOrderFundsExportData") + R shopOrderFundsExportData(@RequestBody ComShopFundsExportDTO comShopFundsExportDTO){ + return comShopOrderService.shopOrderFundsExportData(comShopFundsExportDTO); + } + + + /** + * 用户资金统计信息 + * @param userId 用户ID + * @return 统计信息 + */ + @GetMapping("/getFundsStat") + R getFundsStat(@RequestParam("userId") Long userId){ + return comShopOrderService.getFundsStat(userId); + } + + /** + * 店铺资金统计信息 + * @param pageComShopFundsSearchDTO 店铺资金 + * @return 店铺资金统计信息 + */ + @PostMapping("/pageShopFunds") + R pageShopFunds(@RequestBody PageComShopFundsSearchDTO pageComShopFundsSearchDTO){ + return comShopOrderService.pageShopFunds(pageComShopFundsSearchDTO); + } + + } -- Gitblit v1.7.1