| | |
| | | throw new BusinessException("请稍后再试"); |
| | | } |
| | | List<Map<String, Object>> list = this.contractOrderService.findSubmittedRedis(partyId, symbol); |
| | | if(ObjectUtils.isNotEmpty(list)) { |
| | | for(Map<String, Object> map :list) { |
| | | if(!direction.equals(map.get("direction"))) { |
| | | throw new BusinessException("同一币种不允许多空双开"); |
| | | } |
| | | } |
| | | } |
| | | // if(ObjectUtils.isNotEmpty(list)) { |
| | | // for(Map<String, Object> map :list) { |
| | | // if(!direction.equals(map.get("direction"))) { |
| | | // throw new BusinessException("同一币种不允许多空双开"); |
| | | // } |
| | | // } |
| | | // } |
| | | if (StringUtils.isNullOrEmpty(lever_rate)) { |
| | | lever_rate = "1"; |
| | | } |