From 065142057ba3983af899991085e37ac1ec502320 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期二, 19 九月 2023 14:06:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
ard-work/src/main/java/com/ruoyi/media/service/impl/VtduServiceImpl.java | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/media/service/impl/VtduServiceImpl.java b/ard-work/src/main/java/com/ruoyi/media/service/impl/VtduServiceImpl.java
index ebf5978..456fad4 100644
--- a/ard-work/src/main/java/com/ruoyi/media/service/impl/VtduServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/media/service/impl/VtduServiceImpl.java
@@ -2,12 +2,16 @@
import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.media.mapper.VtduMapper;
import com.ruoyi.media.domain.Vtdu;
import com.ruoyi.media.service.IVtduService;
+
+import javax.annotation.Resource;
/**
* 娴佸獟浣撶鐞哠ervice涓氬姟灞傚鐞�
@@ -17,7 +21,7 @@
*/
@Service
public class VtduServiceImpl implements IVtduService {
- @Autowired
+ @Resource
private VtduMapper vtduMapper;
/**
@@ -50,6 +54,8 @@
*/
@Override
public int insertVtdu(Vtdu vtdu) {
+ vtdu.setCreateBy(SecurityUtils.getUserId());
+ vtdu.setCreateTime(DateUtils.getNowDate());
return vtduMapper.insertVtdu(vtdu);
}
@@ -61,6 +67,8 @@
*/
@Override
public int updateVtdu(Vtdu vtdu) {
+ vtdu.setUpdateBy(SecurityUtils.getUserId());
+ vtdu.setUpdateTime(DateUtils.getNowDate());
return vtduMapper.updateVtdu(vtdu);
}
--
Gitblit v1.9.3