From 0a40e403f712958830f4be47bc5e13773d429150 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期三, 20 九月 2023 17:36:55 +0800 Subject: [PATCH] 新增兑换记录流程 收货地址流程 --- springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/api/UnionExchangeRecordApi.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/api/UnionExchangeRecordApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/api/UnionExchangeRecordApi.java index fb6264c..438622e 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/api/UnionExchangeRecordApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/api/UnionExchangeRecordApi.java @@ -2,7 +2,9 @@ import com.panzhihua.common.model.dtos.equipment.UnionExchangeRecordDto; import com.panzhihua.common.model.dtos.equipment.UnionIntegralRecordDto; +import com.panzhihua.common.model.dtos.equipment.UnionUserDto; import com.panzhihua.common.model.vos.R; +import com.panzhihua.service_equipment.annotation.CurrentUser; import com.panzhihua.service_equipment.service.UnionExchangeRecordService; import com.panzhihua.service_equipment.service.UnionIntegralRecordService; import lombok.extern.slf4j.Slf4j; @@ -22,9 +24,9 @@ public R unionExchangeRecordGetList(@RequestParam("pageNum") int pageNum, @RequestParam("pageSize") int pageSize, @RequestParam(value = "communityId",required = false) String communityId, - @RequestParam(value = "integralTyppe",required = false) String userId) + @CurrentUser UnionUserDto unionUser) { - return unionStoreService.getList(pageNum,pageSize,communityId,userId); + return unionStoreService.getList(pageNum,pageSize,communityId,unionUser.getId()+""); } @@ -35,13 +37,14 @@ } @PostMapping("/insert") - public R unionExchangeRecordInsert(@RequestBody UnionExchangeRecordDto item) + public R unionExchangeRecordInsert(@RequestBody UnionExchangeRecordDto item, @CurrentUser UnionUserDto unionUser) { + item.setUserId(unionUser.getId()+""); return unionStoreService.insert(item); } @PostMapping("/update") - public R unionExchangeRecordUpdate(@RequestBody UnionExchangeRecordDto item) + public R unionExchangeRecordUpdate(@RequestBody UnionExchangeRecordDto item,@CurrentUser UnionUserDto unionUser) { return unionStoreService.update(item); } -- Gitblit v1.7.1