新版仿ok交易所-后端
1
zyy
2025-09-18 289a6185c9df6a57ba84f45583d8e48f08b20b90
1
1 files modified
15 ■■■■■ changed files
trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java 15 ●●●●● patch | view | raw | blame | history
trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java
@@ -267,12 +267,15 @@
     * @return
     */
    public boolean isSuspended(String symbol) {
        Item item = findBySymbol(symbol);
        //虚拟币新币才判断
        if (item.getType().equals(Item.cryptos) /*&& (item.getCurrencyType() != null && item.getCurrencyType() == 1)*/) {
            //item = getById(item.getUuid());
            if (item.getStatus() != null && item.getStatus() == 0) {
                return true;
        //Item item = findBySymbol(symbol);
        Item item = getOne(new LambdaQueryWrapper<Item>().eq(Item::getSymbol, symbol));
        if (item != null) {
            //虚拟币新币才判断
            if (item.getType().equals(Item.cryptos) /*&& (item.getCurrencyType() != null && item.getCurrencyType() == 1)*/) {
                //item = getById(item.getUuid());
                if (item.getStatus() != null && item.getStatus() == 0) {
                    return true;
                }
            }
        }
        return false;