Commit a77d30b9 authored by Mindfaker's avatar Mindfaker

add 字段

parent 1aa8e457
......@@ -59,6 +59,15 @@ public class StudentPointInfo {
*/
private Integer point;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.record_time
*
* @mbg.generated
*/
private LocalDateTime recordTime;
/**
*
* This field was generated by MyBatis Generator.
......@@ -182,6 +191,30 @@ public class StudentPointInfo {
this.point = point;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.record_time
*
* @return the value of student_point_info.record_time
*
* @mbg.generated
*/
public LocalDateTime getRecordTime() {
return recordTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.record_time
*
* @param recordTime the value for student_point_info.record_time
*
* @mbg.generated
*/
public void setRecordTime(LocalDateTime recordTime) {
this.recordTime = recordTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.add_time
......@@ -270,6 +303,7 @@ public class StudentPointInfo {
sb.append(", studentId=").append(studentId);
sb.append(", classId=").append(classId);
sb.append(", point=").append(point);
sb.append(", recordTime=").append(recordTime);
sb.append(", addTime=").append(addTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
......@@ -299,6 +333,7 @@ public class StudentPointInfo {
&& (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
&& (this.getClassId() == null ? other.getClassId() == null : this.getClassId().equals(other.getClassId()))
&& (this.getPoint() == null ? other.getPoint() == null : this.getPoint().equals(other.getPoint()))
&& (this.getRecordTime() == null ? other.getRecordTime() == null : this.getRecordTime().equals(other.getRecordTime()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
......@@ -318,6 +353,7 @@ public class StudentPointInfo {
result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
result = prime * result + ((getClassId() == null) ? 0 : getClassId().hashCode());
result = prime * result + ((getPoint() == null) ? 0 : getPoint().hashCode());
result = prime * result + ((getRecordTime() == null) ? 0 : getRecordTime().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
......@@ -347,6 +383,7 @@ public class StudentPointInfo {
studentId("student_id", "studentId", "INTEGER", false),
classId("class_id", "classId", "INTEGER", false),
point("point", "point", "INTEGER", false),
recordTime("record_time", "recordTime", "TIMESTAMP", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
updateTime("update_time", "updateTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false);
......
......@@ -766,6 +766,138 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andRecordTimeIsNull() {
addCriterion("record_time is null");
return (Criteria) this;
}
public Criteria andRecordTimeIsNotNull() {
addCriterion("record_time is not null");
return (Criteria) this;
}
public Criteria andRecordTimeEqualTo(LocalDateTime value) {
addCriterion("record_time =", value, "recordTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRecordTimeEqualToColumn(StudentPointInfo.Column column) {
addCriterion(new StringBuilder("record_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRecordTimeNotEqualTo(LocalDateTime value) {
addCriterion("record_time <>", value, "recordTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRecordTimeNotEqualToColumn(StudentPointInfo.Column column) {
addCriterion(new StringBuilder("record_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRecordTimeGreaterThan(LocalDateTime value) {
addCriterion("record_time >", value, "recordTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRecordTimeGreaterThanColumn(StudentPointInfo.Column column) {
addCriterion(new StringBuilder("record_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRecordTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("record_time >=", value, "recordTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRecordTimeGreaterThanOrEqualToColumn(StudentPointInfo.Column column) {
addCriterion(new StringBuilder("record_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRecordTimeLessThan(LocalDateTime value) {
addCriterion("record_time <", value, "recordTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRecordTimeLessThanColumn(StudentPointInfo.Column column) {
addCriterion(new StringBuilder("record_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRecordTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("record_time <=", value, "recordTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRecordTimeLessThanOrEqualToColumn(StudentPointInfo.Column column) {
addCriterion(new StringBuilder("record_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRecordTimeIn(List<LocalDateTime> values) {
addCriterion("record_time in", values, "recordTime");
return (Criteria) this;
}
public Criteria andRecordTimeNotIn(List<LocalDateTime> values) {
addCriterion("record_time not in", values, "recordTime");
return (Criteria) this;
}
public Criteria andRecordTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("record_time between", value1, value2, "recordTime");
return (Criteria) this;
}
public Criteria andRecordTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("record_time not between", value1, value2, "recordTime");
return (Criteria) this;
}
public Criteria andAddTimeIsNull() {
addCriterion("add_time is null");
return (Criteria) this;
......
......@@ -114,7 +114,7 @@
distinct
</if>
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
......@@ -173,7 +173,7 @@
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
......@@ -365,7 +365,7 @@
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
......
......@@ -117,7 +117,7 @@
distinct
</if>
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
......@@ -176,7 +176,7 @@
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
......@@ -412,7 +412,7 @@
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
......
......@@ -10,6 +10,7 @@
<result column="student_id" jdbcType="INTEGER" property="studentId" />
<result column="class_id" jdbcType="INTEGER" property="classId" />
<result column="point" jdbcType="INTEGER" property="point" />
<result column="record_time" jdbcType="TIMESTAMP" property="recordTime" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="deleted" jdbcType="BIT" property="deleted" />
......@@ -85,7 +86,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, student_id, class_id, point, add_time, update_time, deleted
id, student_id, class_id, point, record_time, add_time, update_time, deleted
</sql>
<select id="selectByExample" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfoExample" resultMap="BaseResultMap">
<!--
......@@ -116,13 +117,13 @@
distinct
</if>
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, student_id, class_id, point, add_time, update_time, deleted
id, student_id, class_id, point, record_time, add_time, update_time, deleted
</otherwise>
</choose>
from student_point_info
......@@ -175,13 +176,13 @@
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, student_id, class_id, point, add_time, update_time, deleted
id, student_id, class_id, point, record_time, add_time, update_time, deleted
</otherwise>
</choose>
from student_point_info
......@@ -214,11 +215,11 @@
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_point_info (student_id, class_id, point,
add_time, update_time, deleted
)
record_time, add_time, update_time,
deleted)
values (#{studentId,jdbcType=INTEGER}, #{classId,jdbcType=INTEGER}, #{point,jdbcType=INTEGER},
#{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}
)
#{recordTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfo">
<!--
......@@ -239,6 +240,9 @@
<if test="point != null">
point,
</if>
<if test="recordTime != null">
record_time,
</if>
<if test="addTime != null">
add_time,
</if>
......@@ -259,6 +263,9 @@
<if test="point != null">
#{point,jdbcType=INTEGER},
</if>
<if test="recordTime != null">
#{recordTime,jdbcType=TIMESTAMP},
</if>
<if test="addTime != null">
#{addTime,jdbcType=TIMESTAMP},
</if>
......@@ -299,6 +306,9 @@
<if test="record.point != null">
point = #{record.point,jdbcType=INTEGER},
</if>
<if test="record.recordTime != null">
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if test="record.addTime != null">
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
......@@ -323,6 +333,7 @@
student_id = #{record.studentId,jdbcType=INTEGER},
class_id = #{record.classId,jdbcType=INTEGER},
point = #{record.point,jdbcType=INTEGER},
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
......@@ -346,6 +357,9 @@
<if test="point != null">
point = #{point,jdbcType=INTEGER},
</if>
<if test="recordTime != null">
record_time = #{recordTime,jdbcType=TIMESTAMP},
</if>
<if test="addTime != null">
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
......@@ -367,6 +381,7 @@
set student_id = #{studentId,jdbcType=INTEGER},
class_id = #{classId,jdbcType=INTEGER},
point = #{point,jdbcType=INTEGER},
record_time = #{recordTime,jdbcType=TIMESTAMP},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}
......@@ -397,13 +412,13 @@
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, student_id, class_id, point, add_time, update_time, deleted
id, student_id, class_id, point, record_time, add_time, update_time, deleted
</otherwise>
</choose>
from student_point_info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment