Commit 68f03ce7 authored by Ryan Loong's avatar Ryan Loong

update 修改分数的数据类型

parent eac2bf09
package cn.exploring.engine.server.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
......@@ -55,7 +56,7 @@ public class StudentPointInfo {
*
* @mbg.generated
*/
private Integer point;
private BigDecimal point;
/**
*
......@@ -173,7 +174,7 @@ public class StudentPointInfo {
*
* @mbg.generated
*/
public Integer getPoint() {
public BigDecimal getPoint() {
return point;
}
......@@ -185,7 +186,7 @@ public class StudentPointInfo {
*
* @mbg.generated
*/
public void setPoint(Integer point) {
public void setPoint(BigDecimal point) {
this.point = point;
}
......@@ -452,7 +453,7 @@ public class StudentPointInfo {
*
* @mbg.generated
*/
public Builder point(Integer point) {
public Builder point(BigDecimal point) {
obj.setPoint(point);
return this;
}
......@@ -632,7 +633,7 @@ public class StudentPointInfo {
id("id", "id", "INTEGER", false),
studentId("student_id", "studentId", "INTEGER", false),
classId("class_id", "classId", "INTEGER", false),
point("point", "point", "INTEGER", false),
point("point", "point", "DECIMAL", false),
recordTime("record_time", "recordTime", "TIMESTAMP", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
updateTime("update_time", "updateTime", "TIMESTAMP", false),
......
package cn.exploring.engine.server.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
......@@ -554,7 +555,7 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointEqualTo(Integer value) {
public Criteria andPointEqualTo(BigDecimal value) {
addCriterion("point =", value, "point");
return (Criteria) this;
}
......@@ -564,7 +565,7 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointNotEqualTo(Integer value) {
public Criteria andPointNotEqualTo(BigDecimal value) {
addCriterion("point <>", value, "point");
return (Criteria) this;
}
......@@ -574,7 +575,7 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointGreaterThan(Integer value) {
public Criteria andPointGreaterThan(BigDecimal value) {
addCriterion("point >", value, "point");
return (Criteria) this;
}
......@@ -584,7 +585,7 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointGreaterThanOrEqualTo(Integer value) {
public Criteria andPointGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("point >=", value, "point");
return (Criteria) this;
}
......@@ -594,7 +595,7 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointLessThan(Integer value) {
public Criteria andPointLessThan(BigDecimal value) {
addCriterion("point <", value, "point");
return (Criteria) this;
}
......@@ -604,7 +605,7 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointLessThanOrEqualTo(Integer value) {
public Criteria andPointLessThanOrEqualTo(BigDecimal value) {
addCriterion("point <=", value, "point");
return (Criteria) this;
}
......@@ -614,22 +615,22 @@ public class StudentPointInfoExample {
return (Criteria) this;
}
public Criteria andPointIn(List<Integer> values) {
public Criteria andPointIn(List<BigDecimal> values) {
addCriterion("point in", values, "point");
return (Criteria) this;
}
public Criteria andPointNotIn(List<Integer> values) {
public Criteria andPointNotIn(List<BigDecimal> values) {
addCriterion("point not in", values, "point");
return (Criteria) this;
}
public Criteria andPointBetween(Integer value1, Integer value2) {
public Criteria andPointBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("point between", value1, value2, "point");
return (Criteria) this;
}
public Criteria andPointNotBetween(Integer value1, Integer value2) {
public Criteria andPointNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("point not between", value1, value2, "point");
return (Criteria) this;
}
......
......@@ -9,7 +9,7 @@
<id column="id" jdbcType="INTEGER" property="id" />
<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="point" jdbcType="DECIMAL" 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" />
......@@ -210,7 +210,7 @@
insert into student_point_info (student_id, class_id, point,
record_time, add_time, update_time,
deleted)
values (#{studentId,jdbcType=INTEGER}, #{classId,jdbcType=INTEGER}, #{point,jdbcType=INTEGER},
values (#{studentId,jdbcType=INTEGER}, #{classId,jdbcType=INTEGER}, #{point,jdbcType=DECIMAL},
#{recordTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
......@@ -272,7 +272,7 @@
#{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
#{record.point,jdbcType=INTEGER},
#{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
#{record.recordTime,jdbcType=TIMESTAMP},
......@@ -325,7 +325,7 @@
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
point = #{record.point,jdbcType=INTEGER},
point = #{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
......@@ -355,7 +355,7 @@
set id = #{record.id,jdbcType=INTEGER},
student_id = #{record.studentId,jdbcType=INTEGER},
class_id = #{record.classId,jdbcType=INTEGER},
point = #{record.point,jdbcType=INTEGER},
point = #{record.point,jdbcType=DECIMAL},
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
......@@ -386,7 +386,7 @@
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
point = #{record.point,jdbcType=INTEGER},
point = #{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
......@@ -413,7 +413,7 @@
update student_point_info
set student_id = #{studentId,jdbcType=INTEGER},
class_id = #{classId,jdbcType=INTEGER},
point = #{point,jdbcType=INTEGER},
point = #{point,jdbcType=DECIMAL},
record_time = #{recordTime,jdbcType=TIMESTAMP},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
......@@ -488,7 +488,7 @@
(student_id, class_id, point, record_time, add_time, update_time, deleted)
values
<foreach collection="list" item="item" separator=",">
(#{item.studentId,jdbcType=INTEGER}, #{item.classId,jdbcType=INTEGER}, #{item.point,jdbcType=INTEGER},
(#{item.studentId,jdbcType=INTEGER}, #{item.classId,jdbcType=INTEGER}, #{item.point,jdbcType=DECIMAL},
#{item.recordTime,jdbcType=TIMESTAMP}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.deleted,jdbcType=BIT})
</foreach>
......@@ -514,7 +514,7 @@
#{item.classId,jdbcType=INTEGER}
</if>
<if test="'point'.toString() == column.value">
#{item.point,jdbcType=INTEGER}
#{item.point,jdbcType=DECIMAL}
</if>
<if test="'record_time'.toString() == column.value">
#{item.recordTime,jdbcType=TIMESTAMP}
......@@ -593,7 +593,7 @@
#{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
#{record.point,jdbcType=INTEGER},
#{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
#{record.recordTime,jdbcType=TIMESTAMP},
......@@ -629,7 +629,7 @@
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
point = #{record.point,jdbcType=INTEGER},
point = #{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
......@@ -672,7 +672,7 @@
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
point = #{record.point,jdbcType=INTEGER},
point = #{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
......@@ -749,7 +749,7 @@
#{record.classId,jdbcType=INTEGER},
</if>
<if test="record.point != null">
#{record.point,jdbcType=INTEGER},
#{record.point,jdbcType=DECIMAL},
</if>
<if test="record.recordTime != null">
#{record.recordTime,jdbcType=TIMESTAMP},
......@@ -799,7 +799,7 @@
</if>
#{studentId,jdbcType=INTEGER},
#{classId,jdbcType=INTEGER},
#{point,jdbcType=INTEGER},
#{point,jdbcType=DECIMAL},
#{recordTime,jdbcType=TIMESTAMP},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
......@@ -812,7 +812,7 @@
</if>
student_id = #{studentId,jdbcType=INTEGER},
class_id = #{classId,jdbcType=INTEGER},
point = #{point,jdbcType=INTEGER},
point = #{point,jdbcType=DECIMAL},
record_time = #{recordTime,jdbcType=TIMESTAMP},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
......@@ -832,7 +832,7 @@
</if>
student_id = #{record.studentId,jdbcType=INTEGER},
class_id = #{record.classId,jdbcType=INTEGER},
point = #{record.point,jdbcType=INTEGER},
point = #{record.point,jdbcType=DECIMAL},
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
......@@ -862,7 +862,7 @@
</if>
#{record.studentId,jdbcType=INTEGER},
#{record.classId,jdbcType=INTEGER},
#{record.point,jdbcType=INTEGER},
#{record.point,jdbcType=DECIMAL},
#{record.recordTime,jdbcType=TIMESTAMP},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
......@@ -900,7 +900,7 @@
#{item.classId,jdbcType=INTEGER}
</if>
<if test="'point'.toString() == column.value">
#{item.point,jdbcType=INTEGER}
#{item.point,jdbcType=DECIMAL}
</if>
<if test="'record_time'.toString() == column.value">
#{item.recordTime,jdbcType=TIMESTAMP}
......@@ -932,7 +932,7 @@
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=INTEGER}, #{item.studentId,jdbcType=INTEGER}, #{item.classId,jdbcType=INTEGER},
#{item.point,jdbcType=INTEGER}, #{item.recordTime,jdbcType=TIMESTAMP}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.point,jdbcType=DECIMAL}, #{item.recordTime,jdbcType=TIMESTAMP}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
on duplicate key update
......
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