Explorar o código

Merge branch 'master' of http://git.dayaedu.com/yonge/edu-saas

# Conflicts:
#	edu-auth/edu-auth-server/pom.xml
#	edu-auth/edu-auth-server/src/main/java/com/keao/edu/auth/AuthServerApplication.java
#	edu-auth/edu-auth-server/src/main/resources/application.yml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysMenuMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysOauthClientDetailsMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleDeptMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMenuMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserLoginLogMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserLoginMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysUserRoleMapper.xml
#	edu-auth/edu-auth-server/src/main/resources/logback-spring.xml
#	edu-cms/src/main/resources/application.yml
#	edu-task/src/main/resources/application.yml
#	edu-zuul/src/main/java/com/keao/edu/zuul/web/config/SwaggerDocumentConfig.java
yonge %!s(int64=5) %!d(string=hai) anos
pai
achega
27517c3b42
Modificáronse 100 ficheiros con 3783 adicións e 28 borrados
  1. 2 2
      edu-auth/edu-auth-server/src/main/resources/logback-spring.xml
  2. 3 1
      edu-cms/src/main/java/com/keao/edu/cms/CmsServerApplication.java
  3. 1 1
      edu-cms/src/main/java/com/keao/edu/cms/controller/HelpCenterContentControlller.java
  4. 1 1
      edu-cms/src/main/java/com/keao/edu/cms/controller/NewsController.java
  5. 1 1
      edu-cms/src/main/java/com/keao/edu/cms/dal/dao/HelpCenterCatalogDao.java
  6. 2 2
      edu-cms/src/main/java/com/keao/edu/cms/service/impl/SysNewsInformationServiceImpl.java
  7. 7 1
      edu-common/pom.xml
  8. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/DatabaseSourceDao.java
  9. 8 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/EmployeeDao.java
  10. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/HelpCenterCatalogDao.java
  11. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/HelpCenterContentDao.java
  12. 8 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/StudentDao.java
  13. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysConfigDao.java
  14. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMenuDao.java
  15. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMessageConfigDao.java
  16. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysMessageDao.java
  17. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysNewsInformationDao.java
  18. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysOauthClientDetailsDao.java
  19. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysRoleDao.java
  20. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysRoleMenuDao.java
  21. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysSuggestionDao.java
  22. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysTaskDao.java
  23. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserContractsDao.java
  24. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserDao.java
  25. 10 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserLoginDao.java
  26. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserLoginLogDao.java
  27. 9 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/SysUserRoleDao.java
  28. 8 0
      edu-common/src/main/java/com/keao/edu/common/dal/dao/TenantInfoDao.java
  29. 136 0
      edu-common/src/main/java/com/keao/edu/common/entity/DatabaseSource.java
  30. 178 0
      edu-common/src/main/java/com/keao/edu/common/entity/Employee.java
  31. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/HelpCenterCatalog.java
  32. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/HelpCenterContent.java
  33. 48 0
      edu-common/src/main/java/com/keao/edu/common/entity/Student.java
  34. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysConfig.java
  35. 191 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysMenu.java
  36. 169 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysMessage.java
  37. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysMessageConfig.java
  38. 169 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysNewsInformation.java
  39. 136 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysOauthClientDetails.java
  40. 103 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysRole.java
  41. 37 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysRoleMenu.java
  42. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysSuggestion.java
  43. 114 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysTask.java
  44. 268 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUser.java
  45. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserContracts.java
  46. 92 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserLogin.java
  47. 70 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserLoginLog.java
  48. 37 0
      edu-common/src/main/java/com/keao/edu/common/entity/SysUserRole.java
  49. 114 0
      edu-common/src/main/java/com/keao/edu/common/entity/TenantInfo.java
  50. 1 1
      edu-common/src/main/java/com/keao/edu/common/security/BaseAccessDeniedHandler.java
  51. 8 10
      edu-common/src/main/java/com/keao/edu/common/security/BaseAuthenticationEntryPoint.java
  52. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/DatabaseSourceService.java
  53. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/EmployeeService.java
  54. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/HelpCenterCatalogService.java
  55. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/HelpCenterContentService.java
  56. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/StudentService.java
  57. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/SysConfigService.java
  58. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysMenuService.java
  59. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysMessageConfigService.java
  60. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysMessageService.java
  61. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysNewsInformationService.java
  62. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysOauthClientDetailsService.java
  63. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysRoleMenuService.java
  64. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysRoleService.java
  65. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysSuggestionService.java
  66. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysTaskService.java
  67. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserContractsService.java
  68. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserLoginLogService.java
  69. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserLoginService.java
  70. 8 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserRoleService.java
  71. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/SysUserService.java
  72. 7 0
      edu-common/src/main/java/com/keao/edu/common/service/TenantInfoService.java
  73. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/DatabaseSourceServiceImpl.java
  74. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/EmployeeServiceImpl.java
  75. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/HelpCenterCatalogServiceImpl.java
  76. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/HelpCenterContentServiceImpl.java
  77. 6 8
      edu-common/src/main/java/com/keao/edu/common/service/impl/RedisIdGeneratorService.java
  78. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/StudentServiceImpl.java
  79. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysConfigServiceImpl.java
  80. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysMenuServiceImpl.java
  81. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysMessageConfigServiceImpl.java
  82. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysMessageServiceImpl.java
  83. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysNewsInformationServiceImpl.java
  84. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysOauthClientDetailsServiceImpl.java
  85. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysRoleMenuServiceImpl.java
  86. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysRoleServiceImpl.java
  87. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysSuggestionServiceImpl.java
  88. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysTaskServiceImpl.java
  89. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserContractsServiceImpl.java
  90. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserLoginLogServiceImpl.java
  91. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserLoginServiceImpl.java
  92. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserRoleServiceImpl.java
  93. 22 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/SysUserServiceImpl.java
  94. 21 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/TenantInfoServiceImpl.java
  95. 96 0
      edu-common/src/main/resources/config/mybatis/DatabaseSourceMapper.xml
  96. 108 0
      edu-common/src/main/resources/config/mybatis/EmployeeMapper.xml
  97. 84 0
      edu-common/src/main/resources/config/mybatis/HelpCenterCatalogMapper.xml
  98. 84 0
      edu-common/src/main/resources/config/mybatis/HelpCenterContentMapper.xml
  99. 42 0
      edu-common/src/main/resources/config/mybatis/StudentMapper.xml
  100. 80 0
      edu-common/src/main/resources/config/mybatis/SysConfigMapper.xml

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

