From efdecc7019261f8fdc875505281f54ef7a3bfbce Mon Sep 17 00:00:00 2001 From: yangbin <yangbin@qq.com> Date: 星期三, 19 二月 2025 12:30:09 +0800 Subject: [PATCH] 大屏看板 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentLogServiceImpl.java | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentLogServiceImpl.java b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentLogServiceImpl.java index 7a2da87..cb706ae 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentLogServiceImpl.java +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentLogServiceImpl.java @@ -5,6 +5,11 @@ 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; @@ -17,8 +22,6 @@ */ @Service public class EquipmentLogServiceImpl extends ServiceImpl<EquipmentLogMapper, EquipmentLog> implements IEquipmentLogService { - - @Override public List<EquipmentLog> findEquipmentLogByEndTime(String equipmentId, Date maxDate) { LambdaQueryChainWrapper<EquipmentLog> lambdaQuery = this.lambdaQuery(); @@ -58,4 +61,17 @@ 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); + } } -- Gitblit v1.9.3