Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuchengjiu
engine-class-work
Commits
c7438bfe
Commit
c7438bfe
authored
Jul 20, 2023
by
Ryan Loong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update mybatis插件
parent
8bf1f55e
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
8588 additions
and
1303 deletions
+8588
-1303
generatorConfig.xml
server-db/mybatis-generator/generatorConfig.xml
+37
-1
ClassInfoMapper.java
...va/cn/exploring/engine/server/db/dao/ClassInfoMapper.java
+67
-3
CourseInitTestMapper.java
.../exploring/engine/server/db/dao/CourseInitTestMapper.java
+67
-3
LessonInfoMapper.java
...a/cn/exploring/engine/server/db/dao/LessonInfoMapper.java
+67
-3
StudentInfoMapper.java
.../cn/exploring/engine/server/db/dao/StudentInfoMapper.java
+67
-3
StudentPointInfoMapper.java
...xploring/engine/server/db/dao/StudentPointInfoMapper.java
+67
-3
UserLessonInfoMapper.java
.../exploring/engine/server/db/dao/UserLessonInfoMapper.java
+67
-3
WxUserMapper.java
.../java/cn/exploring/engine/server/db/dao/WxUserMapper.java
+67
-3
ClassInfo.java
.../java/cn/exploring/engine/server/db/domain/ClassInfo.java
+111
-0
CourseInitTest.java
.../cn/exploring/engine/server/db/domain/CourseInitTest.java
+189
-0
LessonInfo.java
...java/cn/exploring/engine/server/db/domain/LessonInfo.java
+345
-0
StudentInfo.java
...ava/cn/exploring/engine/server/db/domain/StudentInfo.java
+163
-0
StudentPointInfo.java
...n/exploring/engine/server/db/domain/StudentPointInfo.java
+150
-0
UserLessonInfo.java
.../cn/exploring/engine/server/db/domain/UserLessonInfo.java
+150
-0
WxUser.java
...ain/java/cn/exploring/engine/server/db/domain/WxUser.java
+579
-0
ClassInfoMapper.xml
...ces/cn/exploring/engine/server/db/dao/ClassInfoMapper.xml
+474
-63
CourseInitTestMapper.xml
...n/exploring/engine/server/db/dao/CourseInitTestMapper.xml
+738
-135
LessonInfoMapper.xml
...es/cn/exploring/engine/server/db/dao/LessonInfoMapper.xml
+1264
-279
StudentInfoMapper.xml
...s/cn/exploring/engine/server/db/dao/StudentInfoMapper.xml
+651
-111
StudentPointInfoMapper.xml
...exploring/engine/server/db/dao/StudentPointInfoMapper.xml
+605
-99
UserLessonInfoMapper.xml
...n/exploring/engine/server/db/dao/UserLessonInfoMapper.xml
+605
-99
WxUserMapper.xml
...ources/cn/exploring/engine/server/db/dao/WxUserMapper.xml
+2058
-495
No files found.
server-db/mybatis-generator/generatorConfig.xml
View file @
c7438bfe
...
...
@@ -25,7 +25,6 @@
<plugin
type=
"com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"
/>
<!-- 数据Model属性对应Column获取插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"
/>
<!-- 逻辑删除插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"
>
<!-- 这里配置的是全局逻辑删除列和逻辑删除值,当然在table中配置的值会覆盖该全局配置 -->
<!-- 逻辑删除列类型只能为数字、字符串或者布尔类型 -->
...
...
@@ -36,6 +35,43 @@
<property
name=
"logicalUnDeleteValue"
value=
"0"
/>
</plugin>
<!-- 批量插入插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"
>
<!--
开启后可以实现官方插件根据属性是否为空决定是否插入该字段功能
!需开启allowMultiQueries=true多条sql提交操作,所以不建议使用!插件默认不开启
-->
<property
name=
"allowMultiQueries"
value=
"false"
/>
</plugin>
<!-- 存在即更新插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.UpsertPlugin"
>
<!--
支持upsertByExample,upsertByExampleSelective操作
!需开启allowMultiQueries=true多条sql提交操作,所以不建议使用!插件默认不开启
-->
<property
name=
"allowMultiQueries"
value=
"true"
/>
<!--
开启批量功能,支持batchUpsert,batchUpsertWithBLOBs,batchUpserSelective
!这几个方法中无法支持IncrementsPlugin的方法!插件默认不开启
-->
<property
name=
"allowBatchUpsert"
value=
"true"
/>
</plugin>
<!-- Selective选择插入更新增强插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.SelectiveEnhancedPlugin"
/>
<!-- 数据Model链式构建插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.ModelBuilderPlugin"
/>
<!-- 状态枚举生成插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.EnumTypeStatusPlugin"
>
<!-- 是否开启自动扫描根据约定注释格式生成枚举,默认true -->
<property
name=
"autoScan"
value=
"true"
/>
<!-- autoScan为false,这里可以定义全局需要检查生成枚举类的列名 -->
<property
name=
"enumColumns"
value=
"type, status"
/>
</plugin>
<commentGenerator>
<property
name=
"suppressDate"
value=
"true"
/>
<!--<property name="suppressAllComments" value="true"/>-->
...
...
server-db/src/main/java/cn/exploring/engine/server/db/dao/ClassInfoMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface ClassInfoMapper {
*
* @mbg.generated
*/
int
insertSelective
(
ClassInfo
record
);
int
insertSelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface ClassInfoMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"example"
)
ClassInfoExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"example"
)
ClassInfoExample
example
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface ClassInfoMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
ClassInfo
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface ClassInfoMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
ClassInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
ClassInfo
>
list
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
upsert
(
ClassInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"example"
)
ClassInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"example"
)
ClassInfoExample
example
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
ClassInfo
record
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
ClassInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
ClassInfo
>
list
,
@Param
(
"selective"
)
ClassInfo
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/CourseInitTestMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface CourseInitTestMapper {
*
* @mbg.generated
*/
int
insertSelective
(
CourseInitTest
record
);
int
insertSelective
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface CourseInitTestMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"example"
)
CourseInitTestExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"example"
)
CourseInitTestExample
example
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface CourseInitTestMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
CourseInitTest
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface CourseInitTestMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
CourseInitTest
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
CourseInitTest
>
list
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
upsert
(
CourseInitTest
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"example"
)
CourseInitTestExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"example"
)
CourseInitTestExample
example
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
CourseInitTest
record
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
CourseInitTest
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
CourseInitTest
>
list
,
@Param
(
"selective"
)
CourseInitTest
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/LessonInfoMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface LessonInfoMapper {
*
* @mbg.generated
*/
int
insertSelective
(
LessonInfo
record
);
int
insertSelective
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface LessonInfoMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"example"
)
LessonInfoExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"example"
)
LessonInfoExample
example
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface LessonInfoMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
LessonInfo
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface LessonInfoMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
LessonInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
LessonInfo
>
list
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
upsert
(
LessonInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"example"
)
LessonInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"example"
)
LessonInfoExample
example
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
LessonInfo
record
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
LessonInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
LessonInfo
>
list
,
@Param
(
"selective"
)
LessonInfo
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/StudentInfoMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface StudentInfoMapper {
*
* @mbg.generated
*/
int
insertSelective
(
StudentInfo
record
);
int
insertSelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface StudentInfoMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"example"
)
StudentInfoExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"example"
)
StudentInfoExample
example
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface StudentInfoMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
StudentInfo
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface StudentInfoMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
StudentInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
StudentInfo
>
list
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
upsert
(
StudentInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"example"
)
StudentInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"example"
)
StudentInfoExample
example
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
StudentInfo
record
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
StudentInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
StudentInfo
>
list
,
@Param
(
"selective"
)
StudentInfo
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/StudentPointInfoMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface StudentPointInfoMapper {
*
* @mbg.generated
*/
int
insertSelective
(
StudentPointInfo
record
);
int
insertSelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface StudentPointInfoMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"example"
)
StudentPointInfoExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"example"
)
StudentPointInfoExample
example
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface StudentPointInfoMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
StudentPointInfo
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface StudentPointInfoMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
StudentPointInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
StudentPointInfo
>
list
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
upsert
(
StudentPointInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"example"
)
StudentPointInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"example"
)
StudentPointInfoExample
example
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
StudentPointInfo
record
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
StudentPointInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
StudentPointInfo
>
list
,
@Param
(
"selective"
)
StudentPointInfo
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/UserLessonInfoMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface UserLessonInfoMapper {
*
* @mbg.generated
*/
int
insertSelective
(
UserLessonInfo
record
);
int
insertSelective
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface UserLessonInfoMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"example"
)
UserLessonInfoExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"example"
)
UserLessonInfoExample
example
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface UserLessonInfoMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
UserLessonInfo
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface UserLessonInfoMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
UserLessonInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
UserLessonInfo
>
list
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
upsert
(
UserLessonInfo
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"example"
)
UserLessonInfoExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"example"
)
UserLessonInfoExample
example
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
UserLessonInfo
record
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
UserLessonInfo
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
UserLessonInfo
>
list
,
@Param
(
"selective"
)
UserLessonInfo
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/dao/WxUserMapper.java
View file @
c7438bfe
...
...
@@ -44,7 +44,7 @@ public interface WxUserMapper {
*
* @mbg.generated
*/
int
insertSelective
(
WxUser
record
);
int
insertSelective
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -108,7 +108,7 @@ public interface WxUserMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"example"
)
WxUserExample
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"example"
)
WxUserExample
example
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -124,7 +124,7 @@ public interface WxUserMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
WxUser
record
);
int
updateByPrimaryKeySelective
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -149,4 +149,68 @@ public interface WxUserMapper {
* @mbg.generated
*/
int
logicalDeleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
batchInsert
(
@Param
(
"list"
)
List
<
WxUser
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
batchInsertSelective
(
@Param
(
"list"
)
List
<
WxUser
>
list
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
upsert
(
WxUser
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
upsertByExample
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"example"
)
WxUserExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
upsertByExampleSelective
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"example"
)
WxUserExample
example
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
upsertSelective
(
@Param
(
"record"
)
WxUser
record
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
batchUpsert
(
@Param
(
"list"
)
List
<
WxUser
>
list
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
int
batchUpsertSelective
(
@Param
(
"list"
)
List
<
WxUser
>
list
,
@Param
(
"selective"
)
WxUser
.
Column
...
selective
);
}
\ No newline at end of file
server-db/src/main/java/cn/exploring/engine/server/db/domain/ClassInfo.java
View file @
c7438bfe
...
...
@@ -262,6 +262,117 @@ public class ClassInfo {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
static
ClassInfo
.
Builder
builder
()
{
return
new
ClassInfo
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table class_info
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table class_info
*
* @mbg.generated
*/
private
ClassInfo
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
ClassInfo
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.id
*
* @param id the value for class_info.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.class_name
*
* @param className the value for class_info.class_name
*
* @mbg.generated
*/
public
Builder
className
(
String
className
)
{
obj
.
setClassName
(
className
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.add_time
*
* @param addTime the value for class_info.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.update_time
*
* @param updateTime the value for class_info.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column class_info.deleted
*
* @param deleted the value for class_info.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
public
ClassInfo
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table class_info
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/CourseInitTest.java
View file @
c7438bfe
...
...
@@ -478,6 +478,195 @@ public class CourseInitTest {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
public
static
CourseInitTest
.
Builder
builder
()
{
return
new
CourseInitTest
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table course_init_test
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table course_init_test
*
* @mbg.generated
*/
private
CourseInitTest
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
CourseInitTest
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.id
*
* @param id the value for course_init_test.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.title
*
* @param title the value for course_init_test.title
*
* @mbg.generated
*/
public
Builder
title
(
String
title
)
{
obj
.
setTitle
(
title
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.title_rank
*
* @param titleRank the value for course_init_test.title_rank
*
* @mbg.generated
*/
public
Builder
titleRank
(
Integer
titleRank
)
{
obj
.
setTitleRank
(
titleRank
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.topic
*
* @param topic the value for course_init_test.topic
*
* @mbg.generated
*/
public
Builder
topic
(
String
topic
)
{
obj
.
setTopic
(
topic
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.option_A
*
* @param optionA the value for course_init_test.option_A
*
* @mbg.generated
*/
public
Builder
optionA
(
String
optionA
)
{
obj
.
setOptionA
(
optionA
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.option_A_point
*
* @param optionAPoint the value for course_init_test.option_A_point
*
* @mbg.generated
*/
public
Builder
optionAPoint
(
Integer
optionAPoint
)
{
obj
.
setOptionAPoint
(
optionAPoint
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.option_B
*
* @param optionB the value for course_init_test.option_B
*
* @mbg.generated
*/
public
Builder
optionB
(
String
optionB
)
{
obj
.
setOptionB
(
optionB
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.option_B_point
*
* @param optionBPoint the value for course_init_test.option_B_point
*
* @mbg.generated
*/
public
Builder
optionBPoint
(
Integer
optionBPoint
)
{
obj
.
setOptionBPoint
(
optionBPoint
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.add_time
*
* @param addTime the value for course_init_test.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.update_time
*
* @param updateTime the value for course_init_test.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column course_init_test.deleted
*
* @param deleted the value for course_init_test.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table course_init_test
*
* @mbg.generated
*/
public
CourseInitTest
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table course_init_test
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/LessonInfo.java
View file @
c7438bfe
...
...
@@ -910,6 +910,351 @@ public class LessonInfo {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
public
static
LessonInfo
.
Builder
builder
()
{
return
new
LessonInfo
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table lesson_info
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table lesson_info
*
* @mbg.generated
*/
private
LessonInfo
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
LessonInfo
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.id
*
* @param id the value for lesson_info.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.chapters
*
* @param chapters the value for lesson_info.chapters
*
* @mbg.generated
*/
public
Builder
chapters
(
Integer
chapters
)
{
obj
.
setChapters
(
chapters
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.chapters_name
*
* @param chaptersName the value for lesson_info.chapters_name
*
* @mbg.generated
*/
public
Builder
chaptersName
(
String
chaptersName
)
{
obj
.
setChaptersName
(
chaptersName
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.session
*
* @param session the value for lesson_info.session
*
* @mbg.generated
*/
public
Builder
session
(
Integer
session
)
{
obj
.
setSession
(
session
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.session_name
*
* @param sessionName the value for lesson_info.session_name
*
* @mbg.generated
*/
public
Builder
sessionName
(
String
sessionName
)
{
obj
.
setSessionName
(
sessionName
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.lesson_content
*
* @param lessonContent the value for lesson_info.lesson_content
*
* @mbg.generated
*/
public
Builder
lessonContent
(
String
lessonContent
)
{
obj
.
setLessonContent
(
lessonContent
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.lesson_order
*
* @param lessonOrder the value for lesson_info.lesson_order
*
* @mbg.generated
*/
public
Builder
lessonOrder
(
Integer
lessonOrder
)
{
obj
.
setLessonOrder
(
lessonOrder
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.cover
*
* @param cover the value for lesson_info.cover
*
* @mbg.generated
*/
public
Builder
cover
(
String
cover
)
{
obj
.
setCover
(
cover
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.vid_url
*
* @param vidUrl the value for lesson_info.vid_url
*
* @mbg.generated
*/
public
Builder
vidUrl
(
String
vidUrl
)
{
obj
.
setVidUrl
(
vidUrl
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.video
*
* @param video the value for lesson_info.video
*
* @mbg.generated
*/
public
Builder
video
(
String
video
)
{
obj
.
setVideo
(
video
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.topic
*
* @param topic the value for lesson_info.topic
*
* @mbg.generated
*/
public
Builder
topic
(
String
topic
)
{
obj
.
setTopic
(
topic
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.option_A
*
* @param optionA the value for lesson_info.option_A
*
* @mbg.generated
*/
public
Builder
optionA
(
String
optionA
)
{
obj
.
setOptionA
(
optionA
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.option_A_point
*
* @param optionAPoint the value for lesson_info.option_A_point
*
* @mbg.generated
*/
public
Builder
optionAPoint
(
Float
optionAPoint
)
{
obj
.
setOptionAPoint
(
optionAPoint
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.explain_A
*
* @param explainA the value for lesson_info.explain_A
*
* @mbg.generated
*/
public
Builder
explainA
(
String
explainA
)
{
obj
.
setExplainA
(
explainA
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.option_B
*
* @param optionB the value for lesson_info.option_B
*
* @mbg.generated
*/
public
Builder
optionB
(
String
optionB
)
{
obj
.
setOptionB
(
optionB
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.option_B_point
*
* @param optionBPoint the value for lesson_info.option_B_point
*
* @mbg.generated
*/
public
Builder
optionBPoint
(
Float
optionBPoint
)
{
obj
.
setOptionBPoint
(
optionBPoint
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.explain_B
*
* @param explainB the value for lesson_info.explain_B
*
* @mbg.generated
*/
public
Builder
explainB
(
String
explainB
)
{
obj
.
setExplainB
(
explainB
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.option_C
*
* @param optionC the value for lesson_info.option_C
*
* @mbg.generated
*/
public
Builder
optionC
(
String
optionC
)
{
obj
.
setOptionC
(
optionC
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.option_C_point
*
* @param optionCPoint the value for lesson_info.option_C_point
*
* @mbg.generated
*/
public
Builder
optionCPoint
(
Float
optionCPoint
)
{
obj
.
setOptionCPoint
(
optionCPoint
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.explain_C
*
* @param explainC the value for lesson_info.explain_C
*
* @mbg.generated
*/
public
Builder
explainC
(
String
explainC
)
{
obj
.
setExplainC
(
explainC
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.add_time
*
* @param addTime the value for lesson_info.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.update_time
*
* @param updateTime the value for lesson_info.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column lesson_info.deleted
*
* @param deleted the value for lesson_info.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table lesson_info
*
* @mbg.generated
*/
public
LessonInfo
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table lesson_info
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentInfo.java
View file @
c7438bfe
...
...
@@ -406,6 +406,169 @@ public class StudentInfo {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
static
StudentInfo
.
Builder
builder
()
{
return
new
StudentInfo
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_info
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_info
*
* @mbg.generated
*/
private
StudentInfo
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
StudentInfo
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.id
*
* @param id the value for student_info.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.student_unique_id
*
* @param studentUniqueId the value for student_info.student_unique_id
*
* @mbg.generated
*/
public
Builder
studentUniqueId
(
String
studentUniqueId
)
{
obj
.
setStudentUniqueId
(
studentUniqueId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.class_id
*
* @param classId the value for student_info.class_id
*
* @mbg.generated
*/
public
Builder
classId
(
Integer
classId
)
{
obj
.
setClassId
(
classId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.name
*
* @param name the value for student_info.name
*
* @mbg.generated
*/
public
Builder
name
(
String
name
)
{
obj
.
setName
(
name
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.head
*
* @param head the value for student_info.head
*
* @mbg.generated
*/
public
Builder
head
(
String
head
)
{
obj
.
setHead
(
head
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.call_times
*
* @param callTimes the value for student_info.call_times
*
* @mbg.generated
*/
public
Builder
callTimes
(
Integer
callTimes
)
{
obj
.
setCallTimes
(
callTimes
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.add_time
*
* @param addTime the value for student_info.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.update_time
*
* @param updateTime the value for student_info.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_info.deleted
*
* @param deleted the value for student_info.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
public
StudentInfo
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table student_info
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/StudentPointInfo.java
View file @
c7438bfe
...
...
@@ -370,6 +370,156 @@ public class StudentPointInfo {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
static
StudentPointInfo
.
Builder
builder
()
{
return
new
StudentPointInfo
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table student_point_info
*
* @mbg.generated
*/
private
StudentPointInfo
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
StudentPointInfo
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.id
*
* @param id the value for student_point_info.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.student_id
*
* @param studentId the value for student_point_info.student_id
*
* @mbg.generated
*/
public
Builder
studentId
(
Integer
studentId
)
{
obj
.
setStudentId
(
studentId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.class_id
*
* @param classId the value for student_point_info.class_id
*
* @mbg.generated
*/
public
Builder
classId
(
Integer
classId
)
{
obj
.
setClassId
(
classId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.point
*
* @param point the value for student_point_info.point
*
* @mbg.generated
*/
public
Builder
point
(
Integer
point
)
{
obj
.
setPoint
(
point
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.record_time
*
* @param recordTime the value for student_point_info.record_time
*
* @mbg.generated
*/
public
Builder
recordTime
(
LocalDateTime
recordTime
)
{
obj
.
setRecordTime
(
recordTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.add_time
*
* @param addTime the value for student_point_info.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.update_time
*
* @param updateTime the value for student_point_info.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column student_point_info.deleted
*
* @param deleted the value for student_point_info.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
public
StudentPointInfo
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table student_point_info
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/UserLessonInfo.java
View file @
c7438bfe
...
...
@@ -370,6 +370,156 @@ public class UserLessonInfo {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
public
static
UserLessonInfo
.
Builder
builder
()
{
return
new
UserLessonInfo
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
private
UserLessonInfo
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
UserLessonInfo
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.id
*
* @param id the value for user_lesson_info.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.chapters_id
*
* @param chaptersId the value for user_lesson_info.chapters_id
*
* @mbg.generated
*/
public
Builder
chaptersId
(
Integer
chaptersId
)
{
obj
.
setChaptersId
(
chaptersId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.session_id
*
* @param sessionId the value for user_lesson_info.session_id
*
* @mbg.generated
*/
public
Builder
sessionId
(
Integer
sessionId
)
{
obj
.
setSessionId
(
sessionId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.user_id
*
* @param userId the value for user_lesson_info.user_id
*
* @mbg.generated
*/
public
Builder
userId
(
Integer
userId
)
{
obj
.
setUserId
(
userId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.select_id
*
* @param selectId the value for user_lesson_info.select_id
*
* @mbg.generated
*/
public
Builder
selectId
(
Integer
selectId
)
{
obj
.
setSelectId
(
selectId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.add_time
*
* @param addTime the value for user_lesson_info.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.update_time
*
* @param updateTime the value for user_lesson_info.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user_lesson_info.deleted
*
* @param deleted the value for user_lesson_info.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_lesson_info
*
* @mbg.generated
*/
public
UserLessonInfo
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table user_lesson_info
...
...
server-db/src/main/java/cn/exploring/engine/server/db/domain/WxUser.java
View file @
c7438bfe
...
...
@@ -1559,6 +1559,585 @@ public class WxUser {
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
public
static
WxUser
.
Builder
builder
()
{
return
new
WxUser
.
Builder
();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table wx_user
*
* @mbg.generated
*/
public
static
class
Builder
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table wx_user
*
* @mbg.generated
*/
private
WxUser
obj
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
public
Builder
()
{
this
.
obj
=
new
WxUser
();
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.id
*
* @param id the value for wx_user.id
*
* @mbg.generated
*/
public
Builder
id
(
Integer
id
)
{
obj
.
setId
(
id
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.username
*
* @param username the value for wx_user.username
*
* @mbg.generated
*/
public
Builder
username
(
String
username
)
{
obj
.
setUsername
(
username
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.password
*
* @param password the value for wx_user.password
*
* @mbg.generated
*/
public
Builder
password
(
String
password
)
{
obj
.
setPassword
(
password
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.gender
*
* @param gender the value for wx_user.gender
*
* @mbg.generated
*/
public
Builder
gender
(
Byte
gender
)
{
obj
.
setGender
(
gender
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.birthday
*
* @param birthday the value for wx_user.birthday
*
* @mbg.generated
*/
public
Builder
birthday
(
LocalDate
birthday
)
{
obj
.
setBirthday
(
birthday
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.last_login_time
*
* @param lastLoginTime the value for wx_user.last_login_time
*
* @mbg.generated
*/
public
Builder
lastLoginTime
(
LocalDateTime
lastLoginTime
)
{
obj
.
setLastLoginTime
(
lastLoginTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.last_login_ip
*
* @param lastLoginIp the value for wx_user.last_login_ip
*
* @mbg.generated
*/
public
Builder
lastLoginIp
(
String
lastLoginIp
)
{
obj
.
setLastLoginIp
(
lastLoginIp
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.user_level
*
* @param userLevel the value for wx_user.user_level
*
* @mbg.generated
*/
public
Builder
userLevel
(
Byte
userLevel
)
{
obj
.
setUserLevel
(
userLevel
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.nickname
*
* @param nickname the value for wx_user.nickname
*
* @mbg.generated
*/
public
Builder
nickname
(
String
nickname
)
{
obj
.
setNickname
(
nickname
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.mobile
*
* @param mobile the value for wx_user.mobile
*
* @mbg.generated
*/
public
Builder
mobile
(
String
mobile
)
{
obj
.
setMobile
(
mobile
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.avatar
*
* @param avatar the value for wx_user.avatar
*
* @mbg.generated
*/
public
Builder
avatar
(
String
avatar
)
{
obj
.
setAvatar
(
avatar
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.weixin_openid
*
* @param weixinOpenid the value for wx_user.weixin_openid
*
* @mbg.generated
*/
public
Builder
weixinOpenid
(
String
weixinOpenid
)
{
obj
.
setWeixinOpenid
(
weixinOpenid
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.status
*
* @param status the value for wx_user.status
*
* @mbg.generated
*/
public
Builder
status
(
Byte
status
)
{
obj
.
setStatus
(
status
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.scores
*
* @param scores the value for wx_user.scores
*
* @mbg.generated
*/
public
Builder
scores
(
Integer
scores
)
{
obj
.
setScores
(
scores
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.is_send_scores
*
* @param isSendScores the value for wx_user.is_send_scores
*
* @mbg.generated
*/
public
Builder
isSendScores
(
Integer
isSendScores
)
{
obj
.
setIsSendScores
(
isSendScores
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.is_gy
*
* @param isGy the value for wx_user.is_gy
*
* @mbg.generated
*/
public
Builder
isGy
(
Integer
isGy
)
{
obj
.
setIsGy
(
isGy
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.gy_id
*
* @param gyId the value for wx_user.gy_id
*
* @mbg.generated
*/
public
Builder
gyId
(
String
gyId
)
{
obj
.
setGyId
(
gyId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.gy_product_name
*
* @param gyProductName the value for wx_user.gy_product_name
*
* @mbg.generated
*/
public
Builder
gyProductName
(
String
gyProductName
)
{
obj
.
setGyProductName
(
gyProductName
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.school
*
* @param school the value for wx_user.school
*
* @mbg.generated
*/
public
Builder
school
(
String
school
)
{
obj
.
setSchool
(
school
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.card_id
*
* @param cardId the value for wx_user.card_id
*
* @mbg.generated
*/
public
Builder
cardId
(
String
cardId
)
{
obj
.
setCardId
(
cardId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.wx_id
*
* @param wxId the value for wx_user.wx_id
*
* @mbg.generated
*/
public
Builder
wxId
(
String
wxId
)
{
obj
.
setWxId
(
wxId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.card_type_id
*
* @param cardTypeId the value for wx_user.card_type_id
*
* @mbg.generated
*/
public
Builder
cardTypeId
(
Integer
cardTypeId
)
{
obj
.
setCardTypeId
(
cardTypeId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.card_type_name
*
* @param cardTypeName the value for wx_user.card_type_name
*
* @mbg.generated
*/
public
Builder
cardTypeName
(
String
cardTypeName
)
{
obj
.
setCardTypeName
(
cardTypeName
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.fans_num
*
* @param fansNum the value for wx_user.fans_num
*
* @mbg.generated
*/
public
Builder
fansNum
(
Integer
fansNum
)
{
obj
.
setFansNum
(
fansNum
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.likes_num
*
* @param likesNum the value for wx_user.likes_num
*
* @mbg.generated
*/
public
Builder
likesNum
(
Integer
likesNum
)
{
obj
.
setLikesNum
(
likesNum
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.journal_num
*
* @param journalNum the value for wx_user.journal_num
*
* @mbg.generated
*/
public
Builder
journalNum
(
Integer
journalNum
)
{
obj
.
setJournalNum
(
journalNum
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.join_exercise_num
*
* @param joinExerciseNum the value for wx_user.join_exercise_num
*
* @mbg.generated
*/
public
Builder
joinExerciseNum
(
Integer
joinExerciseNum
)
{
obj
.
setJoinExerciseNum
(
joinExerciseNum
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.join_org_num
*
* @param joinOrgNum the value for wx_user.join_org_num
*
* @mbg.generated
*/
public
Builder
joinOrgNum
(
Integer
joinOrgNum
)
{
obj
.
setJoinOrgNum
(
joinOrgNum
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.email
*
* @param email the value for wx_user.email
*
* @mbg.generated
*/
public
Builder
email
(
String
email
)
{
obj
.
setEmail
(
email
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.is_h5_register
*
* @param isH5Register the value for wx_user.is_h5_register
*
* @mbg.generated
*/
public
Builder
isH5Register
(
Boolean
isH5Register
)
{
obj
.
setIsH5Register
(
isH5Register
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.firm
*
* @param firm the value for wx_user.firm
*
* @mbg.generated
*/
public
Builder
firm
(
String
firm
)
{
obj
.
setFirm
(
firm
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.duty_types_id
*
* @param dutyTypesId the value for wx_user.duty_types_id
*
* @mbg.generated
*/
public
Builder
dutyTypesId
(
Integer
dutyTypesId
)
{
obj
.
setDutyTypesId
(
dutyTypesId
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.duty_types_name
*
* @param dutyTypesName the value for wx_user.duty_types_name
*
* @mbg.generated
*/
public
Builder
dutyTypesName
(
String
dutyTypesName
)
{
obj
.
setDutyTypesName
(
dutyTypesName
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.weight
*
* @param weight the value for wx_user.weight
*
* @mbg.generated
*/
public
Builder
weight
(
Integer
weight
)
{
obj
.
setWeight
(
weight
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.height
*
* @param height the value for wx_user.height
*
* @mbg.generated
*/
public
Builder
height
(
Integer
height
)
{
obj
.
setHeight
(
height
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.step_size
*
* @param stepSize the value for wx_user.step_size
*
* @mbg.generated
*/
public
Builder
stepSize
(
Integer
stepSize
)
{
obj
.
setStepSize
(
stepSize
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.is_close_wx_sport
*
* @param isCloseWxSport the value for wx_user.is_close_wx_sport
*
* @mbg.generated
*/
public
Builder
isCloseWxSport
(
Boolean
isCloseWxSport
)
{
obj
.
setIsCloseWxSport
(
isCloseWxSport
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.is_audit_administrator
*
* @param isAuditAdministrator the value for wx_user.is_audit_administrator
*
* @mbg.generated
*/
public
Builder
isAuditAdministrator
(
Boolean
isAuditAdministrator
)
{
obj
.
setIsAuditAdministrator
(
isAuditAdministrator
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.add_time
*
* @param addTime the value for wx_user.add_time
*
* @mbg.generated
*/
public
Builder
addTime
(
LocalDateTime
addTime
)
{
obj
.
setAddTime
(
addTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.update_time
*
* @param updateTime the value for wx_user.update_time
*
* @mbg.generated
*/
public
Builder
updateTime
(
LocalDateTime
updateTime
)
{
obj
.
setUpdateTime
(
updateTime
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column wx_user.deleted
*
* @param deleted the value for wx_user.deleted
*
* @mbg.generated
*/
public
Builder
deleted
(
Boolean
deleted
)
{
obj
.
setDeleted
(
deleted
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table wx_user
*
* @mbg.generated
*/
public
WxUser
build
()
{
return
this
.
obj
;
}
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table wx_user
...
...
server-db/src/main/resources/cn/exploring/engine/server/db/dao/ClassInfoMapper.xml
View file @
c7438bfe
...
...
@@ -209,43 +209,63 @@
values (#{className,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.ClassInfo
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into class_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"className != null"
>
class_name,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"className != null"
>
#{className,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.className != null"
>
class_name,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.className != null"
>
#{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfoExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -263,23 +283,33 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -299,27 +329,37 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.ClassInfo
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
<set>
<if
test=
"className != null"
>
class_name = #{className,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.className != null"
>
class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfo"
>
<!--
...
...
@@ -392,4 +432,375 @@
update class_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into class_info
(class_name, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.className,jdbcType=VARCHAR}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.deleted,jdbcType=BIT})
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into class_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'class_name'.toString() == column.value"
>
#{item.className,jdbcType=VARCHAR}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into class_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.className != null"
>
class_name,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
#{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
class_name = #{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into class_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.className != null"
>
class_name,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.className != null"
>
#{record.className,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.ClassInfo"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into class_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
class_name,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{className,jdbcType=VARCHAR},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
class_name = #{className,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update class_info
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
class_name = #{record.className,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into class_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
class_name,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.className,jdbcType=VARCHAR},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from class_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into class_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'class_name'.toString() == column.value"
>
#{item.className,jdbcType=VARCHAR}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into class_info
(id, class_name, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.className,jdbcType=VARCHAR}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
on duplicate key update
id = values(id),
class_name = values(class_name),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/CourseInitTestMapper.xml
View file @
c7438bfe
...
...
@@ -220,79 +220,99 @@
#{optionBPoint,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.CourseInitTest
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into course_init_test
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"titleRank != null"
>
title_rank,
</if>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"topic != null"
>
topic,
</if>
<if
test=
"optionA != null"
>
option_A,
</if>
<if
test=
"optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"optionB != null"
>
option_B,
</if>
<if
test=
"optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"titleRank != null"
>
#{titleRank,jdbcType=INTEGER},
</if>
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
</if>
<if
test=
"topic != null"
>
#{topic,jdbcType=VARCHAR},
</if>
<if
test=
"optionA != null"
>
#{optionA,jdbcType=VARCHAR},
</if>
<if
test=
"optionAPoint != null"
>
#{optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"optionB != null"
>
#{optionB,jdbcType=VARCHAR},
</if>
<if
test=
"optionBPoint != null"
>
#{optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.titleRank != null"
>
title_rank,
</if>
<if
test=
"record.title != null"
>
title,
</if>
<if
test=
"record.topic != null"
>
topic,
</if>
<if
test=
"record.optionA != null"
>
option_A,
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"record.optionB != null"
>
option_B,
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.titleRank != null"
>
#{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
#{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
#{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
#{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
#{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
#{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
#{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.CourseInitTestExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -310,41 +330,51 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update course_init_test
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.titleRank != null"
>
title_rank = #{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.titleRank != null"
>
title_rank = #{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -370,45 +400,55 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.CourseInitTest
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update course_init_test
<set>
<if
test=
"titleRank != null"
>
title_rank = #{titleRank,jdbcType=INTEGER},
</if>
<if
test=
"title != null"
>
title = #{title,jdbcType=VARCHAR},
</if>
<if
test=
"topic != null"
>
topic = #{topic,jdbcType=VARCHAR},
</if>
<if
test=
"optionA != null"
>
option_A = #{optionA,jdbcType=VARCHAR},
</if>
<if
test=
"optionAPoint != null"
>
option_A_point = #{optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"optionB != null"
>
option_B = #{optionB,jdbcType=VARCHAR},
</if>
<if
test=
"optionBPoint != null"
>
option_B_point = #{optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.titleRank != null"
>
title_rank = #{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.CourseInitTest"
>
<!--
...
...
@@ -487,4 +527,567 @@
update course_init_test set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into course_init_test
(title_rank, title, topic, option_A, option_A_point, option_B, option_B_point, add_time,
update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.titleRank,jdbcType=INTEGER}, #{item.title,jdbcType=VARCHAR}, #{item.topic,jdbcType=VARCHAR},
#{item.optionA,jdbcType=VARCHAR}, #{item.optionAPoint,jdbcType=INTEGER}, #{item.optionB,jdbcType=VARCHAR},
#{item.optionBPoint,jdbcType=INTEGER}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.deleted,jdbcType=BIT})
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into course_init_test (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'title_rank'.toString() == column.value"
>
#{item.titleRank,jdbcType=INTEGER}
</if>
<if
test=
"'title'.toString() == column.value"
>
#{item.title,jdbcType=VARCHAR}
</if>
<if
test=
"'topic'.toString() == column.value"
>
#{item.topic,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A'.toString() == column.value"
>
#{item.optionA,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A_point'.toString() == column.value"
>
#{item.optionAPoint,jdbcType=INTEGER}
</if>
<if
test=
"'option_B'.toString() == column.value"
>
#{item.optionB,jdbcType=VARCHAR}
</if>
<if
test=
"'option_B_point'.toString() == column.value"
>
#{item.optionBPoint,jdbcType=INTEGER}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into course_init_test
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.titleRank != null"
>
title_rank,
</if>
<if
test=
"record.title != null"
>
title,
</if>
<if
test=
"record.topic != null"
>
topic,
</if>
<if
test=
"record.optionA != null"
>
option_A,
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"record.optionB != null"
>
option_B,
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.titleRank != null"
>
#{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
#{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
#{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
#{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
#{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
#{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
#{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.titleRank != null"
>
title_rank = #{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update course_init_test
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.titleRank != null"
>
title_rank = #{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into course_init_test
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.titleRank != null"
>
title_rank,
</if>
<if
test=
"record.title != null"
>
title,
</if>
<if
test=
"record.topic != null"
>
topic,
</if>
<if
test=
"record.optionA != null"
>
option_A,
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"record.optionB != null"
>
option_B,
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.titleRank != null"
>
#{record.titleRank,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
#{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
#{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
#{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
#{record.optionAPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.optionB != null"
>
#{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
#{record.optionBPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from course_init_test
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.CourseInitTest"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into course_init_test
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
title_rank,
title,
topic,
option_A,
option_A_point,
option_B,
option_B_point,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{titleRank,jdbcType=INTEGER},
#{title,jdbcType=VARCHAR},
#{topic,jdbcType=VARCHAR},
#{optionA,jdbcType=VARCHAR},
#{optionAPoint,jdbcType=INTEGER},
#{optionB,jdbcType=VARCHAR},
#{optionBPoint,jdbcType=INTEGER},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
title_rank = #{titleRank,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
topic = #{topic,jdbcType=VARCHAR},
option_A = #{optionA,jdbcType=VARCHAR},
option_A_point = #{optionAPoint,jdbcType=INTEGER},
option_B = #{optionB,jdbcType=VARCHAR},
option_B_point = #{optionBPoint,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update course_init_test
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
title_rank = #{record.titleRank,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
topic = #{record.topic,jdbcType=VARCHAR},
option_A = #{record.optionA,jdbcType=VARCHAR},
option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
option_B = #{record.optionB,jdbcType=VARCHAR},
option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into course_init_test
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
title_rank,
title,
topic,
option_A,
option_A_point,
option_B,
option_B_point,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.titleRank,jdbcType=INTEGER},
#{record.title,jdbcType=VARCHAR},
#{record.topic,jdbcType=VARCHAR},
#{record.optionA,jdbcType=VARCHAR},
#{record.optionAPoint,jdbcType=INTEGER},
#{record.optionB,jdbcType=VARCHAR},
#{record.optionBPoint,jdbcType=INTEGER},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from course_init_test
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into course_init_test (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'title_rank'.toString() == column.value"
>
#{item.titleRank,jdbcType=INTEGER}
</if>
<if
test=
"'title'.toString() == column.value"
>
#{item.title,jdbcType=VARCHAR}
</if>
<if
test=
"'topic'.toString() == column.value"
>
#{item.topic,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A'.toString() == column.value"
>
#{item.optionA,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A_point'.toString() == column.value"
>
#{item.optionAPoint,jdbcType=INTEGER}
</if>
<if
test=
"'option_B'.toString() == column.value"
>
#{item.optionB,jdbcType=VARCHAR}
</if>
<if
test=
"'option_B_point'.toString() == column.value"
>
#{item.optionBPoint,jdbcType=INTEGER}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into course_init_test
(id, title_rank, title, topic, option_A, option_A_point, option_B, option_B_point,
add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.titleRank,jdbcType=INTEGER}, #{item.title,jdbcType=VARCHAR},
#{item.topic,jdbcType=VARCHAR}, #{item.optionA,jdbcType=VARCHAR}, #{item.optionAPoint,jdbcType=INTEGER},
#{item.optionB,jdbcType=VARCHAR}, #{item.optionBPoint,jdbcType=INTEGER}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
on duplicate key update
id = values(id),
title_rank = values(title_rank),
title = values(title),
topic = values(topic),
option_A = values(option_A),
option_A_point = values(option_A_point),
option_B = values(option_B),
option_B_point = values(option_B_point),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/LessonInfoMapper.xml
View file @
c7438bfe
...
...
@@ -241,151 +241,171 @@
#{explainC,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.LessonInfo
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into lesson_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"chapters != null"
>
chapters,
</if>
<if
test=
"chaptersName != null"
>
chapters_name,
</if>
<if
test=
"session != null"
>
`session`,
</if>
<if
test=
"sessionName != null"
>
session_name,
</if>
<if
test=
"lessonContent != null"
>
lesson_content,
</if>
<if
test=
"lessonOrder != null"
>
lesson_order,
</if>
<if
test=
"cover != null"
>
cover,
</if>
<if
test=
"vidUrl != null"
>
vid_url,
</if>
<if
test=
"video != null"
>
video,
</if>
<if
test=
"topic != null"
>
topic,
</if>
<if
test=
"optionA != null"
>
option_A,
</if>
<if
test=
"optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"explainA != null"
>
explain_A,
</if>
<if
test=
"optionB != null"
>
option_B,
</if>
<if
test=
"optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"explainB != null"
>
explain_B,
</if>
<if
test=
"optionC != null"
>
option_C,
</if>
<if
test=
"optionCPoint != null"
>
option_C_point,
</if>
<if
test=
"explainC != null"
>
explain_C,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"chapters != null"
>
#{chapters,jdbcType=INTEGER},
</if>
<if
test=
"chaptersName != null"
>
#{chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"session != null"
>
#{session,jdbcType=INTEGER},
</if>
<if
test=
"sessionName != null"
>
#{sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"lessonContent != null"
>
#{lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"lessonOrder != null"
>
#{lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"cover != null"
>
#{cover,jdbcType=VARCHAR},
</if>
<if
test=
"vidUrl != null"
>
#{vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"video != null"
>
#{video,jdbcType=VARCHAR},
</if>
<if
test=
"topic != null"
>
#{topic,jdbcType=VARCHAR},
</if>
<if
test=
"optionA != null"
>
#{optionA,jdbcType=VARCHAR},
</if>
<if
test=
"optionAPoint != null"
>
#{optionAPoint,jdbcType=REAL},
</if>
<if
test=
"explainA != null"
>
#{explainA,jdbcType=VARCHAR},
</if>
<if
test=
"optionB != null"
>
#{optionB,jdbcType=VARCHAR},
</if>
<if
test=
"optionBPoint != null"
>
#{optionBPoint,jdbcType=REAL},
</if>
<if
test=
"explainB != null"
>
#{explainB,jdbcType=VARCHAR},
</if>
<if
test=
"optionC != null"
>
#{optionC,jdbcType=VARCHAR},
</if>
<if
test=
"optionCPoint != null"
>
#{optionCPoint,jdbcType=REAL},
</if>
<if
test=
"explainC != null"
>
#{explainC,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.chapters != null"
>
chapters,
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name,
</if>
<if
test=
"record.session != null"
>
`session`,
</if>
<if
test=
"record.sessionName != null"
>
session_name,
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content,
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order,
</if>
<if
test=
"record.cover != null"
>
cover,
</if>
<if
test=
"record.vidUrl != null"
>
vid_url,
</if>
<if
test=
"record.video != null"
>
video,
</if>
<if
test=
"record.topic != null"
>
topic,
</if>
<if
test=
"record.optionA != null"
>
option_A,
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"record.explainA != null"
>
explain_A,
</if>
<if
test=
"record.optionB != null"
>
option_B,
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"record.explainB != null"
>
explain_B,
</if>
<if
test=
"record.optionC != null"
>
option_C,
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point,
</if>
<if
test=
"record.explainC != null"
>
explain_C,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.chapters != null"
>
#{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
#{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
#{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
#{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
#{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
#{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
#{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
#{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
#{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
#{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
#{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
#{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
#{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
#{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
#{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
#{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
#{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
#{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
#{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.LessonInfoExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -403,77 +423,87 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update lesson_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chapters != null"
>
chapters = #{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
`session` = #{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
session_name = #{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
cover = #{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
vid_url = #{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
video = #{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
explain_A = #{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
explain_B = #{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
option_C = #{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point = #{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
explain_C = #{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chapters != null"
>
chapters = #{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
`session` = #{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
session_name = #{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
cover = #{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
vid_url = #{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
video = #{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
explain_A = #{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
explain_B = #{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
option_C = #{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point = #{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
explain_C = #{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -511,81 +541,91 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.LessonInfo
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update lesson_info
<set>
<if
test=
"chapters != null"
>
chapters = #{chapters,jdbcType=INTEGER},
</if>
<if
test=
"chaptersName != null"
>
chapters_name = #{chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"session != null"
>
`session` = #{session,jdbcType=INTEGER},
</if>
<if
test=
"sessionName != null"
>
session_name = #{sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"lessonContent != null"
>
lesson_content = #{lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"lessonOrder != null"
>
lesson_order = #{lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"cover != null"
>
cover = #{cover,jdbcType=VARCHAR},
</if>
<if
test=
"vidUrl != null"
>
vid_url = #{vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"video != null"
>
video = #{video,jdbcType=VARCHAR},
</if>
<if
test=
"topic != null"
>
topic = #{topic,jdbcType=VARCHAR},
</if>
<if
test=
"optionA != null"
>
option_A = #{optionA,jdbcType=VARCHAR},
</if>
<if
test=
"optionAPoint != null"
>
option_A_point = #{optionAPoint,jdbcType=REAL},
</if>
<if
test=
"explainA != null"
>
explain_A = #{explainA,jdbcType=VARCHAR},
</if>
<if
test=
"optionB != null"
>
option_B = #{optionB,jdbcType=VARCHAR},
</if>
<if
test=
"optionBPoint != null"
>
option_B_point = #{optionBPoint,jdbcType=REAL},
</if>
<if
test=
"explainB != null"
>
explain_B = #{explainB,jdbcType=VARCHAR},
</if>
<if
test=
"optionC != null"
>
option_C = #{optionC,jdbcType=VARCHAR},
</if>
<if
test=
"optionCPoint != null"
>
option_C_point = #{optionCPoint,jdbcType=REAL},
</if>
<if
test=
"explainC != null"
>
explain_C = #{explainC,jdbcType=VARCHAR},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.chapters != null"
>
chapters = #{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
`session` = #{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
session_name = #{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
cover = #{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
vid_url = #{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
video = #{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
explain_A = #{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
explain_B = #{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
option_C = #{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point = #{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
explain_C = #{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.LessonInfo"
>
<!--
...
...
@@ -676,4 +716,949 @@
update lesson_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into lesson_info
(chapters, chapters_name, `session`, session_name, lesson_content, lesson_order,
cover, vid_url, video, topic, option_A, option_A_point, explain_A, option_B, option_B_point,
explain_B, option_C, option_C_point, explain_C, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.chapters,jdbcType=INTEGER}, #{item.chaptersName,jdbcType=VARCHAR}, #{item.session,jdbcType=INTEGER},
#{item.sessionName,jdbcType=VARCHAR}, #{item.lessonContent,jdbcType=VARCHAR}, #{item.lessonOrder,jdbcType=INTEGER},
#{item.cover,jdbcType=VARCHAR}, #{item.vidUrl,jdbcType=VARCHAR}, #{item.video,jdbcType=VARCHAR},
#{item.topic,jdbcType=VARCHAR}, #{item.optionA,jdbcType=VARCHAR}, #{item.optionAPoint,jdbcType=REAL},
#{item.explainA,jdbcType=VARCHAR}, #{item.optionB,jdbcType=VARCHAR}, #{item.optionBPoint,jdbcType=REAL},
#{item.explainB,jdbcType=VARCHAR}, #{item.optionC,jdbcType=VARCHAR}, #{item.optionCPoint,jdbcType=REAL},
#{item.explainC,jdbcType=VARCHAR}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.deleted,jdbcType=BIT})
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into lesson_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'chapters'.toString() == column.value"
>
#{item.chapters,jdbcType=INTEGER}
</if>
<if
test=
"'chapters_name'.toString() == column.value"
>
#{item.chaptersName,jdbcType=VARCHAR}
</if>
<if
test=
"'session'.toString() == column.value"
>
#{item.session,jdbcType=INTEGER}
</if>
<if
test=
"'session_name'.toString() == column.value"
>
#{item.sessionName,jdbcType=VARCHAR}
</if>
<if
test=
"'lesson_content'.toString() == column.value"
>
#{item.lessonContent,jdbcType=VARCHAR}
</if>
<if
test=
"'lesson_order'.toString() == column.value"
>
#{item.lessonOrder,jdbcType=INTEGER}
</if>
<if
test=
"'cover'.toString() == column.value"
>
#{item.cover,jdbcType=VARCHAR}
</if>
<if
test=
"'vid_url'.toString() == column.value"
>
#{item.vidUrl,jdbcType=VARCHAR}
</if>
<if
test=
"'video'.toString() == column.value"
>
#{item.video,jdbcType=VARCHAR}
</if>
<if
test=
"'topic'.toString() == column.value"
>
#{item.topic,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A'.toString() == column.value"
>
#{item.optionA,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A_point'.toString() == column.value"
>
#{item.optionAPoint,jdbcType=REAL}
</if>
<if
test=
"'explain_A'.toString() == column.value"
>
#{item.explainA,jdbcType=VARCHAR}
</if>
<if
test=
"'option_B'.toString() == column.value"
>
#{item.optionB,jdbcType=VARCHAR}
</if>
<if
test=
"'option_B_point'.toString() == column.value"
>
#{item.optionBPoint,jdbcType=REAL}
</if>
<if
test=
"'explain_B'.toString() == column.value"
>
#{item.explainB,jdbcType=VARCHAR}
</if>
<if
test=
"'option_C'.toString() == column.value"
>
#{item.optionC,jdbcType=VARCHAR}
</if>
<if
test=
"'option_C_point'.toString() == column.value"
>
#{item.optionCPoint,jdbcType=REAL}
</if>
<if
test=
"'explain_C'.toString() == column.value"
>
#{item.explainC,jdbcType=VARCHAR}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into lesson_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.chapters != null"
>
chapters,
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name,
</if>
<if
test=
"record.session != null"
>
`session`,
</if>
<if
test=
"record.sessionName != null"
>
session_name,
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content,
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order,
</if>
<if
test=
"record.cover != null"
>
cover,
</if>
<if
test=
"record.vidUrl != null"
>
vid_url,
</if>
<if
test=
"record.video != null"
>
video,
</if>
<if
test=
"record.topic != null"
>
topic,
</if>
<if
test=
"record.optionA != null"
>
option_A,
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"record.explainA != null"
>
explain_A,
</if>
<if
test=
"record.optionB != null"
>
option_B,
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"record.explainB != null"
>
explain_B,
</if>
<if
test=
"record.optionC != null"
>
option_C,
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point,
</if>
<if
test=
"record.explainC != null"
>
explain_C,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chapters != null"
>
#{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
#{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
#{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
#{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
#{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
#{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
#{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
#{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
#{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
#{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
#{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
#{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
#{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
#{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
#{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
#{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
#{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
#{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
#{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chapters != null"
>
chapters = #{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
`session` = #{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
session_name = #{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
cover = #{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
vid_url = #{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
video = #{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
explain_A = #{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
explain_B = #{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
option_C = #{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point = #{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
explain_C = #{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update lesson_info
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chapters != null"
>
chapters = #{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
`session` = #{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
session_name = #{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
cover = #{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
vid_url = #{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
video = #{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
topic = #{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
option_A = #{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point = #{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
explain_A = #{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
option_B = #{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point = #{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
explain_B = #{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
option_C = #{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point = #{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
explain_C = #{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into lesson_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.chapters != null"
>
chapters,
</if>
<if
test=
"record.chaptersName != null"
>
chapters_name,
</if>
<if
test=
"record.session != null"
>
`session`,
</if>
<if
test=
"record.sessionName != null"
>
session_name,
</if>
<if
test=
"record.lessonContent != null"
>
lesson_content,
</if>
<if
test=
"record.lessonOrder != null"
>
lesson_order,
</if>
<if
test=
"record.cover != null"
>
cover,
</if>
<if
test=
"record.vidUrl != null"
>
vid_url,
</if>
<if
test=
"record.video != null"
>
video,
</if>
<if
test=
"record.topic != null"
>
topic,
</if>
<if
test=
"record.optionA != null"
>
option_A,
</if>
<if
test=
"record.optionAPoint != null"
>
option_A_point,
</if>
<if
test=
"record.explainA != null"
>
explain_A,
</if>
<if
test=
"record.optionB != null"
>
option_B,
</if>
<if
test=
"record.optionBPoint != null"
>
option_B_point,
</if>
<if
test=
"record.explainB != null"
>
explain_B,
</if>
<if
test=
"record.optionC != null"
>
option_C,
</if>
<if
test=
"record.optionCPoint != null"
>
option_C_point,
</if>
<if
test=
"record.explainC != null"
>
explain_C,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chapters != null"
>
#{record.chapters,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersName != null"
>
#{record.chaptersName,jdbcType=VARCHAR},
</if>
<if
test=
"record.session != null"
>
#{record.session,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionName != null"
>
#{record.sessionName,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonContent != null"
>
#{record.lessonContent,jdbcType=VARCHAR},
</if>
<if
test=
"record.lessonOrder != null"
>
#{record.lessonOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.cover != null"
>
#{record.cover,jdbcType=VARCHAR},
</if>
<if
test=
"record.vidUrl != null"
>
#{record.vidUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.video != null"
>
#{record.video,jdbcType=VARCHAR},
</if>
<if
test=
"record.topic != null"
>
#{record.topic,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionA != null"
>
#{record.optionA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionAPoint != null"
>
#{record.optionAPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainA != null"
>
#{record.explainA,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionB != null"
>
#{record.optionB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionBPoint != null"
>
#{record.optionBPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainB != null"
>
#{record.explainB,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionC != null"
>
#{record.optionC,jdbcType=VARCHAR},
</if>
<if
test=
"record.optionCPoint != null"
>
#{record.optionCPoint,jdbcType=REAL},
</if>
<if
test=
"record.explainC != null"
>
#{record.explainC,jdbcType=VARCHAR},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from lesson_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.LessonInfo"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into lesson_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
chapters,
chapters_name,
`session`,
session_name,
lesson_content,
lesson_order,
cover,
vid_url,
video,
topic,
option_A,
option_A_point,
explain_A,
option_B,
option_B_point,
explain_B,
option_C,
option_C_point,
explain_C,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{chapters,jdbcType=INTEGER},
#{chaptersName,jdbcType=VARCHAR},
#{session,jdbcType=INTEGER},
#{sessionName,jdbcType=VARCHAR},
#{lessonContent,jdbcType=VARCHAR},
#{lessonOrder,jdbcType=INTEGER},
#{cover,jdbcType=VARCHAR},
#{vidUrl,jdbcType=VARCHAR},
#{video,jdbcType=VARCHAR},
#{topic,jdbcType=VARCHAR},
#{optionA,jdbcType=VARCHAR},
#{optionAPoint,jdbcType=REAL},
#{explainA,jdbcType=VARCHAR},
#{optionB,jdbcType=VARCHAR},
#{optionBPoint,jdbcType=REAL},
#{explainB,jdbcType=VARCHAR},
#{optionC,jdbcType=VARCHAR},
#{optionCPoint,jdbcType=REAL},
#{explainC,jdbcType=VARCHAR},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
chapters = #{chapters,jdbcType=INTEGER},
chapters_name = #{chaptersName,jdbcType=VARCHAR},
`session` = #{session,jdbcType=INTEGER},
session_name = #{sessionName,jdbcType=VARCHAR},
lesson_content = #{lessonContent,jdbcType=VARCHAR},
lesson_order = #{lessonOrder,jdbcType=INTEGER},
cover = #{cover,jdbcType=VARCHAR},
vid_url = #{vidUrl,jdbcType=VARCHAR},
video = #{video,jdbcType=VARCHAR},
topic = #{topic,jdbcType=VARCHAR},
option_A = #{optionA,jdbcType=VARCHAR},
option_A_point = #{optionAPoint,jdbcType=REAL},
explain_A = #{explainA,jdbcType=VARCHAR},
option_B = #{optionB,jdbcType=VARCHAR},
option_B_point = #{optionBPoint,jdbcType=REAL},
explain_B = #{explainB,jdbcType=VARCHAR},
option_C = #{optionC,jdbcType=VARCHAR},
option_C_point = #{optionCPoint,jdbcType=REAL},
explain_C = #{explainC,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update lesson_info
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
chapters = #{record.chapters,jdbcType=INTEGER},
chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
`session` = #{record.session,jdbcType=INTEGER},
session_name = #{record.sessionName,jdbcType=VARCHAR},
lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
cover = #{record.cover,jdbcType=VARCHAR},
vid_url = #{record.vidUrl,jdbcType=VARCHAR},
video = #{record.video,jdbcType=VARCHAR},
topic = #{record.topic,jdbcType=VARCHAR},
option_A = #{record.optionA,jdbcType=VARCHAR},
option_A_point = #{record.optionAPoint,jdbcType=REAL},
explain_A = #{record.explainA,jdbcType=VARCHAR},
option_B = #{record.optionB,jdbcType=VARCHAR},
option_B_point = #{record.optionBPoint,jdbcType=REAL},
explain_B = #{record.explainB,jdbcType=VARCHAR},
option_C = #{record.optionC,jdbcType=VARCHAR},
option_C_point = #{record.optionCPoint,jdbcType=REAL},
explain_C = #{record.explainC,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into lesson_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
chapters,
chapters_name,
`session`,
session_name,
lesson_content,
lesson_order,
cover,
vid_url,
video,
topic,
option_A,
option_A_point,
explain_A,
option_B,
option_B_point,
explain_B,
option_C,
option_C_point,
explain_C,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.chapters,jdbcType=INTEGER},
#{record.chaptersName,jdbcType=VARCHAR},
#{record.session,jdbcType=INTEGER},
#{record.sessionName,jdbcType=VARCHAR},
#{record.lessonContent,jdbcType=VARCHAR},
#{record.lessonOrder,jdbcType=INTEGER},
#{record.cover,jdbcType=VARCHAR},
#{record.vidUrl,jdbcType=VARCHAR},
#{record.video,jdbcType=VARCHAR},
#{record.topic,jdbcType=VARCHAR},
#{record.optionA,jdbcType=VARCHAR},
#{record.optionAPoint,jdbcType=REAL},
#{record.explainA,jdbcType=VARCHAR},
#{record.optionB,jdbcType=VARCHAR},
#{record.optionBPoint,jdbcType=REAL},
#{record.explainB,jdbcType=VARCHAR},
#{record.optionC,jdbcType=VARCHAR},
#{record.optionCPoint,jdbcType=REAL},
#{record.explainC,jdbcType=VARCHAR},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from lesson_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into lesson_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'chapters'.toString() == column.value"
>
#{item.chapters,jdbcType=INTEGER}
</if>
<if
test=
"'chapters_name'.toString() == column.value"
>
#{item.chaptersName,jdbcType=VARCHAR}
</if>
<if
test=
"'session'.toString() == column.value"
>
#{item.session,jdbcType=INTEGER}
</if>
<if
test=
"'session_name'.toString() == column.value"
>
#{item.sessionName,jdbcType=VARCHAR}
</if>
<if
test=
"'lesson_content'.toString() == column.value"
>
#{item.lessonContent,jdbcType=VARCHAR}
</if>
<if
test=
"'lesson_order'.toString() == column.value"
>
#{item.lessonOrder,jdbcType=INTEGER}
</if>
<if
test=
"'cover'.toString() == column.value"
>
#{item.cover,jdbcType=VARCHAR}
</if>
<if
test=
"'vid_url'.toString() == column.value"
>
#{item.vidUrl,jdbcType=VARCHAR}
</if>
<if
test=
"'video'.toString() == column.value"
>
#{item.video,jdbcType=VARCHAR}
</if>
<if
test=
"'topic'.toString() == column.value"
>
#{item.topic,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A'.toString() == column.value"
>
#{item.optionA,jdbcType=VARCHAR}
</if>
<if
test=
"'option_A_point'.toString() == column.value"
>
#{item.optionAPoint,jdbcType=REAL}
</if>
<if
test=
"'explain_A'.toString() == column.value"
>
#{item.explainA,jdbcType=VARCHAR}
</if>
<if
test=
"'option_B'.toString() == column.value"
>
#{item.optionB,jdbcType=VARCHAR}
</if>
<if
test=
"'option_B_point'.toString() == column.value"
>
#{item.optionBPoint,jdbcType=REAL}
</if>
<if
test=
"'explain_B'.toString() == column.value"
>
#{item.explainB,jdbcType=VARCHAR}
</if>
<if
test=
"'option_C'.toString() == column.value"
>
#{item.optionC,jdbcType=VARCHAR}
</if>
<if
test=
"'option_C_point'.toString() == column.value"
>
#{item.optionCPoint,jdbcType=REAL}
</if>
<if
test=
"'explain_C'.toString() == column.value"
>
#{item.explainC,jdbcType=VARCHAR}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into lesson_info
(id, chapters, chapters_name, `session`, session_name, lesson_content, lesson_order,
cover, vid_url, video, topic, option_A, option_A_point, explain_A, option_B, option_B_point,
explain_B, option_C, option_C_point, explain_C, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.chapters,jdbcType=INTEGER}, #{item.chaptersName,jdbcType=VARCHAR},
#{item.session,jdbcType=INTEGER}, #{item.sessionName,jdbcType=VARCHAR}, #{item.lessonContent,jdbcType=VARCHAR},
#{item.lessonOrder,jdbcType=INTEGER}, #{item.cover,jdbcType=VARCHAR}, #{item.vidUrl,jdbcType=VARCHAR},
#{item.video,jdbcType=VARCHAR}, #{item.topic,jdbcType=VARCHAR}, #{item.optionA,jdbcType=VARCHAR},
#{item.optionAPoint,jdbcType=REAL}, #{item.explainA,jdbcType=VARCHAR}, #{item.optionB,jdbcType=VARCHAR},
#{item.optionBPoint,jdbcType=REAL}, #{item.explainB,jdbcType=VARCHAR}, #{item.optionC,jdbcType=VARCHAR},
#{item.optionCPoint,jdbcType=REAL}, #{item.explainC,jdbcType=VARCHAR}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
on duplicate key update
id = values(id),
chapters = values(chapters),
chapters_name = values(chapters_name),
`session` = values(`session`),
session_name = values(session_name),
lesson_content = values(lesson_content),
lesson_order = values(lesson_order),
cover = values(cover),
vid_url = values(vid_url),
video = values(video),
topic = values(topic),
option_A = values(option_A),
option_A_point = values(option_A_point),
explain_A = values(explain_A),
option_B = values(option_B),
option_B_point = values(option_B_point),
explain_B = values(explain_B),
option_C = values(option_C),
option_C_point = values(option_C_point),
explain_C = values(explain_C),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/StudentInfoMapper.xml
View file @
c7438bfe
...
...
@@ -216,67 +216,87 @@
#{head,jdbcType=VARCHAR}, #{callTimes,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.StudentInfo
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentUniqueId != null"
>
student_unique_id,
</if>
<if
test=
"classId != null"
>
class_id,
</if>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"head != null"
>
head,
</if>
<if
test=
"callTimes != null"
>
call_times,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentUniqueId != null"
>
#{studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"classId != null"
>
#{classId,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"head != null"
>
#{head,jdbcType=VARCHAR},
</if>
<if
test=
"callTimes != null"
>
#{callTimes,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id,
</if>
<if
test=
"record.classId != null"
>
class_id,
</if>
<if
test=
"record.name != null"
>
`name`,
</if>
<if
test=
"record.head != null"
>
head,
</if>
<if
test=
"record.callTimes != null"
>
call_times,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.studentUniqueId != null"
>
#{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
#{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
#{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
#{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
#{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfoExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -294,35 +314,45 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
head = #{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
call_times = #{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
head = #{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
call_times = #{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -346,39 +376,49 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.StudentInfo
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
<set>
<if
test=
"studentUniqueId != null"
>
student_unique_id = #{studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"classId != null"
>
class_id = #{classId,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"head != null"
>
head = #{head,jdbcType=VARCHAR},
</if>
<if
test=
"callTimes != null"
>
call_times = #{callTimes,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
head = #{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
call_times = #{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfo"
>
<!--
...
...
@@ -455,4 +495,504 @@
update student_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_info
(student_unique_id, class_id, `name`, head, call_times, add_time, update_time, deleted
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.studentUniqueId,jdbcType=VARCHAR}, #{item.classId,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR},
#{item.head,jdbcType=VARCHAR}, #{item.callTimes,jdbcType=INTEGER}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'student_unique_id'.toString() == column.value"
>
#{item.studentUniqueId,jdbcType=VARCHAR}
</if>
<if
test=
"'class_id'.toString() == column.value"
>
#{item.classId,jdbcType=INTEGER}
</if>
<if
test=
"'name'.toString() == column.value"
>
#{item.name,jdbcType=VARCHAR}
</if>
<if
test=
"'head'.toString() == column.value"
>
#{item.head,jdbcType=VARCHAR}
</if>
<if
test=
"'call_times'.toString() == column.value"
>
#{item.callTimes,jdbcType=INTEGER}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id,
</if>
<if
test=
"record.classId != null"
>
class_id,
</if>
<if
test=
"record.name != null"
>
`name`,
</if>
<if
test=
"record.head != null"
>
head,
</if>
<if
test=
"record.callTimes != null"
>
call_times,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
#{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
#{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
#{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
#{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
#{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
head = #{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
call_times = #{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
head = #{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
call_times = #{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into student_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.studentUniqueId != null"
>
student_unique_id,
</if>
<if
test=
"record.classId != null"
>
class_id,
</if>
<if
test=
"record.name != null"
>
`name`,
</if>
<if
test=
"record.head != null"
>
head,
</if>
<if
test=
"record.callTimes != null"
>
call_times,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentUniqueId != null"
>
#{record.studentUniqueId,jdbcType=VARCHAR},
</if>
<if
test=
"record.classId != null"
>
#{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.name != null"
>
#{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.head != null"
>
#{record.head,jdbcType=VARCHAR},
</if>
<if
test=
"record.callTimes != null"
>
#{record.callTimes,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.StudentInfo"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
student_unique_id,
class_id,
`name`,
head,
call_times,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{studentUniqueId,jdbcType=VARCHAR},
#{classId,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{head,jdbcType=VARCHAR},
#{callTimes,jdbcType=INTEGER},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
student_unique_id = #{studentUniqueId,jdbcType=VARCHAR},
class_id = #{classId,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
head = #{head,jdbcType=VARCHAR},
call_times = #{callTimes,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_info
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
class_id = #{record.classId,jdbcType=INTEGER},
`name` = #{record.name,jdbcType=VARCHAR},
head = #{record.head,jdbcType=VARCHAR},
call_times = #{record.callTimes,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into student_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
student_unique_id,
class_id,
`name`,
head,
call_times,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.studentUniqueId,jdbcType=VARCHAR},
#{record.classId,jdbcType=INTEGER},
#{record.name,jdbcType=VARCHAR},
#{record.head,jdbcType=VARCHAR},
#{record.callTimes,jdbcType=INTEGER},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from student_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'student_unique_id'.toString() == column.value"
>
#{item.studentUniqueId,jdbcType=VARCHAR}
</if>
<if
test=
"'class_id'.toString() == column.value"
>
#{item.classId,jdbcType=INTEGER}
</if>
<if
test=
"'name'.toString() == column.value"
>
#{item.name,jdbcType=VARCHAR}
</if>
<if
test=
"'head'.toString() == column.value"
>
#{item.head,jdbcType=VARCHAR}
</if>
<if
test=
"'call_times'.toString() == column.value"
>
#{item.callTimes,jdbcType=INTEGER}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_info
(id, student_unique_id, class_id, `name`, head, call_times, add_time, update_time,
deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.studentUniqueId,jdbcType=VARCHAR}, #{item.classId,jdbcType=INTEGER},
#{item.name,jdbcType=VARCHAR}, #{item.head,jdbcType=VARCHAR}, #{item.callTimes,jdbcType=INTEGER},
#{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT}
)
</foreach>
on duplicate key update
id = values(id),
student_unique_id = values(student_unique_id),
class_id = values(class_id),
`name` = values(`name`),
head = values(head),
call_times = values(call_times),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/StudentPointInfoMapper.xml
View file @
c7438bfe
...
...
@@ -214,61 +214,81 @@
#{recordTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.StudentPointInfo
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into student_point_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentId != null"
>
student_id,
</if>
<if
test=
"classId != null"
>
class_id,
</if>
<if
test=
"point != null"
>
point,
</if>
<if
test=
"recordTime != null"
>
record_time,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"studentId != null"
>
#{studentId,jdbcType=INTEGER},
</if>
<if
test=
"classId != null"
>
#{classId,jdbcType=INTEGER},
</if>
<if
test=
"point != null"
>
#{point,jdbcType=INTEGER},
</if>
<if
test=
"recordTime != null"
>
#{recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.studentId != null"
>
student_id,
</if>
<if
test=
"record.classId != null"
>
class_id,
</if>
<if
test=
"record.point != null"
>
point,
</if>
<if
test=
"record.recordTime != null"
>
record_time,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.studentId != null"
>
#{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
#{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
#{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
#{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfoExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -286,32 +306,42 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
student_id = #{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
point = #{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
student_id = #{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
point = #{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -334,36 +364,46 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.StudentPointInfo
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
<set>
<if
test=
"studentId != null"
>
student_id = #{studentId,jdbcType=INTEGER},
</if>
<if
test=
"classId != null"
>
class_id = #{classId,jdbcType=INTEGER},
</if>
<if
test=
"point != null"
>
point = #{point,jdbcType=INTEGER},
</if>
<if
test=
"recordTime != null"
>
record_time = #{recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.studentId != null"
>
student_id = #{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
point = #{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
>
<!--
...
...
@@ -439,4 +479,470 @@
update student_point_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_point_info
(student_id, class_id, point, record_time, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.studentId,jdbcType=INTEGER}, #{item.classId,jdbcType=INTEGER}, #{item.point,jdbcType=INTEGER},
#{item.recordTime,jdbcType=TIMESTAMP}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.deleted,jdbcType=BIT})
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_point_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'student_id'.toString() == column.value"
>
#{item.studentId,jdbcType=INTEGER}
</if>
<if
test=
"'class_id'.toString() == column.value"
>
#{item.classId,jdbcType=INTEGER}
</if>
<if
test=
"'point'.toString() == column.value"
>
#{item.point,jdbcType=INTEGER}
</if>
<if
test=
"'record_time'.toString() == column.value"
>
#{item.recordTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_point_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.studentId != null"
>
student_id,
</if>
<if
test=
"record.classId != null"
>
class_id,
</if>
<if
test=
"record.point != null"
>
point,
</if>
<if
test=
"record.recordTime != null"
>
record_time,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
#{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
#{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
#{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
#{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
student_id = #{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
point = #{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
student_id = #{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
class_id = #{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
point = #{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into student_point_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.studentId != null"
>
student_id,
</if>
<if
test=
"record.classId != null"
>
class_id,
</if>
<if
test=
"record.point != null"
>
point,
</if>
<if
test=
"record.recordTime != null"
>
record_time,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.studentId != null"
>
#{record.studentId,jdbcType=INTEGER},
</if>
<if
test=
"record.classId != null"
>
#{record.classId,jdbcType=INTEGER},
</if>
<if
test=
"record.point != null"
>
#{record.point,jdbcType=INTEGER},
</if>
<if
test=
"record.recordTime != null"
>
#{record.recordTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.StudentPointInfo"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_point_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
student_id,
class_id,
point,
record_time,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{studentId,jdbcType=INTEGER},
#{classId,jdbcType=INTEGER},
#{point,jdbcType=INTEGER},
#{recordTime,jdbcType=TIMESTAMP},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
student_id = #{studentId,jdbcType=INTEGER},
class_id = #{classId,jdbcType=INTEGER},
point = #{point,jdbcType=INTEGER},
record_time = #{recordTime,jdbcType=TIMESTAMP},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update student_point_info
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
student_id = #{record.studentId,jdbcType=INTEGER},
class_id = #{record.classId,jdbcType=INTEGER},
point = #{record.point,jdbcType=INTEGER},
record_time = #{record.recordTime,jdbcType=TIMESTAMP},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into student_point_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
student_id,
class_id,
point,
record_time,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.studentId,jdbcType=INTEGER},
#{record.classId,jdbcType=INTEGER},
#{record.point,jdbcType=INTEGER},
#{record.recordTime,jdbcType=TIMESTAMP},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from student_point_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_point_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'student_id'.toString() == column.value"
>
#{item.studentId,jdbcType=INTEGER}
</if>
<if
test=
"'class_id'.toString() == column.value"
>
#{item.classId,jdbcType=INTEGER}
</if>
<if
test=
"'point'.toString() == column.value"
>
#{item.point,jdbcType=INTEGER}
</if>
<if
test=
"'record_time'.toString() == column.value"
>
#{item.recordTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into student_point_info
(id, student_id, class_id, point, record_time, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.studentId,jdbcType=INTEGER}, #{item.classId,jdbcType=INTEGER},
#{item.point,jdbcType=INTEGER}, #{item.recordTime,jdbcType=TIMESTAMP}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
on duplicate key update
id = values(id),
student_id = values(student_id),
class_id = values(class_id),
point = values(point),
record_time = values(record_time),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/UserLessonInfoMapper.xml
View file @
c7438bfe
...
...
@@ -214,61 +214,81 @@
#{selectId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.UserLessonInfo
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into user_lesson_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"chaptersId != null"
>
chapters_id,
</if>
<if
test=
"sessionId != null"
>
session_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"selectId != null"
>
select_id,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"chaptersId != null"
>
#{chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"sessionId != null"
>
#{sessionId,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=INTEGER},
</if>
<if
test=
"selectId != null"
>
#{selectId,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.chaptersId != null"
>
chapters_id,
</if>
<if
test=
"record.sessionId != null"
>
session_id,
</if>
<if
test=
"record.userId != null"
>
user_id,
</if>
<if
test=
"record.selectId != null"
>
select_id,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.chaptersId != null"
>
#{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
#{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
#{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
#{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.UserLessonInfoExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -286,32 +306,42 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user_lesson_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersId != null"
>
chapters_id = #{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
session_id = #{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
select_id = #{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersId != null"
>
chapters_id = #{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
session_id = #{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
select_id = #{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -334,36 +364,46 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.UserLessonInfo
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user_lesson_info
<set>
<if
test=
"chaptersId != null"
>
chapters_id = #{chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"sessionId != null"
>
session_id = #{sessionId,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=INTEGER},
</if>
<if
test=
"selectId != null"
>
select_id = #{selectId,jdbcType=INTEGER},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.chaptersId != null"
>
chapters_id = #{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
session_id = #{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
select_id = #{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.UserLessonInfo"
>
<!--
...
...
@@ -439,4 +479,470 @@
update user_lesson_info set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_lesson_info
(chapters_id, session_id, user_id, select_id, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.chaptersId,jdbcType=INTEGER}, #{item.sessionId,jdbcType=INTEGER}, #{item.userId,jdbcType=INTEGER},
#{item.selectId,jdbcType=INTEGER}, #{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.deleted,jdbcType=BIT})
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_lesson_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'chapters_id'.toString() == column.value"
>
#{item.chaptersId,jdbcType=INTEGER}
</if>
<if
test=
"'session_id'.toString() == column.value"
>
#{item.sessionId,jdbcType=INTEGER}
</if>
<if
test=
"'user_id'.toString() == column.value"
>
#{item.userId,jdbcType=INTEGER}
</if>
<if
test=
"'select_id'.toString() == column.value"
>
#{item.selectId,jdbcType=INTEGER}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_lesson_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.chaptersId != null"
>
chapters_id,
</if>
<if
test=
"record.sessionId != null"
>
session_id,
</if>
<if
test=
"record.userId != null"
>
user_id,
</if>
<if
test=
"record.selectId != null"
>
select_id,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersId != null"
>
#{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
#{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
#{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
#{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersId != null"
>
chapters_id = #{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
session_id = #{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
select_id = #{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user_lesson_info
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersId != null"
>
chapters_id = #{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
session_id = #{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
select_id = #{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into user_lesson_info
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.chaptersId != null"
>
chapters_id,
</if>
<if
test=
"record.sessionId != null"
>
session_id,
</if>
<if
test=
"record.userId != null"
>
user_id,
</if>
<if
test=
"record.selectId != null"
>
select_id,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chaptersId != null"
>
#{record.chaptersId,jdbcType=INTEGER},
</if>
<if
test=
"record.sessionId != null"
>
#{record.sessionId,jdbcType=INTEGER},
</if>
<if
test=
"record.userId != null"
>
#{record.userId,jdbcType=INTEGER},
</if>
<if
test=
"record.selectId != null"
>
#{record.selectId,jdbcType=INTEGER},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from user_lesson_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.UserLessonInfo"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_lesson_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
chapters_id,
session_id,
user_id,
select_id,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{chaptersId,jdbcType=INTEGER},
#{sessionId,jdbcType=INTEGER},
#{userId,jdbcType=INTEGER},
#{selectId,jdbcType=INTEGER},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
chapters_id = #{chaptersId,jdbcType=INTEGER},
session_id = #{sessionId,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER},
select_id = #{selectId,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user_lesson_info
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
chapters_id = #{record.chaptersId,jdbcType=INTEGER},
session_id = #{record.sessionId,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER},
select_id = #{record.selectId,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into user_lesson_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
chapters_id,
session_id,
user_id,
select_id,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.chaptersId,jdbcType=INTEGER},
#{record.sessionId,jdbcType=INTEGER},
#{record.userId,jdbcType=INTEGER},
#{record.selectId,jdbcType=INTEGER},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from user_lesson_info
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_lesson_info (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'chapters_id'.toString() == column.value"
>
#{item.chaptersId,jdbcType=INTEGER}
</if>
<if
test=
"'session_id'.toString() == column.value"
>
#{item.sessionId,jdbcType=INTEGER}
</if>
<if
test=
"'user_id'.toString() == column.value"
>
#{item.userId,jdbcType=INTEGER}
</if>
<if
test=
"'select_id'.toString() == column.value"
>
#{item.selectId,jdbcType=INTEGER}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_lesson_info
(id, chapters_id, session_id, user_id, select_id, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.chaptersId,jdbcType=INTEGER}, #{item.sessionId,jdbcType=INTEGER},
#{item.userId,jdbcType=INTEGER}, #{item.selectId,jdbcType=INTEGER}, #{item.addTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT})
</foreach>
on duplicate key update
id = values(id),
chapters_id = values(chapters_id),
session_id = values(session_id),
user_id = values(user_id),
select_id = values(select_id),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</mapper>
\ No newline at end of file
server-db/src/main/resources/cn/exploring/engine/server/db/dao/WxUserMapper.xml
View file @
c7438bfe
...
...
@@ -274,259 +274,279 @@
#{isAuditAdministrator,jdbcType=BIT}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"
cn.exploring.engine.server.db.domain.WxUser
"
>
<insert
id=
"insertSelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"
record.
id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into wx_user
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"username != null"
>
username,
</if>
<if
test=
"password != null"
>
`password`,
</if>
<if
test=
"gender != null"
>
gender,
</if>
<if
test=
"birthday != null"
>
birthday,
</if>
<if
test=
"lastLoginTime != null"
>
last_login_time,
</if>
<if
test=
"lastLoginIp != null"
>
last_login_ip,
</if>
<if
test=
"userLevel != null"
>
user_level,
</if>
<if
test=
"nickname != null"
>
nickname,
</if>
<if
test=
"mobile != null"
>
mobile,
</if>
<if
test=
"avatar != null"
>
avatar,
</if>
<if
test=
"weixinOpenid != null"
>
weixin_openid,
</if>
<if
test=
"status != null"
>
`status`,
</if>
<if
test=
"scores != null"
>
scores,
</if>
<if
test=
"isSendScores != null"
>
is_send_scores,
</if>
<if
test=
"isGy != null"
>
is_gy,
</if>
<if
test=
"gyId != null"
>
gy_id,
</if>
<if
test=
"gyProductName != null"
>
gy_product_name,
</if>
<if
test=
"school != null"
>
school,
</if>
<if
test=
"cardId != null"
>
card_id,
</if>
<if
test=
"wxId != null"
>
wx_id,
</if>
<if
test=
"cardTypeId != null"
>
card_type_id,
</if>
<if
test=
"cardTypeName != null"
>
card_type_name,
</if>
<if
test=
"fansNum != null"
>
fans_num,
</if>
<if
test=
"likesNum != null"
>
likes_num,
</if>
<if
test=
"journalNum != null"
>
journal_num,
</if>
<if
test=
"joinExerciseNum != null"
>
join_exercise_num,
</if>
<if
test=
"joinOrgNum != null"
>
join_org_num,
</if>
<if
test=
"email != null"
>
email,
</if>
<if
test=
"isH5Register != null"
>
is_h5_register,
</if>
<if
test=
"firm != null"
>
firm,
</if>
<if
test=
"dutyTypesId != null"
>
duty_types_id,
</if>
<if
test=
"dutyTypesName != null"
>
duty_types_name,
</if>
<if
test=
"weight != null"
>
weight,
</if>
<if
test=
"height != null"
>
height,
</if>
<if
test=
"stepSize != null"
>
step_size,
</if>
<if
test=
"isCloseWxSport != null"
>
is_close_wx_sport,
</if>
<if
test=
"isAuditAdministrator != null"
>
is_audit_administrator,
</if>
<if
test=
"addTime != null"
>
add_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"username != null"
>
#{username,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
#{password,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=TINYINT},
</if>
<if
test=
"birthday != null"
>
#{birthday,jdbcType=DATE},
</if>
<if
test=
"lastLoginTime != null"
>
#{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"lastLoginIp != null"
>
#{lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"userLevel != null"
>
#{userLevel,jdbcType=TINYINT},
</if>
<if
test=
"nickname != null"
>
#{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"mobile != null"
>
#{mobile,jdbcType=VARCHAR},
</if>
<if
test=
"avatar != null"
>
#{avatar,jdbcType=VARCHAR},
</if>
<if
test=
"weixinOpenid != null"
>
#{weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=TINYINT},
</if>
<if
test=
"scores != null"
>
#{scores,jdbcType=INTEGER},
</if>
<if
test=
"isSendScores != null"
>
#{isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"isGy != null"
>
#{isGy,jdbcType=INTEGER},
</if>
<if
test=
"gyId != null"
>
#{gyId,jdbcType=VARCHAR},
</if>
<if
test=
"gyProductName != null"
>
#{gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"school != null"
>
#{school,jdbcType=VARCHAR},
</if>
<if
test=
"cardId != null"
>
#{cardId,jdbcType=VARCHAR},
</if>
<if
test=
"wxId != null"
>
#{wxId,jdbcType=VARCHAR},
</if>
<if
test=
"cardTypeId != null"
>
#{cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"cardTypeName != null"
>
#{cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"fansNum != null"
>
#{fansNum,jdbcType=INTEGER},
</if>
<if
test=
"likesNum != null"
>
#{likesNum,jdbcType=INTEGER},
</if>
<if
test=
"journalNum != null"
>
#{journalNum,jdbcType=INTEGER},
</if>
<if
test=
"joinExerciseNum != null"
>
#{joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"joinOrgNum != null"
>
#{joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"email != null"
>
#{email,jdbcType=VARCHAR},
</if>
<if
test=
"isH5Register != null"
>
#{isH5Register,jdbcType=BIT},
</if>
<if
test=
"firm != null"
>
#{firm,jdbcType=VARCHAR},
</if>
<if
test=
"dutyTypesId != null"
>
#{dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"dutyTypesName != null"
>
#{dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"weight != null"
>
#{weight,jdbcType=INTEGER},
</if>
<if
test=
"height != null"
>
#{height,jdbcType=INTEGER},
</if>
<if
test=
"stepSize != null"
>
#{stepSize,jdbcType=INTEGER},
</if>
<if
test=
"isCloseWxSport != null"
>
#{isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"isAuditAdministrator != null"
>
#{isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"addTime != null"
>
#{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
#{deleted,jdbcType=BIT},
</if>
</trim>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.username != null"
>
username,
</if>
<if
test=
"record.password != null"
>
`password`,
</if>
<if
test=
"record.gender != null"
>
gender,
</if>
<if
test=
"record.birthday != null"
>
birthday,
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time,
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip,
</if>
<if
test=
"record.userLevel != null"
>
user_level,
</if>
<if
test=
"record.nickname != null"
>
nickname,
</if>
<if
test=
"record.mobile != null"
>
mobile,
</if>
<if
test=
"record.avatar != null"
>
avatar,
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid,
</if>
<if
test=
"record.status != null"
>
`status`,
</if>
<if
test=
"record.scores != null"
>
scores,
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores,
</if>
<if
test=
"record.isGy != null"
>
is_gy,
</if>
<if
test=
"record.gyId != null"
>
gy_id,
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name,
</if>
<if
test=
"record.school != null"
>
school,
</if>
<if
test=
"record.cardId != null"
>
card_id,
</if>
<if
test=
"record.wxId != null"
>
wx_id,
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id,
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name,
</if>
<if
test=
"record.fansNum != null"
>
fans_num,
</if>
<if
test=
"record.likesNum != null"
>
likes_num,
</if>
<if
test=
"record.journalNum != null"
>
journal_num,
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num,
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num,
</if>
<if
test=
"record.email != null"
>
email,
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register,
</if>
<if
test=
"record.firm != null"
>
firm,
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id,
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name,
</if>
<if
test=
"record.weight != null"
>
weight,
</if>
<if
test=
"record.height != null"
>
height,
</if>
<if
test=
"record.stepSize != null"
>
step_size,
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport,
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.username != null"
>
#{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
#{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
#{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
#{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
#{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
#{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
#{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
#{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
#{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
#{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
#{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
#{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
#{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
#{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
#{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
#{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
#{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
#{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
#{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
#{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
#{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
#{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
#{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
#{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
#{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
#{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
#{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
#{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
#{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
#{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
#{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
#{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
#{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
#{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
#{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
#{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
#{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<select
id=
"countByExample"
parameterType=
"cn.exploring.engine.server.db.domain.WxUserExample"
resultType=
"java.lang.Long"
>
<!--
...
...
@@ -544,131 +564,141 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
update wx_user
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
scores = #{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
is_gy = #{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
gy_id = #{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
school = #{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
card_id = #{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
wx_id = #{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
fans_num = #{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
likes_num = #{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
journal_num = #{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
email = #{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register = #{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
firm = #{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
weight = #{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
height = #{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
step_size = #{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</set>
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
scores = #{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
is_gy = #{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
gy_id = #{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
school = #{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
card_id = #{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
wx_id = #{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
fans_num = #{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
likes_num = #{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
journal_num = #{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
email = #{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register = #{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
firm = #{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
weight = #{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
height = #{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
step_size = #{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -724,135 +754,145 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
cn.exploring.engine.server.db.domain.WxUser
"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"
map
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update wx_user
<set>
<if
test=
"username != null"
>
username = #{username,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
`password` = #{password,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=TINYINT},
</if>
<if
test=
"birthday != null"
>
birthday = #{birthday,jdbcType=DATE},
</if>
<if
test=
"lastLoginTime != null"
>
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"lastLoginIp != null"
>
last_login_ip = #{lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"userLevel != null"
>
user_level = #{userLevel,jdbcType=TINYINT},
</if>
<if
test=
"nickname != null"
>
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"mobile != null"
>
mobile = #{mobile,jdbcType=VARCHAR},
</if>
<if
test=
"avatar != null"
>
avatar = #{avatar,jdbcType=VARCHAR},
</if>
<if
test=
"weixinOpenid != null"
>
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
`status` = #{status,jdbcType=TINYINT},
</if>
<if
test=
"scores != null"
>
scores = #{scores,jdbcType=INTEGER},
</if>
<if
test=
"isSendScores != null"
>
is_send_scores = #{isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"isGy != null"
>
is_gy = #{isGy,jdbcType=INTEGER},
</if>
<if
test=
"gyId != null"
>
gy_id = #{gyId,jdbcType=VARCHAR},
</if>
<if
test=
"gyProductName != null"
>
gy_product_name = #{gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"school != null"
>
school = #{school,jdbcType=VARCHAR},
</if>
<if
test=
"cardId != null"
>
card_id = #{cardId,jdbcType=VARCHAR},
</if>
<if
test=
"wxId != null"
>
wx_id = #{wxId,jdbcType=VARCHAR},
</if>
<if
test=
"cardTypeId != null"
>
card_type_id = #{cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"cardTypeName != null"
>
card_type_name = #{cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"fansNum != null"
>
fans_num = #{fansNum,jdbcType=INTEGER},
</if>
<if
test=
"likesNum != null"
>
likes_num = #{likesNum,jdbcType=INTEGER},
</if>
<if
test=
"journalNum != null"
>
journal_num = #{journalNum,jdbcType=INTEGER},
</if>
<if
test=
"joinExerciseNum != null"
>
join_exercise_num = #{joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"joinOrgNum != null"
>
join_org_num = #{joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"email != null"
>
email = #{email,jdbcType=VARCHAR},
</if>
<if
test=
"isH5Register != null"
>
is_h5_register = #{isH5Register,jdbcType=BIT},
</if>
<if
test=
"firm != null"
>
firm = #{firm,jdbcType=VARCHAR},
</if>
<if
test=
"dutyTypesId != null"
>
duty_types_id = #{dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"dutyTypesName != null"
>
duty_types_name = #{dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"weight != null"
>
weight = #{weight,jdbcType=INTEGER},
</if>
<if
test=
"height != null"
>
height = #{height,jdbcType=INTEGER},
</if>
<if
test=
"stepSize != null"
>
step_size = #{stepSize,jdbcType=INTEGER},
</if>
<if
test=
"isCloseWxSport != null"
>
is_close_wx_sport = #{isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"isAuditAdministrator != null"
>
is_audit_administrator = #{isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"addTime != null"
>
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"deleted != null"
>
deleted = #{deleted,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
SET
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
scores = #{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
is_gy = #{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
gy_id = #{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
school = #{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
card_id = #{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
wx_id = #{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
fans_num = #{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
likes_num = #{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
journal_num = #{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
email = #{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register = #{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
firm = #{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
weight = #{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
height = #{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
step_size = #{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"cn.exploring.engine.server.db.domain.WxUser"
>
<!--
...
...
@@ -961,4 +1001,1527 @@
update wx_user set deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into wx_user
(username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, avatar, weixin_openid, `status`, scores, is_send_scores, is_gy,
gy_id, gy_product_name, school, card_id, wx_id, card_type_id, card_type_name, fans_num,
likes_num, journal_num, join_exercise_num, join_org_num, email, is_h5_register,
firm, duty_types_id, duty_types_name, weight, height, step_size, is_close_wx_sport,
is_audit_administrator, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.username,jdbcType=VARCHAR}, #{item.password,jdbcType=VARCHAR}, #{item.gender,jdbcType=TINYINT},
#{item.birthday,jdbcType=DATE}, #{item.lastLoginTime,jdbcType=TIMESTAMP}, #{item.lastLoginIp,jdbcType=VARCHAR},
#{item.userLevel,jdbcType=TINYINT}, #{item.nickname,jdbcType=VARCHAR}, #{item.mobile,jdbcType=VARCHAR},
#{item.avatar,jdbcType=VARCHAR}, #{item.weixinOpenid,jdbcType=VARCHAR}, #{item.status,jdbcType=TINYINT},
#{item.scores,jdbcType=INTEGER}, #{item.isSendScores,jdbcType=INTEGER}, #{item.isGy,jdbcType=INTEGER},
#{item.gyId,jdbcType=VARCHAR}, #{item.gyProductName,jdbcType=VARCHAR}, #{item.school,jdbcType=VARCHAR},
#{item.cardId,jdbcType=VARCHAR}, #{item.wxId,jdbcType=VARCHAR}, #{item.cardTypeId,jdbcType=INTEGER},
#{item.cardTypeName,jdbcType=VARCHAR}, #{item.fansNum,jdbcType=INTEGER}, #{item.likesNum,jdbcType=INTEGER},
#{item.journalNum,jdbcType=INTEGER}, #{item.joinExerciseNum,jdbcType=INTEGER},
#{item.joinOrgNum,jdbcType=INTEGER}, #{item.email,jdbcType=VARCHAR}, #{item.isH5Register,jdbcType=BIT},
#{item.firm,jdbcType=VARCHAR}, #{item.dutyTypesId,jdbcType=INTEGER}, #{item.dutyTypesName,jdbcType=VARCHAR},
#{item.weight,jdbcType=INTEGER}, #{item.height,jdbcType=INTEGER}, #{item.stepSize,jdbcType=INTEGER},
#{item.isCloseWxSport,jdbcType=BIT}, #{item.isAuditAdministrator,jdbcType=BIT},
#{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT}
)
</foreach>
</insert>
<insert
id=
"batchInsertSelective"
keyColumn=
"id"
keyProperty=
"list.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into wx_user (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'username'.toString() == column.value"
>
#{item.username,jdbcType=VARCHAR}
</if>
<if
test=
"'password'.toString() == column.value"
>
#{item.password,jdbcType=VARCHAR}
</if>
<if
test=
"'gender'.toString() == column.value"
>
#{item.gender,jdbcType=TINYINT}
</if>
<if
test=
"'birthday'.toString() == column.value"
>
#{item.birthday,jdbcType=DATE}
</if>
<if
test=
"'last_login_time'.toString() == column.value"
>
#{item.lastLoginTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'last_login_ip'.toString() == column.value"
>
#{item.lastLoginIp,jdbcType=VARCHAR}
</if>
<if
test=
"'user_level'.toString() == column.value"
>
#{item.userLevel,jdbcType=TINYINT}
</if>
<if
test=
"'nickname'.toString() == column.value"
>
#{item.nickname,jdbcType=VARCHAR}
</if>
<if
test=
"'mobile'.toString() == column.value"
>
#{item.mobile,jdbcType=VARCHAR}
</if>
<if
test=
"'avatar'.toString() == column.value"
>
#{item.avatar,jdbcType=VARCHAR}
</if>
<if
test=
"'weixin_openid'.toString() == column.value"
>
#{item.weixinOpenid,jdbcType=VARCHAR}
</if>
<if
test=
"'status'.toString() == column.value"
>
#{item.status,jdbcType=TINYINT}
</if>
<if
test=
"'scores'.toString() == column.value"
>
#{item.scores,jdbcType=INTEGER}
</if>
<if
test=
"'is_send_scores'.toString() == column.value"
>
#{item.isSendScores,jdbcType=INTEGER}
</if>
<if
test=
"'is_gy'.toString() == column.value"
>
#{item.isGy,jdbcType=INTEGER}
</if>
<if
test=
"'gy_id'.toString() == column.value"
>
#{item.gyId,jdbcType=VARCHAR}
</if>
<if
test=
"'gy_product_name'.toString() == column.value"
>
#{item.gyProductName,jdbcType=VARCHAR}
</if>
<if
test=
"'school'.toString() == column.value"
>
#{item.school,jdbcType=VARCHAR}
</if>
<if
test=
"'card_id'.toString() == column.value"
>
#{item.cardId,jdbcType=VARCHAR}
</if>
<if
test=
"'wx_id'.toString() == column.value"
>
#{item.wxId,jdbcType=VARCHAR}
</if>
<if
test=
"'card_type_id'.toString() == column.value"
>
#{item.cardTypeId,jdbcType=INTEGER}
</if>
<if
test=
"'card_type_name'.toString() == column.value"
>
#{item.cardTypeName,jdbcType=VARCHAR}
</if>
<if
test=
"'fans_num'.toString() == column.value"
>
#{item.fansNum,jdbcType=INTEGER}
</if>
<if
test=
"'likes_num'.toString() == column.value"
>
#{item.likesNum,jdbcType=INTEGER}
</if>
<if
test=
"'journal_num'.toString() == column.value"
>
#{item.journalNum,jdbcType=INTEGER}
</if>
<if
test=
"'join_exercise_num'.toString() == column.value"
>
#{item.joinExerciseNum,jdbcType=INTEGER}
</if>
<if
test=
"'join_org_num'.toString() == column.value"
>
#{item.joinOrgNum,jdbcType=INTEGER}
</if>
<if
test=
"'email'.toString() == column.value"
>
#{item.email,jdbcType=VARCHAR}
</if>
<if
test=
"'is_h5_register'.toString() == column.value"
>
#{item.isH5Register,jdbcType=BIT}
</if>
<if
test=
"'firm'.toString() == column.value"
>
#{item.firm,jdbcType=VARCHAR}
</if>
<if
test=
"'duty_types_id'.toString() == column.value"
>
#{item.dutyTypesId,jdbcType=INTEGER}
</if>
<if
test=
"'duty_types_name'.toString() == column.value"
>
#{item.dutyTypesName,jdbcType=VARCHAR}
</if>
<if
test=
"'weight'.toString() == column.value"
>
#{item.weight,jdbcType=INTEGER}
</if>
<if
test=
"'height'.toString() == column.value"
>
#{item.height,jdbcType=INTEGER}
</if>
<if
test=
"'step_size'.toString() == column.value"
>
#{item.stepSize,jdbcType=INTEGER}
</if>
<if
test=
"'is_close_wx_sport'.toString() == column.value"
>
#{item.isCloseWxSport,jdbcType=BIT}
</if>
<if
test=
"'is_audit_administrator'.toString() == column.value"
>
#{item.isAuditAdministrator,jdbcType=BIT}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
</insert>
<insert
id=
"upsertSelective"
keyColumn=
"id"
keyProperty=
"record.id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into wx_user
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.username != null"
>
username,
</if>
<if
test=
"record.password != null"
>
`password`,
</if>
<if
test=
"record.gender != null"
>
gender,
</if>
<if
test=
"record.birthday != null"
>
birthday,
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time,
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip,
</if>
<if
test=
"record.userLevel != null"
>
user_level,
</if>
<if
test=
"record.nickname != null"
>
nickname,
</if>
<if
test=
"record.mobile != null"
>
mobile,
</if>
<if
test=
"record.avatar != null"
>
avatar,
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid,
</if>
<if
test=
"record.status != null"
>
`status`,
</if>
<if
test=
"record.scores != null"
>
scores,
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores,
</if>
<if
test=
"record.isGy != null"
>
is_gy,
</if>
<if
test=
"record.gyId != null"
>
gy_id,
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name,
</if>
<if
test=
"record.school != null"
>
school,
</if>
<if
test=
"record.cardId != null"
>
card_id,
</if>
<if
test=
"record.wxId != null"
>
wx_id,
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id,
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name,
</if>
<if
test=
"record.fansNum != null"
>
fans_num,
</if>
<if
test=
"record.likesNum != null"
>
likes_num,
</if>
<if
test=
"record.journalNum != null"
>
journal_num,
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num,
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num,
</if>
<if
test=
"record.email != null"
>
email,
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register,
</if>
<if
test=
"record.firm != null"
>
firm,
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id,
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name,
</if>
<if
test=
"record.weight != null"
>
weight,
</if>
<if
test=
"record.height != null"
>
height,
</if>
<if
test=
"record.stepSize != null"
>
step_size,
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport,
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
values
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.username != null"
>
#{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
#{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
#{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
#{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
#{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
#{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
#{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
#{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
#{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
#{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
#{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
#{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
#{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
#{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
#{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
#{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
#{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
#{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
#{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
#{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
#{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
#{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
#{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
#{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
#{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
#{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
#{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
#{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
#{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
#{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
#{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
#{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
#{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
#{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
#{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
#{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
#{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
on duplicate key update
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
scores = #{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
is_gy = #{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
gy_id = #{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
school = #{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
card_id = #{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
wx_id = #{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
fans_num = #{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
likes_num = #{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
journal_num = #{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
email = #{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register = #{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
firm = #{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
weight = #{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
height = #{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
step_size = #{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
</insert>
<update
id=
"upsertByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update wx_user
set
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
user_level = #{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
mobile = #{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
avatar = #{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
scores = #{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
is_gy = #{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
gy_id = #{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
school = #{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
card_id = #{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
wx_id = #{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
fans_num = #{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
likes_num = #{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
journal_num = #{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
email = #{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register = #{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
firm = #{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
weight = #{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
height = #{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
step_size = #{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
add_time = #{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
deleted = #{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into wx_user
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
close=
")"
collection=
"selective"
item=
"column"
open=
"("
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
<if
test=
"record.username != null"
>
username,
</if>
<if
test=
"record.password != null"
>
`password`,
</if>
<if
test=
"record.gender != null"
>
gender,
</if>
<if
test=
"record.birthday != null"
>
birthday,
</if>
<if
test=
"record.lastLoginTime != null"
>
last_login_time,
</if>
<if
test=
"record.lastLoginIp != null"
>
last_login_ip,
</if>
<if
test=
"record.userLevel != null"
>
user_level,
</if>
<if
test=
"record.nickname != null"
>
nickname,
</if>
<if
test=
"record.mobile != null"
>
mobile,
</if>
<if
test=
"record.avatar != null"
>
avatar,
</if>
<if
test=
"record.weixinOpenid != null"
>
weixin_openid,
</if>
<if
test=
"record.status != null"
>
`status`,
</if>
<if
test=
"record.scores != null"
>
scores,
</if>
<if
test=
"record.isSendScores != null"
>
is_send_scores,
</if>
<if
test=
"record.isGy != null"
>
is_gy,
</if>
<if
test=
"record.gyId != null"
>
gy_id,
</if>
<if
test=
"record.gyProductName != null"
>
gy_product_name,
</if>
<if
test=
"record.school != null"
>
school,
</if>
<if
test=
"record.cardId != null"
>
card_id,
</if>
<if
test=
"record.wxId != null"
>
wx_id,
</if>
<if
test=
"record.cardTypeId != null"
>
card_type_id,
</if>
<if
test=
"record.cardTypeName != null"
>
card_type_name,
</if>
<if
test=
"record.fansNum != null"
>
fans_num,
</if>
<if
test=
"record.likesNum != null"
>
likes_num,
</if>
<if
test=
"record.journalNum != null"
>
journal_num,
</if>
<if
test=
"record.joinExerciseNum != null"
>
join_exercise_num,
</if>
<if
test=
"record.joinOrgNum != null"
>
join_org_num,
</if>
<if
test=
"record.email != null"
>
email,
</if>
<if
test=
"record.isH5Register != null"
>
is_h5_register,
</if>
<if
test=
"record.firm != null"
>
firm,
</if>
<if
test=
"record.dutyTypesId != null"
>
duty_types_id,
</if>
<if
test=
"record.dutyTypesName != null"
>
duty_types_name,
</if>
<if
test=
"record.weight != null"
>
weight,
</if>
<if
test=
"record.height != null"
>
height,
</if>
<if
test=
"record.stepSize != null"
>
step_size,
</if>
<if
test=
"record.isCloseWxSport != null"
>
is_close_wx_sport,
</if>
<if
test=
"record.isAuditAdministrator != null"
>
is_audit_administrator,
</if>
<if
test=
"record.addTime != null"
>
add_time,
</if>
<if
test=
"record.updateTime != null"
>
update_time,
</if>
<if
test=
"record.deleted != null"
>
deleted,
</if>
</trim>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
/>
</otherwise>
</choose>
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
#{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</foreach>
</when>
<otherwise>
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.username != null"
>
#{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
#{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
#{record.gender,jdbcType=TINYINT},
</if>
<if
test=
"record.birthday != null"
>
#{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.lastLoginTime != null"
>
#{record.lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastLoginIp != null"
>
#{record.lastLoginIp,jdbcType=VARCHAR},
</if>
<if
test=
"record.userLevel != null"
>
#{record.userLevel,jdbcType=TINYINT},
</if>
<if
test=
"record.nickname != null"
>
#{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.mobile != null"
>
#{record.mobile,jdbcType=VARCHAR},
</if>
<if
test=
"record.avatar != null"
>
#{record.avatar,jdbcType=VARCHAR},
</if>
<if
test=
"record.weixinOpenid != null"
>
#{record.weixinOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
#{record.status,jdbcType=TINYINT},
</if>
<if
test=
"record.scores != null"
>
#{record.scores,jdbcType=INTEGER},
</if>
<if
test=
"record.isSendScores != null"
>
#{record.isSendScores,jdbcType=INTEGER},
</if>
<if
test=
"record.isGy != null"
>
#{record.isGy,jdbcType=INTEGER},
</if>
<if
test=
"record.gyId != null"
>
#{record.gyId,jdbcType=VARCHAR},
</if>
<if
test=
"record.gyProductName != null"
>
#{record.gyProductName,jdbcType=VARCHAR},
</if>
<if
test=
"record.school != null"
>
#{record.school,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardId != null"
>
#{record.cardId,jdbcType=VARCHAR},
</if>
<if
test=
"record.wxId != null"
>
#{record.wxId,jdbcType=VARCHAR},
</if>
<if
test=
"record.cardTypeId != null"
>
#{record.cardTypeId,jdbcType=INTEGER},
</if>
<if
test=
"record.cardTypeName != null"
>
#{record.cardTypeName,jdbcType=VARCHAR},
</if>
<if
test=
"record.fansNum != null"
>
#{record.fansNum,jdbcType=INTEGER},
</if>
<if
test=
"record.likesNum != null"
>
#{record.likesNum,jdbcType=INTEGER},
</if>
<if
test=
"record.journalNum != null"
>
#{record.journalNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinExerciseNum != null"
>
#{record.joinExerciseNum,jdbcType=INTEGER},
</if>
<if
test=
"record.joinOrgNum != null"
>
#{record.joinOrgNum,jdbcType=INTEGER},
</if>
<if
test=
"record.email != null"
>
#{record.email,jdbcType=VARCHAR},
</if>
<if
test=
"record.isH5Register != null"
>
#{record.isH5Register,jdbcType=BIT},
</if>
<if
test=
"record.firm != null"
>
#{record.firm,jdbcType=VARCHAR},
</if>
<if
test=
"record.dutyTypesId != null"
>
#{record.dutyTypesId,jdbcType=INTEGER},
</if>
<if
test=
"record.dutyTypesName != null"
>
#{record.dutyTypesName,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
#{record.weight,jdbcType=INTEGER},
</if>
<if
test=
"record.height != null"
>
#{record.height,jdbcType=INTEGER},
</if>
<if
test=
"record.stepSize != null"
>
#{record.stepSize,jdbcType=INTEGER},
</if>
<if
test=
"record.isCloseWxSport != null"
>
#{record.isCloseWxSport,jdbcType=BIT},
</if>
<if
test=
"record.isAuditAdministrator != null"
>
#{record.isAuditAdministrator,jdbcType=BIT},
</if>
<if
test=
"record.addTime != null"
>
#{record.addTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
#{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deleted != null"
>
#{record.deleted,jdbcType=BIT},
</if>
</trim>
</otherwise>
</choose>
from dual where not exists
(
select 1 from wx_user
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"upsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"cn.exploring.engine.server.db.domain.WxUser"
useGeneratedKeys=
"true"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into wx_user
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
username,
`password`,
gender,
birthday,
last_login_time,
last_login_ip,
user_level,
nickname,
mobile,
avatar,
weixin_openid,
`status`,
scores,
is_send_scores,
is_gy,
gy_id,
gy_product_name,
school,
card_id,
wx_id,
card_type_id,
card_type_name,
fans_num,
likes_num,
journal_num,
join_exercise_num,
join_org_num,
email,
is_h5_register,
firm,
duty_types_id,
duty_types_name,
weight,
height,
step_size,
is_close_wx_sport,
is_audit_administrator,
add_time,
update_time,
deleted,
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
#{username,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{gender,jdbcType=TINYINT},
#{birthday,jdbcType=DATE},
#{lastLoginTime,jdbcType=TIMESTAMP},
#{lastLoginIp,jdbcType=VARCHAR},
#{userLevel,jdbcType=TINYINT},
#{nickname,jdbcType=VARCHAR},
#{mobile,jdbcType=VARCHAR},
#{avatar,jdbcType=VARCHAR},
#{weixinOpenid,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT},
#{scores,jdbcType=INTEGER},
#{isSendScores,jdbcType=INTEGER},
#{isGy,jdbcType=INTEGER},
#{gyId,jdbcType=VARCHAR},
#{gyProductName,jdbcType=VARCHAR},
#{school,jdbcType=VARCHAR},
#{cardId,jdbcType=VARCHAR},
#{wxId,jdbcType=VARCHAR},
#{cardTypeId,jdbcType=INTEGER},
#{cardTypeName,jdbcType=VARCHAR},
#{fansNum,jdbcType=INTEGER},
#{likesNum,jdbcType=INTEGER},
#{journalNum,jdbcType=INTEGER},
#{joinExerciseNum,jdbcType=INTEGER},
#{joinOrgNum,jdbcType=INTEGER},
#{email,jdbcType=VARCHAR},
#{isH5Register,jdbcType=BIT},
#{firm,jdbcType=VARCHAR},
#{dutyTypesId,jdbcType=INTEGER},
#{dutyTypesName,jdbcType=VARCHAR},
#{weight,jdbcType=INTEGER},
#{height,jdbcType=INTEGER},
#{stepSize,jdbcType=INTEGER},
#{isCloseWxSport,jdbcType=BIT},
#{isAuditAdministrator,jdbcType=BIT},
#{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
username = #{username,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
gender = #{gender,jdbcType=TINYINT},
birthday = #{birthday,jdbcType=DATE},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
last_login_ip = #{lastLoginIp,jdbcType=VARCHAR},
user_level = #{userLevel,jdbcType=TINYINT},
nickname = #{nickname,jdbcType=VARCHAR},
mobile = #{mobile,jdbcType=VARCHAR},
avatar = #{avatar,jdbcType=VARCHAR},
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
scores = #{scores,jdbcType=INTEGER},
is_send_scores = #{isSendScores,jdbcType=INTEGER},
is_gy = #{isGy,jdbcType=INTEGER},
gy_id = #{gyId,jdbcType=VARCHAR},
gy_product_name = #{gyProductName,jdbcType=VARCHAR},
school = #{school,jdbcType=VARCHAR},
card_id = #{cardId,jdbcType=VARCHAR},
wx_id = #{wxId,jdbcType=VARCHAR},
card_type_id = #{cardTypeId,jdbcType=INTEGER},
card_type_name = #{cardTypeName,jdbcType=VARCHAR},
fans_num = #{fansNum,jdbcType=INTEGER},
likes_num = #{likesNum,jdbcType=INTEGER},
journal_num = #{journalNum,jdbcType=INTEGER},
join_exercise_num = #{joinExerciseNum,jdbcType=INTEGER},
join_org_num = #{joinOrgNum,jdbcType=INTEGER},
email = #{email,jdbcType=VARCHAR},
is_h5_register = #{isH5Register,jdbcType=BIT},
firm = #{firm,jdbcType=VARCHAR},
duty_types_id = #{dutyTypesId,jdbcType=INTEGER},
duty_types_name = #{dutyTypesName,jdbcType=VARCHAR},
weight = #{weight,jdbcType=INTEGER},
height = #{height,jdbcType=INTEGER},
step_size = #{stepSize,jdbcType=INTEGER},
is_close_wx_sport = #{isCloseWxSport,jdbcType=BIT},
is_audit_administrator = #{isAuditAdministrator,jdbcType=BIT},
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
</trim>
</insert>
<update
id=
"upsertByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update wx_user
set
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
username = #{record.username,jdbcType=VARCHAR},
`password` = #{record.password,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=TINYINT},
birthday = #{record.birthday,jdbcType=DATE},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
user_level = #{record.userLevel,jdbcType=TINYINT},
nickname = #{record.nickname,jdbcType=VARCHAR},
mobile = #{record.mobile,jdbcType=VARCHAR},
avatar = #{record.avatar,jdbcType=VARCHAR},
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
scores = #{record.scores,jdbcType=INTEGER},
is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
is_gy = #{record.isGy,jdbcType=INTEGER},
gy_id = #{record.gyId,jdbcType=VARCHAR},
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
school = #{record.school,jdbcType=VARCHAR},
card_id = #{record.cardId,jdbcType=VARCHAR},
wx_id = #{record.wxId,jdbcType=VARCHAR},
card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
fans_num = #{record.fansNum,jdbcType=INTEGER},
likes_num = #{record.likesNum,jdbcType=INTEGER},
journal_num = #{record.journalNum,jdbcType=INTEGER},
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
email = #{record.email,jdbcType=VARCHAR},
is_h5_register = #{record.isH5Register,jdbcType=BIT},
firm = #{record.firm,jdbcType=VARCHAR},
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
weight = #{record.weight,jdbcType=INTEGER},
height = #{record.height,jdbcType=INTEGER},
step_size = #{record.stepSize,jdbcType=INTEGER},
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
</trim>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
;
insert into wx_user
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
id,
</if>
username,
`password`,
gender,
birthday,
last_login_time,
last_login_ip,
user_level,
nickname,
mobile,
avatar,
weixin_openid,
`status`,
scores,
is_send_scores,
is_gy,
gy_id,
gy_product_name,
school,
card_id,
wx_id,
card_type_id,
card_type_name,
fans_num,
likes_num,
journal_num,
join_exercise_num,
join_org_num,
email,
is_h5_register,
firm,
duty_types_id,
duty_types_name,
weight,
height,
step_size,
is_close_wx_sport,
is_audit_administrator,
add_time,
update_time,
deleted,
</trim>
select
<trim
suffixOverrides=
","
>
<if
test=
"record.id != null"
>
#{record.id,jdbcType=INTEGER},
</if>
#{record.username,jdbcType=VARCHAR},
#{record.password,jdbcType=VARCHAR},
#{record.gender,jdbcType=TINYINT},
#{record.birthday,jdbcType=DATE},
#{record.lastLoginTime,jdbcType=TIMESTAMP},
#{record.lastLoginIp,jdbcType=VARCHAR},
#{record.userLevel,jdbcType=TINYINT},
#{record.nickname,jdbcType=VARCHAR},
#{record.mobile,jdbcType=VARCHAR},
#{record.avatar,jdbcType=VARCHAR},
#{record.weixinOpenid,jdbcType=VARCHAR},
#{record.status,jdbcType=TINYINT},
#{record.scores,jdbcType=INTEGER},
#{record.isSendScores,jdbcType=INTEGER},
#{record.isGy,jdbcType=INTEGER},
#{record.gyId,jdbcType=VARCHAR},
#{record.gyProductName,jdbcType=VARCHAR},
#{record.school,jdbcType=VARCHAR},
#{record.cardId,jdbcType=VARCHAR},
#{record.wxId,jdbcType=VARCHAR},
#{record.cardTypeId,jdbcType=INTEGER},
#{record.cardTypeName,jdbcType=VARCHAR},
#{record.fansNum,jdbcType=INTEGER},
#{record.likesNum,jdbcType=INTEGER},
#{record.journalNum,jdbcType=INTEGER},
#{record.joinExerciseNum,jdbcType=INTEGER},
#{record.joinOrgNum,jdbcType=INTEGER},
#{record.email,jdbcType=VARCHAR},
#{record.isH5Register,jdbcType=BIT},
#{record.firm,jdbcType=VARCHAR},
#{record.dutyTypesId,jdbcType=INTEGER},
#{record.dutyTypesName,jdbcType=VARCHAR},
#{record.weight,jdbcType=INTEGER},
#{record.height,jdbcType=INTEGER},
#{record.stepSize,jdbcType=INTEGER},
#{record.isCloseWxSport,jdbcType=BIT},
#{record.isAuditAdministrator,jdbcType=BIT},
#{record.addTime,jdbcType=TIMESTAMP},
#{record.updateTime,jdbcType=TIMESTAMP},
#{record.deleted,jdbcType=BIT},
</trim>
from dual where not exists
(
select 1 from wx_user
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
)
</update>
<insert
id=
"batchUpsertSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into wx_user (
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
<if
test=
"'id'.toString() == column.value"
>
#{item.id,jdbcType=INTEGER}
</if>
<if
test=
"'username'.toString() == column.value"
>
#{item.username,jdbcType=VARCHAR}
</if>
<if
test=
"'password'.toString() == column.value"
>
#{item.password,jdbcType=VARCHAR}
</if>
<if
test=
"'gender'.toString() == column.value"
>
#{item.gender,jdbcType=TINYINT}
</if>
<if
test=
"'birthday'.toString() == column.value"
>
#{item.birthday,jdbcType=DATE}
</if>
<if
test=
"'last_login_time'.toString() == column.value"
>
#{item.lastLoginTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'last_login_ip'.toString() == column.value"
>
#{item.lastLoginIp,jdbcType=VARCHAR}
</if>
<if
test=
"'user_level'.toString() == column.value"
>
#{item.userLevel,jdbcType=TINYINT}
</if>
<if
test=
"'nickname'.toString() == column.value"
>
#{item.nickname,jdbcType=VARCHAR}
</if>
<if
test=
"'mobile'.toString() == column.value"
>
#{item.mobile,jdbcType=VARCHAR}
</if>
<if
test=
"'avatar'.toString() == column.value"
>
#{item.avatar,jdbcType=VARCHAR}
</if>
<if
test=
"'weixin_openid'.toString() == column.value"
>
#{item.weixinOpenid,jdbcType=VARCHAR}
</if>
<if
test=
"'status'.toString() == column.value"
>
#{item.status,jdbcType=TINYINT}
</if>
<if
test=
"'scores'.toString() == column.value"
>
#{item.scores,jdbcType=INTEGER}
</if>
<if
test=
"'is_send_scores'.toString() == column.value"
>
#{item.isSendScores,jdbcType=INTEGER}
</if>
<if
test=
"'is_gy'.toString() == column.value"
>
#{item.isGy,jdbcType=INTEGER}
</if>
<if
test=
"'gy_id'.toString() == column.value"
>
#{item.gyId,jdbcType=VARCHAR}
</if>
<if
test=
"'gy_product_name'.toString() == column.value"
>
#{item.gyProductName,jdbcType=VARCHAR}
</if>
<if
test=
"'school'.toString() == column.value"
>
#{item.school,jdbcType=VARCHAR}
</if>
<if
test=
"'card_id'.toString() == column.value"
>
#{item.cardId,jdbcType=VARCHAR}
</if>
<if
test=
"'wx_id'.toString() == column.value"
>
#{item.wxId,jdbcType=VARCHAR}
</if>
<if
test=
"'card_type_id'.toString() == column.value"
>
#{item.cardTypeId,jdbcType=INTEGER}
</if>
<if
test=
"'card_type_name'.toString() == column.value"
>
#{item.cardTypeName,jdbcType=VARCHAR}
</if>
<if
test=
"'fans_num'.toString() == column.value"
>
#{item.fansNum,jdbcType=INTEGER}
</if>
<if
test=
"'likes_num'.toString() == column.value"
>
#{item.likesNum,jdbcType=INTEGER}
</if>
<if
test=
"'journal_num'.toString() == column.value"
>
#{item.journalNum,jdbcType=INTEGER}
</if>
<if
test=
"'join_exercise_num'.toString() == column.value"
>
#{item.joinExerciseNum,jdbcType=INTEGER}
</if>
<if
test=
"'join_org_num'.toString() == column.value"
>
#{item.joinOrgNum,jdbcType=INTEGER}
</if>
<if
test=
"'email'.toString() == column.value"
>
#{item.email,jdbcType=VARCHAR}
</if>
<if
test=
"'is_h5_register'.toString() == column.value"
>
#{item.isH5Register,jdbcType=BIT}
</if>
<if
test=
"'firm'.toString() == column.value"
>
#{item.firm,jdbcType=VARCHAR}
</if>
<if
test=
"'duty_types_id'.toString() == column.value"
>
#{item.dutyTypesId,jdbcType=INTEGER}
</if>
<if
test=
"'duty_types_name'.toString() == column.value"
>
#{item.dutyTypesName,jdbcType=VARCHAR}
</if>
<if
test=
"'weight'.toString() == column.value"
>
#{item.weight,jdbcType=INTEGER}
</if>
<if
test=
"'height'.toString() == column.value"
>
#{item.height,jdbcType=INTEGER}
</if>
<if
test=
"'step_size'.toString() == column.value"
>
#{item.stepSize,jdbcType=INTEGER}
</if>
<if
test=
"'is_close_wx_sport'.toString() == column.value"
>
#{item.isCloseWxSport,jdbcType=BIT}
</if>
<if
test=
"'is_audit_administrator'.toString() == column.value"
>
#{item.isAuditAdministrator,jdbcType=BIT}
</if>
<if
test=
"'add_time'.toString() == column.value"
>
#{item.addTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'update_time'.toString() == column.value"
>
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
<if
test=
"'deleted'.toString() == column.value"
>
#{item.deleted,jdbcType=BIT}
</if>
</foreach>
)
</foreach>
on duplicate key update
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName} = values(${column.escapedColumnName})
</foreach>
</insert>
<insert
id=
"batchUpsert"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into wx_user
(id, username, `password`, gender, birthday, last_login_time, last_login_ip, user_level,
nickname, mobile, avatar, weixin_openid, `status`, scores, is_send_scores, is_gy,
gy_id, gy_product_name, school, card_id, wx_id, card_type_id, card_type_name, fans_num,
likes_num, journal_num, join_exercise_num, join_org_num, email, is_h5_register,
firm, duty_types_id, duty_types_name, weight, height, step_size, is_close_wx_sport,
is_audit_administrator, add_time, update_time, deleted)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.password,jdbcType=VARCHAR},
#{item.gender,jdbcType=TINYINT}, #{item.birthday,jdbcType=DATE}, #{item.lastLoginTime,jdbcType=TIMESTAMP},
#{item.lastLoginIp,jdbcType=VARCHAR}, #{item.userLevel,jdbcType=TINYINT}, #{item.nickname,jdbcType=VARCHAR},
#{item.mobile,jdbcType=VARCHAR}, #{item.avatar,jdbcType=VARCHAR}, #{item.weixinOpenid,jdbcType=VARCHAR},
#{item.status,jdbcType=TINYINT}, #{item.scores,jdbcType=INTEGER}, #{item.isSendScores,jdbcType=INTEGER},
#{item.isGy,jdbcType=INTEGER}, #{item.gyId,jdbcType=VARCHAR}, #{item.gyProductName,jdbcType=VARCHAR},
#{item.school,jdbcType=VARCHAR}, #{item.cardId,jdbcType=VARCHAR}, #{item.wxId,jdbcType=VARCHAR},
#{item.cardTypeId,jdbcType=INTEGER}, #{item.cardTypeName,jdbcType=VARCHAR}, #{item.fansNum,jdbcType=INTEGER},
#{item.likesNum,jdbcType=INTEGER}, #{item.journalNum,jdbcType=INTEGER}, #{item.joinExerciseNum,jdbcType=INTEGER},
#{item.joinOrgNum,jdbcType=INTEGER}, #{item.email,jdbcType=VARCHAR}, #{item.isH5Register,jdbcType=BIT},
#{item.firm,jdbcType=VARCHAR}, #{item.dutyTypesId,jdbcType=INTEGER}, #{item.dutyTypesName,jdbcType=VARCHAR},
#{item.weight,jdbcType=INTEGER}, #{item.height,jdbcType=INTEGER}, #{item.stepSize,jdbcType=INTEGER},
#{item.isCloseWxSport,jdbcType=BIT}, #{item.isAuditAdministrator,jdbcType=BIT},
#{item.addTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=BIT}
)
</foreach>
on duplicate key update
id = values(id),
username = values(username),
`password` = values(`password`),
gender = values(gender),
birthday = values(birthday),
last_login_time = values(last_login_time),
last_login_ip = values(last_login_ip),
user_level = values(user_level),
nickname = values(nickname),
mobile = values(mobile),
avatar = values(avatar),
weixin_openid = values(weixin_openid),
`status` = values(`status`),
scores = values(scores),
is_send_scores = values(is_send_scores),
is_gy = values(is_gy),
gy_id = values(gy_id),
gy_product_name = values(gy_product_name),
school = values(school),
card_id = values(card_id),
wx_id = values(wx_id),
card_type_id = values(card_type_id),
card_type_name = values(card_type_name),
fans_num = values(fans_num),
likes_num = values(likes_num),
journal_num = values(journal_num),
join_exercise_num = values(join_exercise_num),
join_org_num = values(join_org_num),
email = values(email),
is_h5_register = values(is_h5_register),
firm = values(firm),
duty_types_id = values(duty_types_id),
duty_types_name = values(duty_types_name),
weight = values(weight),
height = values(height),
step_size = values(step_size),
is_close_wx_sport = values(is_close_wx_sport),
is_audit_administrator = values(is_audit_administrator),
add_time = values(add_time),
update_time = values(update_time),
deleted = values(deleted)
</insert>
</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