|
|
@@ -325,7 +325,9 @@ public class OrderService {
|
|
|
if (collection.getSource().equals(CollectionSource.TRANSFER)) {
|
|
|
Asset asset = assetRepo.findById(collection.getAssetId()).orElseThrow(new BusinessException("无记录"));
|
|
|
User owner = userRepo.findById(asset.getUserId()).orElseThrow(new BusinessException("拥有者用户不存在"));
|
|
|
+ restAmount = divMoney(restAmount, divMembers, "0", BigDecimal.valueOf(1), true); // gas费
|
|
|
if (collection.getServiceCharge() + collection.getRoyalties() > 0) {
|
|
|
+ // 手续费和服务费
|
|
|
restAmount = divMoney(totalAmount, restAmount, divMembers, "0",
|
|
|
collection.getServiceCharge() + collection.getRoyalties(), true);
|
|
|
}
|