| | |
| | | import com.nq.dao.*; |
| | | import com.nq.pojo.*; |
| | | import com.nq.service.*; |
| | | import com.nq.utils.TradingDayUtil; |
| | | import com.nq.utils.DateTimeUtil; |
| | | import com.nq.utils.KeyUtils; |
| | | import com.nq.utils.UserFundUtil; |
| | |
| | | return ServerResponse.createByErrorMsg("下单失败,请先实名认证"); |
| | | } |
| | | // 判断休息日不能买入 |
| | | if (siteProduct.getHolidayDisplay()) { |
| | | if (TradingDayUtil.shouldBlockTradingToday(siteProduct)) { |
| | | return ServerResponse.createByErrorMsg("周末或节假日不能交易!"); |
| | | } |
| | | //重复申购限制 |
| | |
| | | SiteProduct siteProduct = iSiteProductService.getProductSetting(); |
| | | |
| | | // 判斷休息日不能買入 |
| | | if (siteProduct.getHolidayDisplay()) { |
| | | if (TradingDayUtil.shouldBlockTradingToday(siteProduct)) { |
| | | return ServerResponse.createByErrorMsg("周末或節假日不能交易!"); |
| | | } |
| | | //重復申購限製 |
| | |
| | | userPosition.setOrderStayDays(1); |
| | | |
| | | |
| | | BigDecimal buy_fee_amt = com.nq.utils.TradeFeeUtil.calcBuyFee(buy_amt); |
| | | BigDecimal buy_fee_amt = com.nq.utils.TradeFeeUtil.calcBuyFee(buy_amt, siteSetting.getBuyFee()); |
| | | log.info("创建模拟持仓 手续费(配资后总资金 * 百分比) = {}", buy_fee_amt); |
| | | userPosition.setOrderFee(buy_fee_amt); |
| | | |