@@ -29,7 +29,7 @@
 
 	<logger name="com.keao.edu" level="DEBUG" />
 
-	<!--撘��𤑳㴓憓�:�枏㫲�批��� -->
+	<!--羲楷遠噫:湖荂諷秶怢 -->
 	<springProfile name="dev">
 		<root level="INFO">
 			<appender-ref ref="stdout" />
@@ -44,7 +44,7 @@
 		</root>
 	</springProfile>
 
-	<!--�煺漣�臬�:颲枏枂�唳�隞� -->
+	<!--汜莉遠噫:怀堤善恅璃 -->
 	<springProfile name="prod">
 		<root level="WARN">
 			<appender-ref ref="stdout" />

+ 3 - 1
edu-cms/src/main/java/com/keao/edu/cms/CmsServerApplication.java

@@ -1,5 +1,6 @@
 package com.keao.edu.cms;
 
+import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@@ -15,7 +16,8 @@ import com.spring4all.swagger.EnableSwagger2Doc;
 @SpringBootApplication
 @EnableDiscoveryClient
 @EnableFeignClients("com.keao.edu")
-@ComponentScan(basePackages = { "com.keao.edu.cms", "com.keao.edu.im", "com.keao.edu.auth", "com.keao.edu.common.config", "com.keao.edu.common.security" })
+@ComponentScan("com.keao.edu")
+@MapperScan("com.keao.edu.common.dal.dao")
 @Configuration
 @EnableSwagger2Doc
 public class CmsServerApplication {

+ 1 - 1
edu-cms/src/main/java/com/keao/edu/cms/controller/HelpCenterContentControlller.java

@@ -1,5 +1,6 @@
 package com.keao.edu.cms.controller;
 
+import com.keao.edu.cms.controller.queryinfo.HelpCenterContentQueryInfo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiOperation;
@@ -14,7 +15,6 @@ import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
-import com.keao.edu.cms.controller.queryinfo.HelpCenterContentQueryInfo;
 import com.keao.edu.cms.dal.entity.HelpCenterContent;
 import com.keao.edu.cms.service.HelpCenterCatalogService;
 import com.keao.edu.cms.service.HelpCenterContentService;

+ 1 - 1
edu-cms/src/main/java/com/keao/edu/cms/controller/NewsController.java

@@ -1,5 +1,6 @@
 package com.keao.edu.cms.controller;
 
+import com.keao.edu.cms.controller.queryinfo.NewsInformationQueryInfo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiOperation;
@@ -14,7 +15,6 @@ import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
-import com.keao.edu.cms.controller.queryinfo.NewsInformationQueryInfo;
 import com.keao.edu.cms.dal.entity.SysNewsInformation;
 import com.keao.edu.cms.service.SysNewsInformationService;
 import com.keao.edu.common.controller.BaseController;

+ 1 - 1
edu-cms/src/main/java/com/keao/edu/cms/dal/dao/HelpCenterCatalogDao.java

@@ -2,9 +2,9 @@ package com.keao.edu.cms.dal.dao;
 
 import java.util.List;
 
+import com.keao.edu.cms.dal.entity.HelpCenterCatalog;
 import org.apache.ibatis.annotations.Param;
 
-import com.keao.edu.cms.dal.entity.HelpCenterCatalog;
 import com.keao.edu.common.dal.BaseDAO;
 
 public interface HelpCenterCatalogDao extends BaseDAO<Integer, HelpCenterCatalog> {

+ 2 - 2
edu-cms/src/main/java/com/keao/edu/cms/service/impl/SysNewsInformationServiceImpl.java

@@ -5,11 +5,11 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import com.keao.edu.cms.controller.queryinfo.NewsInformationQueryInfo;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
-import com.keao.edu.cms.controller.queryinfo.NewsInformationQueryInfo;
 import com.keao.edu.cms.dal.dao.SysNewsInformationDao;
 import com.keao.edu.cms.dal.entity.NewsStatusEnum;
 import com.keao.edu.cms.dal.entity.SysNewsInformation;
@@ -26,7 +26,7 @@ public class SysNewsInformationServiceImpl extends BaseServiceImpl<Long, SysNews
 	@Autowired
 	private SysNewsInformationDao sysNewsInformationDao;
 	
-	@Value("${cms.server.context.path}")
+	@Value("${user.server.context.path}")
 	private String serverContextPath;
 	
 	public void setServerContextPath(String serverContextPath) {

+ 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);
+	}
+
+}

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

@@ -0,0 +1,178 @@
+package com.keao.edu.common.entity;
+
+import io.swagger.annotations.ApiModelProperty;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(employee):
+ */
+public class Employee {
+
+	/**  */
+	private Integer userId;
+	
+	/** 工作性质(兼职、全职、临时) */
+	@ApiModelProperty(value = "工作性质(兼职、全职、临时)", required = true)
+	private String jobNature;
+
+	@ApiModelProperty(value = "学历", required = true)
+	private String educationBackground;
+	
+	/** 毕业学校 */
+	@ApiModelProperty(value = "毕业学校", required = true)
+	private String graduateSchool;
+	
+	/** 技术职称 */
+	@ApiModelProperty(value = "技术职称", required = true)
+	private String technicalTitles;
+	
+	/** 入职时间 */
+	@ApiModelProperty(value = "入职时间", required = true)
+	private java.util.Date entryDate;
+	
+	/** 证件类型 */
+	@ApiModelProperty(value = "证件类型", required = true)
+	private String certificateType;
+	
+	/** 证件号码 */
+	@ApiModelProperty(value = "证件号码", required = true)
+	private String certificateNum;
+	
+	private java.util.Date updateTime;
+	
+	private java.util.Date createTime;
+	
+	/** 介绍 */
+	@ApiModelProperty(value = "介绍", required = true)
+	private String introduction;
+	
+	/** 离职日期 */
+	@ApiModelProperty(value = "离职日期", required = true)
+	private java.util.Date demissionDate;
+	
+	/** 联系地址 */
+	@ApiModelProperty(value = "联系地址", required = true)
+	private String contactAddress;
+	
+	/** 邮政编码 */
+	@ApiModelProperty(value = "邮政编码", required = true)
+	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);
+	}
+
+}

