From ea1fc2631fdaf6551c48ae3042a05e30358939da Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Wed, 19 Jun 2024 14:32:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A4=9A=E4=BD=99=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=8E=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/system/TdTrainController.java | 3 ++ .../resources/templates/system/train/add.html | 35 ++++--------------- .../templates/system/train/edit.html | 16 ++++----- .../resources/mapper/system/TdTrainMapper.xml | 1 + 4 files changed, 19 insertions(+), 36 deletions(-) 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 @@