From fb67c1c58e961fc4f972739f05d65528ad2d8c87 Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Thu, 31 Oct 2024 17:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/system/domain/TdTrain.java | 14 ++++++++++++++ .../main/resources/mapper/system/TdTrainMapper.xml | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdTrain.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdTrain.java index 6ddbd26..9829846 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdTrain.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TdTrain.java @@ -98,6 +98,19 @@ public class TdTrain extends BaseEntity @Excel(name = "培训评价") private String TRAININFO; + public Long getDeptId() { + return deptId; + } + + public void setDeptId(Long deptId) { + this.deptId = deptId; + } + + /** + * 部门 + */ + private Long deptId; + public void setID(Long ID) { this.ID = ID; @@ -302,6 +315,7 @@ public class TdTrain extends BaseEntity .append("trainTimeend", getTrainTimeend()) .append("PART", getPART()) .append("TRAININFO", getTRAININFO()) + .append("deptId", getDeptId()) .toString(); } } diff --git a/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml index 91c8772..0858d2a 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml @@ -25,10 +25,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select ID, USERNAME, DEPT_NAME, TRAIN_TYPE, TRAIN_SUBJECT, TRAIN_ADDRESS, TRAIN_DATE, CREATE_STAFFID, CREATE_DEPARTID, CREATE_DATE, UPDATE_DEPARTID, UPDATE_STAFFID, UPDATE_DATE, AREAID, FRAMEWORK, TRAIN_NAME, TRAIN_STATE, TRAIN_TIMEEND, PART, TRAININFO from td_train + select ID, USERNAME, DEPT_NAME, TRAIN_TYPE, TRAIN_SUBJECT, TRAIN_ADDRESS, TRAIN_DATE, CREATE_STAFFID, CREATE_DEPARTID, CREATE_DATE, UPDATE_DEPARTID, UPDATE_STAFFID, UPDATE_DATE, AREAID, FRAMEWORK, TRAIN_NAME, TRAIN_STATE, TRAIN_TIMEEND, PART, TRAININFO,dept_id from td_train @@ -84,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" TRAIN_TIMEEND, PART, TRAININFO, + dept_id, #{USERNAME}, @@ -105,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{trainTimeend}, #{PART}, #{TRAININFO}, + #{deptId}, @@ -130,6 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" TRAIN_TIMEEND = #{trainTimeend}, PART = #{PART}, TRAININFO = #{TRAININFO}, + dept_id = #{deptId}, where ID = #{ID}