+ 1 - 1
edu-common/src/main/java/com/keao/edu/common/security/BaseAccessDeniedHandler.java

@@ -6,7 +6,7 @@ import java.io.PrintWriter;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import org.apache.commons.lang.exception.ExceptionUtils;
+import org.apache.commons.lang3.exception.ExceptionUtils;
 import org.codehaus.jackson.map.ObjectMapper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;

+ 8 - 10
edu-common/src/main/java/com/keao/edu/common/security/BaseAuthenticationEntryPoint.java

@@ -1,13 +1,8 @@
 package com.keao.edu.common.security;
 
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.commons.lang.exception.ExceptionUtils;
+import com.keao.edu.common.constant.CommonConstants;
+import com.keao.edu.common.entity.HttpResponseResult;
+import org.apache.commons.lang3.exception.ExceptionUtils;
 import org.codehaus.jackson.map.ObjectMapper;
 import org.springframework.http.MediaType;
 import org.springframework.security.authentication.InsufficientAuthenticationException;
@@ -16,8 +11,11 @@ import org.springframework.security.oauth2.common.exceptions.InvalidTokenExcepti
 import org.springframework.security.web.AuthenticationEntryPoint;
 import org.springframework.stereotype.Component;
 
-import com.keao.edu.common.constant.CommonConstants;
-import com.keao.edu.common.entity.HttpResponseResult;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.PrintWriter;
 
 @Component
 public class BaseAuthenticationEntryPoint implements AuthenticationEntryPoint {

+ 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;
+	}
+	
+}

+ 6 - 8
edu-common/src/main/java/com/keao/edu/common/service/impl/RedisIdGeneratorService.java

@@ -1,9 +1,7 @@
 package com.keao.edu.common.service.impl;
 
-import java.util.Calendar;
-import java.util.Date;
-import java.util.concurrent.TimeUnit;
-
+import com.keao.edu.common.redis.service.RedisCache;
+import com.keao.edu.common.service.IdGeneratorService;
 import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -13,9 +11,9 @@ import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.data.redis.core.ValueOperations;
 import org.springframework.stereotype.Service;
 
-import com.google.common.base.Strings;
-import com.keao.edu.common.redis.service.RedisCache;
-import com.keao.edu.common.service.IdGeneratorService;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.concurrent.TimeUnit;
 
 @Service
 public class RedisIdGeneratorService implements IdGeneratorService {
@@ -73,7 +71,7 @@ public class RedisIdGeneratorService implements IdGeneratorService {
 		} finally {
 			redisTemplate.expire(key, 600, TimeUnit.SECONDS);// 保留10分钟内的key
 		}
-		if (Strings.isNullOrEmpty(orderId))
+		if (StringUtils.isEmpty(orderId))
 			return 0;
 		return Long.parseLong(orderId);
 	}

+ 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>

+ 84 - 0
edu-common/src/main/resources/config/mybatis/HelpCenterCatalogMapper.xml

@@ -0,0 +1,84 @@
+<?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.HelpCenterCatalogDao">
+	
+	<resultMap type="com.keao.edu.common.entity.HelpCenterCatalog" id="HelpCenterCatalog">
+		<result column="id_" property="id" />
+		<result column="parent_id_" property="parentId" />
+		<result column="name_" property="name" />
+		<result column="description_" property="description" />
+		<result column="create_on_" property="createOn" />
+		<result column="modify_on_" property="modifyOn" />
+		<result column="order_" property="order" />
+		<result column="status_" property="status" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="HelpCenterCatalog" >
+		SELECT * FROM help_center_catalog WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="HelpCenterCatalog">
+		SELECT * FROM help_center_catalog ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.keao.edu.common.entity.HelpCenterCatalog" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO help_center_catalog (id_,parent_id_,name_,description_,create_on_,modify_on_,order_,status_) VALUES(#{id},#{parentId},#{name},#{description},#{createOn},#{modifyOn},#{order},#{status})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.keao.edu.common.entity.HelpCenterCatalog">
+		UPDATE help_center_catalog <set>
+<if test="parentId != null">
+parent_id_ = #{parentId},
+</if>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="modifyOn != null">
+modify_on_ = #{modifyOn},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="description != null">
+description_ = #{description},
+</if>
+<if test="createOn != null">
+create_on_ = #{createOn},
+</if>
+<if test="order != null">
+order_ = #{order},
+</if>
+<if test="name != null">
+name_ = #{name},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM help_center_catalog WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="HelpCenterCatalog" parameterType="map">
+		SELECT * FROM help_center_catalog ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM help_center_catalog
+	</select>
+</mapper>

