From 5ca37bbf06fc6ac9138225204722eeb20a09d3d0 Mon Sep 17 00:00:00 2001 From: Admin <376654749@qq.com> Date: Sat, 22 Jan 2022 07:17:57 +0000 Subject: [PATCH] fix issue --- .../module/system/royalcanin/good/OrderController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java index f3ded7b3..60a46e4b 100644 --- a/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java +++ b/smart-admin-service/smart-admin-api/src/main/java/net/lab1024/smartadmin/module/system/royalcanin/good/OrderController.java @@ -77,7 +77,7 @@ public class OrderController { ordersEntity.setCouponId(ordersEntitys.getCouponId()); total_fee = total_fee + orderService.couponTotal(ordersEntitys.getCouponTypeId(),Double.parseDouble(ordersEntitys.getCouponAmount()),Double.parseDouble(ordersEntitys.getPayAmount()),ordersEntitys.getBuyCount()); }else{ - total_fee = total_fee + Double.parseDouble(ordersEntitys.getCouponAmount())*ordersEntitys.getBuyCount(); + total_fee = total_fee + Double.parseDouble(ordersEntitys.getPayAmount()) * ordersEntitys.getBuyCount() ; } orderAddress.setAddressCityName(ordersEntitys.getOrderAddress().getAddressCityName()); orderAddress.setAddressCountyName(ordersEntitys.getOrderAddress().getAddressCountyName()); @@ -140,7 +140,7 @@ public class OrderController { ordersEntity.setCouponId(ordersEntitys.getCouponId()); total_fee = total_fee + orderService.couponTotal(ordersEntitys.getCouponTypeId(),Double.parseDouble(ordersEntitys.getCouponAmount()),Double.parseDouble(ordersEntitys.getPayAmount()),ordersEntitys.getBuyCount()); }else{ - total_fee = total_fee + Double.parseDouble(ordersEntitys.getCouponAmount())*ordersEntitys.getBuyCount(); + total_fee = total_fee + Double.parseDouble(ordersEntitys.getPayAmount()) * ordersEntitys.getBuyCount() ; } orderAddress.setAddressCityName(ordersEntitys.getOrderAddress().getAddressCityName()); orderAddress.setAddressCountyName(ordersEntitys.getOrderAddress().getAddressCountyName());