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/DevCameraServiceImpl.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevCameraServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevCameraServiceImpl.java
index d07b9d4..f817efb 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevCameraServiceImpl.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/dev/service/impl/DevCameraServiceImpl.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.camera.vo.DevCameraPageReqVO;
 import com.iailab.module.data.dev.dao.DevCameraDao;
 import com.iailab.module.data.dev.dto.DevCameraDTO;
@@ -87,6 +88,7 @@
     public void save(DevCameraDTO dto) {
         DevCameraEntity entity = ConvertUtils.sourceToTarget(dto, DevCameraEntity.class);
         entity.setCreateDate(new Date());
+        entity.setCreator(WebFrameworkUtils.getLoginUserId());
         insert(entity);
     }
 
@@ -94,6 +96,7 @@
     public void update(DevCameraDTO dto) {
         DevCameraEntity entity = ConvertUtils.sourceToTarget(dto, DevCameraEntity.class);
         entity.setUpdateDate(new Date());
+        entity.setUpdater(WebFrameworkUtils.getLoginUserId());
         updateById(entity);
     }
 

--
Gitblit v1.9.3