| | |
| | | @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; |
| | |
| | | * @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")) { |
| | |
| | | |
| | | /** |
| | | * 是否停牌状态 |
| | | * @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; |
| | | } |