申请成为商家不扣除可用余额

pull/1/head
liushaodong 5 years ago
parent 719ca97680
commit b8e9ea10e6
  1. 2
      blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/MarketApplyServiceImpl.java

@ -97,7 +97,7 @@ public class MarketApplyServiceImpl implements MarketApplyService {
//市商申请id //市商申请id
String applyId = insertAgreeMarketApply(userId, coinName, MarketApplyConstants.MARKET,amount.multiply(BigDecimal.valueOf(-1))); String applyId = insertAgreeMarketApply(userId, coinName, MarketApplyConstants.MARKET,amount.multiply(BigDecimal.valueOf(-1)));
//冻结余额 //冻结余额
walletService.handleBalance(userId, applyId, coinName, UNIT_NAME, BigDecimal.ZERO, amount); walletService.handleBalance(userId, applyId, coinName, UNIT_NAME, amount.negate(), amount);
//增加余额变更记录 //增加余额变更记录
billService.insertBill(userId, applyId, BigDecimal.ZERO, amount, BillConstants.MARKET_USER, coinName); billService.insertBill(userId, applyId, BigDecimal.ZERO, amount, BillConstants.MARKET_USER, coinName);
} }

Loading…
Cancel
Save