From 5569a2ded777ba9d6177ab909e69e211456ffb9f Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Tue, 16 Sep 2025 15:18:32 +0800
Subject: [PATCH] 1
---
trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java b/trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java
index c3230f7..30627f1 100644
--- a/trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java
+++ b/trading-order-service/src/main/java/com/yami/trading/service/item/ItemService.java
@@ -41,8 +41,8 @@
@Transactional
@Slf4j
public class ItemService extends ServiceImpl<ItemMapper, Item> {
- public static final String ITEM_CACHE = "itemCache";
- public static final String ALL = "all";
+ public static final String ITEM_CACHE = "syItemCache";
+ public static final String ALL = "syAll";
@Autowired
private ItemLeverageService itemLeverageService;
@@ -252,7 +252,7 @@
* @return
*/
public boolean isContractTrading(Item item) {
- item = getById(item.getUuid());
+ item = findBySymbol(item.getUuid());
//虚拟币新币才判断
if (item.getType().equals(Item.cryptos) && (item.getCurrencyType() != null && item.getCurrencyType() == 1)) {
if (item.getTradeType() != null && item.getTradeType().equals("0")) {
@@ -264,13 +264,13 @@
/**
* 是否停牌状态
- * @param item
* @return
*/
- public boolean isSuspended(Item item) {
- item = getById(item.getUuid());
+ public boolean isSuspended(String symbol) {
+ Item item = findBySymbol(symbol);
//虚拟币新币才判断
- if (item.getType().equals(Item.cryptos) && (item.getCurrencyType() != null && item.getCurrencyType() == 1)) {
+ 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;
}
--
Gitblit v1.9.3