| | |
| | | import com.yami.trading.bean.item.domain.Item; |
| | | import com.yami.trading.bean.item.dto.ItemDTO; |
| | | import com.yami.trading.bean.item.dto.ItemLeverageDTO; |
| | | import com.yami.trading.common.exception.YamiShopBindException; |
| | | import com.yami.trading.common.util.ApplicationContextUtils; |
| | | import com.yami.trading.common.util.MarketOpenChecker; |
| | | import com.yami.trading.common.util.StringUtils; |
| | | import com.yami.trading.dao.item.ItemMapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.CacheEvict; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public boolean isContractTrading(Item item) { |
| | | item = getById(item.getUuid()); |
| | | //虚拟币新币才判断 |
| | | if (item.getType().equals(Item.cryptos) && (item.getCurrencyType() != null && item.getCurrencyType() == 1)) { |
| | | if (item.getTradeType() != null && item.getTradeType().equals("0")) { |
| | |
| | | * @return |
| | | */ |
| | | public boolean isSuspended(Item item) { |
| | | item = getById(item.getUuid()); |
| | | //虚拟币新币才判断 |
| | | if (item.getType().equals(Item.cryptos) && (item.getCurrencyType() != null && item.getCurrencyType() == 1)) { |
| | | if (item.getStatus() != null && item.getStatus() == 0) { |