| | |
| | | if (null == order) { |
| | | return ServerResponse.createByErrorMsg("当前订单不存在"); |
| | | } |
| | | IcoNewCurrency icoNewCurrency = icoNewCurrencyMapper.selectById(order.getIcoNewCurrencyId()); |
| | | if(new Date().getTime() >= icoNewCurrency.getListingTime().getTime()){ |
| | | return ServerResponse.createByErrorMsg("该币已经上市不能操作中签"); |
| | | } |
| | | //判断是认购还是配售 |
| | | if(order.getOrderType() == 2){ |
| | | |
| | |
| | | if(null == tWallet){ |
| | | return ServerResponse.createByErrorMsg("资金账户不存在"); |
| | | } |
| | | |
| | | IcoNewCurrency icoNewCurrency = icoNewCurrencyMapper.selectById(order.getIcoNewCurrencyId()); |
| | | |
| | | //配售总价 |
| | | Double totalPlacingPrice = icoNewCurrency.getIssuePrice()*order.getLotteryQuantity(); |
| | | //中签总价 |