Commit c7438bfe authored by Ryan Loong's avatar Ryan Loong

update mybatis插件

parent 8bf1f55e
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
<plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/> <plugin type="com.itfsw.mybatis.generator.plugins.ExampleEnhancedPlugin"/>
<!-- 数据Model属性对应Column获取插件 --> <!-- 数据Model属性对应Column获取插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/> <plugin type="com.itfsw.mybatis.generator.plugins.ModelColumnPlugin"/>
<!-- 逻辑删除插件 -->
<plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin"> <plugin type="com.itfsw.mybatis.generator.plugins.LogicalDeletePlugin">
<!-- 这里配置的是全局逻辑删除列和逻辑删除值,当然在table中配置的值会覆盖该全局配置 --> <!-- 这里配置的是全局逻辑删除列和逻辑删除值,当然在table中配置的值会覆盖该全局配置 -->
<!-- 逻辑删除列类型只能为数字、字符串或者布尔类型 --> <!-- 逻辑删除列类型只能为数字、字符串或者布尔类型 -->
...@@ -36,6 +35,43 @@ ...@@ -36,6 +35,43 @@
<property name="logicalUnDeleteValue" value="0"/> <property name="logicalUnDeleteValue" value="0"/>
</plugin> </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> <commentGenerator>
<property name="suppressDate" value="true"/> <property name="suppressDate" value="true"/>
<!--<property name="suppressAllComments" value="true"/>--> <!--<property name="suppressAllComments" value="true"/>-->
......
...@@ -44,7 +44,7 @@ public interface ClassInfoMapper { ...@@ -44,7 +44,7 @@ public interface ClassInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(ClassInfo record); int insertSelective(@Param("record") ClassInfo record, @Param("selective") ClassInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface ClassInfoMapper { ...@@ -108,7 +108,7 @@ public interface ClassInfoMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface ClassInfoMapper { ...@@ -124,7 +124,7 @@ public interface ClassInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(ClassInfo record); int updateByPrimaryKeySelective(@Param("record") ClassInfo record, @Param("selective") ClassInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface ClassInfoMapper { ...@@ -149,4 +149,68 @@ public interface ClassInfoMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -44,7 +44,7 @@ public interface CourseInitTestMapper { ...@@ -44,7 +44,7 @@ public interface CourseInitTestMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(CourseInitTest record); int insertSelective(@Param("record") CourseInitTest record, @Param("selective") CourseInitTest.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface CourseInitTestMapper { ...@@ -108,7 +108,7 @@ public interface CourseInitTestMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface CourseInitTestMapper { ...@@ -124,7 +124,7 @@ public interface CourseInitTestMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(CourseInitTest record); int updateByPrimaryKeySelective(@Param("record") CourseInitTest record, @Param("selective") CourseInitTest.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface CourseInitTestMapper { ...@@ -149,4 +149,68 @@ public interface CourseInitTestMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -44,7 +44,7 @@ public interface LessonInfoMapper { ...@@ -44,7 +44,7 @@ public interface LessonInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(LessonInfo record); int insertSelective(@Param("record") LessonInfo record, @Param("selective") LessonInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface LessonInfoMapper { ...@@ -108,7 +108,7 @@ public interface LessonInfoMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface LessonInfoMapper { ...@@ -124,7 +124,7 @@ public interface LessonInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(LessonInfo record); int updateByPrimaryKeySelective(@Param("record") LessonInfo record, @Param("selective") LessonInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface LessonInfoMapper { ...@@ -149,4 +149,68 @@ public interface LessonInfoMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -44,7 +44,7 @@ public interface StudentInfoMapper { ...@@ -44,7 +44,7 @@ public interface StudentInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(StudentInfo record); int insertSelective(@Param("record") StudentInfo record, @Param("selective") StudentInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface StudentInfoMapper { ...@@ -108,7 +108,7 @@ public interface StudentInfoMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface StudentInfoMapper { ...@@ -124,7 +124,7 @@ public interface StudentInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(StudentInfo record); int updateByPrimaryKeySelective(@Param("record") StudentInfo record, @Param("selective") StudentInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface StudentInfoMapper { ...@@ -149,4 +149,68 @@ public interface StudentInfoMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -44,7 +44,7 @@ public interface StudentPointInfoMapper { ...@@ -44,7 +44,7 @@ public interface StudentPointInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(StudentPointInfo record); int insertSelective(@Param("record") StudentPointInfo record, @Param("selective") StudentPointInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface StudentPointInfoMapper { ...@@ -108,7 +108,7 @@ public interface StudentPointInfoMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface StudentPointInfoMapper { ...@@ -124,7 +124,7 @@ public interface StudentPointInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(StudentPointInfo record); int updateByPrimaryKeySelective(@Param("record") StudentPointInfo record, @Param("selective") StudentPointInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface StudentPointInfoMapper { ...@@ -149,4 +149,68 @@ public interface StudentPointInfoMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -44,7 +44,7 @@ public interface UserLessonInfoMapper { ...@@ -44,7 +44,7 @@ public interface UserLessonInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(UserLessonInfo record); int insertSelective(@Param("record") UserLessonInfo record, @Param("selective") UserLessonInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface UserLessonInfoMapper { ...@@ -108,7 +108,7 @@ public interface UserLessonInfoMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface UserLessonInfoMapper { ...@@ -124,7 +124,7 @@ public interface UserLessonInfoMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(UserLessonInfo record); int updateByPrimaryKeySelective(@Param("record") UserLessonInfo record, @Param("selective") UserLessonInfo.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface UserLessonInfoMapper { ...@@ -149,4 +149,68 @@ public interface UserLessonInfoMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -44,7 +44,7 @@ public interface WxUserMapper { ...@@ -44,7 +44,7 @@ public interface WxUserMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int insertSelective(WxUser record); int insertSelective(@Param("record") WxUser record, @Param("selective") WxUser.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -108,7 +108,7 @@ public interface WxUserMapper { ...@@ -108,7 +108,7 @@ public interface WxUserMapper {
* *
* @mbg.generated * @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. * This method was generated by MyBatis Generator.
...@@ -124,7 +124,7 @@ public interface WxUserMapper { ...@@ -124,7 +124,7 @@ public interface WxUserMapper {
* *
* @mbg.generated * @mbg.generated
*/ */
int updateByPrimaryKeySelective(WxUser record); int updateByPrimaryKeySelective(@Param("record") WxUser record, @Param("selective") WxUser.Column ... selective);
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -149,4 +149,68 @@ public interface WxUserMapper { ...@@ -149,4 +149,68 @@ public interface WxUserMapper {
* @mbg.generated * @mbg.generated
*/ */
int logicalDeleteByPrimaryKey(Integer id); 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
...@@ -262,6 +262,117 @@ public class ClassInfo { ...@@ -262,6 +262,117 @@ public class ClassInfo {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table class_info * This enum corresponds to the database table class_info
......
...@@ -478,6 +478,195 @@ public class CourseInitTest { ...@@ -478,6 +478,195 @@ public class CourseInitTest {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table course_init_test * This enum corresponds to the database table course_init_test
......
...@@ -910,6 +910,351 @@ public class LessonInfo { ...@@ -910,6 +910,351 @@ public class LessonInfo {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table lesson_info * This enum corresponds to the database table lesson_info
......
...@@ -406,6 +406,169 @@ public class StudentInfo { ...@@ -406,6 +406,169 @@ public class StudentInfo {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table student_info * This enum corresponds to the database table student_info
......
...@@ -370,6 +370,156 @@ public class StudentPointInfo { ...@@ -370,6 +370,156 @@ public class StudentPointInfo {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table student_point_info * This enum corresponds to the database table student_point_info
......
...@@ -370,6 +370,156 @@ public class UserLessonInfo { ...@@ -370,6 +370,156 @@ public class UserLessonInfo {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table user_lesson_info * This enum corresponds to the database table user_lesson_info
......
...@@ -1559,6 +1559,585 @@ public class WxUser { ...@@ -1559,6 +1559,585 @@ public class WxUser {
return result; 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 was generated by MyBatis Generator.
* This enum corresponds to the database table wx_user * This enum corresponds to the database table wx_user
......
...@@ -209,43 +209,63 @@ ...@@ -209,43 +209,63 @@
values (#{className,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, values (#{className,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT}) #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.ClassInfo"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into class_info insert into class_info
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="className != null"> <when test="selective != null and selective.length &gt; 0">
class_name, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="addTime != null"> </foreach>
add_time, </when>
</if> <otherwise>
<if test="updateTime != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
update_time, <if test="record.className != null">
</if> class_name,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="className != null"> update_time,
#{className,jdbcType=VARCHAR}, </if>
</if> <if test="record.deleted != null">
<if test="addTime != null"> deleted,
#{addTime,jdbcType=TIMESTAMP}, </if>
</if> </trim>
<if test="updateTime != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{updateTime,jdbcType=TIMESTAMP}, </otherwise>
</if> </choose>
<if test="deleted != null"> values
#{deleted,jdbcType=BIT}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.ClassInfoExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.ClassInfoExample" resultType="java.lang.Long">
<!-- <!--
...@@ -263,23 +283,33 @@ ...@@ -263,23 +283,33 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update class_info update class_info
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.className != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
class_name = #{record.className,jdbcType=VARCHAR}, </foreach>
</if> </when>
<if test="record.addTime != null"> <otherwise>
add_time = #{record.addTime,jdbcType=TIMESTAMP}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.updateTime != null"> id = #{record.id,jdbcType=INTEGER},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.className != null">
<if test="record.deleted != null"> class_name = #{record.className,jdbcType=VARCHAR},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -299,27 +329,37 @@ ...@@ -299,27 +329,37 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.ClassInfo"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update class_info update class_info
<set> SET
<if test="className != null"> <choose>
class_name = #{className,jdbcType=VARCHAR}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="addTime != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
add_time = #{addTime,jdbcType=TIMESTAMP}, </foreach>
</if> </when>
<if test="updateTime != null"> <otherwise>
update_time = #{updateTime,jdbcType=TIMESTAMP}, <trim suffixOverrides=",">
</if> <if test="record.className != null">
<if test="deleted != null"> class_name = #{record.className,jdbcType=VARCHAR},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.ClassInfo"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.ClassInfo">
<!-- <!--
...@@ -392,4 +432,375 @@ ...@@ -392,4 +432,375 @@
update class_info set deleted = 1 update class_info set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
...@@ -220,79 +220,99 @@ ...@@ -220,79 +220,99 @@
#{optionBPoint,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{optionBPoint,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT}) #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.CourseInitTest"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into course_init_test insert into course_init_test
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="titleRank != null"> <when test="selective != null and selective.length &gt; 0">
title_rank, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="title != null"> </foreach>
title, </when>
</if> <otherwise>
<if test="topic != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
topic, <if test="record.titleRank != null">
</if> title_rank,
<if test="optionA != null"> </if>
option_A, <if test="record.title != null">
</if> title,
<if test="optionAPoint != null"> </if>
option_A_point, <if test="record.topic != null">
</if> topic,
<if test="optionB != null"> </if>
option_B, <if test="record.optionA != null">
</if> option_A,
<if test="optionBPoint != null"> </if>
option_B_point, <if test="record.optionAPoint != null">
</if> option_A_point,
<if test="addTime != null"> </if>
add_time, <if test="record.optionB != null">
</if> option_B,
<if test="updateTime != null"> </if>
update_time, <if test="record.optionBPoint != null">
</if> option_B_point,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="titleRank != null"> update_time,
#{titleRank,jdbcType=INTEGER}, </if>
</if> <if test="record.deleted != null">
<if test="title != null"> deleted,
#{title,jdbcType=VARCHAR}, </if>
</if> </trim>
<if test="topic != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{topic,jdbcType=VARCHAR}, </otherwise>
</if> </choose>
<if test="optionA != null"> values
#{optionA,jdbcType=VARCHAR}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
<if test="optionAPoint != null"> <foreach close=")" collection="selective" item="column" open="(" separator=",">
#{optionAPoint,jdbcType=INTEGER}, #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</if> </foreach>
<if test="optionB != null"> </when>
#{optionB,jdbcType=VARCHAR}, <otherwise>
</if> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="optionBPoint != null"> <if test="record.titleRank != null">
#{optionBPoint,jdbcType=INTEGER}, #{record.titleRank,jdbcType=INTEGER},
</if> </if>
<if test="addTime != null"> <if test="record.title != null">
#{addTime,jdbcType=TIMESTAMP}, #{record.title,jdbcType=VARCHAR},
</if> </if>
<if test="updateTime != null"> <if test="record.topic != null">
#{updateTime,jdbcType=TIMESTAMP}, #{record.topic,jdbcType=VARCHAR},
</if> </if>
<if test="deleted != null"> <if test="record.optionA != null">
#{deleted,jdbcType=BIT}, #{record.optionA,jdbcType=VARCHAR},
</if> </if>
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.CourseInitTestExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.CourseInitTestExample" resultType="java.lang.Long">
<!-- <!--
...@@ -310,41 +330,51 @@ ...@@ -310,41 +330,51 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update course_init_test update course_init_test
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.titleRank != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
title_rank = #{record.titleRank,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="record.title != null"> <otherwise>
title = #{record.title,jdbcType=VARCHAR}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.topic != null"> id = #{record.id,jdbcType=INTEGER},
topic = #{record.topic,jdbcType=VARCHAR}, </if>
</if> <if test="record.titleRank != null">
<if test="record.optionA != null"> title_rank = #{record.titleRank,jdbcType=INTEGER},
option_A = #{record.optionA,jdbcType=VARCHAR}, </if>
</if> <if test="record.title != null">
<if test="record.optionAPoint != null"> title = #{record.title,jdbcType=VARCHAR},
option_A_point = #{record.optionAPoint,jdbcType=INTEGER}, </if>
</if> <if test="record.topic != null">
<if test="record.optionB != null"> topic = #{record.topic,jdbcType=VARCHAR},
option_B = #{record.optionB,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionA != null">
<if test="record.optionBPoint != null"> option_A = #{record.optionA,jdbcType=VARCHAR},
option_B_point = #{record.optionBPoint,jdbcType=INTEGER}, </if>
</if> <if test="record.optionAPoint != null">
<if test="record.addTime != null"> option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.optionB != null">
<if test="record.updateTime != null"> option_B = #{record.optionB,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.optionBPoint != null">
<if test="record.deleted != null"> option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -370,45 +400,55 @@ ...@@ -370,45 +400,55 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.CourseInitTest"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update course_init_test update course_init_test
<set> SET
<if test="titleRank != null"> <choose>
title_rank = #{titleRank,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="title != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
title = #{title,jdbcType=VARCHAR}, </foreach>
</if> </when>
<if test="topic != null"> <otherwise>
topic = #{topic,jdbcType=VARCHAR}, <trim suffixOverrides=",">
</if> <if test="record.titleRank != null">
<if test="optionA != null"> title_rank = #{record.titleRank,jdbcType=INTEGER},
option_A = #{optionA,jdbcType=VARCHAR}, </if>
</if> <if test="record.title != null">
<if test="optionAPoint != null"> title = #{record.title,jdbcType=VARCHAR},
option_A_point = #{optionAPoint,jdbcType=INTEGER}, </if>
</if> <if test="record.topic != null">
<if test="optionB != null"> topic = #{record.topic,jdbcType=VARCHAR},
option_B = #{optionB,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionA != null">
<if test="optionBPoint != null"> option_A = #{record.optionA,jdbcType=VARCHAR},
option_B_point = #{optionBPoint,jdbcType=INTEGER}, </if>
</if> <if test="record.optionAPoint != null">
<if test="addTime != null"> option_A_point = #{record.optionAPoint,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.optionB != null">
<if test="updateTime != null"> option_B = #{record.optionB,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.optionBPoint != null">
<if test="deleted != null"> option_B_point = #{record.optionBPoint,jdbcType=INTEGER},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.CourseInitTest"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.CourseInitTest">
<!-- <!--
...@@ -487,4 +527,567 @@ ...@@ -487,4 +527,567 @@
update course_init_test set deleted = 1 update course_init_test set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
...@@ -241,151 +241,171 @@ ...@@ -241,151 +241,171 @@
#{explainC,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{explainC,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT}) #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.LessonInfo"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into lesson_info insert into lesson_info
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="chapters != null"> <when test="selective != null and selective.length &gt; 0">
chapters, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="chaptersName != null"> </foreach>
chapters_name, </when>
</if> <otherwise>
<if test="session != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
`session`, <if test="record.chapters != null">
</if> chapters,
<if test="sessionName != null"> </if>
session_name, <if test="record.chaptersName != null">
</if> chapters_name,
<if test="lessonContent != null"> </if>
lesson_content, <if test="record.session != null">
</if> `session`,
<if test="lessonOrder != null"> </if>
lesson_order, <if test="record.sessionName != null">
</if> session_name,
<if test="cover != null"> </if>
cover, <if test="record.lessonContent != null">
</if> lesson_content,
<if test="vidUrl != null"> </if>
vid_url, <if test="record.lessonOrder != null">
</if> lesson_order,
<if test="video != null"> </if>
video, <if test="record.cover != null">
</if> cover,
<if test="topic != null"> </if>
topic, <if test="record.vidUrl != null">
</if> vid_url,
<if test="optionA != null"> </if>
option_A, <if test="record.video != null">
</if> video,
<if test="optionAPoint != null"> </if>
option_A_point, <if test="record.topic != null">
</if> topic,
<if test="explainA != null"> </if>
explain_A, <if test="record.optionA != null">
</if> option_A,
<if test="optionB != null"> </if>
option_B, <if test="record.optionAPoint != null">
</if> option_A_point,
<if test="optionBPoint != null"> </if>
option_B_point, <if test="record.explainA != null">
</if> explain_A,
<if test="explainB != null"> </if>
explain_B, <if test="record.optionB != null">
</if> option_B,
<if test="optionC != null"> </if>
option_C, <if test="record.optionBPoint != null">
</if> option_B_point,
<if test="optionCPoint != null"> </if>
option_C_point, <if test="record.explainB != null">
</if> explain_B,
<if test="explainC != null"> </if>
explain_C, <if test="record.optionC != null">
</if> option_C,
<if test="addTime != null"> </if>
add_time, <if test="record.optionCPoint != null">
</if> option_C_point,
<if test="updateTime != null"> </if>
update_time, <if test="record.explainC != null">
</if> explain_C,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="chapters != null"> update_time,
#{chapters,jdbcType=INTEGER}, </if>
</if> <if test="record.deleted != null">
<if test="chaptersName != null"> deleted,
#{chaptersName,jdbcType=VARCHAR}, </if>
</if> </trim>
<if test="session != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{session,jdbcType=INTEGER}, </otherwise>
</if> </choose>
<if test="sessionName != null"> values
#{sessionName,jdbcType=VARCHAR}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
<if test="lessonContent != null"> <foreach close=")" collection="selective" item="column" open="(" separator=",">
#{lessonContent,jdbcType=VARCHAR}, #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</if> </foreach>
<if test="lessonOrder != null"> </when>
#{lessonOrder,jdbcType=INTEGER}, <otherwise>
</if> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cover != null"> <if test="record.chapters != null">
#{cover,jdbcType=VARCHAR}, #{record.chapters,jdbcType=INTEGER},
</if> </if>
<if test="vidUrl != null"> <if test="record.chaptersName != null">
#{vidUrl,jdbcType=VARCHAR}, #{record.chaptersName,jdbcType=VARCHAR},
</if> </if>
<if test="video != null"> <if test="record.session != null">
#{video,jdbcType=VARCHAR}, #{record.session,jdbcType=INTEGER},
</if> </if>
<if test="topic != null"> <if test="record.sessionName != null">
#{topic,jdbcType=VARCHAR}, #{record.sessionName,jdbcType=VARCHAR},
</if> </if>
<if test="optionA != null"> <if test="record.lessonContent != null">
#{optionA,jdbcType=VARCHAR}, #{record.lessonContent,jdbcType=VARCHAR},
</if> </if>
<if test="optionAPoint != null"> <if test="record.lessonOrder != null">
#{optionAPoint,jdbcType=REAL}, #{record.lessonOrder,jdbcType=INTEGER},
</if> </if>
<if test="explainA != null"> <if test="record.cover != null">
#{explainA,jdbcType=VARCHAR}, #{record.cover,jdbcType=VARCHAR},
</if> </if>
<if test="optionB != null"> <if test="record.vidUrl != null">
#{optionB,jdbcType=VARCHAR}, #{record.vidUrl,jdbcType=VARCHAR},
</if> </if>
<if test="optionBPoint != null"> <if test="record.video != null">
#{optionBPoint,jdbcType=REAL}, #{record.video,jdbcType=VARCHAR},
</if> </if>
<if test="explainB != null"> <if test="record.topic != null">
#{explainB,jdbcType=VARCHAR}, #{record.topic,jdbcType=VARCHAR},
</if> </if>
<if test="optionC != null"> <if test="record.optionA != null">
#{optionC,jdbcType=VARCHAR}, #{record.optionA,jdbcType=VARCHAR},
</if> </if>
<if test="optionCPoint != null"> <if test="record.optionAPoint != null">
#{optionCPoint,jdbcType=REAL}, #{record.optionAPoint,jdbcType=REAL},
</if> </if>
<if test="explainC != null"> <if test="record.explainA != null">
#{explainC,jdbcType=VARCHAR}, #{record.explainA,jdbcType=VARCHAR},
</if> </if>
<if test="addTime != null"> <if test="record.optionB != null">
#{addTime,jdbcType=TIMESTAMP}, #{record.optionB,jdbcType=VARCHAR},
</if> </if>
<if test="updateTime != null"> <if test="record.optionBPoint != null">
#{updateTime,jdbcType=TIMESTAMP}, #{record.optionBPoint,jdbcType=REAL},
</if> </if>
<if test="deleted != null"> <if test="record.explainB != null">
#{deleted,jdbcType=BIT}, #{record.explainB,jdbcType=VARCHAR},
</if> </if>
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.LessonInfoExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.LessonInfoExample" resultType="java.lang.Long">
<!-- <!--
...@@ -403,77 +423,87 @@ ...@@ -403,77 +423,87 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update lesson_info update lesson_info
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.chapters != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
chapters = #{record.chapters,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="record.chaptersName != null"> <otherwise>
chapters_name = #{record.chaptersName,jdbcType=VARCHAR}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.session != null"> id = #{record.id,jdbcType=INTEGER},
`session` = #{record.session,jdbcType=INTEGER}, </if>
</if> <if test="record.chapters != null">
<if test="record.sessionName != null"> chapters = #{record.chapters,jdbcType=INTEGER},
session_name = #{record.sessionName,jdbcType=VARCHAR}, </if>
</if> <if test="record.chaptersName != null">
<if test="record.lessonContent != null"> chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
lesson_content = #{record.lessonContent,jdbcType=VARCHAR}, </if>
</if> <if test="record.session != null">
<if test="record.lessonOrder != null"> `session` = #{record.session,jdbcType=INTEGER},
lesson_order = #{record.lessonOrder,jdbcType=INTEGER}, </if>
</if> <if test="record.sessionName != null">
<if test="record.cover != null"> session_name = #{record.sessionName,jdbcType=VARCHAR},
cover = #{record.cover,jdbcType=VARCHAR}, </if>
</if> <if test="record.lessonContent != null">
<if test="record.vidUrl != null"> lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
vid_url = #{record.vidUrl,jdbcType=VARCHAR}, </if>
</if> <if test="record.lessonOrder != null">
<if test="record.video != null"> lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
video = #{record.video,jdbcType=VARCHAR}, </if>
</if> <if test="record.cover != null">
<if test="record.topic != null"> cover = #{record.cover,jdbcType=VARCHAR},
topic = #{record.topic,jdbcType=VARCHAR}, </if>
</if> <if test="record.vidUrl != null">
<if test="record.optionA != null"> vid_url = #{record.vidUrl,jdbcType=VARCHAR},
option_A = #{record.optionA,jdbcType=VARCHAR}, </if>
</if> <if test="record.video != null">
<if test="record.optionAPoint != null"> video = #{record.video,jdbcType=VARCHAR},
option_A_point = #{record.optionAPoint,jdbcType=REAL}, </if>
</if> <if test="record.topic != null">
<if test="record.explainA != null"> topic = #{record.topic,jdbcType=VARCHAR},
explain_A = #{record.explainA,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionA != null">
<if test="record.optionB != null"> option_A = #{record.optionA,jdbcType=VARCHAR},
option_B = #{record.optionB,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionAPoint != null">
<if test="record.optionBPoint != null"> option_A_point = #{record.optionAPoint,jdbcType=REAL},
option_B_point = #{record.optionBPoint,jdbcType=REAL}, </if>
</if> <if test="record.explainA != null">
<if test="record.explainB != null"> explain_A = #{record.explainA,jdbcType=VARCHAR},
explain_B = #{record.explainB,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionB != null">
<if test="record.optionC != null"> option_B = #{record.optionB,jdbcType=VARCHAR},
option_C = #{record.optionC,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionBPoint != null">
<if test="record.optionCPoint != null"> option_B_point = #{record.optionBPoint,jdbcType=REAL},
option_C_point = #{record.optionCPoint,jdbcType=REAL}, </if>
</if> <if test="record.explainB != null">
<if test="record.explainC != null"> explain_B = #{record.explainB,jdbcType=VARCHAR},
explain_C = #{record.explainC,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionC != null">
<if test="record.addTime != null"> option_C = #{record.optionC,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.optionCPoint != null">
<if test="record.updateTime != null"> option_C_point = #{record.optionCPoint,jdbcType=REAL},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.explainC != null">
<if test="record.deleted != null"> explain_C = #{record.explainC,jdbcType=VARCHAR},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -511,81 +541,91 @@ ...@@ -511,81 +541,91 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.LessonInfo"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update lesson_info update lesson_info
<set> SET
<if test="chapters != null"> <choose>
chapters = #{chapters,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="chaptersName != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
chapters_name = #{chaptersName,jdbcType=VARCHAR}, </foreach>
</if> </when>
<if test="session != null"> <otherwise>
`session` = #{session,jdbcType=INTEGER}, <trim suffixOverrides=",">
</if> <if test="record.chapters != null">
<if test="sessionName != null"> chapters = #{record.chapters,jdbcType=INTEGER},
session_name = #{sessionName,jdbcType=VARCHAR}, </if>
</if> <if test="record.chaptersName != null">
<if test="lessonContent != null"> chapters_name = #{record.chaptersName,jdbcType=VARCHAR},
lesson_content = #{lessonContent,jdbcType=VARCHAR}, </if>
</if> <if test="record.session != null">
<if test="lessonOrder != null"> `session` = #{record.session,jdbcType=INTEGER},
lesson_order = #{lessonOrder,jdbcType=INTEGER}, </if>
</if> <if test="record.sessionName != null">
<if test="cover != null"> session_name = #{record.sessionName,jdbcType=VARCHAR},
cover = #{cover,jdbcType=VARCHAR}, </if>
</if> <if test="record.lessonContent != null">
<if test="vidUrl != null"> lesson_content = #{record.lessonContent,jdbcType=VARCHAR},
vid_url = #{vidUrl,jdbcType=VARCHAR}, </if>
</if> <if test="record.lessonOrder != null">
<if test="video != null"> lesson_order = #{record.lessonOrder,jdbcType=INTEGER},
video = #{video,jdbcType=VARCHAR}, </if>
</if> <if test="record.cover != null">
<if test="topic != null"> cover = #{record.cover,jdbcType=VARCHAR},
topic = #{topic,jdbcType=VARCHAR}, </if>
</if> <if test="record.vidUrl != null">
<if test="optionA != null"> vid_url = #{record.vidUrl,jdbcType=VARCHAR},
option_A = #{optionA,jdbcType=VARCHAR}, </if>
</if> <if test="record.video != null">
<if test="optionAPoint != null"> video = #{record.video,jdbcType=VARCHAR},
option_A_point = #{optionAPoint,jdbcType=REAL}, </if>
</if> <if test="record.topic != null">
<if test="explainA != null"> topic = #{record.topic,jdbcType=VARCHAR},
explain_A = #{explainA,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionA != null">
<if test="optionB != null"> option_A = #{record.optionA,jdbcType=VARCHAR},
option_B = #{optionB,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionAPoint != null">
<if test="optionBPoint != null"> option_A_point = #{record.optionAPoint,jdbcType=REAL},
option_B_point = #{optionBPoint,jdbcType=REAL}, </if>
</if> <if test="record.explainA != null">
<if test="explainB != null"> explain_A = #{record.explainA,jdbcType=VARCHAR},
explain_B = #{explainB,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionB != null">
<if test="optionC != null"> option_B = #{record.optionB,jdbcType=VARCHAR},
option_C = #{optionC,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionBPoint != null">
<if test="optionCPoint != null"> option_B_point = #{record.optionBPoint,jdbcType=REAL},
option_C_point = #{optionCPoint,jdbcType=REAL}, </if>
</if> <if test="record.explainB != null">
<if test="explainC != null"> explain_B = #{record.explainB,jdbcType=VARCHAR},
explain_C = #{explainC,jdbcType=VARCHAR}, </if>
</if> <if test="record.optionC != null">
<if test="addTime != null"> option_C = #{record.optionC,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.optionCPoint != null">
<if test="updateTime != null"> option_C_point = #{record.optionCPoint,jdbcType=REAL},
update_time = #{updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.explainC != null">
<if test="deleted != null"> explain_C = #{record.explainC,jdbcType=VARCHAR},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.LessonInfo"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.LessonInfo">
<!-- <!--
...@@ -676,4 +716,949 @@ ...@@ -676,4 +716,949 @@
update lesson_info set deleted = 1 update lesson_info set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
...@@ -216,67 +216,87 @@ ...@@ -216,67 +216,87 @@
#{head,jdbcType=VARCHAR}, #{callTimes,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{head,jdbcType=VARCHAR}, #{callTimes,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}) #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.StudentInfo"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into student_info insert into student_info
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="studentUniqueId != null"> <when test="selective != null and selective.length &gt; 0">
student_unique_id, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="classId != null"> </foreach>
class_id, </when>
</if> <otherwise>
<if test="name != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
`name`, <if test="record.studentUniqueId != null">
</if> student_unique_id,
<if test="head != null"> </if>
head, <if test="record.classId != null">
</if> class_id,
<if test="callTimes != null"> </if>
call_times, <if test="record.name != null">
</if> `name`,
<if test="addTime != null"> </if>
add_time, <if test="record.head != null">
</if> head,
<if test="updateTime != null"> </if>
update_time, <if test="record.callTimes != null">
</if> call_times,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="studentUniqueId != null"> update_time,
#{studentUniqueId,jdbcType=VARCHAR}, </if>
</if> <if test="record.deleted != null">
<if test="classId != null"> deleted,
#{classId,jdbcType=INTEGER}, </if>
</if> </trim>
<if test="name != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{name,jdbcType=VARCHAR}, </otherwise>
</if> </choose>
<if test="head != null"> values
#{head,jdbcType=VARCHAR}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
<if test="callTimes != null"> <foreach close=")" collection="selective" item="column" open="(" separator=",">
#{callTimes,jdbcType=INTEGER}, #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</if> </foreach>
<if test="addTime != null"> </when>
#{addTime,jdbcType=TIMESTAMP}, <otherwise>
</if> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="updateTime != null"> <if test="record.studentUniqueId != null">
#{updateTime,jdbcType=TIMESTAMP}, #{record.studentUniqueId,jdbcType=VARCHAR},
</if> </if>
<if test="deleted != null"> <if test="record.classId != null">
#{deleted,jdbcType=BIT}, #{record.classId,jdbcType=INTEGER},
</if> </if>
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.StudentInfoExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.StudentInfoExample" resultType="java.lang.Long">
<!-- <!--
...@@ -294,35 +314,45 @@ ...@@ -294,35 +314,45 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update student_info update student_info
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.studentUniqueId != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR}, </foreach>
</if> </when>
<if test="record.classId != null"> <otherwise>
class_id = #{record.classId,jdbcType=INTEGER}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.name != null"> id = #{record.id,jdbcType=INTEGER},
`name` = #{record.name,jdbcType=VARCHAR}, </if>
</if> <if test="record.studentUniqueId != null">
<if test="record.head != null"> student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
head = #{record.head,jdbcType=VARCHAR}, </if>
</if> <if test="record.classId != null">
<if test="record.callTimes != null"> class_id = #{record.classId,jdbcType=INTEGER},
call_times = #{record.callTimes,jdbcType=INTEGER}, </if>
</if> <if test="record.name != null">
<if test="record.addTime != null"> `name` = #{record.name,jdbcType=VARCHAR},
add_time = #{record.addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.head != null">
<if test="record.updateTime != null"> head = #{record.head,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.callTimes != null">
<if test="record.deleted != null"> call_times = #{record.callTimes,jdbcType=INTEGER},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -346,39 +376,49 @@ ...@@ -346,39 +376,49 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.StudentInfo"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update student_info update student_info
<set> SET
<if test="studentUniqueId != null"> <choose>
student_unique_id = #{studentUniqueId,jdbcType=VARCHAR}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="classId != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
class_id = #{classId,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="name != null"> <otherwise>
`name` = #{name,jdbcType=VARCHAR}, <trim suffixOverrides=",">
</if> <if test="record.studentUniqueId != null">
<if test="head != null"> student_unique_id = #{record.studentUniqueId,jdbcType=VARCHAR},
head = #{head,jdbcType=VARCHAR}, </if>
</if> <if test="record.classId != null">
<if test="callTimes != null"> class_id = #{record.classId,jdbcType=INTEGER},
call_times = #{callTimes,jdbcType=INTEGER}, </if>
</if> <if test="record.name != null">
<if test="addTime != null"> `name` = #{record.name,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.head != null">
<if test="updateTime != null"> head = #{record.head,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.callTimes != null">
<if test="deleted != null"> call_times = #{record.callTimes,jdbcType=INTEGER},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.StudentInfo"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.StudentInfo">
<!-- <!--
...@@ -455,4 +495,504 @@ ...@@ -455,4 +495,504 @@
update student_info set deleted = 1 update student_info set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
...@@ -214,61 +214,81 @@ ...@@ -214,61 +214,81 @@
#{recordTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{recordTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT}) #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfo"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into student_point_info insert into student_point_info
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="studentId != null"> <when test="selective != null and selective.length &gt; 0">
student_id, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="classId != null"> </foreach>
class_id, </when>
</if> <otherwise>
<if test="point != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
point, <if test="record.studentId != null">
</if> student_id,
<if test="recordTime != null"> </if>
record_time, <if test="record.classId != null">
</if> class_id,
<if test="addTime != null"> </if>
add_time, <if test="record.point != null">
</if> point,
<if test="updateTime != null"> </if>
update_time, <if test="record.recordTime != null">
</if> record_time,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="studentId != null"> update_time,
#{studentId,jdbcType=INTEGER}, </if>
</if> <if test="record.deleted != null">
<if test="classId != null"> deleted,
#{classId,jdbcType=INTEGER}, </if>
</if> </trim>
<if test="point != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{point,jdbcType=INTEGER}, </otherwise>
</if> </choose>
<if test="recordTime != null"> values
#{recordTime,jdbcType=TIMESTAMP}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
<if test="addTime != null"> <foreach close=")" collection="selective" item="column" open="(" separator=",">
#{addTime,jdbcType=TIMESTAMP}, #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</if> </foreach>
<if test="updateTime != null"> </when>
#{updateTime,jdbcType=TIMESTAMP}, <otherwise>
</if> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deleted != null"> <if test="record.studentId != null">
#{deleted,jdbcType=BIT}, #{record.studentId,jdbcType=INTEGER},
</if> </if>
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfoExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfoExample" resultType="java.lang.Long">
<!-- <!--
...@@ -286,32 +306,42 @@ ...@@ -286,32 +306,42 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update student_point_info update student_point_info
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.studentId != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
student_id = #{record.studentId,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="record.classId != null"> <otherwise>
class_id = #{record.classId,jdbcType=INTEGER}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.point != null"> id = #{record.id,jdbcType=INTEGER},
point = #{record.point,jdbcType=INTEGER}, </if>
</if> <if test="record.studentId != null">
<if test="record.recordTime != null"> student_id = #{record.studentId,jdbcType=INTEGER},
record_time = #{record.recordTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.classId != null">
<if test="record.addTime != null"> class_id = #{record.classId,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.point != null">
<if test="record.updateTime != null"> point = #{record.point,jdbcType=INTEGER},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.recordTime != null">
<if test="record.deleted != null"> record_time = #{record.recordTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -334,36 +364,46 @@ ...@@ -334,36 +364,46 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfo"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update student_point_info update student_point_info
<set> SET
<if test="studentId != null"> <choose>
student_id = #{studentId,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="classId != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
class_id = #{classId,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="point != null"> <otherwise>
point = #{point,jdbcType=INTEGER}, <trim suffixOverrides=",">
</if> <if test="record.studentId != null">
<if test="recordTime != null"> student_id = #{record.studentId,jdbcType=INTEGER},
record_time = #{recordTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.classId != null">
<if test="addTime != null"> class_id = #{record.classId,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.point != null">
<if test="updateTime != null"> point = #{record.point,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.recordTime != null">
<if test="deleted != null"> record_time = #{record.recordTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfo"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.StudentPointInfo">
<!-- <!--
...@@ -439,4 +479,470 @@ ...@@ -439,4 +479,470 @@
update student_point_info set deleted = 1 update student_point_info set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
...@@ -214,61 +214,81 @@ ...@@ -214,61 +214,81 @@
#{selectId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{selectId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT}) #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.UserLessonInfo"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into user_lesson_info insert into user_lesson_info
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="chaptersId != null"> <when test="selective != null and selective.length &gt; 0">
chapters_id, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="sessionId != null"> </foreach>
session_id, </when>
</if> <otherwise>
<if test="userId != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
user_id, <if test="record.chaptersId != null">
</if> chapters_id,
<if test="selectId != null"> </if>
select_id, <if test="record.sessionId != null">
</if> session_id,
<if test="addTime != null"> </if>
add_time, <if test="record.userId != null">
</if> user_id,
<if test="updateTime != null"> </if>
update_time, <if test="record.selectId != null">
</if> select_id,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="chaptersId != null"> update_time,
#{chaptersId,jdbcType=INTEGER}, </if>
</if> <if test="record.deleted != null">
<if test="sessionId != null"> deleted,
#{sessionId,jdbcType=INTEGER}, </if>
</if> </trim>
<if test="userId != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{userId,jdbcType=INTEGER}, </otherwise>
</if> </choose>
<if test="selectId != null"> values
#{selectId,jdbcType=INTEGER}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
<if test="addTime != null"> <foreach close=")" collection="selective" item="column" open="(" separator=",">
#{addTime,jdbcType=TIMESTAMP}, #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</if> </foreach>
<if test="updateTime != null"> </when>
#{updateTime,jdbcType=TIMESTAMP}, <otherwise>
</if> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deleted != null"> <if test="record.chaptersId != null">
#{deleted,jdbcType=BIT}, #{record.chaptersId,jdbcType=INTEGER},
</if> </if>
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.UserLessonInfoExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.UserLessonInfoExample" resultType="java.lang.Long">
<!-- <!--
...@@ -286,32 +306,42 @@ ...@@ -286,32 +306,42 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update user_lesson_info update user_lesson_info
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.chaptersId != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
chapters_id = #{record.chaptersId,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="record.sessionId != null"> <otherwise>
session_id = #{record.sessionId,jdbcType=INTEGER}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.userId != null"> id = #{record.id,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER}, </if>
</if> <if test="record.chaptersId != null">
<if test="record.selectId != null"> chapters_id = #{record.chaptersId,jdbcType=INTEGER},
select_id = #{record.selectId,jdbcType=INTEGER}, </if>
</if> <if test="record.sessionId != null">
<if test="record.addTime != null"> session_id = #{record.sessionId,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.userId != null">
<if test="record.updateTime != null"> user_id = #{record.userId,jdbcType=INTEGER},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.selectId != null">
<if test="record.deleted != null"> select_id = #{record.selectId,jdbcType=INTEGER},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -334,36 +364,46 @@ ...@@ -334,36 +364,46 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.UserLessonInfo"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update user_lesson_info update user_lesson_info
<set> SET
<if test="chaptersId != null"> <choose>
chapters_id = #{chaptersId,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="sessionId != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
session_id = #{sessionId,jdbcType=INTEGER}, </foreach>
</if> </when>
<if test="userId != null"> <otherwise>
user_id = #{userId,jdbcType=INTEGER}, <trim suffixOverrides=",">
</if> <if test="record.chaptersId != null">
<if test="selectId != null"> chapters_id = #{record.chaptersId,jdbcType=INTEGER},
select_id = #{selectId,jdbcType=INTEGER}, </if>
</if> <if test="record.sessionId != null">
<if test="addTime != null"> session_id = #{record.sessionId,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.userId != null">
<if test="updateTime != null"> user_id = #{record.userId,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.selectId != null">
<if test="deleted != null"> select_id = #{record.selectId,jdbcType=INTEGER},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.UserLessonInfo"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.UserLessonInfo">
<!-- <!--
...@@ -439,4 +479,470 @@ ...@@ -439,4 +479,470 @@
update user_lesson_info set deleted = 1 update user_lesson_info set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
...@@ -274,259 +274,279 @@ ...@@ -274,259 +274,279 @@
#{isAuditAdministrator,jdbcType=BIT}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isAuditAdministrator,jdbcType=BIT}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT}) #{deleted,jdbcType=BIT})
</insert> </insert>
<insert id="insertSelective" parameterType="cn.exploring.engine.server.db.domain.WxUser"> <insert id="insertSelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. 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() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into wx_user insert into wx_user
<trim prefix="(" suffix=")" suffixOverrides=","> <choose>
<if test="username != null"> <when test="selective != null and selective.length &gt; 0">
username, <foreach close=")" collection="selective" item="column" open="(" separator=",">
</if> ${column.escapedColumnName}
<if test="password != null"> </foreach>
`password`, </when>
</if> <otherwise>
<if test="gender != null"> <trim prefix="(" suffix=")" suffixOverrides=",">
gender, <if test="record.username != null">
</if> username,
<if test="birthday != null"> </if>
birthday, <if test="record.password != null">
</if> `password`,
<if test="lastLoginTime != null"> </if>
last_login_time, <if test="record.gender != null">
</if> gender,
<if test="lastLoginIp != null"> </if>
last_login_ip, <if test="record.birthday != null">
</if> birthday,
<if test="userLevel != null"> </if>
user_level, <if test="record.lastLoginTime != null">
</if> last_login_time,
<if test="nickname != null"> </if>
nickname, <if test="record.lastLoginIp != null">
</if> last_login_ip,
<if test="mobile != null"> </if>
mobile, <if test="record.userLevel != null">
</if> user_level,
<if test="avatar != null"> </if>
avatar, <if test="record.nickname != null">
</if> nickname,
<if test="weixinOpenid != null"> </if>
weixin_openid, <if test="record.mobile != null">
</if> mobile,
<if test="status != null"> </if>
`status`, <if test="record.avatar != null">
</if> avatar,
<if test="scores != null"> </if>
scores, <if test="record.weixinOpenid != null">
</if> weixin_openid,
<if test="isSendScores != null"> </if>
is_send_scores, <if test="record.status != null">
</if> `status`,
<if test="isGy != null"> </if>
is_gy, <if test="record.scores != null">
</if> scores,
<if test="gyId != null"> </if>
gy_id, <if test="record.isSendScores != null">
</if> is_send_scores,
<if test="gyProductName != null"> </if>
gy_product_name, <if test="record.isGy != null">
</if> is_gy,
<if test="school != null"> </if>
school, <if test="record.gyId != null">
</if> gy_id,
<if test="cardId != null"> </if>
card_id, <if test="record.gyProductName != null">
</if> gy_product_name,
<if test="wxId != null"> </if>
wx_id, <if test="record.school != null">
</if> school,
<if test="cardTypeId != null"> </if>
card_type_id, <if test="record.cardId != null">
</if> card_id,
<if test="cardTypeName != null"> </if>
card_type_name, <if test="record.wxId != null">
</if> wx_id,
<if test="fansNum != null"> </if>
fans_num, <if test="record.cardTypeId != null">
</if> card_type_id,
<if test="likesNum != null"> </if>
likes_num, <if test="record.cardTypeName != null">
</if> card_type_name,
<if test="journalNum != null"> </if>
journal_num, <if test="record.fansNum != null">
</if> fans_num,
<if test="joinExerciseNum != null"> </if>
join_exercise_num, <if test="record.likesNum != null">
</if> likes_num,
<if test="joinOrgNum != null"> </if>
join_org_num, <if test="record.journalNum != null">
</if> journal_num,
<if test="email != null"> </if>
email, <if test="record.joinExerciseNum != null">
</if> join_exercise_num,
<if test="isH5Register != null"> </if>
is_h5_register, <if test="record.joinOrgNum != null">
</if> join_org_num,
<if test="firm != null"> </if>
firm, <if test="record.email != null">
</if> email,
<if test="dutyTypesId != null"> </if>
duty_types_id, <if test="record.isH5Register != null">
</if> is_h5_register,
<if test="dutyTypesName != null"> </if>
duty_types_name, <if test="record.firm != null">
</if> firm,
<if test="weight != null"> </if>
weight, <if test="record.dutyTypesId != null">
</if> duty_types_id,
<if test="height != null"> </if>
height, <if test="record.dutyTypesName != null">
</if> duty_types_name,
<if test="stepSize != null"> </if>
step_size, <if test="record.weight != null">
</if> weight,
<if test="isCloseWxSport != null"> </if>
is_close_wx_sport, <if test="record.height != null">
</if> height,
<if test="isAuditAdministrator != null"> </if>
is_audit_administrator, <if test="record.stepSize != null">
</if> step_size,
<if test="addTime != null"> </if>
add_time, <if test="record.isCloseWxSport != null">
</if> is_close_wx_sport,
<if test="updateTime != null"> </if>
update_time, <if test="record.isAuditAdministrator != null">
</if> is_audit_administrator,
<if test="deleted != null"> </if>
deleted, <if test="record.addTime != null">
</if> add_time,
</trim> </if>
<trim prefix="values (" suffix=")" suffixOverrides=","> <if test="record.updateTime != null">
<if test="username != null"> update_time,
#{username,jdbcType=VARCHAR}, </if>
</if> <if test="record.deleted != null">
<if test="password != null"> deleted,
#{password,jdbcType=VARCHAR}, </if>
</if> </trim>
<if test="gender != null"> <trim prefix="(" suffix=")" suffixOverrides="," />
#{gender,jdbcType=TINYINT}, </otherwise>
</if> </choose>
<if test="birthday != null"> values
#{birthday,jdbcType=DATE}, <choose>
</if> <when test="selective != null and selective.length &gt; 0">
<if test="lastLoginTime != null"> <foreach close=")" collection="selective" item="column" open="(" separator=",">
#{lastLoginTime,jdbcType=TIMESTAMP}, #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
</if> </foreach>
<if test="lastLoginIp != null"> </when>
#{lastLoginIp,jdbcType=VARCHAR}, <otherwise>
</if> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userLevel != null"> <if test="record.username != null">
#{userLevel,jdbcType=TINYINT}, #{record.username,jdbcType=VARCHAR},
</if> </if>
<if test="nickname != null"> <if test="record.password != null">
#{nickname,jdbcType=VARCHAR}, #{record.password,jdbcType=VARCHAR},
</if> </if>
<if test="mobile != null"> <if test="record.gender != null">
#{mobile,jdbcType=VARCHAR}, #{record.gender,jdbcType=TINYINT},
</if> </if>
<if test="avatar != null"> <if test="record.birthday != null">
#{avatar,jdbcType=VARCHAR}, #{record.birthday,jdbcType=DATE},
</if> </if>
<if test="weixinOpenid != null"> <if test="record.lastLoginTime != null">
#{weixinOpenid,jdbcType=VARCHAR}, #{record.lastLoginTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="status != null"> <if test="record.lastLoginIp != null">
#{status,jdbcType=TINYINT}, #{record.lastLoginIp,jdbcType=VARCHAR},
</if> </if>
<if test="scores != null"> <if test="record.userLevel != null">
#{scores,jdbcType=INTEGER}, #{record.userLevel,jdbcType=TINYINT},
</if> </if>
<if test="isSendScores != null"> <if test="record.nickname != null">
#{isSendScores,jdbcType=INTEGER}, #{record.nickname,jdbcType=VARCHAR},
</if> </if>
<if test="isGy != null"> <if test="record.mobile != null">
#{isGy,jdbcType=INTEGER}, #{record.mobile,jdbcType=VARCHAR},
</if> </if>
<if test="gyId != null"> <if test="record.avatar != null">
#{gyId,jdbcType=VARCHAR}, #{record.avatar,jdbcType=VARCHAR},
</if> </if>
<if test="gyProductName != null"> <if test="record.weixinOpenid != null">
#{gyProductName,jdbcType=VARCHAR}, #{record.weixinOpenid,jdbcType=VARCHAR},
</if> </if>
<if test="school != null"> <if test="record.status != null">
#{school,jdbcType=VARCHAR}, #{record.status,jdbcType=TINYINT},
</if> </if>
<if test="cardId != null"> <if test="record.scores != null">
#{cardId,jdbcType=VARCHAR}, #{record.scores,jdbcType=INTEGER},
</if> </if>
<if test="wxId != null"> <if test="record.isSendScores != null">
#{wxId,jdbcType=VARCHAR}, #{record.isSendScores,jdbcType=INTEGER},
</if> </if>
<if test="cardTypeId != null"> <if test="record.isGy != null">
#{cardTypeId,jdbcType=INTEGER}, #{record.isGy,jdbcType=INTEGER},
</if> </if>
<if test="cardTypeName != null"> <if test="record.gyId != null">
#{cardTypeName,jdbcType=VARCHAR}, #{record.gyId,jdbcType=VARCHAR},
</if> </if>
<if test="fansNum != null"> <if test="record.gyProductName != null">
#{fansNum,jdbcType=INTEGER}, #{record.gyProductName,jdbcType=VARCHAR},
</if> </if>
<if test="likesNum != null"> <if test="record.school != null">
#{likesNum,jdbcType=INTEGER}, #{record.school,jdbcType=VARCHAR},
</if> </if>
<if test="journalNum != null"> <if test="record.cardId != null">
#{journalNum,jdbcType=INTEGER}, #{record.cardId,jdbcType=VARCHAR},
</if> </if>
<if test="joinExerciseNum != null"> <if test="record.wxId != null">
#{joinExerciseNum,jdbcType=INTEGER}, #{record.wxId,jdbcType=VARCHAR},
</if> </if>
<if test="joinOrgNum != null"> <if test="record.cardTypeId != null">
#{joinOrgNum,jdbcType=INTEGER}, #{record.cardTypeId,jdbcType=INTEGER},
</if> </if>
<if test="email != null"> <if test="record.cardTypeName != null">
#{email,jdbcType=VARCHAR}, #{record.cardTypeName,jdbcType=VARCHAR},
</if> </if>
<if test="isH5Register != null"> <if test="record.fansNum != null">
#{isH5Register,jdbcType=BIT}, #{record.fansNum,jdbcType=INTEGER},
</if> </if>
<if test="firm != null"> <if test="record.likesNum != null">
#{firm,jdbcType=VARCHAR}, #{record.likesNum,jdbcType=INTEGER},
</if> </if>
<if test="dutyTypesId != null"> <if test="record.journalNum != null">
#{dutyTypesId,jdbcType=INTEGER}, #{record.journalNum,jdbcType=INTEGER},
</if> </if>
<if test="dutyTypesName != null"> <if test="record.joinExerciseNum != null">
#{dutyTypesName,jdbcType=VARCHAR}, #{record.joinExerciseNum,jdbcType=INTEGER},
</if> </if>
<if test="weight != null"> <if test="record.joinOrgNum != null">
#{weight,jdbcType=INTEGER}, #{record.joinOrgNum,jdbcType=INTEGER},
</if> </if>
<if test="height != null"> <if test="record.email != null">
#{height,jdbcType=INTEGER}, #{record.email,jdbcType=VARCHAR},
</if> </if>
<if test="stepSize != null"> <if test="record.isH5Register != null">
#{stepSize,jdbcType=INTEGER}, #{record.isH5Register,jdbcType=BIT},
</if> </if>
<if test="isCloseWxSport != null"> <if test="record.firm != null">
#{isCloseWxSport,jdbcType=BIT}, #{record.firm,jdbcType=VARCHAR},
</if> </if>
<if test="isAuditAdministrator != null"> <if test="record.dutyTypesId != null">
#{isAuditAdministrator,jdbcType=BIT}, #{record.dutyTypesId,jdbcType=INTEGER},
</if> </if>
<if test="addTime != null"> <if test="record.dutyTypesName != null">
#{addTime,jdbcType=TIMESTAMP}, #{record.dutyTypesName,jdbcType=VARCHAR},
</if> </if>
<if test="updateTime != null"> <if test="record.weight != null">
#{updateTime,jdbcType=TIMESTAMP}, #{record.weight,jdbcType=INTEGER},
</if> </if>
<if test="deleted != null"> <if test="record.height != null">
#{deleted,jdbcType=BIT}, #{record.height,jdbcType=INTEGER},
</if> </if>
</trim> <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> </insert>
<select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.WxUserExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="cn.exploring.engine.server.db.domain.WxUserExample" resultType="java.lang.Long">
<!-- <!--
...@@ -544,131 +564,141 @@ ...@@ -544,131 +564,141 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update wx_user update wx_user
<set> SET
<if test="record.id != null"> <choose>
id = #{record.id,jdbcType=INTEGER}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="record.username != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
username = #{record.username,jdbcType=VARCHAR}, </foreach>
</if> </when>
<if test="record.password != null"> <otherwise>
`password` = #{record.password,jdbcType=VARCHAR}, <trim suffixOverrides=",">
</if> <if test="record.id != null">
<if test="record.gender != null"> id = #{record.id,jdbcType=INTEGER},
gender = #{record.gender,jdbcType=TINYINT}, </if>
</if> <if test="record.username != null">
<if test="record.birthday != null"> username = #{record.username,jdbcType=VARCHAR},
birthday = #{record.birthday,jdbcType=DATE}, </if>
</if> <if test="record.password != null">
<if test="record.lastLoginTime != null"> `password` = #{record.password,jdbcType=VARCHAR},
last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.gender != null">
<if test="record.lastLoginIp != null"> gender = #{record.gender,jdbcType=TINYINT},
last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR}, </if>
</if> <if test="record.birthday != null">
<if test="record.userLevel != null"> birthday = #{record.birthday,jdbcType=DATE},
user_level = #{record.userLevel,jdbcType=TINYINT}, </if>
</if> <if test="record.lastLoginTime != null">
<if test="record.nickname != null"> last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
nickname = #{record.nickname,jdbcType=VARCHAR}, </if>
</if> <if test="record.lastLoginIp != null">
<if test="record.mobile != null"> last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
mobile = #{record.mobile,jdbcType=VARCHAR}, </if>
</if> <if test="record.userLevel != null">
<if test="record.avatar != null"> user_level = #{record.userLevel,jdbcType=TINYINT},
avatar = #{record.avatar,jdbcType=VARCHAR}, </if>
</if> <if test="record.nickname != null">
<if test="record.weixinOpenid != null"> nickname = #{record.nickname,jdbcType=VARCHAR},
weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR}, </if>
</if> <if test="record.mobile != null">
<if test="record.status != null"> mobile = #{record.mobile,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT}, </if>
</if> <if test="record.avatar != null">
<if test="record.scores != null"> avatar = #{record.avatar,jdbcType=VARCHAR},
scores = #{record.scores,jdbcType=INTEGER}, </if>
</if> <if test="record.weixinOpenid != null">
<if test="record.isSendScores != null"> weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
is_send_scores = #{record.isSendScores,jdbcType=INTEGER}, </if>
</if> <if test="record.status != null">
<if test="record.isGy != null"> `status` = #{record.status,jdbcType=TINYINT},
is_gy = #{record.isGy,jdbcType=INTEGER}, </if>
</if> <if test="record.scores != null">
<if test="record.gyId != null"> scores = #{record.scores,jdbcType=INTEGER},
gy_id = #{record.gyId,jdbcType=VARCHAR}, </if>
</if> <if test="record.isSendScores != null">
<if test="record.gyProductName != null"> is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
gy_product_name = #{record.gyProductName,jdbcType=VARCHAR}, </if>
</if> <if test="record.isGy != null">
<if test="record.school != null"> is_gy = #{record.isGy,jdbcType=INTEGER},
school = #{record.school,jdbcType=VARCHAR}, </if>
</if> <if test="record.gyId != null">
<if test="record.cardId != null"> gy_id = #{record.gyId,jdbcType=VARCHAR},
card_id = #{record.cardId,jdbcType=VARCHAR}, </if>
</if> <if test="record.gyProductName != null">
<if test="record.wxId != null"> gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
wx_id = #{record.wxId,jdbcType=VARCHAR}, </if>
</if> <if test="record.school != null">
<if test="record.cardTypeId != null"> school = #{record.school,jdbcType=VARCHAR},
card_type_id = #{record.cardTypeId,jdbcType=INTEGER}, </if>
</if> <if test="record.cardId != null">
<if test="record.cardTypeName != null"> card_id = #{record.cardId,jdbcType=VARCHAR},
card_type_name = #{record.cardTypeName,jdbcType=VARCHAR}, </if>
</if> <if test="record.wxId != null">
<if test="record.fansNum != null"> wx_id = #{record.wxId,jdbcType=VARCHAR},
fans_num = #{record.fansNum,jdbcType=INTEGER}, </if>
</if> <if test="record.cardTypeId != null">
<if test="record.likesNum != null"> card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
likes_num = #{record.likesNum,jdbcType=INTEGER}, </if>
</if> <if test="record.cardTypeName != null">
<if test="record.journalNum != null"> card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
journal_num = #{record.journalNum,jdbcType=INTEGER}, </if>
</if> <if test="record.fansNum != null">
<if test="record.joinExerciseNum != null"> fans_num = #{record.fansNum,jdbcType=INTEGER},
join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER}, </if>
</if> <if test="record.likesNum != null">
<if test="record.joinOrgNum != null"> likes_num = #{record.likesNum,jdbcType=INTEGER},
join_org_num = #{record.joinOrgNum,jdbcType=INTEGER}, </if>
</if> <if test="record.journalNum != null">
<if test="record.email != null"> journal_num = #{record.journalNum,jdbcType=INTEGER},
email = #{record.email,jdbcType=VARCHAR}, </if>
</if> <if test="record.joinExerciseNum != null">
<if test="record.isH5Register != null"> join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
is_h5_register = #{record.isH5Register,jdbcType=BIT}, </if>
</if> <if test="record.joinOrgNum != null">
<if test="record.firm != null"> join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
firm = #{record.firm,jdbcType=VARCHAR}, </if>
</if> <if test="record.email != null">
<if test="record.dutyTypesId != null"> email = #{record.email,jdbcType=VARCHAR},
duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER}, </if>
</if> <if test="record.isH5Register != null">
<if test="record.dutyTypesName != null"> is_h5_register = #{record.isH5Register,jdbcType=BIT},
duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR}, </if>
</if> <if test="record.firm != null">
<if test="record.weight != null"> firm = #{record.firm,jdbcType=VARCHAR},
weight = #{record.weight,jdbcType=INTEGER}, </if>
</if> <if test="record.dutyTypesId != null">
<if test="record.height != null"> duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
height = #{record.height,jdbcType=INTEGER}, </if>
</if> <if test="record.dutyTypesName != null">
<if test="record.stepSize != null"> duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
step_size = #{record.stepSize,jdbcType=INTEGER}, </if>
</if> <if test="record.weight != null">
<if test="record.isCloseWxSport != null"> weight = #{record.weight,jdbcType=INTEGER},
is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT}, </if>
</if> <if test="record.height != null">
<if test="record.isAuditAdministrator != null"> height = #{record.height,jdbcType=INTEGER},
is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT}, </if>
</if> <if test="record.stepSize != null">
<if test="record.addTime != null"> step_size = #{record.stepSize,jdbcType=INTEGER},
add_time = #{record.addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.isCloseWxSport != null">
<if test="record.updateTime != null"> is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.isAuditAdministrator != null">
<if test="record.deleted != null"> is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
deleted = #{record.deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> 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"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -724,135 +754,145 @@ ...@@ -724,135 +754,145 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="cn.exploring.engine.server.db.domain.WxUser"> <update id="updateByPrimaryKeySelective" parameterType="map">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
update wx_user update wx_user
<set> SET
<if test="username != null"> <choose>
username = #{username,jdbcType=VARCHAR}, <when test="selective != null and selective.length &gt; 0">
</if> <foreach collection="selective" item="column" separator=",">
<if test="password != null"> ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
`password` = #{password,jdbcType=VARCHAR}, </foreach>
</if> </when>
<if test="gender != null"> <otherwise>
gender = #{gender,jdbcType=TINYINT}, <trim suffixOverrides=",">
</if> <if test="record.username != null">
<if test="birthday != null"> username = #{record.username,jdbcType=VARCHAR},
birthday = #{birthday,jdbcType=DATE}, </if>
</if> <if test="record.password != null">
<if test="lastLoginTime != null"> `password` = #{record.password,jdbcType=VARCHAR},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.gender != null">
<if test="lastLoginIp != null"> gender = #{record.gender,jdbcType=TINYINT},
last_login_ip = #{lastLoginIp,jdbcType=VARCHAR}, </if>
</if> <if test="record.birthday != null">
<if test="userLevel != null"> birthday = #{record.birthday,jdbcType=DATE},
user_level = #{userLevel,jdbcType=TINYINT}, </if>
</if> <if test="record.lastLoginTime != null">
<if test="nickname != null"> last_login_time = #{record.lastLoginTime,jdbcType=TIMESTAMP},
nickname = #{nickname,jdbcType=VARCHAR}, </if>
</if> <if test="record.lastLoginIp != null">
<if test="mobile != null"> last_login_ip = #{record.lastLoginIp,jdbcType=VARCHAR},
mobile = #{mobile,jdbcType=VARCHAR}, </if>
</if> <if test="record.userLevel != null">
<if test="avatar != null"> user_level = #{record.userLevel,jdbcType=TINYINT},
avatar = #{avatar,jdbcType=VARCHAR}, </if>
</if> <if test="record.nickname != null">
<if test="weixinOpenid != null"> nickname = #{record.nickname,jdbcType=VARCHAR},
weixin_openid = #{weixinOpenid,jdbcType=VARCHAR}, </if>
</if> <if test="record.mobile != null">
<if test="status != null"> mobile = #{record.mobile,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT}, </if>
</if> <if test="record.avatar != null">
<if test="scores != null"> avatar = #{record.avatar,jdbcType=VARCHAR},
scores = #{scores,jdbcType=INTEGER}, </if>
</if> <if test="record.weixinOpenid != null">
<if test="isSendScores != null"> weixin_openid = #{record.weixinOpenid,jdbcType=VARCHAR},
is_send_scores = #{isSendScores,jdbcType=INTEGER}, </if>
</if> <if test="record.status != null">
<if test="isGy != null"> `status` = #{record.status,jdbcType=TINYINT},
is_gy = #{isGy,jdbcType=INTEGER}, </if>
</if> <if test="record.scores != null">
<if test="gyId != null"> scores = #{record.scores,jdbcType=INTEGER},
gy_id = #{gyId,jdbcType=VARCHAR}, </if>
</if> <if test="record.isSendScores != null">
<if test="gyProductName != null"> is_send_scores = #{record.isSendScores,jdbcType=INTEGER},
gy_product_name = #{gyProductName,jdbcType=VARCHAR}, </if>
</if> <if test="record.isGy != null">
<if test="school != null"> is_gy = #{record.isGy,jdbcType=INTEGER},
school = #{school,jdbcType=VARCHAR}, </if>
</if> <if test="record.gyId != null">
<if test="cardId != null"> gy_id = #{record.gyId,jdbcType=VARCHAR},
card_id = #{cardId,jdbcType=VARCHAR}, </if>
</if> <if test="record.gyProductName != null">
<if test="wxId != null"> gy_product_name = #{record.gyProductName,jdbcType=VARCHAR},
wx_id = #{wxId,jdbcType=VARCHAR}, </if>
</if> <if test="record.school != null">
<if test="cardTypeId != null"> school = #{record.school,jdbcType=VARCHAR},
card_type_id = #{cardTypeId,jdbcType=INTEGER}, </if>
</if> <if test="record.cardId != null">
<if test="cardTypeName != null"> card_id = #{record.cardId,jdbcType=VARCHAR},
card_type_name = #{cardTypeName,jdbcType=VARCHAR}, </if>
</if> <if test="record.wxId != null">
<if test="fansNum != null"> wx_id = #{record.wxId,jdbcType=VARCHAR},
fans_num = #{fansNum,jdbcType=INTEGER}, </if>
</if> <if test="record.cardTypeId != null">
<if test="likesNum != null"> card_type_id = #{record.cardTypeId,jdbcType=INTEGER},
likes_num = #{likesNum,jdbcType=INTEGER}, </if>
</if> <if test="record.cardTypeName != null">
<if test="journalNum != null"> card_type_name = #{record.cardTypeName,jdbcType=VARCHAR},
journal_num = #{journalNum,jdbcType=INTEGER}, </if>
</if> <if test="record.fansNum != null">
<if test="joinExerciseNum != null"> fans_num = #{record.fansNum,jdbcType=INTEGER},
join_exercise_num = #{joinExerciseNum,jdbcType=INTEGER}, </if>
</if> <if test="record.likesNum != null">
<if test="joinOrgNum != null"> likes_num = #{record.likesNum,jdbcType=INTEGER},
join_org_num = #{joinOrgNum,jdbcType=INTEGER}, </if>
</if> <if test="record.journalNum != null">
<if test="email != null"> journal_num = #{record.journalNum,jdbcType=INTEGER},
email = #{email,jdbcType=VARCHAR}, </if>
</if> <if test="record.joinExerciseNum != null">
<if test="isH5Register != null"> join_exercise_num = #{record.joinExerciseNum,jdbcType=INTEGER},
is_h5_register = #{isH5Register,jdbcType=BIT}, </if>
</if> <if test="record.joinOrgNum != null">
<if test="firm != null"> join_org_num = #{record.joinOrgNum,jdbcType=INTEGER},
firm = #{firm,jdbcType=VARCHAR}, </if>
</if> <if test="record.email != null">
<if test="dutyTypesId != null"> email = #{record.email,jdbcType=VARCHAR},
duty_types_id = #{dutyTypesId,jdbcType=INTEGER}, </if>
</if> <if test="record.isH5Register != null">
<if test="dutyTypesName != null"> is_h5_register = #{record.isH5Register,jdbcType=BIT},
duty_types_name = #{dutyTypesName,jdbcType=VARCHAR}, </if>
</if> <if test="record.firm != null">
<if test="weight != null"> firm = #{record.firm,jdbcType=VARCHAR},
weight = #{weight,jdbcType=INTEGER}, </if>
</if> <if test="record.dutyTypesId != null">
<if test="height != null"> duty_types_id = #{record.dutyTypesId,jdbcType=INTEGER},
height = #{height,jdbcType=INTEGER}, </if>
</if> <if test="record.dutyTypesName != null">
<if test="stepSize != null"> duty_types_name = #{record.dutyTypesName,jdbcType=VARCHAR},
step_size = #{stepSize,jdbcType=INTEGER}, </if>
</if> <if test="record.weight != null">
<if test="isCloseWxSport != null"> weight = #{record.weight,jdbcType=INTEGER},
is_close_wx_sport = #{isCloseWxSport,jdbcType=BIT}, </if>
</if> <if test="record.height != null">
<if test="isAuditAdministrator != null"> height = #{record.height,jdbcType=INTEGER},
is_audit_administrator = #{isAuditAdministrator,jdbcType=BIT}, </if>
</if> <if test="record.stepSize != null">
<if test="addTime != null"> step_size = #{record.stepSize,jdbcType=INTEGER},
add_time = #{addTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.isCloseWxSport != null">
<if test="updateTime != null"> is_close_wx_sport = #{record.isCloseWxSport,jdbcType=BIT},
update_time = #{updateTime,jdbcType=TIMESTAMP}, </if>
</if> <if test="record.isAuditAdministrator != null">
<if test="deleted != null"> is_audit_administrator = #{record.isAuditAdministrator,jdbcType=BIT},
deleted = #{deleted,jdbcType=BIT}, </if>
</if> <if test="record.addTime != null">
</set> add_time = #{record.addTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER} </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>
<update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.WxUser"> <update id="updateByPrimaryKey" parameterType="cn.exploring.engine.server.db.domain.WxUser">
<!-- <!--
...@@ -961,4 +1001,1527 @@ ...@@ -961,4 +1001,1527 @@
update wx_user set deleted = 1 update wx_user set deleted = 1
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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 &gt; 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> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment