heng.zhang1
2020-09-16 2abd0e479bd68cc377d77ac8178cc6b21783fcf1
src/main/java/com/xcong/excoin/modules/coin/controller/OrderCoinController.java
@@ -5,6 +5,7 @@
import javax.annotation.Resource;
import javax.validation.Valid;
import com.xcong.excoin.modules.coin.entity.OrderCoinsEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -67,7 +68,12 @@
      Integer tradeType = submitSalesWalletCoinOrderDto.getTradeType();
      BigDecimal price = submitSalesWalletCoinOrderDto.getPrice();
      BigDecimal amount = submitSalesWalletCoinOrderDto.getAmount();
      return orderCoinService.submitSalesWalletCoinOrder(symbol,type,tradeType,price,amount);
      if("NEKK".equals(symbol)){
         return orderCoinService.submitSalesWalletCoinOrderWithMatch(symbol,type,tradeType,price,amount,submitSalesWalletCoinOrderDto.getEntrustAmount());
      }else{
         return orderCoinService.submitSalesWalletCoinOrder(symbol,type,tradeType,price,amount,submitSalesWalletCoinOrderDto.getEntrustAmount());
      }
   }
   
   /**