From 3dd6b192056298147e4a6c4bdec697e36dca011f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E4=B8=8B?= <484014559@qq.com> Date: Tue, 24 Sep 2024 18:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A7=AF=E5=88=86=E5=95=86?= =?UTF-8?q?=E5=93=81=E9=80=89=E6=8B=A9=E3=80=81=E6=BB=A1=E5=87=8F=E9=80=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-admin-vue3/src/api/mall/product/spu.ts | 2 + .../views/mall/product/spu/form/OtherForm.vue | 16 +++ .../src/views/mall/product/spu/form/index.vue | 2 + .../api/spu/dto/ProductSpuRespDTO.java | 10 ++ .../admin/spu/vo/ProductSpuRespVO.java | 8 ++ .../admin/spu/vo/ProductSpuSaveReqVO.java | 6 + .../dal/dataobject/spu/ProductSpuDO.java | 10 ++ .../api/reward/RewardActivityApi.java | 6 + .../api/reward/dto/RewardActivityDTO.java | 103 ++++++++++++++++++ .../api/reward/RewardActivityApiImpl.java | 9 ++ .../app/order/AppTradeOrderController.java | 9 +- .../vo/AppTradeOrderSettlementReqVO.java | 4 + .../vo/AppTradeOrderSettlementRespVO.java | 3 + .../order/TradeOrderUpdateServiceImpl.java | 21 +++- .../price/bo/TradePriceCalculateReqBO.java | 6 + .../TradePointUsePriceCalculator.java | 58 ++++++++-- .../TradePriceCalculatorHelper.java | 29 +++++ 17 files changed, 288 insertions(+), 14 deletions(-) create mode 100644 yudao-module-mall/yudao-module-promotion-api/src/main/java/cn/iocoder/yudao/module/promotion/api/reward/dto/RewardActivityDTO.java diff --git a/yudao-admin-vue3/src/api/mall/product/spu.ts b/yudao-admin-vue3/src/api/mall/product/spu.ts index eee632d..e3a2162 100644 --- a/yudao-admin-vue3/src/api/mall/product/spu.ts +++ b/yudao-admin-vue3/src/api/mall/product/spu.ts @@ -56,6 +56,8 @@ export interface Spu { stock?: number // 商品库存 createTime?: Date // 商品创建时间 status?: number // 商品状态 + pointsStatus?: number // 商品使用积分状态 + usePointsMax?: number // 单商品积分使用上限 } // 获得 Spu 列表 diff --git a/yudao-admin-vue3/src/views/mall/product/spu/form/OtherForm.vue b/yudao-admin-vue3/src/views/mall/product/spu/form/OtherForm.vue index e7e6358..0b4d8c6 100644 --- a/yudao-admin-vue3/src/views/mall/product/spu/form/OtherForm.vue +++ b/yudao-admin-vue3/src/views/mall/product/spu/form/OtherForm.vue @@ -1,6 +1,20 @@