From 5bf42aa9950058f391805e6fb8d7376f4378924b Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 23 十二月 2024 16:16:55 +0800
Subject: [PATCH] cumulateHandle.getCurrent

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java
index 53c8b35..b365cb9 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java
@@ -9,6 +9,7 @@
 import com.iailab.framework.common.pojo.PageResult;
 import com.iailab.framework.common.util.object.BeanUtils;
 import com.iailab.framework.common.util.object.ConvertUtils;
+import com.iailab.module.data.api.point.dto.ApiPointDTO;
 import com.iailab.module.data.channel.common.service.ChannelSourceService;
 import com.iailab.module.data.common.enums.CommonConstant;
 import com.iailab.module.data.common.enums.IsEnableEnum;
@@ -67,7 +68,7 @@
     @Resource
     private DaPointCollectStatusService daPointCollectStatusService;
 
-    private static Map<String, DaPointDTO> pointIdMap = new ConcurrentHashMap<>();
+    private static Map<String, ApiPointDTO> pointIdMap = new ConcurrentHashMap<>();
 
     private static Map<String, DaPointDTO> pointNoMap = new ConcurrentHashMap<>();
 
@@ -112,16 +113,16 @@
     }
 
     @Override
-    public DaPointDTO getSimpleInfoById(String id) {
+    public ApiPointDTO getSimpleInfoById(String id) {
         if (pointIdMap.containsKey(id)) {
             return pointIdMap.get(id);
         }
-        DaPointDTO dto = ConvertUtils.sourceToTarget(daPointDao.selectById(id), DaPointDTO.class);
+        ApiPointDTO dto = ConvertUtils.sourceToTarget(daPointDao.selectById(id), ApiPointDTO.class);
         if (dto == null) {
             return null;
         }
         pointIdMap.put(id, dto);
-        return pointIdMap.get(id);
+        return dto;
     }
 
     @Override
@@ -332,6 +333,15 @@
     }
 
     @Override
+    public List<DaPointDTO> getCumulatePoint(List<String> pointNos) {
+        Map<String, Object> params = new HashMap<>(3);
+        params.put("pointType", PointTypeEnum.CUMULATE.getCode());
+        params.put("isEnable", CommonConstant.IS_ENABLE);
+        params.put("pointNos", pointNos);
+        return daPointDao.getCumulatePoint(params);
+    }
+
+    @Override
     public List<DaPointDTO> getCumulatePoint(DaPointPageReqVO reqVO) {
         Map<String, Object> params = new HashMap<>(3);
         params.put("pointType", PointTypeEnum.CUMULATE.getCode());

--
Gitblit v1.9.3