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 9829846..a07f7dc 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 @@ -2,6 +2,10 @@ package com.ruoyi.system.domain; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; @@ -13,16 +17,20 @@ import com.ruoyi.common.core.domain.BaseEntity; * @author ruoyi * @date 2024-04-11 */ +@Data +@Getter +@Setter +@ToString public class TdTrain extends BaseEntity { private static final long serialVersionUID = 1L; /** ID */ - private Long ID; + private Long id; /** 人员名称 */ @Excel(name = "人员名称") - private String USERNAME; + private String username; /** 单位名称 */ @Excel(name = "单位名称") @@ -71,11 +79,11 @@ public class TdTrain extends BaseEntity /** 所属地市 */ @Excel(name = "所属地市") - private String AREAID; + private String areaid; /** 所属区县 */ @Excel(name = "所属区县") - private String FRAMEWORK; + private String framework; /** 培训人员 */ @Excel(name = "培训人员") @@ -92,11 +100,11 @@ public class TdTrain extends BaseEntity /** 部门 */ @Excel(name = "部门") - private String PART; + private String part; /** 培训评价 */ @Excel(name = "培训评价") - private String TRAININFO; + private String traininfo; public Long getDeptId() { return deptId; @@ -111,211 +119,211 @@ public class TdTrain extends BaseEntity */ private Long deptId; - public void setID(Long ID) - { - this.ID = ID; - } - - public Long getID() - { - return ID; - } - public void setUSERNAME(String USERNAME) - { - this.USERNAME = USERNAME; - } - - public String getUSERNAME() - { - return USERNAME; - } - public void setDeptName(String deptName) - { - this.deptName = deptName; - } - - public String getDeptName() - { - return deptName; - } - public void setTrainType(String trainType) - { - this.trainType = trainType; - } - - public String getTrainType() - { - return trainType; - } - public void setTrainSubject(String trainSubject) - { - this.trainSubject = trainSubject; - } - - public String getTrainSubject() - { - return trainSubject; - } - public void setTrainAddress(String trainAddress) - { - this.trainAddress = trainAddress; - } - - public String getTrainAddress() - { - return trainAddress; - } - public void setTrainDate(Date trainDate) - { - this.trainDate = trainDate; - } - - public Date getTrainDate() - { - return trainDate; - } - public void setCreateStaffid(String createStaffid) - { - this.createStaffid = createStaffid; - } - - public String getCreateStaffid() - { - return createStaffid; - } - public void setCreateDepartid(String createDepartid) - { - this.createDepartid = createDepartid; - } - - public String getCreateDepartid() - { - return createDepartid; - } - public void setCreateDate(Date createDate) - { - this.createDate = createDate; - } - - public Date getCreateDate() - { - return createDate; - } - public void setUpdateDepartid(String updateDepartid) - { - this.updateDepartid = updateDepartid; - } - - public String getUpdateDepartid() - { - return updateDepartid; - } - public void setUpdateStaffid(String updateStaffid) - { - this.updateStaffid = updateStaffid; - } - - public String getUpdateStaffid() - { - return updateStaffid; - } - public void setUpdateDate(Date updateDate) - { - this.updateDate = updateDate; - } - - public Date getUpdateDate() - { - return updateDate; - } - public void setAREAID(String AREAID) - { - this.AREAID = AREAID; - } - - public String getAREAID() - { - return AREAID; - } - public void setFRAMEWORK(String FRAMEWORK) - { - this.FRAMEWORK = FRAMEWORK; - } - - public String getFRAMEWORK() - { - return FRAMEWORK; - } - public void setTrainName(String trainName) - { - this.trainName = trainName; - } - - public String getTrainName() - { - return trainName; - } - public void setTrainState(Long trainState) - { - this.trainState = trainState; - } - - public Long getTrainState() - { - return trainState; - } - public void setTrainTimeend(Date trainTimeend) - { - this.trainTimeend = trainTimeend; - } - - public Date getTrainTimeend() - { - return trainTimeend; - } - public void setPART(String PART) - { - this.PART = PART; - } - - public String getPART() - { - return PART; - } - public void setTRAININFO(String TRAININFO) - { - this.TRAININFO = TRAININFO; - } - - public String getTRAININFO() - { - return TRAININFO; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("ID", getID()) - .append("USERNAME", getUSERNAME()) - .append("deptName", getDeptName()) - .append("trainType", getTrainType()) - .append("trainSubject", getTrainSubject()) - .append("trainAddress", getTrainAddress()) - .append("trainDate", getTrainDate()) - .append("createStaffid", getCreateStaffid()) - .append("createDepartid", getCreateDepartid()) - .append("createDate", getCreateDate()) - .append("updateDepartid", getUpdateDepartid()) - .append("updateStaffid", getUpdateStaffid()) - .append("updateDate", getUpdateDate()) - .append("AREAID", getAREAID()) - .append("FRAMEWORK", getFRAMEWORK()) - .append("trainName", getTrainName()) - .append("trainState", getTrainState()) - .append("trainTimeend", getTrainTimeend()) - .append("PART", getPART()) - .append("TRAININFO", getTRAININFO()) - .append("deptId", getDeptId()) - .toString(); - } +// public void setID(Long ID) +// { +// this.ID = ID; +// } +// +// public Long getID() +// { +// return ID; +// } +// public void setUSERNAME(String USERNAME) +// { +// this.USERNAME = USERNAME; +// } +// +// public String getUSERNAME() +// { +// return USERNAME; +// } +// public void setDeptName(String deptName) +// { +// this.deptName = deptName; +// } +// +// public String getDeptName() +// { +// return deptName; +// } +// public void setTrainType(String trainType) +// { +// this.trainType = trainType; +// } +// +// public String getTrainType() +// { +// return trainType; +// } +// public void setTrainSubject(String trainSubject) +// { +// this.trainSubject = trainSubject; +// } +// +// public String getTrainSubject() +// { +// return trainSubject; +// } +// public void setTrainAddress(String trainAddress) +// { +// this.trainAddress = trainAddress; +// } +// +// public String getTrainAddress() +// { +// return trainAddress; +// } +// public void setTrainDate(Date trainDate) +// { +// this.trainDate = trainDate; +// } +// +// public Date getTrainDate() +// { +// return trainDate; +// } +// public void setCreateStaffid(String createStaffid) +// { +// this.createStaffid = createStaffid; +// } +// +// public String getCreateStaffid() +// { +// return createStaffid; +// } +// public void setCreateDepartid(String createDepartid) +// { +// this.createDepartid = createDepartid; +// } +// +// public String getCreateDepartid() +// { +// return createDepartid; +// } +// public void setCreateDate(Date createDate) +// { +// this.createDate = createDate; +// } +// +// public Date getCreateDate() +// { +// return createDate; +// } +// public void setUpdateDepartid(String updateDepartid) +// { +// this.updateDepartid = updateDepartid; +// } +// +// public String getUpdateDepartid() +// { +// return updateDepartid; +// } +// public void setUpdateStaffid(String updateStaffid) +// { +// this.updateStaffid = updateStaffid; +// } +// +// public String getUpdateStaffid() +// { +// return updateStaffid; +// } +// public void setUpdateDate(Date updateDate) +// { +// this.updateDate = updateDate; +// } +// +// public Date getUpdateDate() +// { +// return updateDate; +// } +// public void setAREAID(String AREAID) +// { +// this.AREAID = AREAID; +// } +// +// public String getAREAID() +// { +// return AREAID; +// } +// public void setFRAMEWORK(String FRAMEWORK) +// { +// this.FRAMEWORK = FRAMEWORK; +// } +// +// public String getFRAMEWORK() +// { +// return FRAMEWORK; +// } +// public void setTrainName(String trainName) +// { +// this.trainName = trainName; +// } +// +// public String getTrainName() +// { +// return trainName; +// } +// public void setTrainState(Long trainState) +// { +// this.trainState = trainState; +// } +// +// public Long getTrainState() +// { +// return trainState; +// } +// public void setTrainTimeend(Date trainTimeend) +// { +// this.trainTimeend = trainTimeend; +// } +// +// public Date getTrainTimeend() +// { +// return trainTimeend; +// } +// public void setPART(String PART) +// { +// this.PART = PART; +// } +// +// public String getPART() +// { +// return PART; +// } +// public void setTRAININFO(String TRAININFO) +// { +// this.TRAININFO = TRAININFO; +// } +// +// public String getTRAININFO() +// { +// return TRAININFO; +// } +// +// @Override +// public String toString() { +// return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) +// .append("ID", getID()) +// .append("USERNAME", getUSERNAME()) +// .append("deptName", getDeptName()) +// .append("trainType", getTrainType()) +// .append("trainSubject", getTrainSubject()) +// .append("trainAddress", getTrainAddress()) +// .append("trainDate", getTrainDate()) +// .append("createStaffid", getCreateStaffid()) +// .append("createDepartid", getCreateDepartid()) +// .append("createDate", getCreateDate()) +// .append("updateDepartid", getUpdateDepartid()) +// .append("updateStaffid", getUpdateStaffid()) +// .append("updateDate", getUpdateDate()) +// .append("AREAID", getAREAID()) +// .append("FRAMEWORK", getFRAMEWORK()) +// .append("trainName", getTrainName()) +// .append("trainState", getTrainState()) +// .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 303f39e..e120f9c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdTrainMapper.xml @@ -5,93 +5,93 @@ 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,dept_id from td_train d + 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 d - + insert into td_train - 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, + 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, - #{USERNAME}, + #{username}, #{deptName}, #{trainType}, #{trainSubject}, @@ -103,13 +103,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{updateDepartid}, #{updateStaffid}, #{updateDate}, - #{AREAID}, - #{FRAMEWORK}, + #{areaid}, + #{framework}, #{trainName}, #{trainState}, #{trainTimeend}, - #{PART}, - #{TRAININFO}, + #{part}, + #{traininfo}, #{deptId}, @@ -117,47 +117,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update td_train - USERNAME = #{USERNAME}, - DEPT_NAME = #{deptName}, - TRAIN_TYPE = #{trainType}, - TRAIN_SUBJECT = #{trainSubject}, - TRAIN_ADDRESS = #{trainAddress}, - TRAIN_DATE = #{trainDate}, - CREATE_STAFFID = #{createStaffid}, - CREATE_DEPARTID = #{createDepartid}, - CREATE_DATE = #{createDate}, - UPDATE_DEPARTID = #{updateDepartid}, - UPDATE_STAFFID = #{updateStaffid}, - UPDATE_DATE = #{updateDate}, - AREAID = #{AREAID}, - FRAMEWORK = #{FRAMEWORK}, - TRAIN_NAME = #{trainName}, - TRAIN_STATE = #{trainState}, - TRAIN_TIMEEND = #{trainTimeend}, - PART = #{PART}, - TRAININFO = #{TRAININFO}, + username = #{username}, + dept_name = #{deptName}, + train_type = #{trainType}, + train_subject = #{trainSubject}, + train_address = #{trainAddress}, + train_date = #{trainDate}, + create_staffid = #{createStaffid}, + create_departid = #{createDepartid}, + create_date = #{createDate}, + update_departid = #{updateDepartid}, + update_staffid = #{updateStaffid}, + update_date = #{updateDate}, + areaid = #{areaid}, + framework = #{framework}, + train_name = #{trainName}, + train_state = #{trainState}, + train_timeend = #{trainTimeend}, + part = #{part}, + traininfo = #{traininfo}, dept_id = #{deptId}, - where ID = #{ID} + where id = #{id} - delete from td_train where ID = #{ID} + delete from td_train where id = #{id} - delete from td_train where ID in - - #{ID} + delete from td_train where id in + + #{id}