From fda8b7247f6e32650efefbc7832a4d03e90c5a6c Mon Sep 17 00:00:00 2001 From: youjianchi <13260889671@163.com> Date: Fri, 9 Feb 2024 10:52:39 +0800 Subject: [PATCH] =?UTF-8?q?[update]:=E6=B5=8B=E8=AF=95gitignore=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../process/leave/service/impl/BizLeaveServiceImpl.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ruoyi-activiti/src/main/java/com/ruoyi/process/leave/service/impl/BizLeaveServiceImpl.java b/ruoyi-activiti/src/main/java/com/ruoyi/process/leave/service/impl/BizLeaveServiceImpl.java index b131b1e4..c47f09af 100644 --- a/ruoyi-activiti/src/main/java/com/ruoyi/process/leave/service/impl/BizLeaveServiceImpl.java +++ b/ruoyi-activiti/src/main/java/com/ruoyi/process/leave/service/impl/BizLeaveServiceImpl.java @@ -28,7 +28,6 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; import java.util.ArrayList; -import java.util.Date; import java.util.List; import java.util.Map; @@ -134,12 +133,8 @@ public class BizLeaveServiceImpl implements IBizLeaveService { */ @Override public int insertBizLeave(BizLeaveVo bizLeave) { - String loginName = ShiroUtils.getLoginName(); - Date nowDate = DateUtils.getNowDate(); - bizLeave.setCreateBy(loginName); - bizLeave.setCreateTime(nowDate); - bizLeave.setUpdateBy(loginName); - bizLeave.setUpdateTime(nowDate); + bizLeave.setCreateBy(ShiroUtils.getLoginName()); + bizLeave.setCreateTime(DateUtils.getNowDate()); return bizLeaveMapper.insertBizLeave(bizLeave); }