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
......
...@@ -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
......
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