zouxuan 5 lat temu
rodzic
commit
3e9c208a91
100 zmienionych plików z 4513 dodań i 5 usunięć
  1. 3 4
      edu-auth/edu-auth-server/src/main/java/com/keao/edu/auth/AuthServerApplication.java
  2. 86 0
      edu-auth/edu-auth-server/src/main/resources/application.yml
  3. 21 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/Global.mapper.xml
  4. 187 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysMenuMapper.xml
  5. 99 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysOauthClientDetailsMapper.xml
  6. 63 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleDeptMapper.xml
  7. 86 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMapper.xml
  8. 65 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMenuMapper.xml
  9. 44 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserLoginLogMapper.xml
  10. 87 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserLoginMapper.xml
  11. 212 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserMapper.xml
  12. 58 0
      edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserRoleMapper.xml
  13. 43 0
      edu-auth/edu-auth-server/src/main/resources/logback-spring.xml
  14. 7 1
      edu-common/pom.xml
  15. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/DatabaseSourceDao.java
  16. 8 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/EmployeeDao.java
  17. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/HelpCenterCatalogDao.java
  18. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/HelpCenterContentDao.java
  19. 8 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/StudentDao.java
  20. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysConfigDao.java
  21. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMenuDao.java
  22. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMessageConfigDao.java
  23. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMessageDao.java
  24. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysNewsInformationDao.java
  25. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysOauthClientDetailsDao.java
  26. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysRoleDao.java
  27. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysRoleMenuDao.java
  28. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysSuggestionDao.java
  29. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysTaskDao.java
  30. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserContractsDao.java
  31. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserDao.java
  32. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserLoginDao.java
  33. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserLoginLogDao.java
  34. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserRoleDao.java
  35. 8 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/TenantInfoDao.java
  36. 136 0
      edu-common/src/main/java/com/keao/edu/common/entity/DatabaseSource.java
  37. 169 0
      edu-common/src/main/java/com/keao/edu/common/entity/Employee.java
  38. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/HelpCenterCatalog.java
  39. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/HelpCenterContent.java
  40. 48 0
      edu-common/src/main/java/com/keao/edu/common/entity/Student.java
  41. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysConfig.java
  42. 191 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysMenu.java
  43. 169 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysMessage.java
  44. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysMessageConfig.java
  45. 169 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysNewsInformation.java
  46. 136 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysOauthClientDetails.java
  47. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysRole.java
  48. 37 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysRoleMenu.java
  49. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysSuggestion.java
  50. 114 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysTask.java
  51. 268 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUser.java
  52. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserContracts.java
  53. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserLogin.java
  54. 70 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserLoginLog.java
  55. 37 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserRole.java
  56. 114 0
      edu-common/src/main/java/com/keao/edu/common/entity/TenantInfo.java
  57. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/DatabaseSourceService.java
  58. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/EmployeeService.java
  59. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/HelpCenterCatalogService.java
  60. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/HelpCenterContentService.java
  61. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/StudentService.java
  62. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/SysConfigService.java
  63. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysMenuService.java
  64. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysMessageConfigService.java
  65. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysMessageService.java
  66. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysNewsInformationService.java
  67. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysOauthClientDetailsService.java
  68. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysRoleMenuService.java
  69. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysRoleService.java
  70. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysSuggestionService.java
  71. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysTaskService.java
  72. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserContractsService.java
  73. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserLoginLogService.java
  74. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserLoginService.java
  75. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserRoleService.java
  76. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserService.java
  77. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/TenantInfoService.java
  78. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/DatabaseSourceServiceImpl.java
  79. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/EmployeeServiceImpl.java
  80. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/HelpCenterCatalogServiceImpl.java
  81. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/HelpCenterContentServiceImpl.java
  82. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/StudentServiceImpl.java
  83. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysConfigServiceImpl.java
  84. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysMenuServiceImpl.java
  85. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysMessageConfigServiceImpl.java
  86. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysMessageServiceImpl.java
  87. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysNewsInformationServiceImpl.java
  88. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysOauthClientDetailsServiceImpl.java
  89. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysRoleMenuServiceImpl.java
  90. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysRoleServiceImpl.java
  91. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysSuggestionServiceImpl.java
  92. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysTaskServiceImpl.java
  93. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserContractsServiceImpl.java
  94. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserLoginLogServiceImpl.java
  95. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserLoginServiceImpl.java
  96. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserRoleServiceImpl.java
  97. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserServiceImpl.java
  98. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/TenantInfoServiceImpl.java
  99. 96 0
      edu-common/src/main/resources/config/mybatis/DatabaseSourceMapper.xml
  100. 108 0
      edu-common/src/main/resources/config/mybatis/EmployeeMapper.xml

+ 3 - 4
edu-auth/edu-auth-server/src/main/java/com/keao/edu/auth/AuthServerApplication.java

@@ -1,5 +1,6 @@
 package com.keao.edu.auth;
 
+import com.spring4all.swagger.EnableSwagger2Doc;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -12,12 +13,10 @@ import org.springframework.context.annotation.Configuration;
 import org.springframework.scheduling.annotation.EnableAsync;
 import org.springframework.web.client.RestTemplate;
 
-import com.spring4all.swagger.EnableSwagger2Doc;
-
 @SpringBootApplication
 @EnableDiscoveryClient
-@EnableFeignClients({"com.ym.mec"})
-@MapperScan("com.keao.edu.*.dal.dao")
+@EnableFeignClients({"com.keao.edu"})
+@MapperScan("com.keao.edu.common.dal.dao")
 @ComponentScan(basePackages="com.keao.edu")
 @Configuration
 @EnableSwagger2Doc

+ 86 - 0
edu-auth/edu-auth-server/src/main/resources/application.yml

