Преглед на файлове

fixed 支付产生积分问题修复

fushengqian преди 11 месеца
родител
ревизия
86fc4ea236
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      fuint-application/src/main/java/com/fuint/common/service/impl/OrderServiceImpl.java

+ 1 - 1
fuint-application/src/main/java/com/fuint/common/service/impl/OrderServiceImpl.java

@@ -1402,7 +1402,7 @@ public class OrderServiceImpl extends ServiceImpl<MtOrderMapper, MtOrder> implem
             String needPayAmount = setting.getValue();
             Integer needPayAmountInt = Math.round(Integer.parseInt(needPayAmount));
             Double pointNum = 0d;
-            if (needPayAmountInt > 0 && orderInfo.getPayAmount().compareTo(new BigDecimal(needPayAmountInt)) > 0) {
+            if (needPayAmountInt > 0 && orderInfo.getPayAmount().compareTo(new BigDecimal(needPayAmountInt)) >= 0) {
                 BigDecimal point = orderInfo.getPayAmount().divide(new BigDecimal(needPayAmountInt), BigDecimal.ROUND_CEILING, 3);
                 pointNum = Math.ceil(point.doubleValue());
             }