Просмотр исходного кода

[分账][修复]:手续费问题

release_toaliyun_real
Stormeye.Wu 7 лет назад
Родитель
Сommit
36e28e0181
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      mallinkService/src/main/java/com/simple/service/impl/WxProfitSharingOrderServiceImpl.java

+ 2
- 2
mallinkService/src/main/java/com/simple/service/impl/WxProfitSharingOrderServiceImpl.java Просмотреть файл

@@ -192,8 +192,8 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ
throw new MallinkException(ErrorCode.PROFIT_SHARING_RECEIVER_INVALID.getCode(), ErrorCode.PROFIT_SHARING_RECEIVER_INVALID.getMessage()); throw new MallinkException(ErrorCode.PROFIT_SHARING_RECEIVER_INVALID.getCode(), ErrorCode.PROFIT_SHARING_RECEIVER_INVALID.getMessage());
} }
// 计算分账总金额,总金额-0.6% // 计算分账总金额,总金额-0.6%
Double amountD = Math.ceil(record.getPayAmount()*1.0D*(1000-payAccount.getRate())/1000);
Integer total_amount = amountD.intValue();
Float dChargeFee = record.getPayAmount()*1.0f*payAccount.getRate()/1000;
Integer total_amount = record.getPayAmount() - Math.round(dChargeFee.floatValue());
JSONArray receivers = new JSONArray(); JSONArray receivers = new JSONArray();
List <WxProfitSharingResult> resultList = new ArrayList<WxProfitSharingResult>(); List <WxProfitSharingResult> resultList = new ArrayList<WxProfitSharingResult>();
for (int i=0;i<wxProfitSharingReceiverList.size();i++){ for (int i=0;i<wxProfitSharingReceiverList.size();i++){


Загрузка…
Отмена
Сохранить