Lius
2024-10-25 f50b0315234274547f2b1e6e590eeeebe6b3fe2f
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
37
38
39
40
41
42
43
44
45
package org.jeecg.modules.mdc.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.mdc.dto.CurrentElectricHistoryDto;
import org.jeecg.modules.mdc.entity.CurrentXYZHistory;
import org.jeecg.modules.mdc.mapper.CurrentXYZHistoryMapper;
import org.jeecg.modules.mdc.service.ICurrentXYZHistoryService;
import org.springframework.stereotype.Service;
 
import java.util.Date;
 
/**
 * @Description: 设备坐标值表
 * @Author: lius
 * @Date: 2024-07-18
 * @Version: V1.0
 */
@Service
public class CurrentXYZHistoryServiceImpl extends ServiceImpl<CurrentXYZHistoryMapper, CurrentXYZHistory> implements ICurrentXYZHistoryService {
 
    /**
     * 获取数据的最小时间
     *
     * @param equipmentId
     * @return
     */
    @Override
    public Date getMinDate(String equipmentId) {
        return this.baseMapper.getMinDate(equipmentId);
    }
 
    /**
     * 获取某台设备某个坐标的最大电流
     *
     * @param equipmentId
     * @param axisType
     * @param startDate
     * @param endDate
     * @return
     */
    @Override
    public CurrentElectricHistoryDto getMaxElectric(String equipmentId, Integer axisType, Date startDate, Date endDate) {
        return this.baseMapper.getMaxElectric(equipmentId, axisType, startDate, endDate);
    }
}