From b0de4dea5c9062bc7c192f462fc00dafd9fb3ee8 Mon Sep 17 00:00:00 2001 From: Admin <376654749@qq.com> Date: Sat, 22 Jan 2022 07:43:53 +0000 Subject: [PATCH] tes --- .../module/system/royalcanin/good/OrderController.java | 2 ++ 1 file changed, 2 insertions(+) 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 22e18121..b5d62ffa 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 @@ -71,12 +71,14 @@ public class OrderController { orderDatilListEntity.setEcPrice(ordersEntitys.getPayAmount()); orderDatilListJson.add(orderDatilListEntity); if(ordersEntitys.getCouponCode() != "" && ordersEntitys.getCouponCode() != null) { + System.out.println("123") ordersEntity.setCouponAmount(ordersEntitys.getCouponAmount()); ordersEntity.setCouponCode(ordersEntitys.getCouponCode()); ordersEntity.setCouponName(ordersEntitys.getCouponName()); ordersEntity.setCouponId(ordersEntitys.getCouponId()); total_fee = total_fee + orderService.couponTotal(ordersEntitys.getCouponTypeId(),Double.parseDouble(ordersEntitys.getCouponAmount()),Double.parseDouble(ordersEntitys.getPayAmount()),ordersEntitys.getBuyCount()); }else{ + System.out.println("321") total_fee = total_fee + Double.parseDouble(ordersEntitys.getPayAmount()) * ordersEntitys.getBuyCount() ; } orderAddress.setAddressCityName(ordersEntitys.getOrderAddress().getAddressCityName());