From 057a8f48e67966cfafa2d9c5f0b9d0a9d397a4a2 Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期一, 17 三月 2025 14:59:23 +0800
Subject: [PATCH] 发电厂机组运行情况

---
 ansteel-biz/src/main/java/com/iailab/module/ansteel/api/McsServiceImpl.java |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/ansteel-biz/src/main/java/com/iailab/module/ansteel/mpk/service/impl/PowerRunStateServiceImpl.java b/ansteel-biz/src/main/java/com/iailab/module/ansteel/api/McsServiceImpl.java
similarity index 83%
rename from ansteel-biz/src/main/java/com/iailab/module/ansteel/mpk/service/impl/PowerRunStateServiceImpl.java
rename to ansteel-biz/src/main/java/com/iailab/module/ansteel/api/McsServiceImpl.java
index bb6ce60..1311665 100644
--- a/ansteel-biz/src/main/java/com/iailab/module/ansteel/mpk/service/impl/PowerRunStateServiceImpl.java
+++ b/ansteel-biz/src/main/java/com/iailab/module/ansteel/api/McsServiceImpl.java
@@ -1,12 +1,11 @@
-package com.iailab.module.ansteel.mpk.service.impl;
+package com.iailab.module.ansteel.api;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.iailab.framework.common.service.impl.BaseServiceImpl;
 import com.iailab.framework.common.util.object.ConvertUtils;
-import com.iailab.module.ansteel.mpk.dao.PowerRunStateDao;
-import com.iailab.module.ansteel.mpk.entity.PowerRunStateEntity;
-import com.iailab.module.ansteel.mpk.service.PowerRunStateService;
+import com.iailab.module.ansteel.api.dao.PowerRunStateDao;
 import com.iailab.module.data.api.point.DataPointApi;
+import com.iailab.module.model.api.mcs.AnSteelApi;
+import com.iailab.module.sms.api.dto.PowerRunStateDTO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -21,14 +20,17 @@
 
 @Slf4j
 @Service
-public class PowerRunStateServiceImpl extends BaseServiceImpl<PowerRunStateDao, PowerRunStateEntity> implements PowerRunStateService {
+public class McsServiceImpl implements AnSteelApi {
 
     @Autowired
     private DataPointApi dataPointApi;
 
+    @Autowired
+    private PowerRunStateDao powerRunStateDao;
+
     @Override
-    public List<PowerRunStateEntity> list() {
-        List<PowerRunStateEntity> list = baseDao.selectList(new QueryWrapper<>());
+    public List<PowerRunStateDTO> getPowerRunState() {
+        List<PowerRunStateDTO> list = ConvertUtils.sourceToTarget(powerRunStateDao.selectList(new QueryWrapper<>()), PowerRunStateDTO.class);
         if (!CollectionUtils.isEmpty(list)) {
             list.stream().map(item -> {
                 StringBuffer sb = new StringBuffer();

--
Gitblit v1.9.3