| | |
| | | import org.jeecg.modules.mdc.entity.EquipmentLog; |
| | | import org.jeecg.modules.mdc.mapper.EquipmentLogMapper; |
| | | import org.jeecg.modules.mdc.service.IEquipmentLogService; |
| | | import org.jeecg.modules.mdc.service.IMdcAlarmInfoService; |
| | | import org.jeecg.modules.mdc.service.IMdcEquipmentService; |
| | | import org.jeecg.modules.mdc.subcontrol.vo.AllEquipmentLogVo; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | |
| | | */ |
| | | @Service |
| | | public class EquipmentLogServiceImpl extends ServiceImpl<EquipmentLogMapper, EquipmentLog> implements IEquipmentLogService { |
| | | |
| | | |
| | | @Override |
| | | public List<EquipmentLog> findEquipmentLogByEndTime(String equipmentId, Date maxDate) { |
| | | LambdaQueryChainWrapper<EquipmentLog> lambdaQuery = this.lambdaQuery(); |
| | |
| | | public List<EquipmentLog> getEquipmentStatusList(List<String> equipmentIdList) { |
| | | return this.baseMapper.getEquipmentStatusList(equipmentIdList); |
| | | } |
| | | |
| | | @Override |
| | | public List<AllEquipmentLogVo> getALLEquipmentLog() { |
| | | //获取当前时间24小时之前的设备报警数据 |
| | | Date yesterday = DateUtils.getPreviousDay(DateUtils.getNow()); |
| | | List<AllEquipmentLogVo> list = this.baseMapper.findAllEquipmentLog(yesterday); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public EquipmentLog findEquipmentLog(String equipmentId) { |
| | | return this.baseMapper.getOne(equipmentId); |
| | | } |
| | | } |