+ 84 - 0
edu-common/src/main/resources/config/mybatis/HelpCenterContentMapper.xml

@@ -0,0 +1,84 @@
+<?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.HelpCenterContentDao">
+	
+	<resultMap type="com.keao.edu.common.entity.HelpCenterContent" id="HelpCenterContent">
+		<result column="id_" property="id" />
+		<result column="title_" property="title" />
+		<result column="content_" property="content" />
+		<result column="catalog_id_" property="catalogId" />
+		<result column="create_on_" property="createOn" />
+		<result column="modify_on_" property="modifyOn" />
+		<result column="status_" property="status" />
+		<result column="order_" property="order" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="HelpCenterContent" >
+		SELECT * FROM help_center_content WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="HelpCenterContent">
+		SELECT * FROM help_center_content ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.keao.edu.common.entity.HelpCenterContent" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO help_center_content (id_,title_,content_,catalog_id_,create_on_,modify_on_,status_,order_) VALUES(#{id},#{title},#{content},#{catalogId},#{createOn},#{modifyOn},#{status},#{order})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.keao.edu.common.entity.HelpCenterContent">
+		UPDATE help_center_content <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="catalogId != null">
+catalog_id_ = #{catalogId},
+</if>
+<if test="modifyOn != null">
+modify_on_ = #{modifyOn},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="title != null">
+title_ = #{title},
+</if>
+<if test="content != null">
+content_ = #{content},
+</if>
+<if test="createOn != null">
+create_on_ = #{createOn},
+</if>
+<if test="order != null">
+order_ = #{order},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM help_center_content WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="HelpCenterContent" parameterType="map">
+		SELECT * FROM help_center_content ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM help_center_content
+	</select>
+</mapper>

+ 42 - 0
edu-common/src/main/resources/config/mybatis/StudentMapper.xml

@@ -0,0 +1,42 @@
+<?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.StudentDao">
+	
+	<resultMap type="com.keao.edu.common.entity.Student" id="Student">
+		<result column="user_id_" property="userId" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+	</resultMap>
+	
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="Student">
+		SELECT * FROM student
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.keao.edu.common.entity.Student" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student (user_id_,create_time_,update_time_) VALUES(#{userId},#{createTime},#{updateTime})
+	</insert>
+	
+	
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="Student" parameterType="map">
+		SELECT * FROM student <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student
+	</select>
+</mapper>

+ 80 - 0
edu-common/src/main/resources/config/mybatis/SysConfigMapper.xml

@@ -0,0 +1,80 @@
+<?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.SysConfigDao">
+	
+	<resultMap type="com.keao.edu.common.entity.SysConfig" id="SysConfig">
+		<result column="id_" property="id" />
+		<result column="param_name_" property="paramName" />
+		<result column="paran_value_" property="paranValue" />
+		<result column="description_" property="description" />
+		<result column="create_on_" property="createOn" />
+		<result column="modify_on_" property="modifyOn" />
+		<result column="group_" property="group" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysConfig" >
+		SELECT * FROM sys_config WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysConfig">
+		SELECT * FROM sys_config ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.keao.edu.common.entity.SysConfig" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_config (id_,param_name_,paran_value_,description_,create_on_,modify_on_,group_) VALUES(#{id},#{paramName},#{paranValue},#{description},#{createOn},#{modifyOn},#{group})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.keao.edu.common.entity.SysConfig">
+		UPDATE sys_config <set>
+<if test="modifyOn != null">
+modify_on_ = #{modifyOn},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="paranValue != null">
+paran_value_ = #{paranValue},
+</if>
+<if test="description != null">
+description_ = #{description},
+</if>
+<if test="createOn != null">
+create_on_ = #{createOn},
+</if>
+<if test="group != null">
+group_ = #{group},
+</if>
+<if test="paramName != null">
+param_name_ = #{paramName},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM sys_config WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysConfig" parameterType="map">
+		SELECT * FROM sys_config ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_config
+	</select>
+</mapper>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio