From 5400950ecc23a3222a9633637a57b068f114ce26 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 31 十月 2024 18:20:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevNvrServiceImpl.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevNvrServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevNvrServiceImpl.java
index e90be76..7e9445b 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevNvrServiceImpl.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevNvrServiceImpl.java
@@ -8,6 +8,7 @@
 import com.iailab.framework.common.service.impl.BaseServiceImpl;
 import com.iailab.framework.common.util.object.BeanUtils;
 import com.iailab.framework.common.util.object.ConvertUtils;
+import com.iailab.framework.web.core.util.WebFrameworkUtils;
 import com.iailab.module.data.dev.controller.admin.nvr.vo.DevNvrPageReqVO;
 import com.iailab.module.data.dev.controller.admin.nvr.vo.DevNvrSaveReqVO;
 import com.iailab.module.data.dev.dahua.DHCapturePictureClient;
@@ -102,6 +103,7 @@
     public String save(DevNvrSaveReqVO saveReqVO) {
         DevNvrEntity entity = BeanUtils.toBean(saveReqVO, DevNvrEntity.class);
         entity.setCreateDate(new Date());
+        entity.setUpdater(WebFrameworkUtils.getLoginUserId());
         insert(entity);
         return entity.getId();
     }
@@ -109,7 +111,8 @@
     @Override
     public String update(DevNvrSaveReqVO saveReqVO) {
         DevNvrEntity entity = BeanUtils.toBean(saveReqVO, DevNvrEntity.class);
-        entity.setCreateDate(new Date());
+        entity.setUpdateDate(new Date());
+        entity.setUpdater(WebFrameworkUtils.getLoginUserId());
         updateById(entity);
         return entity.getId();
     }

--
Gitblit v1.9.3