Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
engine-class-work
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuchengjiu
engine-class-work
Commits
a77d30b9
Commit
a77d30b9
authored
Jan 29, 2022
by
Mindfaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 字段
parent
1aa8e457
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
201 additions
and
17 deletions
+201
-17
StudentPointInfo.java
...n/exploring/engine/server/db/domain/StudentPointInfo.java
+37
-0
StudentPointInfoExample.java
...ring/engine/server/db/domain/StudentPointInfoExample.java
+132
-0
ClassInfoMapper.xml
...ces/cn/exploring/engine/server/db/dao/ClassInfoMapper.xml
+3
-3
StudentInfoMapper.xml
...s/cn/exploring/engine/server/db/dao/StudentInfoMapper.xml
+3
-3
StudentPointInfoMapper.xml
...exploring/engine/server/db/dao/StudentPointInfoMapper.xml
+26
-11
No files found.
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentPointInfo.java
View file @
a77d30b9
...
...
@@ -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
);
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentPointInfoExample.java
View file @
a77d30b9
...
...
@@ -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
;
...
...
server-db/src/main/resources/cn/exploring/engine/server/db/dao/ClassInfoMapper.xml
View file @
a77d30b9
...
...
@@ -114,7 +114,7 @@
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
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
>
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
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
...
...
server-db/src/main/resources/cn/exploring/engine/server/db/dao/StudentInfoMapper.xml
View file @
a77d30b9
...
...
@@ -117,7 +117,7 @@
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
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
>
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
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
...
...
server-db/src/main/resources/cn/exploring/engine/server/db/dao/StudentPointInfoMapper.xml
View file @
a77d30b9
...
...
@@ -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
>
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
>
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
>
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment