| | |
| | | @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")) { |