diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java index 946dda1..7ec6d40 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java @@ -1,5 +1,6 @@ package com.ruoyi.web.controller.system.system; +import java.util.Date; import java.util.List; import com.ruoyi.common.core.domain.entity.SysUser; @@ -88,6 +89,8 @@ public class TdTrainController extends BaseController @ResponseBody public AjaxResult addSave(TdTrain tdTrain) { + tdTrain.setCreateStaffid(getLoginName()); + tdTrain.setCreateDate(new Date()); return toAjax(tdTrainService.insertTdTrain(tdTrain)); } diff --git a/ruoyi-admin/src/main/resources/templates/system/train/add.html b/ruoyi-admin/src/main/resources/templates/system/train/add.html index 585ea96..5b9cc68 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/add.html @@ -89,9 +89,9 @@