Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
d9266b2d
Commit
d9266b2d
authored
Mar 14, 2023
by
xiaoyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e74e0ac3
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
7984 additions
and
116 deletions
+7984
-116
ch-core/src/main/resources/application-prod.yml
ch-core/src/main/resources/application-prod.yml
+2
-2
ch-dao/mybatis-generator/generatorConfig.xml
ch-dao/mybatis-generator/generatorConfig.xml
+123
-114
ch-dao/src/main/java/com/wwdz/ch/db/dao/BookItemMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/BookItemMapper.java
+165
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/BookMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/BookMapper.java
+166
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/ChainNodeMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/ChainNodeMapper.java
+165
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/Book.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Book.java
+454
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookExample.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookExample.java
+1207
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookItem.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookItem.java
+489
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookItemExample.java
.../src/main/java/com/wwdz/ch/db/domain/BookItemExample.java
+1197
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookWithBLOBs.java
...ao/src/main/java/com/wwdz/ch/db/domain/BookWithBLOBs.java
+321
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/ChainNode.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/ChainNode.java
+600
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/ChainNodeExample.java
...src/main/java/com/wwdz/ch/db/domain/ChainNodeExample.java
+1593
-0
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BookItemMapper.xml
.../src/main/resources/com/wwdz/ch/db/dao/BookItemMapper.xml
+477
-0
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BookMapper.xml
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BookMapper.xml
+492
-0
ch-dao/src/main/resources/com/wwdz/ch/db/dao/ChainNodeMapper.xml
...src/main/resources/com/wwdz/ch/db/dao/ChainNodeMapper.xml
+533
-0
No files found.
ch-core/src/main/resources/application-prod.yml
View file @
d9266b2d
dts
:
# 开发者应该设置成自己的wx相关信息
wx
:
app-id
:
wx
903e60269094b603
app-secret
:
9515370a5f97f6bfea351228c7f8dc96
app-id
:
wx
3618eab6c8b144af
app-secret
:
1a6e073ad84a1a44b6e882f3995bc400
mch-id
:
1538666666
mch-key
:
1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url
:
https://test.dtsshop.com/demo/order/dtsNotify
...
...
ch-dao/mybatis-generator/generatorConfig.xml
View file @
d9266b2d
...
...
@@ -43,9 +43,9 @@
<!--数据库连接信息-->
<jdbcConnection
driverClass=
"com.mysql.jdbc.Driver"
connectionURL=
"jdbc:mysql://
localhost
:3306/dts-shop?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false"
connectionURL=
"jdbc:mysql://
172.16.48.14
:3306/dts-shop?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&verifyServerCertificate=false&useSSL=false"
userId=
"root"
password=
"
12121212zmzm
"
/>
password=
"
zhuangdian123
"
/>
<javaTypeResolver>
<property
name=
"useJSR310Types"
value=
"true"
/>
...
...
@@ -56,128 +56,137 @@
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.dao"
targetProject=
"src/main/java"
/>
<!--表名-->
<table
tableName=
"
dts_admin
"
>
<table
tableName=
"
book
"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"role_ids"
javaType=
"java.lang.Integer[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"
/>
</table>
<table
tableName=
"category"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_collect"
>
<table
tableName=
"book_item"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"
dts_comment
"
>
<table
tableName=
"
chain_node
"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"pic_urls"
javaType=
"java.lang.String[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"
/>
</table>
<!-- <table tableName="dts_admin">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="role_ids" javaType="java.lang.Integer[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"/>-->
<!-- </table>-->
<table
tableName=
"dts_feedback"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"pic_urls"
javaType=
"java.lang.String[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"
/>
</table>
<!-- <table tableName="category">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_collect">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_comment">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="pic_urls" javaType="java.lang.String[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"/>-->
<!-- </table>-->
<table
tableName=
"dts_footprint"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_goods"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"gallery"
javaType=
"java.lang.String[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"
/>
</table>
<table
tableName=
"item"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_goods_attribute"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_goods_specification"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_goods_product"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"specifications"
javaType=
"java.lang.String[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"
/>
</table>
<table
tableName=
"dts_issue"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_keyword"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_order"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_order_goods"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"specifications"
javaType=
"java.lang.String[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"
/>
<columnOverride
column=
"comments"
javaType=
"java.lang.Integer[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"
/>
<!-- <table tableName="dts_feedback">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="pic_urls" javaType="java.lang.String[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"/>-->
<!-- </table>-->
</table>
<table
tableName=
"dts_region"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_search_history"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_storage"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_topic"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"goods"
javaType=
"java.lang.String[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"
/>
</table>
<table
tableName=
"dts_user"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_system"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<!-- <table tableName="dts_footprint">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_goods">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="gallery" javaType="java.lang.String[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"/>-->
<!-- </table>-->
<!-- <table tableName="item">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_goods_attribute">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_goods_specification">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_goods_product">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="specifications" javaType="java.lang.String[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"/>-->
<!-- </table>-->
<!-- <table tableName="dts_issue">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_keyword">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_order">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_order_goods">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="specifications" javaType="java.lang.String[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"/>-->
<!-- <columnOverride column="comments" javaType="java.lang.Integer[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"/>-->
<table
tableName=
"dts_user_formid"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<!-- </table>-->
<!-- <table tableName="dts_region">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_search_history">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_storage">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_topic">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="goods" javaType="java.lang.String[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonStringArrayTypeHandler"/>-->
<!-- </table>-->
<!-- <table tableName="dts_user">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_system">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<table
tableName=
"dts_groupon_rules"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_groupon"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_coupon"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
<columnOverride
column=
"goods_value"
javaType=
"java.lang.Integer[]"
typeHandler=
"com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"
/>
</table>
<table
tableName=
"dts_coupon_user"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_role"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_permission"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_account_trace"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_user_account"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_article"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_del_picture"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"dts_agency_share"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<!-- <table tableName="dts_user_formid">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_groupon_rules">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_groupon">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_coupon">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="goods_value" javaType="java.lang.Integer[]"-->
<!-- typeHandler="com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"/>-->
<!-- </table>-->
<!-- <table tableName="dts_coupon_user">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_role">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_permission">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_account_trace">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_user_account">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_article">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_del_picture">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_agency_share">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
</context>
</generatorConfiguration>
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dao/BookItemMapper.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.dao
;
import
com.wwdz.ch.db.domain.BookItem
;
import
com.wwdz.ch.db.domain.BookItemExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
BookItemMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
long
countByExample
(
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
deleteByExample
(
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
insert
(
BookItem
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
insertSelective
(
BookItem
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookItem
selectOneByExample
(
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookItem
selectOneByExampleSelective
(
@Param
(
"example"
)
BookItemExample
example
,
@Param
(
"selective"
)
BookItem
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookItem
selectOneByExampleWithBLOBs
(
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
BookItem
>
selectByExampleSelective
(
@Param
(
"example"
)
BookItemExample
example
,
@Param
(
"selective"
)
BookItem
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
List
<
BookItem
>
selectByExampleWithBLOBs
(
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
List
<
BookItem
>
selectByExample
(
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookItem
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
BookItem
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
BookItem
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
BookItem
record
,
@Param
(
"example"
)
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
BookItem
record
,
@Param
(
"example"
)
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
BookItem
record
,
@Param
(
"example"
)
BookItemExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
BookItem
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
BookItem
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
BookItem
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dao/BookMapper.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.dao
;
import
com.wwdz.ch.db.domain.Book
;
import
com.wwdz.ch.db.domain.BookExample
;
import
com.wwdz.ch.db.domain.BookWithBLOBs
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
BookMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
long
countByExample
(
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
deleteByExample
(
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
insert
(
BookWithBLOBs
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
insertSelective
(
BookWithBLOBs
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Book
selectOneByExample
(
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookWithBLOBs
selectOneByExampleSelective
(
@Param
(
"example"
)
BookExample
example
,
@Param
(
"selective"
)
BookWithBLOBs
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookWithBLOBs
selectOneByExampleWithBLOBs
(
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
BookWithBLOBs
>
selectByExampleSelective
(
@Param
(
"example"
)
BookExample
example
,
@Param
(
"selective"
)
BookWithBLOBs
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
List
<
BookWithBLOBs
>
selectByExampleWithBLOBs
(
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
List
<
Book
>
selectByExample
(
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BookWithBLOBs
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
BookWithBLOBs
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
BookWithBLOBs
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
BookWithBLOBs
record
,
@Param
(
"example"
)
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
BookWithBLOBs
record
,
@Param
(
"example"
)
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
Book
record
,
@Param
(
"example"
)
BookExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
BookWithBLOBs
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
BookWithBLOBs
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
Book
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dao/ChainNodeMapper.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.dao
;
import
com.wwdz.ch.db.domain.ChainNode
;
import
com.wwdz.ch.db.domain.ChainNodeExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
ChainNodeMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
long
countByExample
(
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
deleteByExample
(
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
insert
(
ChainNode
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
insertSelective
(
ChainNode
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ChainNode
selectOneByExample
(
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ChainNode
selectOneByExampleSelective
(
@Param
(
"example"
)
ChainNodeExample
example
,
@Param
(
"selective"
)
ChainNode
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ChainNode
selectOneByExampleWithBLOBs
(
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
ChainNode
>
selectByExampleSelective
(
@Param
(
"example"
)
ChainNodeExample
example
,
@Param
(
"selective"
)
ChainNode
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
List
<
ChainNode
>
selectByExampleWithBLOBs
(
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
List
<
ChainNode
>
selectByExample
(
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ChainNode
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
ChainNode
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
ChainNode
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
ChainNode
record
,
@Param
(
"example"
)
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
ChainNode
record
,
@Param
(
"example"
)
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
ChainNode
record
,
@Param
(
"example"
)
ChainNodeExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
ChainNode
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
updateByPrimaryKeyWithBLOBs
(
ChainNode
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
ChainNode
record
);
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/Book.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
Book
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.id
*
* @mbg.generated
*/
private
Long
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.name
*
* @mbg.generated
*/
private
String
name
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.publisher_id
*
* @mbg.generated
*/
private
Long
publisherId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.created
*
* @mbg.generated
*/
private
LocalDateTime
created
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.updated
*
* @mbg.generated
*/
private
LocalDateTime
updated
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.is_deleted
*
* @mbg.generated
*/
private
Boolean
isDeleted
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.id
*
* @return the value of book.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.id
*
* @param id the value for book.id
*
* @mbg.generated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.name
*
* @return the value of book.name
*
* @mbg.generated
*/
public
String
getName
()
{
return
name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.name
*
* @param name the value for book.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 book.publisher_id
*
* @return the value of book.publisher_id
*
* @mbg.generated
*/
public
Long
getPublisherId
()
{
return
publisherId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.publisher_id
*
* @param publisherId the value for book.publisher_id
*
* @mbg.generated
*/
public
void
setPublisherId
(
Long
publisherId
)
{
this
.
publisherId
=
publisherId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.created
*
* @return the value of book.created
*
* @mbg.generated
*/
public
LocalDateTime
getCreated
()
{
return
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.created
*
* @param created the value for book.created
*
* @mbg.generated
*/
public
void
setCreated
(
LocalDateTime
created
)
{
this
.
created
=
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.updated
*
* @return the value of book.updated
*
* @mbg.generated
*/
public
LocalDateTime
getUpdated
()
{
return
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.updated
*
* @param updated the value for book.updated
*
* @mbg.generated
*/
public
void
setUpdated
(
LocalDateTime
updated
)
{
this
.
updated
=
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.is_deleted
*
* @return the value of book.is_deleted
*
* @mbg.generated
*/
public
Boolean
getIsDeleted
()
{
return
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.is_deleted
*
* @param isDeleted the value for book.is_deleted
*
* @mbg.generated
*/
public
void
setIsDeleted
(
Boolean
isDeleted
)
{
this
.
isDeleted
=
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @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
(
", name="
).
append
(
name
);
sb
.
append
(
", publisherId="
).
append
(
publisherId
);
sb
.
append
(
", created="
).
append
(
created
);
sb
.
append
(
", updated="
).
append
(
updated
);
sb
.
append
(
", isDeleted="
).
append
(
isDeleted
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
Book
other
=
(
Book
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getName
()
==
null
?
other
.
getName
()
==
null
:
this
.
getName
().
equals
(
other
.
getName
()))
&&
(
this
.
getPublisherId
()
==
null
?
other
.
getPublisherId
()
==
null
:
this
.
getPublisherId
().
equals
(
other
.
getPublisherId
()))
&&
(
this
.
getCreated
()
==
null
?
other
.
getCreated
()
==
null
:
this
.
getCreated
().
equals
(
other
.
getCreated
()))
&&
(
this
.
getUpdated
()
==
null
?
other
.
getUpdated
()
==
null
:
this
.
getUpdated
().
equals
(
other
.
getUpdated
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getName
()
==
null
)
?
0
:
getName
().
hashCode
());
result
=
prime
*
result
+
((
getPublisherId
()
==
null
)
?
0
:
getPublisherId
().
hashCode
());
result
=
prime
*
result
+
((
getCreated
()
==
null
)
?
0
:
getCreated
().
hashCode
());
result
=
prime
*
result
+
((
getUpdated
()
==
null
)
?
0
:
getUpdated
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
name
(
"name"
,
"name"
,
"VARCHAR"
,
true
),
publisherId
(
"publisher_id"
,
"publisherId"
,
"BIGINT"
,
false
),
created
(
"created"
,
"created"
,
"TIMESTAMP"
,
false
),
updated
(
"updated"
,
"updated"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
detail
(
"detail"
,
"detail"
,
"LONGVARCHAR"
,
false
),
images
(
"images"
,
"images"
,
"LONGVARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookExample.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
BookExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
BookExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
BookExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
BookExample
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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
BookExample
example
=
new
BookExample
();
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table book
*
* @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
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameEqualToColumn
(
BookWithBLOBs
.
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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameNotEqualToColumn
(
BookWithBLOBs
.
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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameGreaterThanColumn
(
BookWithBLOBs
.
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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameGreaterThanOrEqualToColumn
(
BookWithBLOBs
.
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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameLessThanColumn
(
BookWithBLOBs
.
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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andNameLessThanOrEqualToColumn
(
BookWithBLOBs
.
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
andPublisherIdIsNull
()
{
addCriterion
(
"publisher_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdIsNotNull
()
{
addCriterion
(
"publisher_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdEqualTo
(
Long
value
)
{
addCriterion
(
"publisher_id ="
,
value
,
"publisherId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPublisherIdEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"publisher_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"publisher_id <>"
,
value
,
"publisherId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPublisherIdNotEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"publisher_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdGreaterThan
(
Long
value
)
{
addCriterion
(
"publisher_id >"
,
value
,
"publisherId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPublisherIdGreaterThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"publisher_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"publisher_id >="
,
value
,
"publisherId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPublisherIdGreaterThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"publisher_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdLessThan
(
Long
value
)
{
addCriterion
(
"publisher_id <"
,
value
,
"publisherId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPublisherIdLessThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"publisher_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"publisher_id <="
,
value
,
"publisherId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andPublisherIdLessThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"publisher_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"publisher_id in"
,
values
,
"publisherId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"publisher_id not in"
,
values
,
"publisherId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"publisher_id between"
,
value1
,
value2
,
"publisherId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPublisherIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"publisher_id not between"
,
value1
,
value2
,
"publisherId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIsNull
()
{
addCriterion
(
"created is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIsNotNull
()
{
addCriterion
(
"created is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created ="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created <>"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedNotEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"created >"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedGreaterThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created >="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedGreaterThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"created <"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedLessThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created <="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedLessThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"created in"
,
values
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"created not in"
,
values
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"created between"
,
value1
,
value2
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"created not between"
,
value1
,
value2
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIsNull
()
{
addCriterion
(
"updated is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIsNotNull
()
{
addCriterion
(
"updated is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated ="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated <>"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedNotEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"updated >"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedGreaterThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated >="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedGreaterThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"updated <"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedLessThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated <="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedLessThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"updated in"
,
values
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"updated not in"
,
values
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"updated between"
,
value1
,
value2
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"updated not between"
,
value1
,
value2
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIsNull
()
{
addCriterion
(
"is_deleted is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIsNotNull
()
{
addCriterion
(
"is_deleted is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted ="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted <>"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedNotEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_deleted >"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedGreaterThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted >="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedGreaterThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThan
(
Boolean
value
)
{
addCriterion
(
"is_deleted <"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedLessThanColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted <="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedLessThanOrEqualToColumn
(
BookWithBLOBs
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deleted in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deleted not in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deleted between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deleted not between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table book
*
* @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 book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
BookExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
BookExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
BookExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @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 interface was generated by MyBatis Generator.
* This interface corresponds to the database table book
*
* @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 book
*
* @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 book
*
* @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
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookItem.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
BookItem
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.id
*
* @mbg.generated
*/
private
Long
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.book_id
*
* @mbg.generated
*/
private
Long
bookId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.item_id
*
* @mbg.generated
*/
private
Long
itemId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.created
*
* @mbg.generated
*/
private
LocalDateTime
created
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.updated
*
* @mbg.generated
*/
private
LocalDateTime
updated
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.is_deleted
*
* @mbg.generated
*/
private
Boolean
isDeleted
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book_item.detail
*
* @mbg.generated
*/
private
String
detail
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.id
*
* @return the value of book_item.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.id
*
* @param id the value for book_item.id
*
* @mbg.generated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.book_id
*
* @return the value of book_item.book_id
*
* @mbg.generated
*/
public
Long
getBookId
()
{
return
bookId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.book_id
*
* @param bookId the value for book_item.book_id
*
* @mbg.generated
*/
public
void
setBookId
(
Long
bookId
)
{
this
.
bookId
=
bookId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.item_id
*
* @return the value of book_item.item_id
*
* @mbg.generated
*/
public
Long
getItemId
()
{
return
itemId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.item_id
*
* @param itemId the value for book_item.item_id
*
* @mbg.generated
*/
public
void
setItemId
(
Long
itemId
)
{
this
.
itemId
=
itemId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.created
*
* @return the value of book_item.created
*
* @mbg.generated
*/
public
LocalDateTime
getCreated
()
{
return
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.created
*
* @param created the value for book_item.created
*
* @mbg.generated
*/
public
void
setCreated
(
LocalDateTime
created
)
{
this
.
created
=
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.updated
*
* @return the value of book_item.updated
*
* @mbg.generated
*/
public
LocalDateTime
getUpdated
()
{
return
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.updated
*
* @param updated the value for book_item.updated
*
* @mbg.generated
*/
public
void
setUpdated
(
LocalDateTime
updated
)
{
this
.
updated
=
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.is_deleted
*
* @return the value of book_item.is_deleted
*
* @mbg.generated
*/
public
Boolean
getIsDeleted
()
{
return
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.is_deleted
*
* @param isDeleted the value for book_item.is_deleted
*
* @mbg.generated
*/
public
void
setIsDeleted
(
Boolean
isDeleted
)
{
this
.
isDeleted
=
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book_item.detail
*
* @return the value of book_item.detail
*
* @mbg.generated
*/
public
String
getDetail
()
{
return
detail
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book_item.detail
*
* @param detail the value for book_item.detail
*
* @mbg.generated
*/
public
void
setDetail
(
String
detail
)
{
this
.
detail
=
detail
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @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
(
", bookId="
).
append
(
bookId
);
sb
.
append
(
", itemId="
).
append
(
itemId
);
sb
.
append
(
", created="
).
append
(
created
);
sb
.
append
(
", updated="
).
append
(
updated
);
sb
.
append
(
", isDeleted="
).
append
(
isDeleted
);
sb
.
append
(
", detail="
).
append
(
detail
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
BookItem
other
=
(
BookItem
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getBookId
()
==
null
?
other
.
getBookId
()
==
null
:
this
.
getBookId
().
equals
(
other
.
getBookId
()))
&&
(
this
.
getItemId
()
==
null
?
other
.
getItemId
()
==
null
:
this
.
getItemId
().
equals
(
other
.
getItemId
()))
&&
(
this
.
getCreated
()
==
null
?
other
.
getCreated
()
==
null
:
this
.
getCreated
().
equals
(
other
.
getCreated
()))
&&
(
this
.
getUpdated
()
==
null
?
other
.
getUpdated
()
==
null
:
this
.
getUpdated
().
equals
(
other
.
getUpdated
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()))
&&
(
this
.
getDetail
()
==
null
?
other
.
getDetail
()
==
null
:
this
.
getDetail
().
equals
(
other
.
getDetail
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getBookId
()
==
null
)
?
0
:
getBookId
().
hashCode
());
result
=
prime
*
result
+
((
getItemId
()
==
null
)
?
0
:
getItemId
().
hashCode
());
result
=
prime
*
result
+
((
getCreated
()
==
null
)
?
0
:
getCreated
().
hashCode
());
result
=
prime
*
result
+
((
getUpdated
()
==
null
)
?
0
:
getUpdated
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
result
=
prime
*
result
+
((
getDetail
()
==
null
)
?
0
:
getDetail
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
bookId
(
"book_id"
,
"bookId"
,
"BIGINT"
,
false
),
itemId
(
"item_id"
,
"itemId"
,
"BIGINT"
,
false
),
created
(
"created"
,
"created"
,
"TIMESTAMP"
,
false
),
updated
(
"updated"
,
"updated"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
detail
(
"detail"
,
"detail"
,
"LONGVARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookItemExample.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
BookItemExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book_item
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book_item
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book_item
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
BookItemExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @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 book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
BookItemExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
BookItemExample
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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @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 book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
BookItemExample
example
=
new
BookItemExample
();
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table book_item
*
* @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
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdIsNull
()
{
addCriterion
(
"book_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdIsNotNull
()
{
addCriterion
(
"book_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdEqualTo
(
Long
value
)
{
addCriterion
(
"book_id ="
,
value
,
"bookId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBookIdEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"book_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"book_id <>"
,
value
,
"bookId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBookIdNotEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"book_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdGreaterThan
(
Long
value
)
{
addCriterion
(
"book_id >"
,
value
,
"bookId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBookIdGreaterThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"book_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"book_id >="
,
value
,
"bookId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBookIdGreaterThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"book_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdLessThan
(
Long
value
)
{
addCriterion
(
"book_id <"
,
value
,
"bookId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBookIdLessThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"book_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"book_id <="
,
value
,
"bookId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andBookIdLessThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"book_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"book_id in"
,
values
,
"bookId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"book_id not in"
,
values
,
"bookId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"book_id between"
,
value1
,
value2
,
"bookId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBookIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"book_id not between"
,
value1
,
value2
,
"bookId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNull
()
{
addCriterion
(
"item_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNotNull
()
{
addCriterion
(
"item_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdEqualTo
(
Long
value
)
{
addCriterion
(
"item_id ="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <>"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThan
(
Long
value
)
{
addCriterion
(
"item_id >"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id >="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThan
(
Long
value
)
{
addCriterion
(
"item_id <"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id not in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id not between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIsNull
()
{
addCriterion
(
"created is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIsNotNull
()
{
addCriterion
(
"created is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created ="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created <>"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedNotEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"created >"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedGreaterThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created >="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedGreaterThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"created <"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedLessThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created <="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedLessThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"created in"
,
values
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"created not in"
,
values
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"created between"
,
value1
,
value2
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"created not between"
,
value1
,
value2
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIsNull
()
{
addCriterion
(
"updated is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIsNotNull
()
{
addCriterion
(
"updated is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated ="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated <>"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedNotEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"updated >"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedGreaterThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated >="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedGreaterThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"updated <"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedLessThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated <="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedLessThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"updated in"
,
values
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"updated not in"
,
values
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"updated between"
,
value1
,
value2
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"updated not between"
,
value1
,
value2
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIsNull
()
{
addCriterion
(
"is_deleted is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIsNotNull
()
{
addCriterion
(
"is_deleted is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted ="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted <>"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedNotEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_deleted >"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedGreaterThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted >="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedGreaterThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThan
(
Boolean
value
)
{
addCriterion
(
"is_deleted <"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedLessThanColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted <="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedLessThanOrEqualToColumn
(
BookItem
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deleted in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deleted not in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deleted between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deleted not between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table book_item
*
* @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 book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
BookItemExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
BookItemExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
BookItemExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book_item
*
* @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 interface was generated by MyBatis Generator.
* This interface corresponds to the database table book_item
*
* @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 book_item
*
* @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 book_item
*
* @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
ch-dao/src/main/java/com/wwdz/ch/db/domain/BookWithBLOBs.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
BookWithBLOBs
extends
Book
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.detail
*
* @mbg.generated
*/
private
String
detail
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column book.images
*
* @mbg.generated
*/
private
String
images
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.detail
*
* @return the value of book.detail
*
* @mbg.generated
*/
public
String
getDetail
()
{
return
detail
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.detail
*
* @param detail the value for book.detail
*
* @mbg.generated
*/
public
void
setDetail
(
String
detail
)
{
this
.
detail
=
detail
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column book.images
*
* @return the value of book.images
*
* @mbg.generated
*/
public
String
getImages
()
{
return
images
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column book.images
*
* @param images the value for book.images
*
* @mbg.generated
*/
public
void
setImages
(
String
images
)
{
this
.
images
=
images
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", detail="
).
append
(
detail
);
sb
.
append
(
", images="
).
append
(
images
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
BookWithBLOBs
other
=
(
BookWithBLOBs
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getName
()
==
null
?
other
.
getName
()
==
null
:
this
.
getName
().
equals
(
other
.
getName
()))
&&
(
this
.
getPublisherId
()
==
null
?
other
.
getPublisherId
()
==
null
:
this
.
getPublisherId
().
equals
(
other
.
getPublisherId
()))
&&
(
this
.
getCreated
()
==
null
?
other
.
getCreated
()
==
null
:
this
.
getCreated
().
equals
(
other
.
getCreated
()))
&&
(
this
.
getUpdated
()
==
null
?
other
.
getUpdated
()
==
null
:
this
.
getUpdated
().
equals
(
other
.
getUpdated
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()))
&&
(
this
.
getDetail
()
==
null
?
other
.
getDetail
()
==
null
:
this
.
getDetail
().
equals
(
other
.
getDetail
()))
&&
(
this
.
getImages
()
==
null
?
other
.
getImages
()
==
null
:
this
.
getImages
().
equals
(
other
.
getImages
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table book
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getName
()
==
null
)
?
0
:
getName
().
hashCode
());
result
=
prime
*
result
+
((
getPublisherId
()
==
null
)
?
0
:
getPublisherId
().
hashCode
());
result
=
prime
*
result
+
((
getCreated
()
==
null
)
?
0
:
getCreated
().
hashCode
());
result
=
prime
*
result
+
((
getUpdated
()
==
null
)
?
0
:
getUpdated
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
result
=
prime
*
result
+
((
getDetail
()
==
null
)
?
0
:
getDetail
().
hashCode
());
result
=
prime
*
result
+
((
getImages
()
==
null
)
?
0
:
getImages
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table book
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
name
(
"name"
,
"name"
,
"VARCHAR"
,
true
),
publisherId
(
"publisher_id"
,
"publisherId"
,
"BIGINT"
,
false
),
created
(
"created"
,
"created"
,
"TIMESTAMP"
,
false
),
updated
(
"updated"
,
"updated"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
detail
(
"detail"
,
"detail"
,
"LONGVARCHAR"
,
false
),
images
(
"images"
,
"images"
,
"LONGVARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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 book
*
* @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
ch-dao/src/main/java/com/wwdz/ch/db/domain/ChainNode.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
public
class
ChainNode
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.id
*
* @mbg.generated
*/
private
Long
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.parent_id
*
* @mbg.generated
*/
private
Long
parentId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.item_id
*
* @mbg.generated
*/
private
Long
itemId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.is_leaf
*
* @mbg.generated
*/
private
Byte
isLeaf
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.is_root
*
* @mbg.generated
*/
private
Byte
isRoot
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.owner_id
*
* @mbg.generated
*/
private
Long
ownerId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.created
*
* @mbg.generated
*/
private
LocalDateTime
created
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.updated
*
* @mbg.generated
*/
private
LocalDateTime
updated
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.is_deleted
*
* @mbg.generated
*/
private
Boolean
isDeleted
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column chain_node.extra
*
* @mbg.generated
*/
private
String
extra
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.id
*
* @return the value of chain_node.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.id
*
* @param id the value for chain_node.id
*
* @mbg.generated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.parent_id
*
* @return the value of chain_node.parent_id
*
* @mbg.generated
*/
public
Long
getParentId
()
{
return
parentId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.parent_id
*
* @param parentId the value for chain_node.parent_id
*
* @mbg.generated
*/
public
void
setParentId
(
Long
parentId
)
{
this
.
parentId
=
parentId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.item_id
*
* @return the value of chain_node.item_id
*
* @mbg.generated
*/
public
Long
getItemId
()
{
return
itemId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.item_id
*
* @param itemId the value for chain_node.item_id
*
* @mbg.generated
*/
public
void
setItemId
(
Long
itemId
)
{
this
.
itemId
=
itemId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.is_leaf
*
* @return the value of chain_node.is_leaf
*
* @mbg.generated
*/
public
Byte
getIsLeaf
()
{
return
isLeaf
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.is_leaf
*
* @param isLeaf the value for chain_node.is_leaf
*
* @mbg.generated
*/
public
void
setIsLeaf
(
Byte
isLeaf
)
{
this
.
isLeaf
=
isLeaf
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.is_root
*
* @return the value of chain_node.is_root
*
* @mbg.generated
*/
public
Byte
getIsRoot
()
{
return
isRoot
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.is_root
*
* @param isRoot the value for chain_node.is_root
*
* @mbg.generated
*/
public
void
setIsRoot
(
Byte
isRoot
)
{
this
.
isRoot
=
isRoot
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.owner_id
*
* @return the value of chain_node.owner_id
*
* @mbg.generated
*/
public
Long
getOwnerId
()
{
return
ownerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.owner_id
*
* @param ownerId the value for chain_node.owner_id
*
* @mbg.generated
*/
public
void
setOwnerId
(
Long
ownerId
)
{
this
.
ownerId
=
ownerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.created
*
* @return the value of chain_node.created
*
* @mbg.generated
*/
public
LocalDateTime
getCreated
()
{
return
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.created
*
* @param created the value for chain_node.created
*
* @mbg.generated
*/
public
void
setCreated
(
LocalDateTime
created
)
{
this
.
created
=
created
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.updated
*
* @return the value of chain_node.updated
*
* @mbg.generated
*/
public
LocalDateTime
getUpdated
()
{
return
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.updated
*
* @param updated the value for chain_node.updated
*
* @mbg.generated
*/
public
void
setUpdated
(
LocalDateTime
updated
)
{
this
.
updated
=
updated
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.is_deleted
*
* @return the value of chain_node.is_deleted
*
* @mbg.generated
*/
public
Boolean
getIsDeleted
()
{
return
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.is_deleted
*
* @param isDeleted the value for chain_node.is_deleted
*
* @mbg.generated
*/
public
void
setIsDeleted
(
Boolean
isDeleted
)
{
this
.
isDeleted
=
isDeleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column chain_node.extra
*
* @return the value of chain_node.extra
*
* @mbg.generated
*/
public
String
getExtra
()
{
return
extra
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column chain_node.extra
*
* @param extra the value for chain_node.extra
*
* @mbg.generated
*/
public
void
setExtra
(
String
extra
)
{
this
.
extra
=
extra
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @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
(
", parentId="
).
append
(
parentId
);
sb
.
append
(
", itemId="
).
append
(
itemId
);
sb
.
append
(
", isLeaf="
).
append
(
isLeaf
);
sb
.
append
(
", isRoot="
).
append
(
isRoot
);
sb
.
append
(
", ownerId="
).
append
(
ownerId
);
sb
.
append
(
", created="
).
append
(
created
);
sb
.
append
(
", updated="
).
append
(
updated
);
sb
.
append
(
", isDeleted="
).
append
(
isDeleted
);
sb
.
append
(
", extra="
).
append
(
extra
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
ChainNode
other
=
(
ChainNode
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getParentId
()
==
null
?
other
.
getParentId
()
==
null
:
this
.
getParentId
().
equals
(
other
.
getParentId
()))
&&
(
this
.
getItemId
()
==
null
?
other
.
getItemId
()
==
null
:
this
.
getItemId
().
equals
(
other
.
getItemId
()))
&&
(
this
.
getIsLeaf
()
==
null
?
other
.
getIsLeaf
()
==
null
:
this
.
getIsLeaf
().
equals
(
other
.
getIsLeaf
()))
&&
(
this
.
getIsRoot
()
==
null
?
other
.
getIsRoot
()
==
null
:
this
.
getIsRoot
().
equals
(
other
.
getIsRoot
()))
&&
(
this
.
getOwnerId
()
==
null
?
other
.
getOwnerId
()
==
null
:
this
.
getOwnerId
().
equals
(
other
.
getOwnerId
()))
&&
(
this
.
getCreated
()
==
null
?
other
.
getCreated
()
==
null
:
this
.
getCreated
().
equals
(
other
.
getCreated
()))
&&
(
this
.
getUpdated
()
==
null
?
other
.
getUpdated
()
==
null
:
this
.
getUpdated
().
equals
(
other
.
getUpdated
()))
&&
(
this
.
getIsDeleted
()
==
null
?
other
.
getIsDeleted
()
==
null
:
this
.
getIsDeleted
().
equals
(
other
.
getIsDeleted
()))
&&
(
this
.
getExtra
()
==
null
?
other
.
getExtra
()
==
null
:
this
.
getExtra
().
equals
(
other
.
getExtra
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getParentId
()
==
null
)
?
0
:
getParentId
().
hashCode
());
result
=
prime
*
result
+
((
getItemId
()
==
null
)
?
0
:
getItemId
().
hashCode
());
result
=
prime
*
result
+
((
getIsLeaf
()
==
null
)
?
0
:
getIsLeaf
().
hashCode
());
result
=
prime
*
result
+
((
getIsRoot
()
==
null
)
?
0
:
getIsRoot
().
hashCode
());
result
=
prime
*
result
+
((
getOwnerId
()
==
null
)
?
0
:
getOwnerId
().
hashCode
());
result
=
prime
*
result
+
((
getCreated
()
==
null
)
?
0
:
getCreated
().
hashCode
());
result
=
prime
*
result
+
((
getUpdated
()
==
null
)
?
0
:
getUpdated
().
hashCode
());
result
=
prime
*
result
+
((
getIsDeleted
()
==
null
)
?
0
:
getIsDeleted
().
hashCode
());
result
=
prime
*
result
+
((
getExtra
()
==
null
)
?
0
:
getExtra
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
parentId
(
"parent_id"
,
"parentId"
,
"BIGINT"
,
false
),
itemId
(
"item_id"
,
"itemId"
,
"BIGINT"
,
false
),
isLeaf
(
"is_leaf"
,
"isLeaf"
,
"TINYINT"
,
false
),
isRoot
(
"is_root"
,
"isRoot"
,
"TINYINT"
,
false
),
ownerId
(
"owner_id"
,
"ownerId"
,
"BIGINT"
,
false
),
created
(
"created"
,
"created"
,
"TIMESTAMP"
,
false
),
updated
(
"updated"
,
"updated"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
extra
(
"extra"
,
"extra"
,
"LONGVARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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
ch-dao/src/main/java/com/wwdz/ch/db/domain/ChainNodeExample.java
0 → 100644
View file @
d9266b2d
package
com.wwdz.ch.db.domain
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
ChainNodeExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table chain_node
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table chain_node
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table chain_node
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
ChainNodeExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @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 chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ChainNodeExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ChainNodeExample
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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
ChainNodeExample
example
=
new
ChainNodeExample
();
return
example
.
createCriteria
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table chain_node
*
* @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
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdIsNull
()
{
addCriterion
(
"parent_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdIsNotNull
()
{
addCriterion
(
"parent_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdEqualTo
(
Long
value
)
{
addCriterion
(
"parent_id ="
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andParentIdEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"parent_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"parent_id <>"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andParentIdNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"parent_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdGreaterThan
(
Long
value
)
{
addCriterion
(
"parent_id >"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andParentIdGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"parent_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"parent_id >="
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andParentIdGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"parent_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdLessThan
(
Long
value
)
{
addCriterion
(
"parent_id <"
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andParentIdLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"parent_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"parent_id <="
,
value
,
"parentId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andParentIdLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"parent_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"parent_id in"
,
values
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"parent_id not in"
,
values
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"parent_id between"
,
value1
,
value2
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andParentIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"parent_id not between"
,
value1
,
value2
,
"parentId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNull
()
{
addCriterion
(
"item_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIsNotNull
()
{
addCriterion
(
"item_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdEqualTo
(
Long
value
)
{
addCriterion
(
"item_id ="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <>"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThan
(
Long
value
)
{
addCriterion
(
"item_id >"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id >="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThan
(
Long
value
)
{
addCriterion
(
"item_id <"
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"item_id <="
,
value
,
"itemId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andItemIdLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"item_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"item_id not in"
,
values
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andItemIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"item_id not between"
,
value1
,
value2
,
"itemId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafIsNull
()
{
addCriterion
(
"is_leaf is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafIsNotNull
()
{
addCriterion
(
"is_leaf is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafEqualTo
(
Byte
value
)
{
addCriterion
(
"is_leaf ="
,
value
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeafEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_leaf = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafNotEqualTo
(
Byte
value
)
{
addCriterion
(
"is_leaf <>"
,
value
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeafNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_leaf <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafGreaterThan
(
Byte
value
)
{
addCriterion
(
"is_leaf >"
,
value
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeafGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_leaf > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafGreaterThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"is_leaf >="
,
value
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeafGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_leaf >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafLessThan
(
Byte
value
)
{
addCriterion
(
"is_leaf <"
,
value
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeafLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_leaf < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafLessThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"is_leaf <="
,
value
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsLeafLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_leaf <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"is_leaf in"
,
values
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafNotIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"is_leaf not in"
,
values
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"is_leaf between"
,
value1
,
value2
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsLeafNotBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"is_leaf not between"
,
value1
,
value2
,
"isLeaf"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootIsNull
()
{
addCriterion
(
"is_root is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootIsNotNull
()
{
addCriterion
(
"is_root is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootEqualTo
(
Byte
value
)
{
addCriterion
(
"is_root ="
,
value
,
"isRoot"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsRootEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_root = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootNotEqualTo
(
Byte
value
)
{
addCriterion
(
"is_root <>"
,
value
,
"isRoot"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsRootNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_root <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootGreaterThan
(
Byte
value
)
{
addCriterion
(
"is_root >"
,
value
,
"isRoot"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsRootGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_root > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootGreaterThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"is_root >="
,
value
,
"isRoot"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsRootGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_root >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootLessThan
(
Byte
value
)
{
addCriterion
(
"is_root <"
,
value
,
"isRoot"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsRootLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_root < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootLessThanOrEqualTo
(
Byte
value
)
{
addCriterion
(
"is_root <="
,
value
,
"isRoot"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsRootLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_root <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"is_root in"
,
values
,
"isRoot"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootNotIn
(
List
<
Byte
>
values
)
{
addCriterion
(
"is_root not in"
,
values
,
"isRoot"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"is_root between"
,
value1
,
value2
,
"isRoot"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsRootNotBetween
(
Byte
value1
,
Byte
value2
)
{
addCriterion
(
"is_root not between"
,
value1
,
value2
,
"isRoot"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdIsNull
()
{
addCriterion
(
"owner_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdIsNotNull
()
{
addCriterion
(
"owner_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdEqualTo
(
Long
value
)
{
addCriterion
(
"owner_id ="
,
value
,
"ownerId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOwnerIdEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"owner_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"owner_id <>"
,
value
,
"ownerId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOwnerIdNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"owner_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdGreaterThan
(
Long
value
)
{
addCriterion
(
"owner_id >"
,
value
,
"ownerId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOwnerIdGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"owner_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"owner_id >="
,
value
,
"ownerId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOwnerIdGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"owner_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdLessThan
(
Long
value
)
{
addCriterion
(
"owner_id <"
,
value
,
"ownerId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOwnerIdLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"owner_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"owner_id <="
,
value
,
"ownerId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOwnerIdLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"owner_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"owner_id in"
,
values
,
"ownerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"owner_id not in"
,
values
,
"ownerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"owner_id between"
,
value1
,
value2
,
"ownerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOwnerIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"owner_id not between"
,
value1
,
value2
,
"ownerId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIsNull
()
{
addCriterion
(
"created is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIsNotNull
()
{
addCriterion
(
"created is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created ="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created <>"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"created >"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created >="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"created <"
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"created <="
,
value
,
"created"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreatedLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"created <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"created in"
,
values
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"created not in"
,
values
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"created between"
,
value1
,
value2
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreatedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"created not between"
,
value1
,
value2
,
"created"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIsNull
()
{
addCriterion
(
"updated is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIsNotNull
()
{
addCriterion
(
"updated is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated ="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated <>"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"updated >"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated >="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"updated <"
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"updated <="
,
value
,
"updated"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdatedLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"updated <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"updated in"
,
values
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"updated not in"
,
values
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"updated between"
,
value1
,
value2
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdatedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"updated not between"
,
value1
,
value2
,
"updated"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIsNull
()
{
addCriterion
(
"is_deleted is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIsNotNull
()
{
addCriterion
(
"is_deleted is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted ="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted <>"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedNotEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_deleted >"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedGreaterThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted >="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedGreaterThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThan
(
Boolean
value
)
{
addCriterion
(
"is_deleted <"
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedLessThanColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_deleted <="
,
value
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsDeletedLessThanOrEqualToColumn
(
ChainNode
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_deleted <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deleted in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_deleted not in"
,
values
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deleted between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsDeletedNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_deleted not between"
,
value1
,
value2
,
"isDeleted"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table chain_node
*
* @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 chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
ChainNodeExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
ChainNodeExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ChainNodeExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table chain_node
*
* @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 interface was generated by MyBatis Generator.
* This interface corresponds to the database table chain_node
*
* @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 chain_node
*
* @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 chain_node
*
* @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
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BookItemMapper.xml
0 → 100644
View file @
d9266b2d
<?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=
"com.wwdz.ch.db.dao.BookItemMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"book_id"
jdbcType=
"BIGINT"
property=
"bookId"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"created"
jdbcType=
"TIMESTAMP"
property=
"created"
/>
<result
column=
"updated"
jdbcType=
"TIMESTAMP"
property=
"updated"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"detail"
jdbcType=
"LONGVARCHAR"
property=
"detail"
/>
</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, book_id, item_id, created, updated, is_deleted
</sql>
<sql
id=
"Blob_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
detail
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.BookItemExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from book_item
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.BookItemExample"
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 book_item
<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=
"ResultMapWithBLOBs"
>
<!--
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, book_id, item_id, created, updated, is_deleted, detail
</otherwise>
</choose>
from book_item
<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.Long"
resultMap=
"ResultMapWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from book_item
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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, book_id, item_id, created, updated, is_deleted, detail
</otherwise>
</choose>
from book_item
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from book_item
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.BookItemExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from book_item
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into book_item (book_id, item_id, created,
updated, is_deleted, detail
)
values (#{bookId,jdbcType=BIGINT}, #{itemId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP},
#{updated,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{detail,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into book_item
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"bookId != null"
>
book_id,
</if>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"created != null"
>
created,
</if>
<if
test=
"updated != null"
>
updated,
</if>
<if
test=
"isDeleted != null"
>
is_deleted,
</if>
<if
test=
"detail != null"
>
detail,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"bookId != null"
>
#{bookId,jdbcType=BIGINT},
</if>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"created != null"
>
#{created,jdbcType=TIMESTAMP},
</if>
<if
test=
"updated != null"
>
#{updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
#{isDeleted,jdbcType=BIT},
</if>
<if
test=
"detail != null"
>
#{detail,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.BookItemExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from book_item
<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 book_item
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.bookId != null"
>
book_id = #{record.bookId,jdbcType=BIGINT},
</if>
<if
test=
"record.itemId != null"
>
item_id = #{record.itemId,jdbcType=BIGINT},
</if>
<if
test=
"record.created != null"
>
created = #{record.created,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updated != null"
>
updated = #{record.updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isDeleted != null"
>
is_deleted = #{record.isDeleted,jdbcType=BIT},
</if>
<if
test=
"record.detail != null"
>
detail = #{record.detail,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book_item
set id = #{record.id,jdbcType=BIGINT},
book_id = #{record.bookId,jdbcType=BIGINT},
item_id = #{record.itemId,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
detail = #{record.detail,jdbcType=LONGVARCHAR}
<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 book_item
set id = #{record.id,jdbcType=BIGINT},
book_id = #{record.bookId,jdbcType=BIGINT},
item_id = #{record.itemId,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book_item
<set>
<if
test=
"bookId != null"
>
book_id = #{bookId,jdbcType=BIGINT},
</if>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"created != null"
>
created = #{created,jdbcType=TIMESTAMP},
</if>
<if
test=
"updated != null"
>
updated = #{updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
is_deleted = #{isDeleted,jdbcType=BIT},
</if>
<if
test=
"detail != null"
>
detail = #{detail,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book_item
set book_id = #{bookId,jdbcType=BIGINT},
item_id = #{itemId,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
detail = #{detail,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.BookItem"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book_item
set book_id = #{bookId,jdbcType=BIGINT},
item_id = #{itemId,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.BookItemExample"
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 book_item
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.BookItemExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from book_item
<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=
"ResultMapWithBLOBs"
>
<!--
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, book_id, item_id, created, updated, is_deleted, detail
</otherwise>
</choose>
from book_item
<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>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/dao/BookMapper.xml
0 → 100644
View file @
d9266b2d
<?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=
"com.wwdz.ch.db.dao.BookMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.Book"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"publisher_id"
jdbcType=
"BIGINT"
property=
"publisherId"
/>
<result
column=
"created"
jdbcType=
"TIMESTAMP"
property=
"created"
/>
<result
column=
"updated"
jdbcType=
"TIMESTAMP"
property=
"updated"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.wwdz.ch.db.domain.BookWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"detail"
jdbcType=
"LONGVARCHAR"
property=
"detail"
/>
<result
column=
"images"
jdbcType=
"LONGVARCHAR"
property=
"images"
/>
</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, `name`, publisher_id, created, updated, is_deleted
</sql>
<sql
id=
"Blob_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
detail, images
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.BookExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from book
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.BookExample"
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 book
<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=
"ResultMapWithBLOBs"
>
<!--
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, `name`, publisher_id, created, updated, is_deleted, detail, images
</otherwise>
</choose>
from book
<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.Long"
resultMap=
"ResultMapWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from book
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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, `name`, publisher_id, created, updated, is_deleted, detail, images
</otherwise>
</choose>
from book
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from book
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.BookExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from book
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.BookWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into book (`name`, publisher_id, created,
updated, is_deleted, detail,
images)
values (#{name,jdbcType=VARCHAR}, #{publisherId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP},
#{updated,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{detail,jdbcType=LONGVARCHAR},
#{images,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.BookWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into book
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"publisherId != null"
>
publisher_id,
</if>
<if
test=
"created != null"
>
created,
</if>
<if
test=
"updated != null"
>
updated,
</if>
<if
test=
"isDeleted != null"
>
is_deleted,
</if>
<if
test=
"detail != null"
>
detail,
</if>
<if
test=
"images != null"
>
images,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"publisherId != null"
>
#{publisherId,jdbcType=BIGINT},
</if>
<if
test=
"created != null"
>
#{created,jdbcType=TIMESTAMP},
</if>
<if
test=
"updated != null"
>
#{updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
#{isDeleted,jdbcType=BIT},
</if>
<if
test=
"detail != null"
>
#{detail,jdbcType=LONGVARCHAR},
</if>
<if
test=
"images != null"
>
#{images,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.BookExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from book
<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 book
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.publisherId != null"
>
publisher_id = #{record.publisherId,jdbcType=BIGINT},
</if>
<if
test=
"record.created != null"
>
created = #{record.created,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updated != null"
>
updated = #{record.updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isDeleted != null"
>
is_deleted = #{record.isDeleted,jdbcType=BIT},
</if>
<if
test=
"record.detail != null"
>
detail = #{record.detail,jdbcType=LONGVARCHAR},
</if>
<if
test=
"record.images != null"
>
images = #{record.images,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
publisher_id = #{record.publisherId,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
detail = #{record.detail,jdbcType=LONGVARCHAR},
images = #{record.images,jdbcType=LONGVARCHAR}
<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 book
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
publisher_id = #{record.publisherId,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.BookWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book
<set>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"publisherId != null"
>
publisher_id = #{publisherId,jdbcType=BIGINT},
</if>
<if
test=
"created != null"
>
created = #{created,jdbcType=TIMESTAMP},
</if>
<if
test=
"updated != null"
>
updated = #{updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
is_deleted = #{isDeleted,jdbcType=BIT},
</if>
<if
test=
"detail != null"
>
detail = #{detail,jdbcType=LONGVARCHAR},
</if>
<if
test=
"images != null"
>
images = #{images,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.BookWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book
set `name` = #{name,jdbcType=VARCHAR},
publisher_id = #{publisherId,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
detail = #{detail,jdbcType=LONGVARCHAR},
images = #{images,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.Book"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update book
set `name` = #{name,jdbcType=VARCHAR},
publisher_id = #{publisherId,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.BookExample"
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 book
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.BookExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from book
<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=
"ResultMapWithBLOBs"
>
<!--
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, `name`, publisher_id, created, updated, is_deleted, detail, images
</otherwise>
</choose>
from book
<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>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/dao/ChainNodeMapper.xml
0 → 100644
View file @
d9266b2d
<?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=
"com.wwdz.ch.db.dao.ChainNodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"parent_id"
jdbcType=
"BIGINT"
property=
"parentId"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"is_leaf"
jdbcType=
"TINYINT"
property=
"isLeaf"
/>
<result
column=
"is_root"
jdbcType=
"TINYINT"
property=
"isRoot"
/>
<result
column=
"owner_id"
jdbcType=
"BIGINT"
property=
"ownerId"
/>
<result
column=
"created"
jdbcType=
"TIMESTAMP"
property=
"created"
/>
<result
column=
"updated"
jdbcType=
"TIMESTAMP"
property=
"updated"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result
column=
"extra"
jdbcType=
"LONGVARCHAR"
property=
"extra"
/>
</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, parent_id, item_id, is_leaf, is_root, owner_id, created, updated, is_deleted
</sql>
<sql
id=
"Blob_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
extra
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.ChainNodeExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from chain_node
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.ChainNodeExample"
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 chain_node
<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=
"ResultMapWithBLOBs"
>
<!--
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, parent_id, item_id, is_leaf, is_root, owner_id, created, updated, is_deleted,
extra
</otherwise>
</choose>
from chain_node
<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.Long"
resultMap=
"ResultMapWithBLOBs"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from chain_node
where id = #{id,jdbcType=BIGINT}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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, parent_id, item_id, is_leaf, is_root, owner_id, created, updated, is_deleted,
extra
</otherwise>
</choose>
from chain_node
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from chain_node
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.ChainNodeExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from chain_node
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into chain_node (parent_id, item_id, is_leaf,
is_root, owner_id, created,
updated, is_deleted, extra
)
values (#{parentId,jdbcType=BIGINT}, #{itemId,jdbcType=BIGINT}, #{isLeaf,jdbcType=TINYINT},
#{isRoot,jdbcType=TINYINT}, #{ownerId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP},
#{updated,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{extra,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into chain_node
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"parentId != null"
>
parent_id,
</if>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"isLeaf != null"
>
is_leaf,
</if>
<if
test=
"isRoot != null"
>
is_root,
</if>
<if
test=
"ownerId != null"
>
owner_id,
</if>
<if
test=
"created != null"
>
created,
</if>
<if
test=
"updated != null"
>
updated,
</if>
<if
test=
"isDeleted != null"
>
is_deleted,
</if>
<if
test=
"extra != null"
>
extra,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"parentId != null"
>
#{parentId,jdbcType=BIGINT},
</if>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"isLeaf != null"
>
#{isLeaf,jdbcType=TINYINT},
</if>
<if
test=
"isRoot != null"
>
#{isRoot,jdbcType=TINYINT},
</if>
<if
test=
"ownerId != null"
>
#{ownerId,jdbcType=BIGINT},
</if>
<if
test=
"created != null"
>
#{created,jdbcType=TIMESTAMP},
</if>
<if
test=
"updated != null"
>
#{updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
#{isDeleted,jdbcType=BIT},
</if>
<if
test=
"extra != null"
>
#{extra,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.ChainNodeExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from chain_node
<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 chain_node
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.parentId != null"
>
parent_id = #{record.parentId,jdbcType=BIGINT},
</if>
<if
test=
"record.itemId != null"
>
item_id = #{record.itemId,jdbcType=BIGINT},
</if>
<if
test=
"record.isLeaf != null"
>
is_leaf = #{record.isLeaf,jdbcType=TINYINT},
</if>
<if
test=
"record.isRoot != null"
>
is_root = #{record.isRoot,jdbcType=TINYINT},
</if>
<if
test=
"record.ownerId != null"
>
owner_id = #{record.ownerId,jdbcType=BIGINT},
</if>
<if
test=
"record.created != null"
>
created = #{record.created,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updated != null"
>
updated = #{record.updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.isDeleted != null"
>
is_deleted = #{record.isDeleted,jdbcType=BIT},
</if>
<if
test=
"record.extra != null"
>
extra = #{record.extra,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update chain_node
set id = #{record.id,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
item_id = #{record.itemId,jdbcType=BIGINT},
is_leaf = #{record.isLeaf,jdbcType=TINYINT},
is_root = #{record.isRoot,jdbcType=TINYINT},
owner_id = #{record.ownerId,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
extra = #{record.extra,jdbcType=LONGVARCHAR}
<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 chain_node
set id = #{record.id,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
item_id = #{record.itemId,jdbcType=BIGINT},
is_leaf = #{record.isLeaf,jdbcType=TINYINT},
is_root = #{record.isRoot,jdbcType=TINYINT},
owner_id = #{record.ownerId,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update chain_node
<set>
<if
test=
"parentId != null"
>
parent_id = #{parentId,jdbcType=BIGINT},
</if>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"isLeaf != null"
>
is_leaf = #{isLeaf,jdbcType=TINYINT},
</if>
<if
test=
"isRoot != null"
>
is_root = #{isRoot,jdbcType=TINYINT},
</if>
<if
test=
"ownerId != null"
>
owner_id = #{ownerId,jdbcType=BIGINT},
</if>
<if
test=
"created != null"
>
created = #{created,jdbcType=TIMESTAMP},
</if>
<if
test=
"updated != null"
>
updated = #{updated,jdbcType=TIMESTAMP},
</if>
<if
test=
"isDeleted != null"
>
is_deleted = #{isDeleted,jdbcType=BIT},
</if>
<if
test=
"extra != null"
>
extra = #{extra,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update chain_node
set parent_id = #{parentId,jdbcType=BIGINT},
item_id = #{itemId,jdbcType=BIGINT},
is_leaf = #{isLeaf,jdbcType=TINYINT},
is_root = #{isRoot,jdbcType=TINYINT},
owner_id = #{ownerId,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
extra = #{extra,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.ChainNode"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update chain_node
set parent_id = #{parentId,jdbcType=BIGINT},
item_id = #{itemId,jdbcType=BIGINT},
is_leaf = #{isLeaf,jdbcType=TINYINT},
is_root = #{isRoot,jdbcType=TINYINT},
owner_id = #{ownerId,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.ChainNodeExample"
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 chain_node
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.ChainNodeExample"
resultMap=
"ResultMapWithBLOBs"
>
<!--
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"
/>
,
<include
refid=
"Blob_Column_List"
/>
from chain_node
<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=
"ResultMapWithBLOBs"
>
<!--
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, parent_id, item_id, is_leaf, is_root, owner_id, created, updated, is_deleted,
extra
</otherwise>
</choose>
from chain_node
<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>
</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