yanderong
2026-09-26 a8aa680ab800afc04e710ee55f7297e06889f3f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.ruoyi.other.emind.mapper;
 
import com.ruoyi.other.emind.domain.EmindStation;
import com.ruoyi.other.emind.dto.EmindIncomeHistoryDto;
import com.ruoyi.other.emind.dto.EmindMainTotalDto;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Set;
 
public interface EmindStorageDashboardMapper {
    int upsertSnapshot(@Param("station") EmindStation station, @Param("data") EmindMainTotalDto data,
                       @Param("incomeToday") BigDecimal incomeToday,
                       @Param("syncedAt") LocalDateTime syncedAt);
    int deleteCurve(@Param("stationId") Long stationId);
    int insertCurve(@Param("stationId") Long stationId, @Param("points") List<EmindMainTotalDto.HistoryPoint> points,
                    @Param("syncedAt") LocalDateTime syncedAt);
    int upsertDaily(@Param("stationId") Long stationId, @Param("rows") List<EmindIncomeHistoryDto> rows,
                    @Param("syncedAt") LocalDateTime syncedAt);
    List<Map<String, Object>> selectStations(@Param("platformNames") List<String> platformNames);
    List<Map<String, Object>> selectSnapshotRows(@Param("stationId") Long stationId, @Param("platformNames") List<String> platformNames);
    List<Map<String, Object>> selectDailyRows(@Param("stationId") Long stationId,
                                               @Param("platformNames") List<String> platformNames,
                                               @Param("startDate") LocalDate startDate,
                                               @Param("endDate") LocalDate endDate);
    List<Map<String, Object>> selectCurveRows(@Param("stationId") Long stationId, @Param("platformNames") List<String> platformNames);
    List<Map<String, Object>> selectEnergyBlockRows(@Param("stationId") Long stationId, @Param("platformNames") List<String> platformNames);
 
    void deleteByStationIdDay(@Param("stationId") Long stationId, @Param("dateSet") Set<LocalDate> dateSet);
}