plf 3 år sedan
förälder
incheckning
f7038d57cb

+ 9 - 7
pay/src/main/java/com/caimei/module/pay/service/impl/PayServiceImpl.java

@@ -541,20 +541,22 @@ public class PayServiceImpl implements PayService {
             Integer id = payDao.findPromotionsOrder(order.getOrderID());
             if (1 == order.getOrderType() && id == null) {
                 BigDecimal payTotalFee = order.getPayTotalFee();
-                int num = 0;
+                int num;
                 if (MathUtil.compare(1000, payTotalFee) > -1) {
-                    num = 1000;
+                    num = 0;
                 } else if (MathUtil.compare(5000, payTotalFee) > -1) {
-                    num = 2500;
+                    num = 1000;
                 } else if (MathUtil.compare(10000, payTotalFee) > -1) {
-                    num = 5000;
+                    num = 2500;
                 } else if (MathUtil.compare(25000, payTotalFee) > -1) {
-                    num = 7500;
+                    num = 5000;
                 } else if (MathUtil.compare(100000, payTotalFee) > -1) {
-                    num = 10000;
+                    num = 7500;
                 } else if (MathUtil.compare(250000, payTotalFee) > -1) {
-                    num = 12500;
+                    num = 10000;
                 } else if (MathUtil.compare(500000, payTotalFee) > -1) {
+                    num = 12500;
+                } else {
                     num = 20000;
                 }
                 beansHistory.setBeansType(5);