|
|
@@ -111,15 +111,18 @@ public interface CoinMapper {
|
|
|
"issuing_days=#{issuingDays},coingecko_url=#{coingeckoUrl},cmc_url=#{cmcUrl},feixiaohao_url=#{feixiaohaoUrl},modify_time=now() where id = #{id}")
|
|
|
int updateCoinWatchlist(CoinWatchlist coinWatchlist);
|
|
|
|
|
|
- @Insert("INSERT INTO coin_watchlist_other(symbol, max_supply, circulating_supply, circulating_rate, total_supply, market_cap, fully_diluted_market_cap, cex_spot, cex_perpetual, create_time, modify_time) " +
|
|
|
- "VALUES (#{symbol}, #{maxSupply}, #{circulatingSupply}, #{circulatingRate}, #{totalSupply}, #{marketCap}, #{fullyDilutedMarketCap}, #{cexSpot}, #{cexPerpetual}, now(), now())" +
|
|
|
+ @Insert("INSERT INTO coin_watchlist_other(symbol, max_supply, circulating_supply, circulating_rate, total_supply, market_cap, fully_diluted_market_cap, create_time, modify_time) " +
|
|
|
+ "VALUES (#{symbol}, #{maxSupply}, #{circulatingSupply}, #{circulatingRate}, #{totalSupply}, #{marketCap}, #{fullyDilutedMarketCap}, now(), now())" +
|
|
|
" ON DUPLICATE KEY UPDATE max_supply=values(max_supply),circulating_supply=values(circulating_supply),circulating_rate=values(circulating_rate),total_supply=values(total_supply)" +
|
|
|
- ",market_cap=values(market_cap),fully_diluted_market_cap=values(fully_diluted_market_cap),cex_spot=values(cex_spot),cex_perpetual=values(cex_perpetual),modify_time=now()")
|
|
|
+ ",market_cap=values(market_cap),fully_diluted_market_cap=values(fully_diluted_market_cap),modify_time=now()")
|
|
|
int insertOrUpdateCoinWatchlistOther(CoinWatchlistOther coinWatchlistOther);
|
|
|
|
|
|
@Select("select a.*,b.coingecko_id from coin_watchlist_other a left join coin_watchlist b on a.symbol=b.symbol where a.delete_flag = 1 and a.symbol not in ('BTC','ETH')")
|
|
|
List<CoinWatchlistOther> findAllCoinWatchlistOther();
|
|
|
|
|
|
+ @Select("select * from coin_watchlist_other where symbol = #{symbol} and delete_flag = 1")
|
|
|
+ CoinWatchlistOther findWatchlistOtherBySymbol(String symbol);
|
|
|
+
|
|
|
@Insert({"<script>" +
|
|
|
"INSERT INTO coin_watchlist_other(symbol,cex_spot,cex_perpetual,create_time,modify_time)" +
|
|
|
" VALUES " +
|
|
|
@@ -148,7 +151,6 @@ public interface CoinMapper {
|
|
|
@Select("select * from coin_watchlist where symbol = #{symbol} and delete_flag = 1")
|
|
|
CoinWatchlist findWatchlistBySymbol(String symbol);
|
|
|
|
|
|
-
|
|
|
@Insert("INSERT INTO file_image(old_name, new_name, category_id, size, path, remark, create_time, modify_time) " +
|
|
|
"VALUES (#{oldName}, #{newName}, #{categoryId}, #{size}, #{path}, #{remark}, now(), now())")
|
|
|
int insertFileImage(FileImage fileImage);
|