@@ -0,0 +1,86 @@
+server:
+  port: 8001
+  tomcat:
+    accesslog:
+      enabled: true
+      buffered: true
+      directory: /var/logs
+      file-date-format: -yyyy-MM-dd
+      pattern: common
+      prefix: tomcat-auth
+      rename-on-rotate: false
+      request-attributes-enabled: false
+      rotate: true
+      suffix: .log
+
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
+    instance:
+      lease-renewal-interval-in-seconds: 5
+
+spring:
+  application:
+    name: auth-server
+
+  datasource:
+    name: test
+    url: jdbc:mysql://47.99.212.176:3306/edu_saas_test?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
+    username: edu_saas
+    password: edu_saas
+    # 使用druid数据源
+    type: com.alibaba.druid.pool.DruidDataSource
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    filters: stat
+    maxActive: 20
+    initialSize: 1
+    maxWait: 60000
+    minIdle: 1
+    timeBetweenEvictionRunsMillis: 60000
+    minEvictableIdleTimeMillis: 300000
+    validationQuery: select 'x'
+    testWhileIdle: true
+    testOnBorrow: false
+    testOnReturn: false
+    poolPreparedStatements: true
+    maxOpenPreparedStatements: 20
+
+  redis:
+    host: 47.99.212.176
+    port: 6379
+    password: ehjinrong
+    database: 0
+    #连接超时时间(毫秒)
+    timeout: 10000
+    jedis:
+      pool:
+        #连接池最大连接数(使用负值表示没有限制)
+        max-active: 10
+        #连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-wait: -1
+        #连接池中的最大空闲连接
+        max-idle: 10
+        #连接池中的最小空闲连接
+        min-idle: 1
+
+mybatis:
+  mapperLocations: classpath:config/mybatis/*.xml
+
+swagger:
+  base-package: com.ym.mec.auth.web.controller
+
+#spring boot admin 相关配置
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+  endpoint:
+    health:
+      show-details: ALWAYS
+
+
+ribbon:
+  ReadTimeout: 60000
+  ConnectTimeout: 60000

+ 21 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/Global.mapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="global">
+
+	<sql id="limit">
+		<if test="offset != null">
+			 limit #{offset},#{rows}
+		</if>
+	</sql>
+
+	<sql id="orderby">
+		<if test="sort != null and sort != ''">
+			 ORDER BY ${sort}
+			 <if test="order != null and order != ''">
+			 	${order}
+			 </if>
+		</if>
+	</sql>	
+ </mapper>

+ 187 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysMenuMapper.xml

@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysMenuDao">
+
+    <resultMap type="com.ym.mec.auth.api.entity.SysMenu" id="SysMenu">
+        <result column="id_" property="id"/>
+        <result column="name_" property="name"/>
+        <result column="permission_" property="permission"/>
+        <result column="parent_permission_" property="parentPermission"/>
+        <result column="path_" property="path"/>
+        <result column="parent_id_" property="parentId"/>
+        <result column="icon_" property="icon"/>
+        <result column="component_" property="component"/>
+        <result column="sort_" property="sort"/>
+        <result column="keep_alive_" property="keepAlive"/>
+        <result column="type_" property="type"/>
+        <result column="type_" property="type"/>
+        <result column="create_time_" property="createTime"/>
+        <result column="update_time_" property="updateTime"/>
+        <result column="del_flag_" property="delFlag"/>
+        <result column="hidden_" property="hid"/>
+        <result column="memo_" property="memo"/>
+    </resultMap>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="SysMenu">
+		SELECT * FROM sys_menu WHERE id_ = #{id}
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="SysMenu">
+		SELECT * FROM sys_menu ORDER BY id_
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysMenu" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
+        INSERT INTO sys_menu
+        (id_,name_,permission_,path_,parent_id_,icon_,component_,sort_,type_,create_time_,update_time_,hidden_,parent_permission_,memo_)
+        VALUES(#{id},#{name},#{permission},#{path},#{parentId},#{icon},#{component},#{sort},#{type},now(),now(),#{hid},#{parentPermission},#{memo})
+    </insert>
+
+    <!-- 根据主键查询一条记录 -->
+    <update id="update" parameterType="com.ym.mec.auth.api.entity.SysMenu">
+        UPDATE sys_menu
+        <set>
+            <if test="parentId != null">
+                parent_id_ = #{parentId},
+            </if>
+            <if test="delFlag != null">
+                del_flag_ = #{delFlag},
+            </if>
+            <if test="keepAlive != null">
+                keep_alive_ = #{keepAlive},
+            </if>
+            <if test="permission != null">
+                permission_ = #{permission},
+            </if>
+            <if test="parentPermission != null">
+                parent_permission_ = #{parentPermission},
+            </if>
+            <if test="path != null">
+                path_ = #{path},
+            </if>
+            <if test="sort != null">
+                sort_ = #{sort},
+            </if>
+            <if test="name != null">
+                name_ = #{name},
+            </if>
+            <if test="icon != null">
+                icon_ = #{icon},
+            </if>
+            <if test="component != null">
+                component_ = #{component},
+            </if>
+            <if test="updateTime != null">
+                update_time_ = NOW(),
+            </if>
+            <if test="type != null">
+                type_ = #{type},
+            </if>
+            <if test="hid != null">
+                hidden_ = #{hid},
+            </if>
+            <if test="memo != null">
+                memo_ = #{memo},
+            </if>
+        </set>
+        WHERE id_ = #{id}
+    </update>
+
+    <!-- 根据主键删除一条记录 -->
+    <update id="delete">
+		UPDATE sys_menu SET del_flag_ = 1 WHERE id_ = #{id}
+	</update>
+
+    <update id="batchDel" parameterType="java.util.List">
+        UPDATE sys_menu SET del_flag_ = 1 WHERE id_ IN
+        <foreach collection="list" item="item" open="(" separator="," close=")">
+          #{item}
+        </foreach>
+    </update>
+
+    <!-- 分页查询 -->
+    <select id="queryPage" resultMap="SysMenu" parameterType="map">
+        SELECT sm.* FROM sys_user_role sur
+        LEFT JOIN sys_role_menu srm ON sur.role_id_ = srm.role_id_
+        LEFT JOIN sys_menu sm ON srm.menu_id_ = sm.id_
+        <include refid="queryTree"/>
+        GROUP BY sm.id_
+        ORDER BY sm.sort_ DESC
+        <include refid="global.limit"/>
+    </select>
+
+    <!-- 查询当前表的总记录数 -->
+    <select id="queryCount" resultType="int">
+        SELECT COUNT(DISTINCT sm.id_) FROM sys_user_role sur
+        LEFT JOIN sys_role_menu srm ON sur.role_id_ = srm.role_id_
+        LEFT JOIN sys_menu sm ON srm.menu_id_ = sm.id_
+        <include refid="queryTree"/>
+	</select>
+
+    <select id="getMenusByRoleId" resultMap="SysMenu">
+		SELECT sm.* FROM sys_role_menu srm
+		LEFT JOIN sys_menu sm ON srm.menu_id_ = sm.id_
+		WHERE srm.role_id_ = #{roleId} AND sm.del_flag_ = 0
+	</select>
+
+    <select id="findByUser" resultMap="SysMenu">
+		SELECT sm.* FROM sys_user_role sur
+		LEFT JOIN sys_role sr ON sur.role_id_ = sr.id_
+		LEFT JOIN sys_role_menu srm ON sr.id_ = srm.role_id_
+		LEFT JOIN sys_menu sm ON srm.menu_id_ = sm.id_
+		WHERE sur.user_id_ = #{userId} AND sr.del_flag_ = 0 AND sm.del_flag_ = 0
+	</select>
+
+    <!-- 根据权限标识查菜单 -->
+    <select id="findMenuByPermission" resultMap="SysMenu">
+        SELECT * FROM `sys_menu` WHERE `permission_` = #{permission} AND del_flag_ = 0
+    </select>
+    <sql id="queryTree">
+        <where>
+            <if test="userId != null">
+                sur.user_id_ = #{userId}
+            </if>
+            <if test="hid != null">
+                AND sm.hidden_ = #{hid}
+            </if>
+            <if test="delFlag != null">
+                AND sm.del_flag_ = #{delFlag}
+            </if>
+            <if test="parentId != null">
+                AND sm.parent_id_ = #{parentId}
+            </if>
+        </where>
+    </sql>
+
+    <select id="findByParentId" resultMap="SysMenu">
+        SELECT sm.* FROM sys_user_role sur
+        LEFT JOIN sys_role_menu srm ON sur.role_id_ = srm.role_id_
+        LEFT JOIN sys_menu sm ON srm.menu_id_ = sm.id_
+        <include refid="queryTree"/>
+        GROUP BY sm.id_
+        ORDER BY sm.sort_ DESC,sm.id_ DESC
+    </select>
+
+    <select id="findList" resultMap="SysMenu">
+        SELECT * FROM sys_menu
+        <where>
+            <if test="delFlag != null">
+                AND del_flag_ = #{delFlag}
+            </if>
+            <if test="parentId != null">
+                AND parent_id_ = #{parentId}
+            </if>
+            <if test="hid != null">
+                AND hidden_ = #{hid}
+            </if>
+        </where>
+        ORDER BY sort_ DESC
+    </select>
+</mapper>

+ 99 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysOauthClientDetailsMapper.xml

@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysOauthClientDetailsDao">
+
+    <resultMap type="com.ym.mec.auth.api.entity.SysOauthClientDetails" id="SysOauthClientDetails">
+        <result column="id_" property="id"/>
+        <result column="resource_ids_" property="resourceIds"/>
+        <result column="client_secret_" property="clientSecret"/>
+        <result column="scope_" property="scope"/>
+        <result column="authorized_grant_types_" property="authorizedGrantTypes"/>
+        <result column="web_server_redirect_uri_" property="webServerRedirectUri"/>
+        <result column="authorities_" property="authorities"/>
+        <result column="access_token_validity_" property="accessTokenValidity"/>
+        <result column="refresh_token_validity_" property="refreshTokenValidity"/>
+        <result column="additional_information_" property="additionalInformation"/>
+        <result column="autoapprove_" property="autoapprove"/>
+    </resultMap>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="SysOauthClientDetails">
+		SELECT * FROM sys_oauth_client_details WHERE id_ = #{id}
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="SysOauthClientDetails">
+		SELECT * FROM sys_oauth_client_details ORDER BY id_
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysOauthClientDetails" useGeneratedKeys="true"
+            keyColumn="id" keyProperty="id">
+        <!--
+        <selectKey resultClass="int" keyProperty="id" >
+        SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
+        </selectKey>
+        -->
+        INSERT INTO sys_oauth_client_details
+        (id_,resource_ids_,client_secret_,scope_,authorized_grant_types_,web_server_redirect_uri_,authorities_,access_token_validity_,refresh_token_validity_,additional_information_,autoapprove_)
+        VALUES(#{id},#{resourceIds},#{clientSecret},#{scope},#{authorizedGrantTypes},#{webServerRedirectUri},#{authorities},#{accessTokenValidity},#{refreshTokenValidity},#{additionalInformation},#{autoapprove})
+    </insert>
+
+    <!-- 根据主键查询一条记录 -->
+    <update id="update" parameterType="com.ym.mec.auth.api.entity.SysOauthClientDetails">
+        UPDATE sys_oauth_client_details
+        <set>
+            <if test="accessTokenValidity != null">
+                access_token_validity_ = #{accessTokenValidity},
+            </if>
+            <if test="resourceIds != null">
+                resource_ids_ = #{resourceIds},
+            </if>
+            <if test="refreshTokenValidity != null">
+                refresh_token_validity_ = #{refreshTokenValidity},
+            </if>
+            <if test="additionalInformation != null">
+                additional_information_ = #{additionalInformation},
+            </if>
+            <if test="clientSecret != null">
+                client_secret_ = #{clientSecret},
+            </if>
+            <if test="webServerRedirectUri != null">
+                web_server_redirect_uri_ = #{webServerRedirectUri},
+            </if>
+            <if test="authorizedGrantTypes != null">
+                authorized_grant_types_ = #{authorizedGrantTypes},
+            </if>
+            <if test="authorities != null">
+                authorities_ = #{authorities},
+            </if>
+            <if test="scope != null">
+                scope_ = #{scope},
+            </if>
+            <if test="autoapprove != null">
+                autoapprove_ = #{autoapprove},
+            </if>
+        </set>
+        WHERE id_ = #{id}
+    </update>
+
+    <!-- 根据主键删除一条记录 -->
+    <delete id="delete">
+		DELETE FROM sys_oauth_client_details WHERE id_ = #{id}
+	</delete>
+
+    <!-- 分页查询 -->
+    <select id="queryPage" resultMap="SysOauthClientDetails" parameterType="map">
+        SELECT * FROM sys_oauth_client_details ORDER BY id_
+        <include refid="global.limit"/>
+    </select>
+
+    <!-- 查询当前表的总记录数 -->
+    <select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_oauth_client_details
+	</select>
+</mapper>

+ 63 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleDeptMapper.xml

@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysRoleDeptDao">
+	
+	<resultMap type="com.ym.mec.auth.api.entity.SysRoleDept" id="SysRoleDept">
+		<result column="id_" property="id" />
+		<result column="role_id_" property="roleId" />
+		<result column="dept_id_" property="deptId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysRoleDept" >
+		SELECT * FROM sys_role_dept WHERE id_ = #{id}
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysRoleDept">
+		SELECT * FROM sys_role_dept ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysRoleDept" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_role_dept (id_,role_id_,dept_id_) VALUES(#{id},#{roleId},#{deptId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.auth.api.entity.SysRoleDept">
+		UPDATE sys_role_dept
+		 <set>
+			 <if test="roleId != null">
+				 role_id_ = #{roleId},
+			 </if>
+			 <if test="deptId != null">
+				 dept_id_ = #{deptId},
+			 </if>
+		 </set>
+		 WHERE id_ = #{id}
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM sys_role_dept WHERE id_ = #{id}
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysRoleDept" parameterType="map">
+		SELECT * FROM sys_role_dept ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_role_dept
+	</select>
+</mapper>

+ 86 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMapper.xml

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysRoleDao">
+
+    <resultMap type="com.ym.mec.auth.api.entity.SysRole" id="SysRole">
+        <result column="id_" property="id"/>
+        <result column="role_name_" property="roleName"/>
+        <result column="role_code_" property="roleCode"/>
+        <result column="role_desc_" property="roleDesc"/>
+        <result column="create_time_" property="createTime"/>
+        <result column="update_time_" property="updateTime"/>
+        <result column="del_flag_" property="delFlag"/>
+        <result column="organ_id_" property="organId"/>
+    </resultMap>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="SysRole">
+		SELECT * FROM sys_role WHERE id_ = #{id}
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="SysRole">
+		SELECT * FROM sys_role WHERE del_flag_ = 0 ORDER BY upate_time_ DESC
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysRole" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
+        INSERT INTO sys_role (id_,role_name_,role_code_,role_desc_,create_time_,update_time_,organ_id_)
+        VALUES(#{id},#{roleName},#{roleCode},#{roleDesc},now(),now(),#{organId})
+    </insert>
+
+    <!-- 根据主键查询一条记录 -->
+    <update id="update" parameterType="com.ym.mec.auth.api.entity.SysRole">
+        UPDATE sys_role
+        <set>
+            <if test="delFlag != null">
+                del_flag_ = #{delFlag},
+            </if>
+            <if test="roleCode != null">
+                role_code_ = #{roleCode},
+            </if>
+            <if test="roleName != null">
+                role_name_ = #{roleName},
+            </if>
+            <if test="roleDesc != null">
+                role_desc_ = #{roleDesc},
+            </if>
+            <if test="updateTime != null">
+                update_time_ = NOW(),
+            </if>
+            <if test="organId != null">
+                organ_id_ = #{organId},
+            </if>
+        </set>
+        WHERE id_ = #{id}
+    </update>
+
+    <!-- 根据主键删除一条记录 -->
+    <delete id="delete">
+		UPDATE sys_role SET del_flag_ = 1 WHERE id_ = #{id}
+	</delete>
+
+    <!-- 分页查询 -->
+    <select id="queryPage" resultMap="SysRole" parameterType="map">
+        SELECT * FROM sys_role WHERE del_flag_ = 0 ORDER BY update_time_ DESC
+        <include refid="global.limit"/>
+    </select>
+
+    <!-- 查询当前表的总记录数 -->
+    <select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_role WHERE del_flag_ = 0
+	</select>
+
+    <select id="findRoleByUserId" resultMap="SysRole">
+		SELECT sr.* FROM sys_user_role sur LEFT JOIN sys_role sr ON sur.role_id_ = sr.id_ WHERE sur.user_id_ = #{userId} AND sr.del_flag_ = 0
+	</select>
+
+    <select id="findRoleByCode" resultMap="SysRole">
+        SELECT sr.* FROM sys_role WHERE role_code_ = #{code} AND sr.del_flag_ = 0
+    </select>
+</mapper>

+ 65 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMenuMapper.xml

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysRoleMenuDao">
+	
+	<resultMap type="com.ym.mec.auth.api.entity.SysRoleMenu" id="SysRoleMenu">
+		<result column="role_id_" property="roleId" />
+		<result column="menu_id_" property="menuId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysRoleMenu" parameterType="java.util.Map">
+		SELECT * FROM sys_role_menu WHERE role_id_ = #{roleId} AND menu_id_ = #{menuId}
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysRoleMenu">
+		SELECT * FROM sys_role_menu ORDER BY role_id_,menu_id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysRoleMenu" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_role_menu (role_id_,menu_id_) VALUES(#{roleId},#{menuId})
+	</insert>
+    <insert id="batchAdd">
+		INSERT INTO sys_role_menu (role_id_,menu_id_) VALUES
+		<foreach collection="menuIds" item="item" index="index" separator=",">
+			(#{roleId},#{item})
+		</foreach>
+	</insert>
+
+    <!-- 根据主键删除一条记录 -->
+	<delete id="delete" parameterType="java.util.Map">
+		DELETE FROM sys_role_menu WHERE role_id_ = #{roleId} AND menu_id_ = #{menuId}
+	</delete>
+    <delete id="deleteAllMenu">
+		DELETE FROM sys_role_menu WHERE role_id_ = #{roleId}
+	</delete>
+
+    <!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysRoleMenu" parameterType="map">
+		SELECT * FROM sys_role_menu ORDER BY role_id_,menu_id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_role_menu
+	</select>
+	
+	<select id="queryPermissionsByRoleId" resultType="string" parameterType="int">
+		SELECT m.permission_ FROM sys_role_menu rm left join sys_menu m on rm.menu_id_ = m.id_ where rm.role_id_ = #{roleId} and m.del_flag_ = 0
+	</select>
+
+	<select id="queryMenuIdByRoleId" resultType="integer" parameterType="int">
+		SELECT m.id_ FROM sys_role_menu rm left join sys_menu m on rm.menu_id_ = m.id_ where rm.role_id_ = #{roleId} and m.del_flag_ = 0
+	</select>
+</mapper>

+ 44 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserLoginLogMapper.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysUserLoginLogDao">
+	
+	<resultMap type="com.ym.mec.auth.api.entity.SysUserLoginLog" id="SysUserLoginLog">
+		<result column="id_" property="id"/>
+		<result column="user_id_" property="userId" />
+		<result column="login_ip_" property="loginIp" />
+		<result column="login_time_" property="loginTime" />
+		<result column="source_" property="source" />
+	</resultMap>
+	
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysUserLoginLog">
+		SELECT * FROM sys_user_login_log
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysUserLoginLog" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_user_login_log (id_,user_id_,login_ip_,login_time_,source_) VALUES(#{id},#{userId},#{loginIp},#{loginTime},#{source})
+	</insert>
+	
+	
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysUserLoginLog" parameterType="map">
+		SELECT * FROM sys_user_login_log <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_login_log
+	</select>
+</mapper>

+ 87 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserLoginMapper.xml

@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysUserLoginDao">
+
+    <resultMap type="com.ym.mec.auth.api.entity.SysUserLogin" id="SysUserLogin">
+        <result column="user_id_" property="userId"/>
+        <result column="login_count_" property="loginCount"/>
+        <result column="last_login_time_" property="lastLoginTime"/>
+        <result column="last_login_ip_" property="lastLoginIp"/>
+        <result column="fail_count_" property="failCount"/>
+        <result column="lock_time_" property="lockTime"/>
+        <result column="lock_date_" property="lockDate"/>
+    </resultMap>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="SysUserLogin">
+		SELECT * FROM sys_user_login WHERE user_id_ = #{userId}
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="SysUserLogin">
+		SELECT * FROM sys_user_login ORDER BY user_id_
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysUserLogin" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
+        <!--
+        <selectKey resultClass="int" keyProperty="id" >
+        SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
+        </selectKey>
+        -->
+        INSERT INTO sys_user_login
+        (user_id_,login_count_,last_login_time_,last_login_ip_,fail_count_,lock_time_,lock_date_)
+        VALUES(#{userId},#{loginCount},#{lastLoginTime},#{lastLoginIp},#{failCount},#{lockTime},#{lockDate})
+    </insert>
+
+    <!-- 根据主键查询一条记录 -->
+    <update id="update" parameterType="com.ym.mec.auth.api.entity.SysUserLogin">
+        UPDATE sys_user_login
+        <set>
+            <if test="failCount != null">
+                fail_count_ = #{failCount},
+            </if>
+            <if test="lastLoginIp != null">
+                last_login_ip_ = #{lastLoginIp},
+            </if>
+            <if test="lockTime != null">
+                lock_time_ = #{lockTime},
+            </if>
+            <if test="loginCount != null">
+                login_count_ = #{loginCount},
+            </if>
+            <if test="lastLoginTime != null">
+                last_login_time_ = #{lastLoginTime},
+            </if>
+            <if test="lockDate != null">
+                lock_date_ = #{lockDate},
+            </if>
+        </set>
+        WHERE user_id_ = #{userId}
+    </update>
+
+    <!-- 根据主键删除一条记录 -->
+    <delete id="delete">
+		DELETE FROM sys_user_login WHERE user_id_ = #{userId}
+	</delete>
+
+    <!-- 分页查询 -->
+    <select id="queryPage" resultMap="SysUserLogin" parameterType="map">
+        SELECT * FROM sys_user_login ORDER BY user_id_
+        <include refid="global.limit"/>
+    </select>
+
+    <!-- 查询当前表的总记录数 -->
+    <select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_login
+	</select>
+
+    <select id="findLoginByUserId" resultMap="SysUserLogin">
+		SELECT * FROM sys_user_login WHERE user_id_ = #{userId}
+	</select>
+</mapper>

+ 212 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserMapper.xml

@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysUserDao">
+
+    <resultMap type="com.ym.mec.auth.api.entity.SysUser" id="SysUser">
+        <result column="id_" property="id"/>
+        <result column="username_" property="username"/>
+        <result column="real_name_" property="realName"/>
+        <result column="password_" property="password"/>
+        <result column="salt_" property="salt"/>
+        <result column="phone_" property="phone"/>
+        <result column="avatar_" property="avatar"/>
+        <result column="organ_id_" property="organId"/>
+        <result column="create_time_" property="createTime"/>
+        <result column="update_time_" property="updateTime"/>
+        <result column="lock_flag_" property="lockFlag"/>
+        <result column="del_flag_" property="delFlag" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
+        <result column="wx_openid_" property="wxOpenid"/>
+        <result column="qq_openid_" property="qqOpenid"/>
+        <result column="user_type_" property="userType"/>
+        <result column="gender_" property="gender"/>
+        <result column="nation_" property="nation"/>
+        <result column="birthdate_" property="birthdate"/>
+        <result column="email_" property="email"/>
+        <result column="im_token_" property="imToken"/>
+        <result column="id_card_no_" property="idCardNo"/>
+        <result column="wechat_id_" property="wechatId"/>
+        <result column="is_super_admin_" property="isSuperAdmin"/>
+        <result column="current_grade_" property="currentGrade"/>
+        <result column="current_class_" property="currentClass"/>
+    </resultMap>
+
+    <!-- 查询条件 -->
+    <sql id="queryCondition">
+        <if test="userStartDate != null">
+            and create_time_ &gt;= #{createStartDate}
+        </if>
+        <if test="userEndDate != null">
+            and create_time_ &lt;= #{createEndDate}
+        </if>
+        <if test="userType != null">
+            and user_type_ = #{userType}
+        </if>
+        <if test="organId != null">
+            and organ_id_ = #{organId}
+        </if>
+    </sql>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="SysUser">
+		SELECT su.*,sr.current_class_,sr.current_grade_
+        FROM sys_user su LEFT JOIN student_registration sr ON su.id_ = sr.user_id_
+        WHERE su.id_ = #{id} LIMIT 1
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="SysUser">
+		SELECT * FROM sys_user ORDER BY id_
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysUser" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
+        INSERT INTO sys_user
+        (is_super_admin_,im_token_,id_,username_,salt_,phone_,avatar_,organ_id_,create_time_,update_time_,wx_openid_,qq_openid_,user_type_,
+        gender_,nation_,birthdate_,email_,id_card_no_,wechat_id_,real_name_)
+        VALUES(#{isSuperAdmin},#{imToken},#{id},#{username},#{salt},#{phone},#{avatar},#{organId},now(),now(),#{wxOpenid},#{qqOpenid},#{userType},
+        #{gender},#{nation},#{birthdate},#{email},#{idCardNo},#{wechatId},#{realName})
+    </insert>
+    <insert id="insertTeacher">
+        INSERT INTO teacher
+        (id_,organ_id_,create_time_,update_time_)VALUES(#{userId},#{lesseeOrganId},NOW(),NOW())
+    </insert>
+    <insert id="insertSysTenantAccount">
+        INSERT INTO sys_tenant_account
+        (user_id_,available_minutes_,frozen_minutes_,status_,create_time_,update_time_)
+		VALUES(#{userId},0,0,1,NOW(),NOW())
+    </insert>
+    <insert id="saveStudent">
+        INSERT INTO student (user_id_,create_time_,update_time_) VALUES(#{userId},NOW(),NOW())
+    </insert>
+
+    <!-- 根据主键查询一条记录 -->
+    <update id="update" parameterType="com.ym.mec.auth.api.entity.SysUser">
+        UPDATE sys_user
+        <set>
+            <if test="delFlag != null">
+                del_flag_ = #{delFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
+            </if>
+            <if test="wxOpenid != null">
+                wx_openid_ = #{wxOpenid},
+            </if>
+            <if test="avatar != null">
+                avatar_ = #{avatar},
+            </if>
+            <if test="email != null">
+                email_ = #{email},
+            </if>
+            <if test="gender != null">
+                gender_ = #{gender},
+            </if>
+            <if test="salt != null">
+                salt_ = #{salt},
+            </if>
+            <if test="username != null">
+                username_ = #{username},
+            </if>
+            <if test="userType != null">
+                user_type_ = #{userType},
+            </if>
+            <if test="updateTime != null">
+                update_time_ = NOW(),
+            </if>
+            <if test="lockFlag != null">
+                lock_flag_ = #{lockFlag},
+            </if>
+            <if test="birthdate != null">
+                birthdate_ = #{birthdate},
+            </if>
+            <if test="phone != null">
+                phone_ = #{phone},
+            </if>
+            <if test="qqOpenid != null">
+                qq_openid_ = #{qqOpenid},
+            </if>
+            <if test="nation != null">
+                nation_ = #{nation},
+            </if>
+            <if test="organId != null">
+                organ_id_ = #{organId},
+            </if>
+            <if test="imToken != null">
+                im_token_ = #{imToken},
+            </if>
+            <if test="idCardNo != null">
+                id_card_no_ = #{idCardNo},
+            </if>
+            <if test="password != null">
+                password_ = #{password},
+            </if>
+            <if test="wechatId != null">
+                wechat_id_ = #{wechatId},
+            </if>
+            <if test="realName != null">
+                real_name_ = #{realName},
+            </if>
+            <if test="isSuperAdmin != null">
+                is_super_admin_ = #{isSuperAdmin},
+            </if>
+        </set>
+        WHERE id_ = #{id}
+    </update>
+    <update id="updatePassword">
+        UPDATE sys_user SET password_ = #{password} WHERE phone_ = #{mobile}
+    </update>
+    <update id="refreshImToken">
+        UPDATE sys_user SET im_token_ = #{imToken},update_time_ = NOW() WHERE id_ = #{userId}
+    </update>
+
+    <!-- 根据主键删除一条记录 -->
+    <delete id="delete">
+		UPDATE sys_user SET del_flag_ = 1 WHERE id_ = #{id}
+	</delete>
+
+    <!-- 分页查询 -->
+    <select id="queryPage" resultMap="SysUser" parameterType="map">
+        SELECT * FROM sys_user ORDER BY id_
+        <include refid="queryCondition"/>
+        <include refid="global.orderby"/>
+        <include refid="global.limit"/>
+    </select>
+
+    <!-- 查询当前表的总记录数 -->
+    <select id="queryCount" resultType="int">
+        SELECT COUNT(*) FROM sys_user
+        <include refid="queryCondition"/>
+    </select>
+
+    <select id="queryByUsername" resultMap="SysUser">
+		select * from sys_user where username_ = #{username} OR phone_ = #{username} LIMIT 1 FOR UPDATE
+	</select>
+
+    <select id="queryByPhone" resultMap="SysUser">
+		select * from sys_user where phone_ = #{phone} OR username_ = #{phone} LIMIT 1 FOR UPDATE
+	</select>
+    <resultMap id="ImUserModel" type="com.ym.mec.common.entity.ImUserModel">
+        <result column="id_" property="id"/>
+        <result property="name" column="username_"/>
+        <result property="portrait" column="avatar_"/>
+    </resultMap>
+    <select id="getBasic" resultMap="ImUserModel">
+        select CASE WHEN user_type_ LIKE '%TEACHER%' OR user_type_ LIKE '%SYSTEM%' THEN real_name_ ELSE username_ END username_,id_,avatar_
+        from sys_user where id_ = #{userId} LIMIT 1
+    </select>
+    
+    <select id="queryByStatus" resultMap="SysUser">
+        select * from sys_user where lock_flag_ = #{status}
+    </select>
+    <select id="findUserBySalt" resultMap="SysUser">
+        SELECT * FROM sys_user WHERE salt_ IS NOT NULL AND salt_ = 'replace' AND user_type_ LIKE CONCAT('%',#{userType},'%') LIMIT 1
+    </select>
+    <select id="getTeacherOrganId" resultType="java.lang.Integer">
+        SELECT organ_id_ FROM teacher WHERE id_ = #{userId}
+    </select>
+    <select id="queryByPhoneAndClient" resultMap="SysUser">
+        select * from sys_user where (phone_ = #{phone} OR username_ = #{phone}) AND user_type_ LIKE CONCAT('%',#{client},'%') LIMIT 1 FOR UPDATE
+    </select>
+</mapper>

+ 58 - 0
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserRoleMapper.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.auth.dal.dao.SysUserRoleDao">
+
+    <resultMap type="com.ym.mec.auth.api.entity.SysUserRole" id="SysUserRole">
+        <result column="user_id_" property="userId"/>
+        <result column="role_id_" property="roleId"/>
+    </resultMap>
+
+    <!-- 根据主键查询一条记录 -->
+    <select id="get" resultMap="SysUserRole" parameterType="java.util.Map">
+		SELECT * FROM sys_user_role WHERE user_id_ = #{userId} AND role_id_ = #{roleId}
+	</select>
+
+    <!-- 全查询 -->
+    <select id="findAll" resultMap="SysUserRole">
+		SELECT * FROM sys_user_role ORDER BY user_id_,role_id_
+	</select>
+
+    <!-- 向数据库增加一条记录 -->
+    <insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysUserRole" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
+        <!--
+        <selectKey resultClass="int" keyProperty="id" >
+        SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
+        </selectKey>
+        -->
+        INSERT INTO sys_user_role (user_id_,role_id_) VALUES(#{userId},#{roleId})
+    </insert>
+
+    <!-- 根据主键删除一条记录 -->
+    <delete id="delete" parameterType="java.util.Map">
+		DELETE FROM sys_user_role WHERE user_id = #{userId} AND role_id = #{roleId} 
+	</delete>
+
+    <!-- 分页查询 -->
+    <select id="queryPage" resultMap="SysUserRole" parameterType="map">
+        SELECT * FROM sys_user_role ORDER BY user_id_,role_id_
+        <include refid="global.limit"/>
+    </select>
+
+    <!-- 查询当前表的总记录数 -->
+    <select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_role
+	</select>
+
+    <select id="queryRoleIdListByUserId" resultType="int" parameterType="int">
+		SELECT ur.role_id_ FROM sys_user_role ur left join sys_role r on ur.role_id_ = r.id_ where ur.user_id_ = #{userId} and r.del_flag_ = 0
+	</select>
+
+    <select id="queryRoleCodeListByUserId" resultType="string" parameterType="int">
+		SELECT r.role_code_ FROM sys_user_role ur left join sys_role r on ur.role_id_ = r.id_ where ur.user_id_ = #{userId} and r.del_flag_ = 0
+	</select>
+</mapper>

+ 43 - 0
edu-auth/edu-auth-server/src/main/resources/logback-spring.xml

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration scan="true" scanPeriod="10 seconds">
+
+	<property name="LOG_HOME" value="/mdata/logs/auth-%d{yyyy-MM-dd_HH}-%i.log" />
+	<property name="CONSOLE_LOG_PATTERN"
+		value="[%X{username} %X{ip} %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}] : %msg%n" />
+
+	<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
+		<encoder charset="UTF-8">
+			<pattern>${CONSOLE_LOG_PATTERN}</pattern>
+		</encoder>
+	</appender>
+
+	<appender name="file"
+		class="ch.qos.logback.core.rolling.RollingFileAppender">
+		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+			<FileNamePattern>${LOG_HOME}</FileNamePattern>
+			<MaxHistory>90</MaxHistory>
+			<TimeBasedFileNamingAndTriggeringPolicy
+				class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
+				<MaxFileSize>20MB</MaxFileSize>
+			</TimeBasedFileNamingAndTriggeringPolicy>
+		</rollingPolicy>
+
+		<encoder>
+			<pattern>${CONSOLE_LOG_PATTERN}</pattern>
+		</encoder>
+	</appender>
+
+	<logger name="com.ym.mec" level="DEBUG" />
+
+	<root level="DEBUG">
+		<appender-ref ref="stdout" />
+		<appender-ref ref="file" />
+	</root>
+
+	<root level="DEBUG">
+		<appender-ref ref="stdout" />
+		<appender-ref ref="file" />
+	</root>
+
+
+</configuration>

+ 7 - 1
edu-common/pom.xml

@@ -75,6 +75,12 @@
 			<groupId>com.vdurmont</groupId>
 			<artifactId>emoji-java</artifactId>
 		</dependency>
+        <dependency>
+            <groupId>io.swagger</groupId>
+            <artifactId>swagger-annotations</artifactId>
+            <version>1.5.20</version>
+            <scope>compile</scope>
+        </dependency>
 
-	</dependencies>
+    </dependencies>
 </project>

+ 9 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/DatabaseSourceDao.java

@@ -0,0 +1,9 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.DatabaseSource;
+
+public interface DatabaseSourceDao extends BaseDAO<Integer, DatabaseSource> {
+
+	
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/EmployeeDao.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.Employee;
+
+public interface EmployeeDao extends BaseDAO<Integer, Employee> {
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/HelpCenterCatalogDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.HelpCenterCatalog;
+
+public interface HelpCenterCatalogDao extends BaseDAO<Integer, HelpCenterCatalog> {
+
+	
+}

+ 9 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/HelpCenterContentDao.java

@@ -0,0 +1,9 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.HelpCenterContent;
+
+public interface HelpCenterContentDao extends BaseDAO<Integer, HelpCenterContent> {
+
+	
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/StudentDao.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.Student;
+
+public interface StudentDao extends BaseDAO<Integer, Student> {
+
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysConfigDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysConfig;
+
+public interface SysConfigDao extends BaseDAO<Long, SysConfig> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMenuDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysMenu;
+
+public interface SysMenuDao extends BaseDAO<Integer, SysMenu> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMessageConfigDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysMessageConfig;
+
+public interface SysMessageConfigDao extends BaseDAO<Integer, SysMessageConfig> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMessageDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysMessage;
+
+public interface SysMessageDao extends BaseDAO<Long, SysMessage> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysNewsInformationDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysNewsInformation;
+
+public interface SysNewsInformationDao extends BaseDAO<Long, SysNewsInformation> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysOauthClientDetailsDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysOauthClientDetails;
+
+public interface SysOauthClientDetailsDao extends BaseDAO<String, SysOauthClientDetails> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysRoleDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysRole;
+
+public interface SysRoleDao extends BaseDAO<Integer, SysRole> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysRoleMenuDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysRoleMenu;
+
+public interface SysRoleMenuDao extends BaseDAO<Integer, SysRoleMenu> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysSuggestionDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysSuggestion;
+
+public interface SysSuggestionDao extends BaseDAO<Long, SysSuggestion> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysTaskDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysTask;
+
+public interface SysTaskDao extends BaseDAO<Integer, SysTask> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserContractsDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysUserContracts;
+
+public interface SysUserContractsDao extends BaseDAO<Long, SysUserContracts> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysUser;
+
+public interface SysUserDao extends BaseDAO<Integer, SysUser> {
+
+	
+}

+ 10 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserLoginDao.java

@@ -0,0 +1,10 @@
+package com.keao.edu.common.dal.dao;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysUserLogin;
+
+public interface SysUserLoginDao extends BaseDAO<Integer, SysUserLogin> {
+
+	
+}

+ 9 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserLoginLogDao.java

@@ -0,0 +1,9 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysUserLoginLog;
+
+public interface SysUserLoginLogDao extends BaseDAO<Long, SysUserLoginLog> {
+
+	
+}

+ 9 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserRoleDao.java

@@ -0,0 +1,9 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.SysUserRole;
+
+public interface SysUserRoleDao extends BaseDAO<Integer, SysUserRole> {
+
+	
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/dal/dao/TenantInfoDao.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.dal.dao;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.entity.TenantInfo;
+
+public interface TenantInfoDao extends BaseDAO<Integer, TenantInfo> {
+
+}

+ 136 - 0
edu-common/src/main/java/com/keao/edu/common/entity/DatabaseSource.java

@@ -0,0 +1,136 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(database_source):
+ */
+public class DatabaseSource {
+
+	/**  */
+	private Integer id;
+	
+	/** 租户ID */
+	private String tenantId;
+	
+	/** 驱动 */
+	private String driver;
+	
+	/** 连接信息 */
+	private String url;
+	
+	/** 用户名 */
+	private String username;
+	
+	/** 密码 */
+	private String password;
+	
+	/** 数据库类型 */
+	private String type;
+	
+	/**  */
+	private String memo;
+	
+	/**  */
+	private boolean delFlag;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setTenantId(String tenantId){
+		this.tenantId = tenantId;
+	}
+	
+	public String getTenantId(){
+		return this.tenantId;
+	}
+			
+	public void setDriver(String driver){
+		this.driver = driver;
+	}
+	
+	public String getDriver(){
+		return this.driver;
+	}
+			
+	public void setUrl(String url){
+		this.url = url;
+	}
+	
+	public String getUrl(){
+		return this.url;
+	}
+			
+	public void setUsername(String username){
+		this.username = username;
+	}
+	
+	public String getUsername(){
+		return this.username;
+	}
+			
+	public void setPassword(String password){
+		this.password = password;
+	}
+	
+	public String getPassword(){
+		return this.password;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	public void setDelFlag(boolean delFlag){
+		this.delFlag = delFlag;
+	}
+	
+	public boolean isDelFlag(){
+		return this.delFlag;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 169 - 0
edu-common/src/main/java/com/keao/edu/common/entity/Employee.java

@@ -0,0 +1,169 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(employee):
+ */
+public class Employee {
+
+	/**  */
+	private Integer userId;
+	
+	/** 工作性质(兼职、全职、临时) */
+	private String jobNature;
+	
+	/** 学历 */
+	private String educationBackground;
+	
+	/** 毕业学校 */
+	private String graduateSchool;
+	
+	/** 技术职称 */
+	private String technicalTitles;
+	
+	/** 入职时间 */
+	private java.util.Date entryDate;
+	
+	/** 证件类型 */
+	private String certificateType;
+	
+	/** 证件号码 */
+	private String certificateNum;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/** 介绍 */
+	private String introduction;
+	
+	/** 离职日期 */
+	private java.util.Date demissionDate;
+	
+	/** 联系地址 */
+	private String contactAddress;
+	
+	/** 邮政编码 */
+	private String postalCode;
+	
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setJobNature(String jobNature){
+		this.jobNature = jobNature;
+	}
+	
+	public String getJobNature(){
+		return this.jobNature;
+	}
+			
+	public void setEducationBackground(String educationBackground){
+		this.educationBackground = educationBackground;
+	}
+	
+	public String getEducationBackground(){
+		return this.educationBackground;
+	}
+			
+	public void setGraduateSchool(String graduateSchool){
+		this.graduateSchool = graduateSchool;
+	}
+	
+	public String getGraduateSchool(){
+		return this.graduateSchool;
+	}
+			
+	public void setTechnicalTitles(String technicalTitles){
+		this.technicalTitles = technicalTitles;
+	}
+	
+	public String getTechnicalTitles(){
+		return this.technicalTitles;
+	}
+			
+	public void setEntryDate(java.util.Date entryDate){
+		this.entryDate = entryDate;
+	}
+	
+	public java.util.Date getEntryDate(){
+		return this.entryDate;
+	}
+			
+	public void setCertificateType(String certificateType){
+		this.certificateType = certificateType;
+	}
+	
+	public String getCertificateType(){
+		return this.certificateType;
+	}
+			
+	public void setCertificateNum(String certificateNum){
+		this.certificateNum = certificateNum;
+	}
+	
+	public String getCertificateNum(){
+		return this.certificateNum;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setIntroduction(String introduction){
+		this.introduction = introduction;
+	}
+	
+	public String getIntroduction(){
+		return this.introduction;
+	}
+			
+	public void setDemissionDate(java.util.Date demissionDate){
+		this.demissionDate = demissionDate;
+	}
+	
+	public java.util.Date getDemissionDate(){
+		return this.demissionDate;
+	}
+			
+	public void setContactAddress(String contactAddress){
+		this.contactAddress = contactAddress;
+	}
+	
+	public String getContactAddress(){
+		return this.contactAddress;
+	}
+			
+	public void setPostalCode(String postalCode){
+		this.postalCode = postalCode;
+	}
+	
+	public String getPostalCode(){
+		return this.postalCode;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 103 - 0
edu-common/src/main/java/com/keao/edu/common/entity/HelpCenterCatalog.java

@@ -0,0 +1,103 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(help_center_catalog):
+ */
+public class HelpCenterCatalog {
+
+	/**  */
+	private Integer id;
+	
+	/** 父分类ID */
+	private Integer parentId;
+	
+	/** 分类名称 */
+	private String name;
+	
+	/** 描述 */
+	private String description;
+	
+	/** 创建时间 */
+	private java.util.Date createOn;
+	
+	/** 修改时间 */
+	private java.util.Date modifyOn;
+	
+	/** 排序 */
+	private Integer order;
+	
+	/** 状态 1 显示 0隐藏 */
+	private Integer status;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setParentId(Integer parentId){
+		this.parentId = parentId;
+	}
+	
+	public Integer getParentId(){
+		return this.parentId;
+	}
+			
+	public void setName(String name){
+		this.name = name;
+	}
+	
+	public String getName(){
+		return this.name;
+	}
+			
+	public void setDescription(String description){
+		this.description = description;
+	}
+	
+	public String getDescription(){
+		return this.description;
+	}
+			
+	public void setCreateOn(java.util.Date createOn){
+		this.createOn = createOn;
+	}
+	
+	public java.util.Date getCreateOn(){
+		return this.createOn;
+	}
+			
+	public void setModifyOn(java.util.Date modifyOn){
+		this.modifyOn = modifyOn;
+	}
+	
+	public java.util.Date getModifyOn(){
+		return this.modifyOn;
+	}
+			
+	public void setOrder(Integer order){
+		this.order = order;
+	}
+	
+	public Integer getOrder(){
+		return this.order;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 103 - 0
edu-common/src/main/java/com/keao/edu/common/entity/HelpCenterContent.java

@@ -0,0 +1,103 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(help_center_content):
+ */
+public class HelpCenterContent {
+
+	/**  */
+	private Integer id;
+	
+	/** 标题 */
+	private String title;
+	
+	/** 内容 */
+	private String content;
+	
+	/** 分类ID */
+	private Integer catalogId;
+	
+	/** 创建时间 */
+	private java.util.Date createOn;
+	
+	/** 修改时间 */
+	private java.util.Date modifyOn;
+	
+	/** 状态 1显示 0隐藏 */
+	private Integer status;
+	
+	/** 排序 */
+	private Integer order;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setTitle(String title){
+		this.title = title;
+	}
+	
+	public String getTitle(){
+		return this.title;
+	}
+			
+	public void setContent(String content){
+		this.content = content;
+	}
+	
+	public String getContent(){
+		return this.content;
+	}
+			
+	public void setCatalogId(Integer catalogId){
+		this.catalogId = catalogId;
+	}
+	
+	public Integer getCatalogId(){
+		return this.catalogId;
+	}
+			
+	public void setCreateOn(java.util.Date createOn){
+		this.createOn = createOn;
+	}
+	
+	public java.util.Date getCreateOn(){
+		return this.createOn;
+	}
+			
+	public void setModifyOn(java.util.Date modifyOn){
+		this.modifyOn = modifyOn;
+	}
+	
+	public java.util.Date getModifyOn(){
+		return this.modifyOn;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setOrder(Integer order){
+		this.order = order;
+	}
+	
+	public Integer getOrder(){
+		return this.order;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 48 - 0
edu-common/src/main/java/com/keao/edu/common/entity/Student.java

@@ -0,0 +1,48 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(student):
+ */
+public class Student {
+
+	/**  */
+	private Integer userId;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 92 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysConfig.java

@@ -0,0 +1,92 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_config):
+ */
+public class SysConfig {
+
+	/**  */
+	private Long id;
+	
+	/** 参数名称 */
+	private String paramName;
+	
+	/** 参数值 */
+	private String paranValue;
+	
+	/** 描述 */
+	private String description;
+	
+	/** 创建时间 */
+	private java.util.Date createOn;
+	
+	/** 修改时间 */
+	private java.util.Date modifyOn;
+	
+	/**  */
+	private String group;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setParamName(String paramName){
+		this.paramName = paramName;
+	}
+	
+	public String getParamName(){
+		return this.paramName;
+	}
+			
+	public void setParanValue(String paranValue){
+		this.paranValue = paranValue;
+	}
+	
+	public String getParanValue(){
+		return this.paranValue;
+	}
+			
+	public void setDescription(String description){
+		this.description = description;
+	}
+	
+	public String getDescription(){
+		return this.description;
+	}
+			
+	public void setCreateOn(java.util.Date createOn){
+		this.createOn = createOn;
+	}
+	
+	public java.util.Date getCreateOn(){
+		return this.createOn;
+	}
+			
+	public void setModifyOn(java.util.Date modifyOn){
+		this.modifyOn = modifyOn;
+	}
+	
+	public java.util.Date getModifyOn(){
+		return this.modifyOn;
+	}
+			
+	public void setGroup(String group){
+		this.group = group;
+	}
+	
+	public String getGroup(){
+		return this.group;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 191 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysMenu.java

@@ -0,0 +1,191 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_menu):
+ */
+public class SysMenu {
+
+	/** 菜单ID */
+	private Integer id;
+	
+	/** 菜单名称 */
+	private String name;
+	
+	/** 菜单权限标识 */
+	private String permission;
+	
+	/** 父级路由 */
+	private String parentPermission;
+	
+	/** 接口地址 */
+	private String path;
+	
+	/** 父菜单ID */
+	private Integer parentId;
+	
+	/** 图标 */
+	private String icon;
+	
+	/** 前端页面地址 */
+	private String component;
+	
+	/** 排序值 */
+	private Integer sort;
+	
+	/** 0-开启,1- 关闭 */
+	private boolean keepAlive;
+	
+	/** 菜单类型 (0菜单 1按钮) */
+	private String type;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	/** 更新时间 */
+	private java.util.Date updateTime;
+	
+	/** 逻辑删除标记(0--正常 1--删除) */
+	private boolean delFlag;
+	
+	/** 0显示,1不显示 */
+	private Integer hidden;
+	
+	/**  */
+	private String memo;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setName(String name){
+		this.name = name;
+	}
+	
+	public String getName(){
+		return this.name;
+	}
+			
+	public void setPermission(String permission){
+		this.permission = permission;
+	}
+	
+	public String getPermission(){
+		return this.permission;
+	}
+			
+	public void setParentPermission(String parentPermission){
+		this.parentPermission = parentPermission;
+	}
+	
+	public String getParentPermission(){
+		return this.parentPermission;
+	}
+			
+	public void setPath(String path){
+		this.path = path;
+	}
+	
+	public String getPath(){
+		return this.path;
+	}
+			
+	public void setParentId(Integer parentId){
+		this.parentId = parentId;
+	}
+	
+	public Integer getParentId(){
+		return this.parentId;
+	}
+			
+	public void setIcon(String icon){
+		this.icon = icon;
+	}
+	
+	public String getIcon(){
+		return this.icon;
+	}
+			
+	public void setComponent(String component){
+		this.component = component;
+	}
+	
+	public String getComponent(){
+		return this.component;
+	}
+			
+	public void setSort(Integer sort){
+		this.sort = sort;
+	}
+	
+	public Integer getSort(){
+		return this.sort;
+	}
+			
+	public void setKeepAlive(boolean keepAlive){
+		this.keepAlive = keepAlive;
+	}
+	
+	public boolean isKeepAlive(){
+		return this.keepAlive;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setDelFlag(boolean delFlag){
+		this.delFlag = delFlag;
+	}
+	
+	public boolean isDelFlag(){
+		return this.delFlag;
+	}
+			
+	public void setHidden(Integer hidden){
+		this.hidden = hidden;
+	}
+	
+	public Integer getHidden(){
+		return this.hidden;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 169 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysMessage.java

@@ -0,0 +1,169 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_message):
+ */
+public class SysMessage {
+
+	/** 主键 */
+	private Long id;
+	
+	/** 标题 */
+	private String title;
+	
+	/** 消息内容 */
+	private String content;
+	
+	/** 消息类型;1,表示短信;2,表示邮件; 3,app推送消息 */
+	private Integer type;
+	
+	/** 状态,1,发送失败;2,待发送;3,发送中;4,发送完成 */
+	private Integer status;
+	
+	/** 接收人(多个人用逗号分隔) */
+	private String receiver;
+	
+	/** 发送时间 */
+	private java.util.Date sendTime;
+	
+	/** 错误信息 */
+	private String errorMsg;
+	
+	/** 创建时间 */
+	private java.util.Date createOn;
+	
+	/** 修改时间 */
+	private java.util.Date modifyOn;
+	
+	/** 用户编号 */
+	private Integer userId;
+	
+	/** 备注 */
+	private String memo;
+	
+	/** 是否已读 */
+	private Integer readStatus;
+	
+	/** 消息组 */
+	private String group;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setTitle(String title){
+		this.title = title;
+	}
+	
+	public String getTitle(){
+		return this.title;
+	}
+			
+	public void setContent(String content){
+		this.content = content;
+	}
+	
+	public String getContent(){
+		return this.content;
+	}
+			
+	public void setType(Integer type){
+		this.type = type;
+	}
+	
+	public Integer getType(){
+		return this.type;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setReceiver(String receiver){
+		this.receiver = receiver;
+	}
+	
+	public String getReceiver(){
+		return this.receiver;
+	}
+			
+	public void setSendTime(java.util.Date sendTime){
+		this.sendTime = sendTime;
+	}
+	
+	public java.util.Date getSendTime(){
+		return this.sendTime;
+	}
+			
+	public void setErrorMsg(String errorMsg){
+		this.errorMsg = errorMsg;
+	}
+	
+	public String getErrorMsg(){
+		return this.errorMsg;
+	}
+			
+	public void setCreateOn(java.util.Date createOn){
+		this.createOn = createOn;
+	}
+	
+	public java.util.Date getCreateOn(){
+		return this.createOn;
+	}
+			
+	public void setModifyOn(java.util.Date modifyOn){
+		this.modifyOn = modifyOn;
+	}
+	
+	public java.util.Date getModifyOn(){
+		return this.modifyOn;
+	}
+			
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	public void setReadStatus(Integer readStatus){
+		this.readStatus = readStatus;
+	}
+	
+	public Integer getReadStatus(){
+		return this.readStatus;
+	}
+			
+	public void setGroup(String group){
+		this.group = group;
+	}
+	
+	public String getGroup(){
+		return this.group;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 103 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysMessageConfig.java

@@ -0,0 +1,103 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_message_config):
+ */
+public class SysMessageConfig {
+
+	/**  */
+	private Integer id;
+	
+	/** 消息类型 */
+	private String messageType;
+	
+	/** 消息内容 */
+	private String content;
+	
+	/** 描述 */
+	private String description;
+	
+	/** 最后修改时间 */
+	private java.util.Date modifyOn;
+	
+	/** 跳转url */
+	private String url;
+	
+	/** 消息组 */
+	private String group;
+	
+	/** 当前消息是否发送,0不发送,1发送 */
+	private Integer sendFlag;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setMessageType(String messageType){
+		this.messageType = messageType;
+	}
+	
+	public String getMessageType(){
+		return this.messageType;
+	}
+			
+	public void setContent(String content){
+		this.content = content;
+	}
+	
+	public String getContent(){
+		return this.content;
+	}
+			
+	public void setDescription(String description){
+		this.description = description;
+	}
+	
+	public String getDescription(){
+		return this.description;
+	}
+			
+	public void setModifyOn(java.util.Date modifyOn){
+		this.modifyOn = modifyOn;
+	}
+	
+	public java.util.Date getModifyOn(){
+		return this.modifyOn;
+	}
+			
+	public void setUrl(String url){
+		this.url = url;
+	}
+	
+	public String getUrl(){
+		return this.url;
+	}
+			
+	public void setGroup(String group){
+		this.group = group;
+	}
+	
+	public String getGroup(){
+		return this.group;
+	}
+			
+	public void setSendFlag(Integer sendFlag){
+		this.sendFlag = sendFlag;
+	}
+	
+	public Integer getSendFlag(){
+		return this.sendFlag;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 169 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysNewsInformation.java

@@ -0,0 +1,169 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_news_information):
+ */
+public class SysNewsInformation {
+
+	/**  */
+	private Long id;
+	
+	/** 标题 */
+	private String title;
+	
+	/** 内容 */
+	private String content;
+	
+	/** 封面图片 */
+	private String coverImage;
+	
+	/** 类型 */
+	private Integer type;
+	
+	/** 状态(1-可见 0-不可见) */
+	private String status;
+	
+	/** 备注 */
+	private String memo;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	/** 链接地址 */
+	private String linkUrl;
+	
+	/** 跳转类型_bank,_slef */
+	private String hrefTarget;
+	
+	/** 顺序号 */
+	private Integer order;
+	
+	/**  */
+	private boolean delFlag;
+	
+	/** 1-对内;2-对外 */
+	private Integer tenantId;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setTitle(String title){
+		this.title = title;
+	}
+	
+	public String getTitle(){
+		return this.title;
+	}
+			
+	public void setContent(String content){
+		this.content = content;
+	}
+	
+	public String getContent(){
+		return this.content;
+	}
+			
+	public void setCoverImage(String coverImage){
+		this.coverImage = coverImage;
+	}
+	
+	public String getCoverImage(){
+		return this.coverImage;
+	}
+			
+	public void setType(Integer type){
+		this.type = type;
+	}
+	
+	public Integer getType(){
+		return this.type;
+	}
+			
+	public void setStatus(String status){
+		this.status = status;
+	}
+	
+	public String getStatus(){
+		return this.status;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setLinkUrl(String linkUrl){
+		this.linkUrl = linkUrl;
+	}
+	
+	public String getLinkUrl(){
+		return this.linkUrl;
+	}
+			
+	public void setHrefTarget(String hrefTarget){
+		this.hrefTarget = hrefTarget;
+	}
+	
+	public String getHrefTarget(){
+		return this.hrefTarget;
+	}
+			
+	public void setOrder(Integer order){
+		this.order = order;
+	}
+	
+	public Integer getOrder(){
+		return this.order;
+	}
+			
+	public void setDelFlag(boolean delFlag){
+		this.delFlag = delFlag;
+	}
+	
+	public boolean isDelFlag(){
+		return this.delFlag;
+	}
+			
+	public void setTenantId(Integer tenantId){
+		this.tenantId = tenantId;
+	}
+	
+	public Integer getTenantId(){
+		return this.tenantId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 136 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysOauthClientDetails.java

@@ -0,0 +1,136 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_oauth_client_details):
+ */
+public class SysOauthClientDetails {
+
+	/** 客户端ID */
+	private String id;
+	
+	/** 资源ID */
+	private String resourceIds;
+	
+	/** 客户端密钥 */
+	private String clientSecret;
+	
+	/** 作用域 */
+	private String scope;
+	
+	/** 授权方式 */
+	private String authorizedGrantTypes;
+	
+	/**  */
+	private String webServerRedirectUri;
+	
+	/**  */
+	private String authorities;
+	
+	/** 请求令牌有效时间 */
+	private Integer accessTokenValidity;
+	
+	/** 刷新令牌有效时间 */
+	private Integer refreshTokenValidity;
+	
+	/** 扩展信息 */
+	private String additionalInformation;
+	
+	/** 是否自动放行 */
+	private String autoapprove;
+	
+	public void setId(String id){
+		this.id = id;
+	}
+	
+	public String getId(){
+		return this.id;
+	}
+			
+	public void setResourceIds(String resourceIds){
+		this.resourceIds = resourceIds;
+	}
+	
+	public String getResourceIds(){
+		return this.resourceIds;
+	}
+			
+	public void setClientSecret(String clientSecret){
+		this.clientSecret = clientSecret;
+	}
+	
+	public String getClientSecret(){
+		return this.clientSecret;
+	}
+			
+	public void setScope(String scope){
+		this.scope = scope;
+	}
+	
+	public String getScope(){
+		return this.scope;
+	}
+			
+	public void setAuthorizedGrantTypes(String authorizedGrantTypes){
+		this.authorizedGrantTypes = authorizedGrantTypes;
+	}
+	
+	public String getAuthorizedGrantTypes(){
+		return this.authorizedGrantTypes;
+	}
+			
+	public void setWebServerRedirectUri(String webServerRedirectUri){
+		this.webServerRedirectUri = webServerRedirectUri;
+	}
+	
+	public String getWebServerRedirectUri(){
+		return this.webServerRedirectUri;
+	}
+			
+	public void setAuthorities(String authorities){
+		this.authorities = authorities;
+	}
+	
+	public String getAuthorities(){
+		return this.authorities;
+	}
+			
+	public void setAccessTokenValidity(Integer accessTokenValidity){
+		this.accessTokenValidity = accessTokenValidity;
+	}
+	
+	public Integer getAccessTokenValidity(){
+		return this.accessTokenValidity;
+	}
+			
+	public void setRefreshTokenValidity(Integer refreshTokenValidity){
+		this.refreshTokenValidity = refreshTokenValidity;
+	}
+	
+	public Integer getRefreshTokenValidity(){
+		return this.refreshTokenValidity;
+	}
+			
+	public void setAdditionalInformation(String additionalInformation){
+		this.additionalInformation = additionalInformation;
+	}
+	
+	public String getAdditionalInformation(){
+		return this.additionalInformation;
+	}
+			
+	public void setAutoapprove(String autoapprove){
+		this.autoapprove = autoapprove;
+	}
+	
+	public String getAutoapprove(){
+		return this.autoapprove;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 103 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysRole.java

@@ -0,0 +1,103 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_role):
+ */
+public class SysRole {
+
+	/**  */
+	private Integer id;
+	
+	/**  */
+	private String roleName;
+	
+	/**  */
+	private String roleCode;
+	
+	/**  */
+	private String roleDesc;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	/** 删除标识(0-正常,1-删除) */
+	private String delFlag;
+	
+	/** 分部编号 */
+	private Integer organId;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setRoleName(String roleName){
+		this.roleName = roleName;
+	}
+	
+	public String getRoleName(){
+		return this.roleName;
+	}
+			
+	public void setRoleCode(String roleCode){
+		this.roleCode = roleCode;
+	}
+	
+	public String getRoleCode(){
+		return this.roleCode;
+	}
+			
+	public void setRoleDesc(String roleDesc){
+		this.roleDesc = roleDesc;
+	}
+	
+	public String getRoleDesc(){
+		return this.roleDesc;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setDelFlag(String delFlag){
+		this.delFlag = delFlag;
+	}
+	
+	public String getDelFlag(){
+		return this.delFlag;
+	}
+			
+	public void setOrganId(Integer organId){
+		this.organId = organId;
+	}
+	
+	public Integer getOrganId(){
+		return this.organId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 37 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysRoleMenu.java

@@ -0,0 +1,37 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_role_menu):
+ */
+public class SysRoleMenu {
+
+	/** 角色ID */
+	private Integer roleId;
+	
+	/** 菜单ID */
+	private Integer menuId;
+	
+	public void setRoleId(Integer roleId){
+		this.roleId = roleId;
+	}
+	
+	public Integer getRoleId(){
+		return this.roleId;
+	}
+			
+	public void setMenuId(Integer menuId){
+		this.menuId = menuId;
+	}
+	
+	public Integer getMenuId(){
+		return this.menuId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 92 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysSuggestion.java

@@ -0,0 +1,92 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_suggestion):
+ */
+public class SysSuggestion {
+
+	/** 编号 */
+	private Long id;
+	
+	/** 联系方式 */
+	private String mobileNo;
+	
+	/** 标题 */
+	private String title;
+	
+	/** 内容 */
+	private String content;
+	
+	/** 用户编号 */
+	private Long userId;
+	
+	/** 提交时间 */
+	private java.util.Date createTime;
+	
+	/**  */
+	private String clientType;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setMobileNo(String mobileNo){
+		this.mobileNo = mobileNo;
+	}
+	
+	public String getMobileNo(){
+		return this.mobileNo;
+	}
+			
+	public void setTitle(String title){
+		this.title = title;
+	}
+	
+	public String getTitle(){
+		return this.title;
+	}
+			
+	public void setContent(String content){
+		this.content = content;
+	}
+	
+	public String getContent(){
+		return this.content;
+	}
+			
+	public void setUserId(Long userId){
+		this.userId = userId;
+	}
+	
+	public Long getUserId(){
+		return this.userId;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setClientType(String clientType){
+		this.clientType = clientType;
+	}
+	
+	public String getClientType(){
+		return this.clientType;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 114 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysTask.java

@@ -0,0 +1,114 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_task):
+ */
+public class SysTask {
+
+	/** 任务id,主键 */
+	private Integer id;
+	
+	/** 任务名称 */
+	private String name;
+	
+	/** 任务所属分组 */
+	private String group;
+	
+	/** 具体任务接口 */
+	private String jobClass;
+	
+	/** 任务执行的时间表达式 */
+	private String timeExp;
+	
+	/** 状态(-1,执行失败;0,暂停;1,准备就绪;2,执行中;3,执行成功) */
+	private Integer status;
+	
+	/** 任务描述 */
+	private String description;
+	
+	/** 创建时间 */
+	private java.util.Date createOn;
+	
+	/** 修改时间 */
+	private java.util.Date modifyOn;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setName(String name){
+		this.name = name;
+	}
+	
+	public String getName(){
+		return this.name;
+	}
+			
+	public void setGroup(String group){
+		this.group = group;
+	}
+	
+	public String getGroup(){
+		return this.group;
+	}
+			
+	public void setJobClass(String jobClass){
+		this.jobClass = jobClass;
+	}
+	
+	public String getJobClass(){
+		return this.jobClass;
+	}
+			
+	public void setTimeExp(String timeExp){
+		this.timeExp = timeExp;
+	}
+	
+	public String getTimeExp(){
+		return this.timeExp;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setDescription(String description){
+		this.description = description;
+	}
+	
+	public String getDescription(){
+		return this.description;
+	}
+			
+	public void setCreateOn(java.util.Date createOn){
+		this.createOn = createOn;
+	}
+	
+	public java.util.Date getCreateOn(){
+		return this.createOn;
+	}
+			
+	public void setModifyOn(java.util.Date modifyOn){
+		this.modifyOn = modifyOn;
+	}
+	
+	public java.util.Date getModifyOn(){
+		return this.modifyOn;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 268 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysUser.java

@@ -0,0 +1,268 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user):
+ */
+public class SysUser {
+
+	/** 主键ID */
+	private Integer id;
+	
+	/** 用户名 */
+	private String username;
+	
+	/**  */
+	private String password;
+	
+	/** 随机盐 */
+	private String salt;
+	
+	/** 简介 */
+	private String phone;
+	
+	/** 头像 */
+	private String avatar;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	/** 修改时间 */
+	private java.util.Date updateTime;
+	
+	/** 0-正常,9-锁定 */
+	private String lockFlag;
+	
+	/** 0-正常,1-删除 */
+	private String delFlag;
+	
+	/** 微信openid */
+	private String wxOpenid;
+	
+	/** QQ openid */
+	private String qqOpenid;
+	
+	/** 用户类型(STUDENT/TEACHER/SYSTEM) */
+	private String userType;
+	
+	/** 性别(0,女  1,男) */
+	private String gender;
+	
+	/** 民族 */
+	private String nation;
+	
+	/** 出生日期 */
+	private java.util.Date birthdate;
+	
+	/** 邮箱 */
+	private String email;
+	
+	/**  */
+	private String organId;
+	
+	/** 融云token */
+	private String imToken;
+	
+	/** 真实姓名 */
+	private String realName;
+	
+	/** 身份证号码 */
+	private String idCardNo;
+	
+	/** 是否是超管 */
+	private boolean isSuperAdmin;
+	
+	/** 微信号 */
+	private String wechatId;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setUsername(String username){
+		this.username = username;
+	}
+	
+	public String getUsername(){
+		return this.username;
+	}
+			
+	public void setPassword(String password){
+		this.password = password;
+	}
+	
+	public String getPassword(){
+		return this.password;
+	}
+			
+	public void setSalt(String salt){
+		this.salt = salt;
+	}
+	
+	public String getSalt(){
+		return this.salt;
+	}
+			
+	public void setPhone(String phone){
+		this.phone = phone;
+	}
+	
+	public String getPhone(){
+		return this.phone;
+	}
+			
+	public void setAvatar(String avatar){
+		this.avatar = avatar;
+	}
+	
+	public String getAvatar(){
+		return this.avatar;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setLockFlag(String lockFlag){
+		this.lockFlag = lockFlag;
+	}
+	
+	public String getLockFlag(){
+		return this.lockFlag;
+	}
+			
+	public void setDelFlag(String delFlag){
+		this.delFlag = delFlag;
+	}
+	
+	public String getDelFlag(){
+		return this.delFlag;
+	}
+			
+	public void setWxOpenid(String wxOpenid){
+		this.wxOpenid = wxOpenid;
+	}
+	
+	public String getWxOpenid(){
+		return this.wxOpenid;
+	}
+			
+	public void setQqOpenid(String qqOpenid){
+		this.qqOpenid = qqOpenid;
+	}
+	
+	public String getQqOpenid(){
+		return this.qqOpenid;
+	}
+			
+	public void setUserType(String userType){
+		this.userType = userType;
+	}
+	
+	public String getUserType(){
+		return this.userType;
+	}
+			
+	public void setGender(String gender){
+		this.gender = gender;
+	}
+	
+	public String getGender(){
+		return this.gender;
+	}
+			
+	public void setNation(String nation){
+		this.nation = nation;
+	}
+	
+	public String getNation(){
+		return this.nation;
+	}
+			
+	public void setBirthdate(java.util.Date birthdate){
+		this.birthdate = birthdate;
+	}
+	
+	public java.util.Date getBirthdate(){
+		return this.birthdate;
+	}
+			
+	public void setEmail(String email){
+		this.email = email;
+	}
+	
+	public String getEmail(){
+		return this.email;
+	}
+			
+	public void setOrganId(String organId){
+		this.organId = organId;
+	}
+	
+	public String getOrganId(){
+		return this.organId;
+	}
+			
+	public void setImToken(String imToken){
+		this.imToken = imToken;
+	}
+	
+	public String getImToken(){
+		return this.imToken;
+	}
+			
+	public void setRealName(String realName){
+		this.realName = realName;
+	}
+	
+	public String getRealName(){
+		return this.realName;
+	}
+			
+	public void setIdCardNo(String idCardNo){
+		this.idCardNo = idCardNo;
+	}
+	
+	public String getIdCardNo(){
+		return this.idCardNo;
+	}
+			
+	public void setIsSuperAdmin(boolean isSuperAdmin){
+		this.isSuperAdmin = isSuperAdmin;
+	}
+	
+	public boolean isIsSuperAdmin(){
+		return this.isSuperAdmin;
+	}
+			
+	public void setWechatId(String wechatId){
+		this.wechatId = wechatId;
+	}
+	
+	public String getWechatId(){
+		return this.wechatId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 92 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysUserContracts.java

@@ -0,0 +1,92 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user_contracts):
+ */
+public class SysUserContracts {
+
+	/**  */
+	private Long id;
+	
+	/**  */
+	private Integer userId;
+	
+	/** 合同号 */
+	private String contractNo;
+	
+	/** 协议类型 */
+	private String type;
+	
+	/** 协议地址 */
+	private String url;
+	
+	/** 备注 */
+	private String memo;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setContractNo(String contractNo){
+		this.contractNo = contractNo;
+	}
+	
+	public String getContractNo(){
+		return this.contractNo;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setUrl(String url){
+		this.url = url;
+	}
+	
+	public String getUrl(){
+		return this.url;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 92 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysUserLogin.java

@@ -0,0 +1,92 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user_login):
+ */
+public class SysUserLogin {
+
+	/**  */
+	private Integer userId;
+	
+	/** 用户登录总次数 */
+	private Integer loginCount;
+	
+	/** 最后登录时间 */
+	private java.util.Date lastLoginTime;
+	
+	/** 最后登录IP */
+	private String lastLoginIp;
+	
+	/** 连续登陆失败的次数 */
+	private Integer failCount;
+	
+	/** 锁定时间 单位:分钟(超过锁定时间自动解锁) */
+	private Integer lockTime;
+	
+	/** 锁定日期 */
+	private java.util.Date lockDate;
+	
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setLoginCount(Integer loginCount){
+		this.loginCount = loginCount;
+	}
+	
+	public Integer getLoginCount(){
+		return this.loginCount;
+	}
+			
+	public void setLastLoginTime(java.util.Date lastLoginTime){
+		this.lastLoginTime = lastLoginTime;
+	}
+	
+	public java.util.Date getLastLoginTime(){
+		return this.lastLoginTime;
+	}
+			
+	public void setLastLoginIp(String lastLoginIp){
+		this.lastLoginIp = lastLoginIp;
+	}
+	
+	public String getLastLoginIp(){
+		return this.lastLoginIp;
+	}
+			
+	public void setFailCount(Integer failCount){
+		this.failCount = failCount;
+	}
+	
+	public Integer getFailCount(){
+		return this.failCount;
+	}
+			
+	public void setLockTime(Integer lockTime){
+		this.lockTime = lockTime;
+	}
+	
+	public Integer getLockTime(){
+		return this.lockTime;
+	}
+			
+	public void setLockDate(java.util.Date lockDate){
+		this.lockDate = lockDate;
+	}
+	
+	public java.util.Date getLockDate(){
+		return this.lockDate;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 70 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysUserLoginLog.java

@@ -0,0 +1,70 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user_login_log):
+ */
+public class SysUserLoginLog {
+
+	/** 会员ID */
+	private Integer userId;
+	
+	/** 登录IP */
+	private String loginIp;
+	
+	/** 登录时间 */
+	private java.util.Date loginTime;
+	
+	/** 终端类型(0,pc端;1,人工;2,移动端;3,自动) */
+	private Integer source;
+	
+	/**  */
+	private Long id;
+	
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setLoginIp(String loginIp){
+		this.loginIp = loginIp;
+	}
+	
+	public String getLoginIp(){
+		return this.loginIp;
+	}
+			
+	public void setLoginTime(java.util.Date loginTime){
+		this.loginTime = loginTime;
+	}
+	
+	public java.util.Date getLoginTime(){
+		return this.loginTime;
+	}
+			
+	public void setSource(Integer source){
+		this.source = source;
+	}
+	
+	public Integer getSource(){
+		return this.source;
+	}
+			
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 37 - 0
edu-common/src/main/java/com/keao/edu/common/entity/SysUserRole.java

@@ -0,0 +1,37 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user_role):
+ */
+public class SysUserRole {
+
+	/** 用户ID */
+	private Integer userId;
+	
+	/** 角色ID */
+	private Integer roleId;
+	
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setRoleId(Integer roleId){
+		this.roleId = roleId;
+	}
+	
+	public Integer getRoleId(){
+		return this.roleId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 114 - 0
edu-common/src/main/java/com/keao/edu/common/entity/TenantInfo.java

@@ -0,0 +1,114 @@
+package com.keao.edu.common.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(tenant_info):
+ */
+public class TenantInfo {
+
+	/**  */
+	private Integer id;
+	
+	/**  */
+	private String name;
+	
+	/**  */
+	private String address;
+	
+	/**  */
+	private String domainName;
+	
+	/**  */
+	private String logoUrl;
+	
+	/**  */
+	private String contactName;
+	
+	/**  */
+	private String contactPhone;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	public void setId(Integer id){
+		this.id = id;
+	}
+	
+	public Integer getId(){
+		return this.id;
+	}
+			
+	public void setName(String name){
+		this.name = name;
+	}
+	
+	public String getName(){
+		return this.name;
+	}
+			
+	public void setAddress(String address){
+		this.address = address;
+	}
+	
+	public String getAddress(){
+		return this.address;
+	}
+			
+	public void setDomainName(String domainName){
+		this.domainName = domainName;
+	}
+	
+	public String getDomainName(){
+		return this.domainName;
+	}
+			
+	public void setLogoUrl(String logoUrl){
+		this.logoUrl = logoUrl;
+	}
+	
+	public String getLogoUrl(){
+		return this.logoUrl;
+	}
+			
+	public void setContactName(String contactName){
+		this.contactName = contactName;
+	}
+	
+	public String getContactName(){
+		return this.contactName;
+	}
+			
+	public void setContactPhone(String contactPhone){
+		this.contactPhone = contactPhone;
+	}
+	
+	public String getContactPhone(){
+		return this.contactPhone;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/DatabaseSourceService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.DatabaseSource;
+
+public interface DatabaseSourceService extends BaseService<Integer, DatabaseSource> {
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/EmployeeService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.Employee;
+
+public interface EmployeeService extends BaseService<Integer, Employee> {
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/HelpCenterCatalogService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.HelpCenterCatalog;
+
+public interface HelpCenterCatalogService extends BaseService<Integer, HelpCenterCatalog> {
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/HelpCenterContentService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.HelpCenterContent;
+
+public interface HelpCenterContentService extends BaseService<Integer, HelpCenterContent> {
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/StudentService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.Student;
+
+public interface StudentService extends BaseService<Integer,Student>{
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysConfigService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.SysConfig;
+
+public interface SysConfigService extends BaseService<Long, SysConfig> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysMenuService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysMenu;
+
+public interface SysMenuService extends BaseService<Integer, SysMenu> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysMessageConfigService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysMessageConfig;
+
+public interface SysMessageConfigService extends BaseService<Integer, SysMessageConfig> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysMessageService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysMessage;
+
+public interface SysMessageService extends BaseService<Long, SysMessage> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysNewsInformationService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysNewsInformation;
+
+public interface SysNewsInformationService extends BaseService<Long, SysNewsInformation> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysOauthClientDetailsService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysOauthClientDetails;
+
+public interface SysOauthClientDetailsService extends BaseService<String, SysOauthClientDetails> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysRoleMenuService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysRoleMenu;
+
+public interface SysRoleMenuService extends BaseService<Integer, SysRoleMenu> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysRoleService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysRole;
+
+public interface SysRoleService extends BaseService<Integer, SysRole> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysSuggestionService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysSuggestion;
+
+public interface SysSuggestionService extends BaseService<Long, SysSuggestion> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysTaskService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysTask;
+
+public interface SysTaskService extends BaseService<Integer, SysTask> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysUserContractsService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysUserContracts;
+
+public interface SysUserContractsService extends BaseService<Long, SysUserContracts> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysUserLoginLogService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysUserLoginLog;
+
+public interface SysUserLoginLogService extends BaseService<Long, SysUserLoginLog> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysUserLoginService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysUserLogin;
+
+public interface SysUserLoginService extends BaseService<Integer, SysUserLogin> {
+
+}

+ 8 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysUserRoleService.java

@@ -0,0 +1,8 @@
+package com.keao.edu.common.service;
+
+
+import com.keao.edu.common.entity.SysUserRole;
+
+public interface SysUserRoleService extends BaseService<Integer, SysUserRole> {
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/SysUserService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.SysUser;
+
+public interface SysUserService extends BaseService<Integer, SysUser> {
+
+}

+ 7 - 0
edu-common/src/main/java/com/keao/edu/common/service/TenantInfoService.java

@@ -0,0 +1,7 @@
+package com.keao.edu.common.service;
+
+import com.keao.edu.common.entity.TenantInfo;
+
+public interface TenantInfoService extends BaseService<Integer, TenantInfo> {
+
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/DatabaseSourceServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.DatabaseSourceDao;
+import com.keao.edu.common.entity.DatabaseSource;
+import com.keao.edu.common.service.DatabaseSourceService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class DatabaseSourceServiceImpl extends BaseServiceImpl<Integer, DatabaseSource>  implements DatabaseSourceService {
+	
+	@Autowired
+	private DatabaseSourceDao databaseSourceDao;
+
+	@Override
+	public BaseDAO<Integer, DatabaseSource> getDAO() {
+		return databaseSourceDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/EmployeeServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.EmployeeDao;
+import com.keao.edu.common.entity.Employee;
+import com.keao.edu.common.service.EmployeeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class EmployeeServiceImpl extends BaseServiceImpl<Integer, Employee>  implements EmployeeService {
+	
+	@Autowired
+	private EmployeeDao employeeDao;
+
+	@Override
+	public BaseDAO<Integer, Employee> getDAO() {
+		return employeeDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/HelpCenterCatalogServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.HelpCenterCatalogDao;
+import com.keao.edu.common.entity.HelpCenterCatalog;
+import com.keao.edu.common.service.HelpCenterCatalogService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class HelpCenterCatalogServiceImpl extends BaseServiceImpl<Integer, HelpCenterCatalog>  implements HelpCenterCatalogService {
+	
+	@Autowired
+	private HelpCenterCatalogDao helpCenterCatalogDao;
+
+	@Override
+	public BaseDAO<Integer, HelpCenterCatalog> getDAO() {
+		return helpCenterCatalogDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/HelpCenterContentServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.HelpCenterContentDao;
+import com.keao.edu.common.entity.HelpCenterContent;
+import com.keao.edu.common.service.HelpCenterContentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class HelpCenterContentServiceImpl extends BaseServiceImpl<Integer, HelpCenterContent>  implements HelpCenterContentService {
+	
+	@Autowired
+	private HelpCenterContentDao helpCenterContentDao;
+
+	@Override
+	public BaseDAO<Integer, HelpCenterContent> getDAO() {
+		return helpCenterContentDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/StudentServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.StudentDao;
+import com.keao.edu.common.entity.Student;
+import com.keao.edu.common.service.StudentService;
+import com.keao.edu.common.service.impl.BaseServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implements StudentService{
+
+	@Autowired
+	private StudentDao studentDao;
+
+	@Override
+	public BaseDAO<Integer, Student> getDAO() {
+		return studentDao;
+	}
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysConfigServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysConfigDao;
+import com.keao.edu.common.entity.SysConfig;
+import com.keao.edu.common.service.SysConfigService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysConfigServiceImpl extends BaseServiceImpl<Long, SysConfig>  implements SysConfigService {
+	
+	@Autowired
+	private SysConfigDao sysConfigDao;
+
+	@Override
+	public BaseDAO<Long, SysConfig> getDAO() {
+		return sysConfigDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysMenuServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysMenuDao;
+import com.keao.edu.common.entity.SysMenu;
+import com.keao.edu.common.service.SysMenuService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysMenuServiceImpl extends BaseServiceImpl<Integer, SysMenu>  implements SysMenuService {
+	
+	@Autowired
+	private SysMenuDao sysMenuDao;
+
+	@Override
+	public BaseDAO<Integer, SysMenu> getDAO() {
+		return sysMenuDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysMessageConfigServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysMessageConfigDao;
+import com.keao.edu.common.entity.SysMessageConfig;
+import com.keao.edu.common.service.SysMessageConfigService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysMessageConfigServiceImpl extends BaseServiceImpl<Integer, SysMessageConfig>  implements SysMessageConfigService {
+	
+	@Autowired
+	private SysMessageConfigDao sysMessageConfigDao;
+
+	@Override
+	public BaseDAO<Integer, SysMessageConfig> getDAO() {
+		return sysMessageConfigDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysMessageServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysMessageDao;
+import com.keao.edu.common.entity.SysMessage;
+import com.keao.edu.common.service.SysMessageService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysMessageServiceImpl extends BaseServiceImpl<Long, SysMessage>  implements SysMessageService {
+	
+	@Autowired
+	private SysMessageDao sysMessageDao;
+
+	@Override
+	public BaseDAO<Long, SysMessage> getDAO() {
+		return sysMessageDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysNewsInformationServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysNewsInformationDao;
+import com.keao.edu.common.entity.SysNewsInformation;
+import com.keao.edu.common.service.SysNewsInformationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysNewsInformationServiceImpl extends BaseServiceImpl<Long, SysNewsInformation>  implements SysNewsInformationService {
+	
+	@Autowired
+	private SysNewsInformationDao sysNewsInformationDao;
+
+	@Override
+	public BaseDAO<Long, SysNewsInformation> getDAO() {
+		return sysNewsInformationDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysOauthClientDetailsServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysOauthClientDetailsDao;
+import com.keao.edu.common.entity.SysOauthClientDetails;
+import com.keao.edu.common.service.SysOauthClientDetailsService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysOauthClientDetailsServiceImpl extends BaseServiceImpl<String, SysOauthClientDetails>  implements SysOauthClientDetailsService {
+	
+	@Autowired
+	private SysOauthClientDetailsDao sysOauthClientDetailsDao;
+
+	@Override
+	public BaseDAO<String, SysOauthClientDetails> getDAO() {
+		return sysOauthClientDetailsDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysRoleMenuServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysRoleMenuDao;
+import com.keao.edu.common.entity.SysRoleMenu;
+import com.keao.edu.common.service.SysRoleMenuService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysRoleMenuServiceImpl extends BaseServiceImpl<Integer, SysRoleMenu>  implements SysRoleMenuService {
+	
+	@Autowired
+	private SysRoleMenuDao sysRoleMenuDao;
+
+	@Override
+	public BaseDAO<Integer, SysRoleMenu> getDAO() {
+		return sysRoleMenuDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysRoleServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysRoleDao;
+import com.keao.edu.common.entity.SysRole;
+import com.keao.edu.common.service.SysRoleService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysRoleServiceImpl extends BaseServiceImpl<Integer, SysRole>  implements SysRoleService {
+	
+	@Autowired
+	private SysRoleDao sysRoleDao;
+
+	@Override
+	public BaseDAO<Integer, SysRole> getDAO() {
+		return sysRoleDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysSuggestionServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysSuggestionDao;
+import com.keao.edu.common.entity.SysSuggestion;
+import com.keao.edu.common.service.SysSuggestionService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysSuggestionServiceImpl extends BaseServiceImpl<Long, SysSuggestion>  implements SysSuggestionService {
+	
+	@Autowired
+	private SysSuggestionDao sysSuggestionDao;
+
+	@Override
+	public BaseDAO<Long, SysSuggestion> getDAO() {
+		return sysSuggestionDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysTaskServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysTaskDao;
+import com.keao.edu.common.entity.SysTask;
+import com.keao.edu.common.service.SysTaskService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysTaskServiceImpl extends BaseServiceImpl<Integer, SysTask>  implements SysTaskService {
+	
+	@Autowired
+	private SysTaskDao sysTaskDao;
+
+	@Override
+	public BaseDAO<Integer, SysTask> getDAO() {
+		return sysTaskDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserContractsServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysUserContractsDao;
+import com.keao.edu.common.entity.SysUserContracts;
+import com.keao.edu.common.service.SysUserContractsService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysUserContractsServiceImpl extends BaseServiceImpl<Long, SysUserContracts>  implements SysUserContractsService {
+	
+	@Autowired
+	private SysUserContractsDao sysUserContractsDao;
+
+	@Override
+	public BaseDAO<Long, SysUserContracts> getDAO() {
+		return sysUserContractsDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserLoginLogServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysUserLoginLogDao;
+import com.keao.edu.common.entity.SysUserLoginLog;
+import com.keao.edu.common.service.SysUserLoginLogService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysUserLoginLogServiceImpl extends BaseServiceImpl<Long, SysUserLoginLog>  implements SysUserLoginLogService {
+	
+	@Autowired
+	private SysUserLoginLogDao sysUserLoginLogDao;
+
+	@Override
+	public BaseDAO<Long, SysUserLoginLog> getDAO() {
+		return sysUserLoginLogDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserLoginServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysUserLoginDao;
+import com.keao.edu.common.entity.SysUserLogin;
+import com.keao.edu.common.service.SysUserLoginService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysUserLoginServiceImpl extends BaseServiceImpl<Integer, SysUserLogin>  implements SysUserLoginService {
+	
+	@Autowired
+	private SysUserLoginDao sysUserLoginDao;
+
+	@Override
+	public BaseDAO<Integer, SysUserLogin> getDAO() {
+		return sysUserLoginDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserRoleServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysUserRoleDao;
+import com.keao.edu.common.entity.SysUserRole;
+import com.keao.edu.common.service.SysUserRoleService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysUserRoleServiceImpl extends BaseServiceImpl<Integer, SysUserRole>  implements SysUserRoleService {
+	
+	@Autowired
+	private SysUserRoleDao sysUserRoleDao;
+
+	@Override
+	public BaseDAO<Integer, SysUserRole> getDAO() {
+		return sysUserRoleDao;
+	}
+	
+}

+ 22 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserServiceImpl.java

@@ -0,0 +1,22 @@
+package com.keao.edu.common.service.impl;
+
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.SysUserDao;
+import com.keao.edu.common.entity.SysUser;
+import com.keao.edu.common.service.SysUserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class SysUserServiceImpl extends BaseServiceImpl<Integer, SysUser>  implements SysUserService {
+	
+	@Autowired
+	private SysUserDao sysUserDao;
+
+	@Override
+	public BaseDAO<Integer, SysUser> getDAO() {
+		return sysUserDao;
+	}
+	
+}

+ 21 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/TenantInfoServiceImpl.java

@@ -0,0 +1,21 @@
+package com.keao.edu.common.service.impl;
+
+import com.keao.edu.common.dal.BaseDAO;
+import com.keao.edu.common.dal.dao.TenantInfoDao;
+import com.keao.edu.common.entity.TenantInfo;
+import com.keao.edu.common.service.TenantInfoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class TenantInfoServiceImpl extends BaseServiceImpl<Integer, TenantInfo>  implements TenantInfoService {
+	
+	@Autowired
+	private TenantInfoDao tenantInfoDao;
+
+	@Override
+	public BaseDAO<Integer, TenantInfo> getDAO() {
+		return tenantInfoDao;
+	}
+	
+}

+ 96 - 0
edu-common/src/main/resources/config/mybatis/DatabaseSourceMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.keao.edu.common.dal.dao.DatabaseSourceDao">
+	
+	<resultMap type="com.keao.edu.common.entity.DatabaseSource" id="DatabaseSource">
+		<result column="id_" property="id" />
+		<result column="tenant_id_" property="tenantId" />
+		<result column="driver_" property="driver" />
+		<result column="url_" property="url" />
+		<result column="username_" property="username" />
+		<result column="password_" property="password" />
+		<result column="type_" property="type" />
+		<result column="memo_" property="memo" />
+		<result column="del_flag_" property="delFlag" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="DatabaseSource" >
+		SELECT * FROM database_source WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="DatabaseSource">
+		SELECT * FROM database_source ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.keao.edu.common.entity.DatabaseSource" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO database_source (id_,tenant_id_,driver_,url_,username_,password_,type_,memo_,del_flag_,create_time_,update_time_) VALUES(#{id},#{tenantId},#{driver},#{url},#{username},#{password},#{type},#{memo},#{delFlag},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.keao.edu.common.entity.DatabaseSource">
+		UPDATE database_source <set>
+<if test="delFlag != null">
+del_flag_ = #{delFlag},
+</if>
+<if test="driver != null">
+driver_ = #{driver},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="tenantId != null">
+tenant_id_ = #{tenantId},
+</if>
+<if test="url != null">
+url_ = #{url},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="password != null">
+password_ = #{password},
+</if>
+<if test="memo != null">
+memo_ = #{memo},
+</if>
+<if test="username != null">
+username_ = #{username},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM database_source WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="DatabaseSource" parameterType="map">
+		SELECT * FROM database_source ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM database_source
+	</select>
+</mapper>

+ 108 - 0
edu-common/src/main/resources/config/mybatis/EmployeeMapper.xml

@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.keao.edu.common.dal.dao.EmployeeDao">
+	
+	<resultMap type="com.keao.edu.common.entity.Employee" id="Employee">
+		<result column="user_id_" property="userId" />
+		<result column="job_nature_" property="jobNature" />
+		<result column="education_background_" property="educationBackground" />
+		<result column="graduate_school_" property="graduateSchool" />
+		<result column="technical_titles_" property="technicalTitles" />
+		<result column="entry_date_" property="entryDate" />
+		<result column="certificate_type_" property="certificateType" />
+		<result column="certificate_num_" property="certificateNum" />
+		<result column="update_time_" property="updateTime" />
+		<result column="create_time_" property="createTime" />
+		<result column="introduction_" property="introduction" />
+		<result column="demission_date_" property="demissionDate" />
+		<result column="contact_address_" property="contactAddress" />
+		<result column="postal_code_" property="postalCode" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="Employee" >
+		SELECT * FROM employee WHERE user_id_ = #{userId} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="Employee">
+		SELECT * FROM employee ORDER BY user_id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.keao.edu.common.entity.Employee" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO employee (user_id_,job_nature_,education_background_,graduate_school_,technical_titles_,entry_date_,certificate_type_,certificate_num_,update_time_,create_time_,introduction_,demission_date_,contact_address_,postal_code_) VALUES(#{userId},#{jobNature},#{educationBackground},#{graduateSchool},#{technicalTitles},#{entryDate},#{certificateType},#{certificateNum},#{updateTime},#{createTime},#{introduction},#{demissionDate},#{contactAddress},#{postalCode})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.keao.edu.common.entity.Employee">
+		UPDATE employee <set>
+<if test="graduateSchool != null">
+graduate_school_ = #{graduateSchool},
+</if>
+<if test="introduction != null">
+introduction_ = #{introduction},
+</if>
+<if test="postalCode != null">
+postal_code_ = #{postalCode},
+</if>
+<if test="technicalTitles != null">
+technical_titles_ = #{technicalTitles},
+</if>
+<if test="entryDate != null">
+entry_date_ = #{entryDate},
+</if>
+<if test="contactAddress != null">
+contact_address_ = #{contactAddress},
+</if>
+<if test="jobNature != null">
+job_nature_ = #{jobNature},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="certificateType != null">
+certificate_type_ = #{certificateType},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="educationBackground != null">
+education_background_ = #{educationBackground},
+</if>
+<if test="certificateNum != null">
+certificate_num_ = #{certificateNum},
+</if>
+<if test="demissionDate != null">
+demission_date_ = #{demissionDate},
+</if>
+</set> WHERE user_id_ = #{userId} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM employee WHERE user_id_ = #{userId} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="Employee" parameterType="map">
+		SELECT * FROM employee ORDER BY user_id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM employee
+	</select>
+</mapper>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików