package com.xzzn.ems.mapper;

import org.apache.ibatis.annotations.Param;

public interface EmsSiteWeatherDayMapper {

    int updateWeatherDesc(@Param("siteId") String siteId,
                          @Param("calendarDate") String calendarDate,
                          @Param("weatherDesc") String weatherDesc,
                          @Param("weatherCode") Integer weatherCode);

    int selectCountBySiteAndDate(@Param("siteId") String siteId, @Param("calendarDate") String calendarDate);

    int insertSiteWeatherDay(@Param("siteId") String siteId,
                             @Param("calendarDate") String calendarDate,
                             @Param("weatherDesc") String weatherDesc,
                             @Param("weatherCode") Integer weatherCode,
                             @Param("source") String source);
}
