From ed8fc5f674544d3af63c6f68093ffc038385c493 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期一, 16 十二月 2024 09:30:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 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 2374f2f..00380e0 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
@@ -64,6 +64,9 @@
     @Resource
     private ChannelSourceService channelSourceService;
 
+    @Resource
+    private DaPointCollectStatusService daPointCollectStatusService;
+
     private static Map<String, DaPointDTO> pointIdMap = new ConcurrentHashMap<>();
 
     private static Map<String, DaPointDTO> pointNoMap = new ConcurrentHashMap<>();
@@ -123,8 +126,8 @@
 
     @Override
     public DaPointDTO getSimpleInfoByNo(String no) {
-        QueryWrapper<DaPointEntity> queryWrapper = new QueryWrapper();
-        queryWrapper.eq("pointNo", no);
+        QueryWrapper<DaPointEntity> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("point_no", no);
         return ConvertUtils.sourceToTarget(daPointDao.selectOne(queryWrapper), DaPointDTO.class);
     }
 
@@ -182,6 +185,7 @@
         daPointEntity.setCreateTime(new Date());
         daPointDao.insert(daPointEntity);
 
+        daPointCollectStatusService.add(daPointEntity.getPointNo());
         // 清空缓存
         clearCache();
     }

--
Gitblit v1.9.3