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
236751cb
Commit
236751cb
authored
Jan 27, 2022
by
Mindfaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init table
parent
215b5b68
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
7241 additions
and
5 deletions
+7241
-5
generatorConfig.xml
server-db/mybatis-generator/generatorConfig.xml
+10
-2
ClassInfoMapper.java
...va/cn/exploring/engine/server/db/dao/ClassInfoMapper.java
+159
-0
StudentInfoMapper.java
.../cn/exploring/engine/server/db/dao/StudentInfoMapper.java
+159
-0
StudentPointInfoMapper.java
...xploring/engine/server/db/dao/StudentPointInfoMapper.java
+159
-0
ClassInfo.java
.../java/cn/exploring/engine/server/db/domain/ClassInfo.java
+444
-0
ClassInfoExample.java
...n/exploring/engine/server/db/domain/ClassInfoExample.java
+1086
-0
StudentInfo.java
...ava/cn/exploring/engine/server/db/domain/StudentInfo.java
+555
-0
StudentInfoExample.java
...exploring/engine/server/db/domain/StudentInfoExample.java
+1502
-0
StudentPointInfo.java
...n/exploring/engine/server/db/domain/StudentPointInfo.java
+518
-0
StudentPointInfoExample.java
...ring/engine/server/db/domain/StudentPointInfoExample.java
+1340
-0
ClassService.java
...a/cn/exploring/engine/server/db/service/ClassService.java
+9
-0
application-dbDev.yml
server-db/src/main/resources/application-dbDev.yml
+1
-1
application-dbProd.yml
server-db/src/main/resources/application-dbProd.yml
+1
-1
application-dbTest.yml
server-db/src/main/resources/application-dbTest.yml
+1
-1
ClassInfoMapper.xml
...ces/cn/exploring/engine/server/db/dao/ClassInfoMapper.xml
+406
-0
StudentInfoMapper.xml
...s/cn/exploring/engine/server/db/dao/StudentInfoMapper.xml
+453
-0
StudentPointInfoMapper.xml
...exploring/engine/server/db/dao/StudentPointInfoMapper.xml
+438
-0
No files found.
server-db/mybatis-generator/generatorConfig.xml
View file @
236751cb
...
...
@@ -43,7 +43,7 @@
<!--数据库连接信息-->
<jdbcConnection
driverClass=
"com.mysql.jdbc.Driver"
connectionURL=
"jdbc:mysql://39.101.222.130:3306/
emba_course
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false"
connectionURL=
"jdbc:mysql://39.101.222.130:3306/
class_work
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false"
userId=
"root"
password=
"Engine123s56.."
/>
...
...
@@ -80,6 +80,14 @@
<table
tableName=
"wx_user"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"class_info"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"student_point_info"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"student_info"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
</context>
</generatorConfiguration>
server-db/src/main/java/cn/exploring/engine/server/db/dao/ClassInfoMapper.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
dao
;
import
cn.exploring.engine.server.db.domain.ClassInfo
;
import
cn.exploring.engine.server.db.domain.ClassInfoExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
ClassInfoMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
long
countByExample
(
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
deleteByExample
(
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
insert
(
ClassInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
insertSelective
(
ClassInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo
selectOneByExample
(
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo
selectOneByExampleSelective
(
@Param
(
"example"
)
ClassInfoExample
example
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
ClassInfo
>
selectByExampleSelective
(
@Param
(
"example"
)
ClassInfoExample
example
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
List
<
ClassInfo
>
selectByExample
(
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
ClassInfo
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo
selectByPrimaryKeyWithLogicalDelete
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"andLogicalDeleted"
)
boolean
andLogicalDeleted
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"example"
)
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"example"
)
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
ClassInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
ClassInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
logicalDeleteByExample
(
@Param
(
"example"
)
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/StudentInfoMapper.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
dao
;
import
cn.exploring.engine.server.db.domain.StudentInfo
;
import
cn.exploring.engine.server.db.domain.StudentInfoExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
StudentInfoMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
long
countByExample
(
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
deleteByExample
(
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
insert
(
StudentInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
insertSelective
(
StudentInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo
selectOneByExample
(
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo
selectOneByExampleSelective
(
@Param
(
"example"
)
StudentInfoExample
example
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
StudentInfo
>
selectByExampleSelective
(
@Param
(
"example"
)
StudentInfoExample
example
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
List
<
StudentInfo
>
selectByExample
(
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
StudentInfo
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo
selectByPrimaryKeyWithLogicalDelete
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"andLogicalDeleted"
)
boolean
andLogicalDeleted
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"example"
)
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"example"
)
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
StudentInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
StudentInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
logicalDeleteByExample
(
@Param
(
"example"
)
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/StudentPointInfoMapper.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
dao
;
import
cn.exploring.engine.server.db.domain.StudentPointInfo
;
import
cn.exploring.engine.server.db.domain.StudentPointInfoExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
StudentPointInfoMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
long
countByExample
(
StudentPointInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
deleteByExample
(
StudentPointInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
insert
(
StudentPointInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
insertSelective
(
StudentPointInfo
record
);
/**
* 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
*/
StudentPointInfo
selectOneByExample
(
StudentPointInfoExample
example
);
/**
* 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
*/
StudentPointInfo
selectOneByExampleSelective
(
@Param
(
"example"
)
StudentPointInfoExample
example
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* 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
*/
List
<
StudentPointInfo
>
selectByExampleSelective
(
@Param
(
"example"
)
StudentPointInfoExample
example
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
List
<
StudentPointInfo
>
selectByExample
(
StudentPointInfoExample
example
);
/**
* 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
*/
StudentPointInfo
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
StudentPointInfo
selectByPrimaryKey
(
Integer
id
);
/**
* 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
*/
StudentPointInfo
selectByPrimaryKeyWithLogicalDelete
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"andLogicalDeleted"
)
boolean
andLogicalDeleted
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"example"
)
StudentPointInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"example"
)
StudentPointInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
StudentPointInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
StudentPointInfo
record
);
/**
* 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
*/
int
logicalDeleteByExample
(
@Param
(
"example"
)
StudentPointInfoExample
example
);
/**
* 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
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/ClassInfo.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
ClassInfo
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
NOT_DELETED
=
false
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
IS_DELETED
=
true
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column class_info.id
*
* @mbg.generated
*/
private
Integer
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column class_info.class_name
*
* @mbg.generated
*/
private
String
className
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column class_info.add_time
*
* @mbg.generated
*/
private
LocalDateTime
addTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column class_info.update_time
*
* @mbg.generated
*/
private
LocalDateTime
updateTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column class_info.deleted
*
* @mbg.generated
*/
private
Boolean
deleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column class_info.id
*
* @return the value of class_info.id
*
* @mbg.generated
*/
public
Integer
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.id
*
* @param id the value for class_info.id
*
* @mbg.generated
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column class_info.class_name
*
* @return the value of class_info.class_name
*
* @mbg.generated
*/
public
String
getClassName
()
{
return
className
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.class_name
*
* @param className the value for class_info.class_name
*
* @mbg.generated
*/
public
void
setClassName
(
String
className
)
{
this
.
className
=
className
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column class_info.add_time
*
* @return the value of class_info.add_time
*
* @mbg.generated
*/
public
LocalDateTime
getAddTime
()
{
return
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.add_time
*
* @param addTime the value for class_info.add_time
*
* @mbg.generated
*/
public
void
setAddTime
(
LocalDateTime
addTime
)
{
this
.
addTime
=
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column class_info.update_time
*
* @return the value of class_info.update_time
*
* @mbg.generated
*/
public
LocalDateTime
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.update_time
*
* @param updateTime the value for class_info.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
LocalDateTime
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column class_info.deleted
*
* @return the value of class_info.deleted
*
* @mbg.generated
*/
public
Boolean
getDeleted
()
{
return
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.deleted
*
* @param deleted the value for class_info.deleted
*
* @mbg.generated
*/
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", className="
).
append
(
className
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
ClassInfo
other
=
(
ClassInfo
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getClassName
()
==
null
?
other
.
getClassName
()
==
null
:
this
.
getClassName
().
equals
(
other
.
getClassName
()))
&&
(
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
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getClassName
()
==
null
)
?
0
:
getClassName
().
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
());
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
void
andLogicalDeleted
(
boolean
deleted
)
{
setDeleted
(
deleted
?
IS_DELETED
:
NOT_DELETED
);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
className
(
"class_name"
,
"className"
,
"VARCHAR"
,
false
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
deleted
(
"deleted"
,
"deleted"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/ClassInfoExample.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
ClassInfoExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
ClassInfoExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ClassInfoExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ClassInfoExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
ClassInfoExample
example
=
new
ClassInfoExample
();
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table class_info
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameIsNull
()
{
addCriterion
(
"class_name is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameIsNotNull
()
{
addCriterion
(
"class_name is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameEqualTo
(
String
value
)
{
addCriterion
(
"class_name ="
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassNameEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_name = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameNotEqualTo
(
String
value
)
{
addCriterion
(
"class_name <>"
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassNameNotEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_name <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameGreaterThan
(
String
value
)
{
addCriterion
(
"class_name >"
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassNameGreaterThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_name > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"class_name >="
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassNameGreaterThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_name >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameLessThan
(
String
value
)
{
addCriterion
(
"class_name <"
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassNameLessThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_name < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"class_name <="
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassNameLessThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_name <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameLike
(
String
value
)
{
addCriterion
(
"class_name like"
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameNotLike
(
String
value
)
{
addCriterion
(
"class_name not like"
,
value
,
"className"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"class_name in"
,
values
,
"className"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"class_name not in"
,
values
,
"className"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"class_name between"
,
value1
,
value2
,
"className"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"class_name not between"
,
value1
,
value2
,
"className"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIsNull
()
{
addCriterion
(
"add_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIsNotNull
()
{
addCriterion
(
"add_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time ="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <>"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeNotEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"add_time >"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeGreaterThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time >="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeGreaterThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeLessThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeLessThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"add_time in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"add_time not in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"add_time between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"add_time not between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIsNull
()
{
addCriterion
(
"deleted is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIsNotNull
()
{
addCriterion
(
"deleted is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted ="
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted <>"
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedNotEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedGreaterThan
(
Boolean
value
)
{
addCriterion
(
"deleted >"
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedGreaterThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted >="
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedGreaterThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedLessThan
(
Boolean
value
)
{
addCriterion
(
"deleted <"
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedLessThanColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted <="
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedLessThanOrEqualToColumn
(
ClassInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"deleted in"
,
values
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"deleted not in"
,
values
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"deleted between"
,
value1
,
value2
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"deleted not between"
,
value1
,
value2
,
"deleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table class_info
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
ClassInfoExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
ClassInfoExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ClassInfoExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLogicalDeleted
(
boolean
deleted
)
{
return
deleted
?
andDeletedEqualTo
(
ClassInfo
.
IS_DELETED
)
:
andDeletedNotEqualTo
(
ClassInfo
.
IS_DELETED
);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table class_info
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentInfo.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
StudentInfo
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
NOT_DELETED
=
false
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
IS_DELETED
=
true
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.id
*
* @mbg.generated
*/
private
Integer
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.student_unique_id
*
* @mbg.generated
*/
private
String
studentUniqueId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.class_id
*
* @mbg.generated
*/
private
Integer
classId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.name
*
* @mbg.generated
*/
private
String
name
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.head
*
* @mbg.generated
*/
private
String
head
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.add_time
*
* @mbg.generated
*/
private
LocalDateTime
addTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.update_time
*
* @mbg.generated
*/
private
LocalDateTime
updateTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_info.deleted
*
* @mbg.generated
*/
private
Boolean
deleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.id
*
* @return the value of student_info.id
*
* @mbg.generated
*/
public
Integer
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.id
*
* @param id the value for student_info.id
*
* @mbg.generated
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.student_unique_id
*
* @return the value of student_info.student_unique_id
*
* @mbg.generated
*/
public
String
getStudentUniqueId
()
{
return
studentUniqueId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.student_unique_id
*
* @param studentUniqueId the value for student_info.student_unique_id
*
* @mbg.generated
*/
public
void
setStudentUniqueId
(
String
studentUniqueId
)
{
this
.
studentUniqueId
=
studentUniqueId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.class_id
*
* @return the value of student_info.class_id
*
* @mbg.generated
*/
public
Integer
getClassId
()
{
return
classId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.class_id
*
* @param classId the value for student_info.class_id
*
* @mbg.generated
*/
public
void
setClassId
(
Integer
classId
)
{
this
.
classId
=
classId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.name
*
* @return the value of student_info.name
*
* @mbg.generated
*/
public
String
getName
()
{
return
name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.name
*
* @param name the value for student_info.name
*
* @mbg.generated
*/
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.head
*
* @return the value of student_info.head
*
* @mbg.generated
*/
public
String
getHead
()
{
return
head
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.head
*
* @param head the value for student_info.head
*
* @mbg.generated
*/
public
void
setHead
(
String
head
)
{
this
.
head
=
head
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.add_time
*
* @return the value of student_info.add_time
*
* @mbg.generated
*/
public
LocalDateTime
getAddTime
()
{
return
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.add_time
*
* @param addTime the value for student_info.add_time
*
* @mbg.generated
*/
public
void
setAddTime
(
LocalDateTime
addTime
)
{
this
.
addTime
=
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.update_time
*
* @return the value of student_info.update_time
*
* @mbg.generated
*/
public
LocalDateTime
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.update_time
*
* @param updateTime the value for student_info.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
LocalDateTime
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_info.deleted
*
* @return the value of student_info.deleted
*
* @mbg.generated
*/
public
Boolean
getDeleted
()
{
return
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.deleted
*
* @param deleted the value for student_info.deleted
*
* @mbg.generated
*/
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", studentUniqueId="
).
append
(
studentUniqueId
);
sb
.
append
(
", classId="
).
append
(
classId
);
sb
.
append
(
", name="
).
append
(
name
);
sb
.
append
(
", head="
).
append
(
head
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
StudentInfo
other
=
(
StudentInfo
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getStudentUniqueId
()
==
null
?
other
.
getStudentUniqueId
()
==
null
:
this
.
getStudentUniqueId
().
equals
(
other
.
getStudentUniqueId
()))
&&
(
this
.
getClassId
()
==
null
?
other
.
getClassId
()
==
null
:
this
.
getClassId
().
equals
(
other
.
getClassId
()))
&&
(
this
.
getName
()
==
null
?
other
.
getName
()
==
null
:
this
.
getName
().
equals
(
other
.
getName
()))
&&
(
this
.
getHead
()
==
null
?
other
.
getHead
()
==
null
:
this
.
getHead
().
equals
(
other
.
getHead
()))
&&
(
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
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getStudentUniqueId
()
==
null
)
?
0
:
getStudentUniqueId
().
hashCode
());
result
=
prime
*
result
+
((
getClassId
()
==
null
)
?
0
:
getClassId
().
hashCode
());
result
=
prime
*
result
+
((
getName
()
==
null
)
?
0
:
getName
().
hashCode
());
result
=
prime
*
result
+
((
getHead
()
==
null
)
?
0
:
getHead
().
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
());
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
void
andLogicalDeleted
(
boolean
deleted
)
{
setDeleted
(
deleted
?
IS_DELETED
:
NOT_DELETED
);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
studentUniqueId
(
"student_unique_id"
,
"studentUniqueId"
,
"VARCHAR"
,
false
),
classId
(
"class_id"
,
"classId"
,
"INTEGER"
,
false
),
name
(
"name"
,
"name"
,
"VARCHAR"
,
true
),
head
(
"head"
,
"head"
,
"VARCHAR"
,
false
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
deleted
(
"deleted"
,
"deleted"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentInfoExample.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
StudentInfoExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
StudentInfoExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
StudentInfoExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
StudentInfoExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
StudentInfoExample
example
=
new
StudentInfoExample
();
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_info
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdIsNull
()
{
addCriterion
(
"student_unique_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdIsNotNull
()
{
addCriterion
(
"student_unique_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdEqualTo
(
String
value
)
{
addCriterion
(
"student_unique_id ="
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStudentUniqueIdEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_unique_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdNotEqualTo
(
String
value
)
{
addCriterion
(
"student_unique_id <>"
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStudentUniqueIdNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_unique_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdGreaterThan
(
String
value
)
{
addCriterion
(
"student_unique_id >"
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStudentUniqueIdGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_unique_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"student_unique_id >="
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStudentUniqueIdGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_unique_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdLessThan
(
String
value
)
{
addCriterion
(
"student_unique_id <"
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStudentUniqueIdLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_unique_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"student_unique_id <="
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStudentUniqueIdLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_unique_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdLike
(
String
value
)
{
addCriterion
(
"student_unique_id like"
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdNotLike
(
String
value
)
{
addCriterion
(
"student_unique_id not like"
,
value
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"student_unique_id in"
,
values
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"student_unique_id not in"
,
values
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"student_unique_id between"
,
value1
,
value2
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentUniqueIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"student_unique_id not between"
,
value1
,
value2
,
"studentUniqueId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdIsNull
()
{
addCriterion
(
"class_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdIsNotNull
()
{
addCriterion
(
"class_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id ="
,
value
,
"classId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassIdEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id <>"
,
value
,
"classId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassIdNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"class_id >"
,
value
,
"classId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassIdGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id >="
,
value
,
"classId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassIdGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdLessThan
(
Integer
value
)
{
addCriterion
(
"class_id <"
,
value
,
"classId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassIdLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id <="
,
value
,
"classId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andClassIdLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"class_id in"
,
values
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"class_id not in"
,
values
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"class_id between"
,
value1
,
value2
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"class_id not between"
,
value1
,
value2
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNull
()
{
addCriterion
(
"`name` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIsNotNull
()
{
addCriterion
(
"`name` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameEqualTo
(
String
value
)
{
addCriterion
(
"`name` ="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`name` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotEqualTo
(
String
value
)
{
addCriterion
(
"`name` <>"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`name` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThan
(
String
value
)
{
addCriterion
(
"`name` >"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`name` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andNameGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"`name` >="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`name` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThan
(
String
value
)
{
addCriterion
(
"`name` <"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`name` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andNameLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"`name` <="
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`name` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andNameLike
(
String
value
)
{
addCriterion
(
"`name` like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotLike
(
String
value
)
{
addCriterion
(
"`name` not like"
,
value
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameIn
(
List
<
String
>
values
)
{
addCriterion
(
"`name` in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"`name` not in"
,
values
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"`name` between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andNameNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"`name` not between"
,
value1
,
value2
,
"name"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadIsNull
()
{
addCriterion
(
"head is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadIsNotNull
()
{
addCriterion
(
"head is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadEqualTo
(
String
value
)
{
addCriterion
(
"head ="
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andHeadEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"head = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andHeadNotEqualTo
(
String
value
)
{
addCriterion
(
"head <>"
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andHeadNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"head <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andHeadGreaterThan
(
String
value
)
{
addCriterion
(
"head >"
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andHeadGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"head > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andHeadGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"head >="
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andHeadGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"head >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andHeadLessThan
(
String
value
)
{
addCriterion
(
"head <"
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andHeadLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"head < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andHeadLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"head <="
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andHeadLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"head <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andHeadLike
(
String
value
)
{
addCriterion
(
"head like"
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadNotLike
(
String
value
)
{
addCriterion
(
"head not like"
,
value
,
"head"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadIn
(
List
<
String
>
values
)
{
addCriterion
(
"head in"
,
values
,
"head"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"head not in"
,
values
,
"head"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"head between"
,
value1
,
value2
,
"head"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHeadNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"head not between"
,
value1
,
value2
,
"head"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIsNull
()
{
addCriterion
(
"add_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIsNotNull
()
{
addCriterion
(
"add_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time ="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <>"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"add_time >"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time >="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <"
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <="
,
value
,
"addTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAddTimeLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"add_time in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"add_time not in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"add_time between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"add_time not between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIsNull
()
{
addCriterion
(
"deleted is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIsNotNull
()
{
addCriterion
(
"deleted is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted ="
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted <>"
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedNotEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedGreaterThan
(
Boolean
value
)
{
addCriterion
(
"deleted >"
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedGreaterThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted >="
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedGreaterThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedLessThan
(
Boolean
value
)
{
addCriterion
(
"deleted <"
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedLessThanColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted <="
,
value
,
"deleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeletedLessThanOrEqualToColumn
(
StudentInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"deleted in"
,
values
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"deleted not in"
,
values
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"deleted between"
,
value1
,
value2
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"deleted not between"
,
value1
,
value2
,
"deleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_info
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
StudentInfoExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
StudentInfoExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
StudentInfoExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLogicalDeleted
(
boolean
deleted
)
{
return
deleted
?
andDeletedEqualTo
(
StudentInfo
.
IS_DELETED
)
:
andDeletedNotEqualTo
(
StudentInfo
.
IS_DELETED
);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_info
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentPointInfo.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
StudentPointInfo
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
NOT_DELETED
=
false
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
final
Boolean
IS_DELETED
=
true
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.id
*
* @mbg.generated
*/
private
Integer
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.student_id
*
* @mbg.generated
*/
private
Integer
studentId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.class_id
*
* @mbg.generated
*/
private
Integer
classId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.point
*
* @mbg.generated
*/
private
Integer
point
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.add_time
*
* @mbg.generated
*/
private
LocalDateTime
addTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.update_time
*
* @mbg.generated
*/
private
LocalDateTime
updateTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column student_point_info.deleted
*
* @mbg.generated
*/
private
Boolean
deleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.id
*
* @return the value of student_point_info.id
*
* @mbg.generated
*/
public
Integer
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.id
*
* @param id the value for student_point_info.id
*
* @mbg.generated
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.student_id
*
* @return the value of student_point_info.student_id
*
* @mbg.generated
*/
public
Integer
getStudentId
()
{
return
studentId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.student_id
*
* @param studentId the value for student_point_info.student_id
*
* @mbg.generated
*/
public
void
setStudentId
(
Integer
studentId
)
{
this
.
studentId
=
studentId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.class_id
*
* @return the value of student_point_info.class_id
*
* @mbg.generated
*/
public
Integer
getClassId
()
{
return
classId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.class_id
*
* @param classId the value for student_point_info.class_id
*
* @mbg.generated
*/
public
void
setClassId
(
Integer
classId
)
{
this
.
classId
=
classId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.point
*
* @return the value of student_point_info.point
*
* @mbg.generated
*/
public
Integer
getPoint
()
{
return
point
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.point
*
* @param point the value for student_point_info.point
*
* @mbg.generated
*/
public
void
setPoint
(
Integer
point
)
{
this
.
point
=
point
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.add_time
*
* @return the value of student_point_info.add_time
*
* @mbg.generated
*/
public
LocalDateTime
getAddTime
()
{
return
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.add_time
*
* @param addTime the value for student_point_info.add_time
*
* @mbg.generated
*/
public
void
setAddTime
(
LocalDateTime
addTime
)
{
this
.
addTime
=
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.update_time
*
* @return the value of student_point_info.update_time
*
* @mbg.generated
*/
public
LocalDateTime
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.update_time
*
* @param updateTime the value for student_point_info.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
LocalDateTime
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column student_point_info.deleted
*
* @return the value of student_point_info.deleted
*
* @mbg.generated
*/
public
Boolean
getDeleted
()
{
return
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.deleted
*
* @param deleted the value for student_point_info.deleted
*
* @mbg.generated
*/
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", studentId="
).
append
(
studentId
);
sb
.
append
(
", classId="
).
append
(
classId
);
sb
.
append
(
", point="
).
append
(
point
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
StudentPointInfo
other
=
(
StudentPointInfo
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
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
.
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
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
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
+
((
getAddTime
()
==
null
)
?
0
:
getAddTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getDeleted
()
==
null
)
?
0
:
getDeleted
().
hashCode
());
return
result
;
}
/**
* 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
void
andLogicalDeleted
(
boolean
deleted
)
{
setDeleted
(
deleted
?
IS_DELETED
:
NOT_DELETED
);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
studentId
(
"student_id"
,
"studentId"
,
"INTEGER"
,
false
),
classId
(
"class_id"
,
"classId"
,
"INTEGER"
,
false
),
point
(
"point"
,
"point"
,
"INTEGER"
,
false
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
deleted
(
"deleted"
,
"deleted"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* 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
String
value
()
{
return
this
.
column
;
}
/**
* 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
String
getValue
()
{
return
this
.
column
;
}
/**
* 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
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* 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
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* 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
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* 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
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* 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
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* 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
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* 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
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentPointInfoExample.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
StudentPointInfoExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
StudentPointInfoExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* 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
StudentPointInfoExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
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
StudentPointInfoExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* 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
static
Criteria
newAndCreateCriteria
()
{
StudentPointInfoExample
example
=
new
StudentPointInfoExample
();
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_point_info
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
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
andIdEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
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
andIdNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
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
andIdGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
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
andIdGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
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
andIdLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
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
andIdLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdIsNull
()
{
addCriterion
(
"student_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdIsNotNull
()
{
addCriterion
(
"student_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdEqualTo
(
Integer
value
)
{
addCriterion
(
"student_id ="
,
value
,
"studentId"
);
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
andStudentIdEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"student_id <>"
,
value
,
"studentId"
);
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
andStudentIdNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"student_id >"
,
value
,
"studentId"
);
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
andStudentIdGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"student_id >="
,
value
,
"studentId"
);
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
andStudentIdGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdLessThan
(
Integer
value
)
{
addCriterion
(
"student_id <"
,
value
,
"studentId"
);
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
andStudentIdLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"student_id <="
,
value
,
"studentId"
);
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
andStudentIdLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"student_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"student_id in"
,
values
,
"studentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"student_id not in"
,
values
,
"studentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"student_id between"
,
value1
,
value2
,
"studentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStudentIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"student_id not between"
,
value1
,
value2
,
"studentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdIsNull
()
{
addCriterion
(
"class_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdIsNotNull
()
{
addCriterion
(
"class_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id ="
,
value
,
"classId"
);
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
andClassIdEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id <>"
,
value
,
"classId"
);
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
andClassIdNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"class_id >"
,
value
,
"classId"
);
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
andClassIdGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id >="
,
value
,
"classId"
);
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
andClassIdGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdLessThan
(
Integer
value
)
{
addCriterion
(
"class_id <"
,
value
,
"classId"
);
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
andClassIdLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"class_id <="
,
value
,
"classId"
);
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
andClassIdLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"class_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"class_id in"
,
values
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"class_id not in"
,
values
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"class_id between"
,
value1
,
value2
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andClassIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"class_id not between"
,
value1
,
value2
,
"classId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPointIsNull
()
{
addCriterion
(
"point is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPointIsNotNull
()
{
addCriterion
(
"point is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPointEqualTo
(
Integer
value
)
{
addCriterion
(
"point ="
,
value
,
"point"
);
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
andPointEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"point = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPointNotEqualTo
(
Integer
value
)
{
addCriterion
(
"point <>"
,
value
,
"point"
);
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
andPointNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"point <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPointGreaterThan
(
Integer
value
)
{
addCriterion
(
"point >"
,
value
,
"point"
);
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
andPointGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"point > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPointGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"point >="
,
value
,
"point"
);
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
andPointGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"point >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPointLessThan
(
Integer
value
)
{
addCriterion
(
"point <"
,
value
,
"point"
);
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
andPointLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"point < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPointLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"point <="
,
value
,
"point"
);
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
andPointLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"point <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPointIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"point in"
,
values
,
"point"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPointNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"point not in"
,
values
,
"point"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPointBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"point between"
,
value1
,
value2
,
"point"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPointNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"point not between"
,
value1
,
value2
,
"point"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIsNull
()
{
addCriterion
(
"add_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIsNotNull
()
{
addCriterion
(
"add_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time ="
,
value
,
"addTime"
);
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
andAddTimeEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <>"
,
value
,
"addTime"
);
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
andAddTimeNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"add_time >"
,
value
,
"addTime"
);
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
andAddTimeGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time >="
,
value
,
"addTime"
);
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
andAddTimeGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <"
,
value
,
"addTime"
);
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
andAddTimeLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"add_time <="
,
value
,
"addTime"
);
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
andAddTimeLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"add_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"add_time in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"add_time not in"
,
values
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"add_time between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAddTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"add_time not between"
,
value1
,
value2
,
"addTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
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
andUpdateTimeEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
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
andUpdateTimeNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
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
andUpdateTimeGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
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
andUpdateTimeGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
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
andUpdateTimeLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
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
andUpdateTimeLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIsNull
()
{
addCriterion
(
"deleted is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIsNotNull
()
{
addCriterion
(
"deleted is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted ="
,
value
,
"deleted"
);
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
andDeletedEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted <>"
,
value
,
"deleted"
);
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
andDeletedNotEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedGreaterThan
(
Boolean
value
)
{
addCriterion
(
"deleted >"
,
value
,
"deleted"
);
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
andDeletedGreaterThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted >="
,
value
,
"deleted"
);
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
andDeletedGreaterThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedLessThan
(
Boolean
value
)
{
addCriterion
(
"deleted <"
,
value
,
"deleted"
);
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
andDeletedLessThanColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"deleted <="
,
value
,
"deleted"
);
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
andDeletedLessThanOrEqualToColumn
(
StudentPointInfo
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"deleted <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"deleted in"
,
values
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"deleted not in"
,
values
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"deleted between"
,
value1
,
value2
,
"deleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"deleted not between"
,
value1
,
value2
,
"deleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_point_info
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
StudentPointInfoExample
example
;
/**
* 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
*/
protected
Criteria
(
StudentPointInfoExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* 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
StudentPointInfoExample
example
()
{
return
this
.
example
;
}
/**
* 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
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
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
andLogicalDeleted
(
boolean
deleted
)
{
return
deleted
?
andDeletedEqualTo
(
StudentPointInfo
.
IS_DELETED
)
:
andDeletedNotEqualTo
(
StudentPointInfo
.
IS_DELETED
);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* 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
*/
Criteria
add
(
Criteria
add
);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/service/ClassService.java
0 → 100644
View file @
236751cb
package
cn
.
exploring
.
engine
.
server
.
db
.
service
;
import
org.springframework.stereotype.Service
;
@Service
public
class
ClassService
{
}
server-db/src/main/resources/application-dbDev.yml
View file @
236751cb
...
...
@@ -10,7 +10,7 @@ spring:
time-zone
:
GMT+8
datasource
:
druid
:
url
:
jdbc:mysql://39.101.222.130:3306/
emba_course
?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url
:
jdbc:mysql://39.101.222.130:3306/
class_work
?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
root
password
:
Engine123s56..
...
...
server-db/src/main/resources/application-dbProd.yml
View file @
236751cb
...
...
@@ -10,7 +10,7 @@ spring:
time-zone
:
GMT+8
datasource
:
druid
:
url
:
jdbc:mysql://rm-8vb7856yl4b5q1kf9.mysql.zhangbei.rds.aliyuncs.com:3306/
engine-base
?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url
:
jdbc:mysql://rm-8vb7856yl4b5q1kf9.mysql.zhangbei.rds.aliyuncs.com:3306/
class_work
?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
engine
password
:
Engine123S56^&*enginE
...
...
server-db/src/main/resources/application-dbTest.yml
View file @
236751cb
...
...
@@ -10,7 +10,7 @@ spring:
time-zone
:
GMT+8
datasource
:
druid
:
url
:
jdbc:mysql://172.26.206.239:3306/
emba_course
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url
:
jdbc:mysql://172.26.206.239:3306/
class_work
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
username
:
root
password
:
Engine123s56..
...
...
server-db/src/main/resources/cn/exploring/engine/server/db/dao/ClassInfoMapper.xml
0 → 100644
View file @
236751cb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.exploring.engine.server.db.dao.ClassInfoMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.exploring.engine.server.db.domain.ClassInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"class_name"
jdbcType=
"VARCHAR"
property=
"className"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"deleted"
jdbcType=
"BIT"
property=
"deleted"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, class_name, add_time, update_time, deleted
</sql>
<select
id=
"selectByExample"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfoExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, class_name, add_time, update_time, deleted
</otherwise>
</choose>
from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from class_info
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeyWithLogicalDelete"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from class_info
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when
test=
"andLogicalDeleted"
>
1
</when>
<otherwise>
0
</otherwise>
</choose>
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, class_name, add_time, update_time, deleted
</otherwise>
</choose>
from class_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from class_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfoExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into class_info (class_name, add_time, update_time,
deleted)
values (#{className,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into class_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"className != null"
>
class_name,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"className != null"
>
#{className,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfoExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
set id = #{record.id,jdbcType=INTEGER},
class_name = #{record.className,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
<set>
<if
test=
"className != null"
>
class_name = #{className,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
set class_name = #{className,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfoExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include
refid=
"Base_Column_List"
/>
from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, class_name, add_time, update_time, deleted
</otherwise>
</choose>
from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
<update
id=
"logicalDeleteByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update class_info set deleted = 1
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"logicalDeleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update class_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/StudentInfoMapper.xml
0 → 100644
View file @
236751cb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.exploring.engine.server.db.dao.StudentInfoMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.exploring.engine.server.db.domain.StudentInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"student_unique_id"
jdbcType=
"VARCHAR"
property=
"studentUniqueId"
/>
<result
column=
"class_id"
jdbcType=
"INTEGER"
property=
"classId"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"head"
jdbcType=
"VARCHAR"
property=
"head"
/>
<result
column=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"deleted"
jdbcType=
"BIT"
property=
"deleted"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, student_unique_id, class_id, `name`, head, add_time, update_time, deleted
</sql>
<select
id=
"selectByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfoExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, student_unique_id, class_id, `name`, head, add_time, update_time, deleted
</otherwise>
</choose>
from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from student_info
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeyWithLogicalDelete"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from student_info
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when
test=
"andLogicalDeleted"
>
1
</when>
<otherwise>
0
</otherwise>
</choose>
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, student_unique_id, class_id, `name`, head, add_time, update_time, deleted
</otherwise>
</choose>
from student_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from student_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfoExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_info (student_unique_id, class_id, `name`,
head, add_time, update_time,
deleted)
values (#{studentUniqueId,jdbcType=VARCHAR}, #{classId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{head,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentUniqueId != null"
>
student_unique_id,
</if>
<if
test=
"classId != null"
>
class_id,
</if>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"head != null"
>
head,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentUniqueId != null"
>
#{studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"classId != null"
>
#{classId,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"head != null"
>
#{head,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfoExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
head = #{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
set id = #{record.id,jdbcType=INTEGER},
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
class_id = #{record.classId,jdbcType=INTEGER},
`name` = #{record.name,jdbcType=VARCHAR},
head = #{record.head,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
<set>
<if
test=
"studentUniqueId != null"
>
student_unique_id = #{studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"classId != null"
>
class_id = #{classId,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"head != null"
>
head = #{head,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
set student_unique_id = #{studentUniqueId,jdbcType=VARCHAR},
class_id = #{classId,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
head = #{head,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfoExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include
refid=
"Base_Column_List"
/>
from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, student_unique_id, class_id, `name`, head, add_time, update_time, deleted
</otherwise>
</choose>
from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
<update
id=
"logicalDeleteByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update student_info set deleted = 1
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"logicalDeleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update student_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/StudentPointInfoMapper.xml
0 → 100644
View file @
236751cb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.exploring.engine.server.db.dao.StudentPointInfoMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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=
"add_time"
jdbcType=
"TIMESTAMP"
property=
"addTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"deleted"
jdbcType=
"BIT"
property=
"deleted"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
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
</sql>
<select
id=
"selectByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfoExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<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
</otherwise>
</choose>
from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from student_point_info
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeyWithLogicalDelete"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from student_point_info
where id = #{id,jdbcType=INTEGER}
and deleted =
<choose>
<when
test=
"andLogicalDeleted"
>
1
</when>
<otherwise>
0
</otherwise>
</choose>
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<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
</otherwise>
</choose>
from student_point_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from student_point_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfoExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_point_info (student_id, class_id, point,
add_time, update_time, deleted
)
values (#{studentId,jdbcType=INTEGER}, #{classId,jdbcType=INTEGER}, #{point,jdbcType=INTEGER},
#{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_point_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentId != null"
>
student_id,
</if>
<if
test=
"classId != null"
>
class_id,
</if>
<if
test=
"point != null"
>
point,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentId != null"
>
#{studentId,jdbcType=INTEGER},
</if>
<if
test=
"classId != null"
>
#{classId,jdbcType=INTEGER},
</if>
<if
test=
"point != null"
>
#{point,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfoExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
student_id = #{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
point = #{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
set id = #{record.id,jdbcType=INTEGER},
student_id = #{record.studentId,jdbcType=INTEGER},
class_id = #{record.classId,jdbcType=INTEGER},
point = #{record.point,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
<set>
<if
test=
"studentId != null"
>
student_id = #{studentId,jdbcType=INTEGER},
</if>
<if
test=
"classId != null"
>
class_id = #{classId,jdbcType=INTEGER},
</if>
<if
test=
"point != null"
>
point = #{point,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
set student_id = #{studentId,jdbcType=INTEGER},
class_id = #{classId,jdbcType=INTEGER},
point = #{point,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfoExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include
refid=
"Base_Column_List"
/>
from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<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
</otherwise>
</choose>
from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
<update
id=
"logicalDeleteByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update student_point_info set deleted = 1
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"logicalDeleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update student_point_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
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