Commit 236751cb authored by Mindfaker's avatar Mindfaker

init table

parent 215b5b68
......@@ -43,7 +43,7 @@
<!--数据库连接信息-->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://39.101.222.130:3306/emba_course?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;verifyServerCertificate=false&amp;useSSL=false"
connectionURL="jdbc:mysql://39.101.222.130:3306/class_work?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;verifyServerCertificate=false&amp;useSSL=false"
userId="root"
password="Engine123s56.."/>
......@@ -80,6 +80,14 @@
<table tableName="wx_user">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="class_info">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="student_point_info">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="student_info">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
</context>
</generatorConfiguration>
package cn.exploring.engine.server.db.dao;
import cn.exploring.engine.server.db.domain.ClassInfo;
import cn.exploring.engine.server.db.domain.ClassInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ClassInfoMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
long countByExample(ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int deleteByExample(ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int insert(ClassInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int insertSelective(ClassInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo selectOneByExample(ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo selectOneByExampleSelective(@Param("example") ClassInfoExample example, @Param("selective") ClassInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<ClassInfo> selectByExampleSelective(@Param("example") ClassInfoExample example, @Param("selective") ClassInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
List<ClassInfo> selectByExample(ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") ClassInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
ClassInfo selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ClassInfo selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") ClassInfo record, @Param("example") ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int updateByExample(@Param("record") ClassInfo record, @Param("example") ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(ClassInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
*/
int updateByPrimaryKey(ClassInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByExample(@Param("example") ClassInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table class_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Integer id);
}
\ No newline at end of file
package cn.exploring.engine.server.db.dao;
import cn.exploring.engine.server.db.domain.StudentInfo;
import cn.exploring.engine.server.db.domain.StudentInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StudentInfoMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
long countByExample(StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int deleteByExample(StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int insert(StudentInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int insertSelective(StudentInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo selectOneByExample(StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo selectOneByExampleSelective(@Param("example") StudentInfoExample example, @Param("selective") StudentInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<StudentInfo> selectByExampleSelective(@Param("example") StudentInfoExample example, @Param("selective") StudentInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
List<StudentInfo> selectByExample(StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") StudentInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
StudentInfo selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentInfo selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") StudentInfo record, @Param("example") StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int updateByExample(@Param("record") StudentInfo record, @Param("example") StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(StudentInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
*/
int updateByPrimaryKey(StudentInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByExample(@Param("example") StudentInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Integer id);
}
\ No newline at end of file
package cn.exploring.engine.server.db.dao;
import cn.exploring.engine.server.db.domain.StudentPointInfo;
import cn.exploring.engine.server.db.domain.StudentPointInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StudentPointInfoMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
long countByExample(StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int deleteByExample(StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int insert(StudentPointInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int insertSelective(StudentPointInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentPointInfo selectOneByExample(StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentPointInfo selectOneByExampleSelective(@Param("example") StudentPointInfoExample example, @Param("selective") StudentPointInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<StudentPointInfo> selectByExampleSelective(@Param("example") StudentPointInfoExample example, @Param("selective") StudentPointInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
List<StudentPointInfo> selectByExample(StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentPointInfo selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") StudentPointInfo.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
StudentPointInfo selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
StudentPointInfo selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") StudentPointInfo record, @Param("example") StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int updateByExample(@Param("record") StudentPointInfo record, @Param("example") StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(StudentPointInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
*/
int updateByPrimaryKey(StudentPointInfo record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByExample(@Param("example") StudentPointInfoExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table student_point_info
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Integer id);
}
\ No newline at end of file
package cn.exploring.engine.server.db.service;
import org.springframework.stereotype.Service;
@Service
public class ClassService {
}
......@@ -10,7 +10,7 @@ spring:
time-zone: GMT+8
datasource:
druid:
url: jdbc:mysql://39.101.222.130:3306/emba_course?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url: jdbc:mysql://39.101.222.130:3306/class_work?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: root
password: Engine123s56..
......
......@@ -10,7 +10,7 @@ spring:
time-zone: GMT+8
datasource:
druid:
url: jdbc:mysql://rm-8vb7856yl4b5q1kf9.mysql.zhangbei.rds.aliyuncs.com:3306/engine-base?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url: jdbc:mysql://rm-8vb7856yl4b5q1kf9.mysql.zhangbei.rds.aliyuncs.com:3306/class_work?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: engine
password: Engine123S56^&*enginE
......
......@@ -10,7 +10,7 @@ spring:
time-zone: GMT+8
datasource:
druid:
url: jdbc:mysql://172.26.206.239:3306/emba_course?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url: jdbc:mysql://172.26.206.239:3306/class_work?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: root
password: Engine123s56..
......
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