Lius
2024-10-31 7d8887e36acb71ee20bf2f55170571b3fa7621b7
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
34
35
36
package org.jeecg.modules.mdc.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.mdc.dto.CurrentElectricHistoryDto;
import org.jeecg.modules.mdc.entity.CurrentXYZHistory;
 
import java.util.Date;
 
/**
 * @Description: 设备坐标值表
 * @Author: lius
 * @Date: 2024-07-18
 * @Version: V1.0
 */
public interface CurrentXYZHistoryMapper extends BaseMapper<CurrentXYZHistory> {
 
    /**
     * 获取数据的最小时间
     *
     * @param equipmentId
     * @return
     */
    Date getMinDate(@Param("equipmentId") String equipmentId);
 
    /**
     * 获取某台设备某个坐标的最大电流
     *
     * @param equipmentId
     * @param axisType
     * @param startDate
     * @param endDate
     * @return
     */
    CurrentElectricHistoryDto getMaxElectric(@Param("equipmentId") String equipmentId, @Param("axisType") Integer axisType, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
}