From ade808e926b4ac0284756ee62d5f3fa90aabe814 Mon Sep 17 00:00:00 2001
From: yangbin <yangbin@qq.com>
Date: 星期四, 20 二月 2025 15:13:40 +0800
Subject: [PATCH] 大屏看板3

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentStatisticalInfoServiceImpl.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentStatisticalInfoServiceImpl.java b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentStatisticalInfoServiceImpl.java
index 5a350c8..650bd53 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentStatisticalInfoServiceImpl.java
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/EquipmentStatisticalInfoServiceImpl.java
@@ -1,10 +1,14 @@
 package org.jeecg.modules.mdc.service.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.jeecg.modules.mdc.entity.EquipmentStatisticalInfo;
 import org.jeecg.modules.mdc.mapper.EquipmentStatisticalInfoMapper;
 import org.jeecg.modules.mdc.service.IEquipmentStatisticalInfoService;
+import org.jeecg.modules.mdc.subcontrol.vo.LastWeekDataVo;
 import org.springframework.stereotype.Service;
+
+import java.util.List;
 
 /**
  * @author Lius
@@ -12,4 +16,27 @@
  */
 @Service
 public class EquipmentStatisticalInfoServiceImpl extends ServiceImpl<EquipmentStatisticalInfoMapper, EquipmentStatisticalInfo> implements IEquipmentStatisticalInfoService {
+
+    @Override
+    public List<LastWeekDataVo> findDataForBigScreen(List<String> equipmentIdList, String monday, String saturday) {
+        return this.baseMapper.findDataForBigScreen(equipmentIdList, monday, saturday);
+    }
+
+    @Override
+    public Integer findEquipmentId(List<String> equipmentIdList, String date) {
+        List<String> list = this.baseMapper.findEquipmentId(equipmentIdList, date);
+        return list.size();
+    }
+
+    @Override
+    public List<LastWeekDataVo> findDataRankingForBigScreen(List<String> equipmentIdList, String monday, String saturday) {
+        return this.baseMapper.findDataRankingForBigScreen(equipmentIdList, monday, saturday);
+    }
+
+    @Override
+    public Long selectSize(String equipmentId, String monday, String saturday) {
+        return this.baseMapper.selectCount(new LambdaQueryWrapper<EquipmentStatisticalInfo>().
+                eq(EquipmentStatisticalInfo::getEquipment, equipmentId).
+                ge(EquipmentStatisticalInfo::getTheDate, monday).le(EquipmentStatisticalInfo::getTheDate, saturday));
+    }
 }

--
Gitblit v1.9.3