修改分佣算法添加异常费率判断处理

This commit is contained in:
韩鹏辉
2023-07-12 17:44:20 +08:00
parent d5556450c3
commit bf6d441383

View File

@@ -177,6 +177,8 @@ public class MerchantProfitServiceImpl extends ServiceImpl<MerchantProfitMapper,
if (nowRate.compareTo(new BigDecimal(userPromotion.getCurrentFee())) >= 0) {
profitRate = nowRate.subtract(new BigDecimal(userPromotion.getCurrentFee()));
nowRate = new BigDecimal(userPromotion.getCurrentFee());
}else {
return;
}
if(!"1".equals(userPromotion.getIsExtend())||!"2".equals(userPromotion.getIsExtend())){