|
|
@@ -101,7 +101,7 @@ public interface CoinMapper {
|
|
|
@Update("update coin_watchlist set cmc_id=#{cmcId},total_market_ranking=#{totalMarketRanking},total_market_value=#{totalMarketValue}," +
|
|
|
"mark_price=#{markPrice},price_change_percentage_24h=#{priceChangePercentage24h},highest_historical_price=#{highestHistoricalPrice},ath_change_percentage=#{athChangePercentage},atl_change_percentage=#{atlChangePercentage},lowest_historical_price=#{lowestHistoricalPrice}," +
|
|
|
"highest_historical_date=#{highestHistoricalDate},lowest_historical_date=#{lowestHistoricalDate},increase_multiple=#{increaseMultiple}," +
|
|
|
- "issuing_days=#{issuingDays},modify_time=now() where id = #{id}")
|
|
|
+ "issuing_days=#{issuingDays},coingecko_url=#{coingeckoUrl},cmc_url=#{cmcUrl},feixiaohao_url=#{feixiaohaoUrl},modify_time=now() where id = #{id}")
|
|
|
int updateCoinWatchlist(CoinWatchlist coinWatchlist);
|
|
|
|
|
|
@Update("update coin_watchlist set remark=#{remark},modify_time=now() where symbol = #{symbol}")
|
|
|
@@ -165,8 +165,8 @@ public interface CoinMapper {
|
|
|
@MapKey("job_name")
|
|
|
Map<String, JSONObject> findMonitorJobConfig();
|
|
|
|
|
|
- @Insert("INSERT INTO coin_watchlist(cmc_id, symbol, track_category, issuing_date, coingecko_id, filter_flag, create_time, modify_time) " +
|
|
|
- "VALUES (#{cmcId}, #{symbol}, #{trackCategory}, #{issuingDate}, #{coingeckoId}, #{filterFlag}, now(), now())" +
|
|
|
+ @Insert("INSERT INTO coin_watchlist(cmc_id, symbol, track_category, issuing_date, coingecko_id, coingecko_url, cmc_url, feixiaohao_url, filter_flag, create_time, modify_time) " +
|
|
|
+ "VALUES (#{cmcId}, #{symbol}, #{trackCategory}, #{issuingDate}, #{coingeckoId}, #{coingeckoUrl}, #{cmcUrl}, #{feixiaohaoUrl}, #{filterFlag}, now(), now())" +
|
|
|
" ON DUPLICATE KEY UPDATE cmc_id=values(cmc_id),track_category=values(track_category),issuing_date=values(issuing_date),coingecko_id=values(coingecko_id),filter_flag=values(filter_flag),modify_time=now()")
|
|
|
int insertOrUpdateWatchlist(CoinWatchlist coinWatchlist);
|
|
|
}
|