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);
|
}
|
}
|