修改分佣算法添加异常费率判断处理
This commit is contained in:
@@ -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())){
|
||||
|
||||
Reference in New Issue
Block a user