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); }