Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
project-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
project-manage
Commits
dfb47d22
Commit
dfb47d22
authored
Jul 15, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】修改包名
parent
6115fcec
Show whitespace changes
Inline
Side-by-side
Showing
153 changed files
with
691 additions
and
427 deletions
+691
-427
ProjectManageApplication.java
src/main/java/com/wangtian/ProjectManageApplication.java
+1
-1
SysLog.java
src/main/java/com/wangtian/common/annotation/SysLog.java
+1
-1
RedisAspect.java
src/main/java/com/wangtian/common/aspect/RedisAspect.java
+3
-3
SysLogAspect.java
src/main/java/com/wangtian/common/aspect/SysLogAspect.java
+8
-8
RRException.java
src/main/java/com/wangtian/common/exception/RRException.java
+1
-1
RRExceptionHandler.java
...ava/com/wangtian/common/exception/RRExceptionHandler.java
+2
-2
ConfigConstant.java
src/main/java/com/wangtian/common/utils/ConfigConstant.java
+1
-1
Constant.java
src/main/java/com/wangtian/common/utils/Constant.java
+4
-4
DateUtils.java
src/main/java/com/wangtian/common/utils/DateUtils.java
+1
-1
HttpContextUtils.java
...main/java/com/wangtian/common/utils/HttpContextUtils.java
+1
-1
IPUtils.java
src/main/java/com/wangtian/common/utils/IPUtils.java
+1
-1
MapUtils.java
src/main/java/com/wangtian/common/utils/MapUtils.java
+1
-1
PageUtils.java
src/main/java/com/wangtian/common/utils/PageUtils.java
+1
-1
Query.java
src/main/java/com/wangtian/common/utils/Query.java
+2
-2
R.java
src/main/java/com/wangtian/common/utils/R.java
+1
-1
RedisKeys.java
src/main/java/com/wangtian/common/utils/RedisKeys.java
+1
-1
RedisUtils.java
src/main/java/com/wangtian/common/utils/RedisUtils.java
+1
-1
ShiroUtils.java
src/main/java/com/wangtian/common/utils/ShiroUtils.java
+3
-3
SpringContextUtils.java
...in/java/com/wangtian/common/utils/SpringContextUtils.java
+1
-1
Assert.java
src/main/java/com/wangtian/common/validator/Assert.java
+2
-2
ValidatorUtils.java
...in/java/com/wangtian/common/validator/ValidatorUtils.java
+3
-3
AddGroup.java
...in/java/com/wangtian/common/validator/group/AddGroup.java
+1
-1
AliyunGroup.java
...java/com/wangtian/common/validator/group/AliyunGroup.java
+1
-1
Group.java
src/main/java/com/wangtian/common/validator/group/Group.java
+1
-1
QcloudGroup.java
...java/com/wangtian/common/validator/group/QcloudGroup.java
+1
-1
QiniuGroup.java
.../java/com/wangtian/common/validator/group/QiniuGroup.java
+1
-1
UpdateGroup.java
...java/com/wangtian/common/validator/group/UpdateGroup.java
+1
-1
HTMLFilter.java
src/main/java/com/wangtian/common/xss/HTMLFilter.java
+1
-1
SQLFilter.java
src/main/java/com/wangtian/common/xss/SQLFilter.java
+2
-2
XssFilter.java
src/main/java/com/wangtian/common/xss/XssFilter.java
+1
-1
XssHttpServletRequestWrapper.java
...com/wangtian/common/xss/XssHttpServletRequestWrapper.java
+1
-1
CorsConfig.java
src/main/java/com/wangtian/config/CorsConfig.java
+1
-1
FilterConfig.java
src/main/java/com/wangtian/config/FilterConfig.java
+2
-2
KaptchaConfig.java
src/main/java/com/wangtian/config/KaptchaConfig.java
+1
-1
MybatisPlusConfig.java
src/main/java/com/wangtian/config/MybatisPlusConfig.java
+1
-1
RedisConfig.java
src/main/java/com/wangtian/config/RedisConfig.java
+1
-1
ShiroConfig.java
src/main/java/com/wangtian/config/ShiroConfig.java
+3
-3
SwaggerConfig.java
src/main/java/com/wangtian/config/SwaggerConfig.java
+0
-0
DataSource.java
...n/java/com/wangtian/datasource/annotation/DataSource.java
+1
-1
DataSourceAspect.java
...java/com/wangtian/datasource/aspect/DataSourceAspect.java
+5
-5
DynamicContextHolder.java
.../com/wangtian/datasource/config/DynamicContextHolder.java
+1
-1
DynamicDataSource.java
...ava/com/wangtian/datasource/config/DynamicDataSource.java
+1
-1
DynamicDataSourceConfig.java
...m/wangtian/datasource/config/DynamicDataSourceConfig.java
+3
-3
DynamicDataSourceFactory.java
.../wangtian/datasource/config/DynamicDataSourceFactory.java
+2
-2
DataSourceProperties.java
.../wangtian/datasource/properties/DataSourceProperties.java
+1
-1
DynamicDataSourceProperties.java
...an/datasource/properties/DynamicDataSourceProperties.java
+1
-1
Login.java
src/main/java/com/wangtian/modules/app/annotation/Login.java
+1
-1
LoginUser.java
...n/java/com/wangtian/modules/app/annotation/LoginUser.java
+1
-1
WebMvcConfig.java
...in/java/com/wangtian/modules/app/config/WebMvcConfig.java
+3
-3
AppLoginController.java
...m/wangtian/modules/app/controller/AppLoginController.java
+6
-6
AppRegisterController.java
...angtian/modules/app/controller/AppRegisterController.java
+6
-6
AppTestController.java
...om/wangtian/modules/app/controller/AppTestController.java
+5
-5
UserDao.java
src/main/java/com/wangtian/modules/app/dao/UserDao.java
+2
-2
UserEntity.java
...main/java/com/wangtian/modules/app/entity/UserEntity.java
+1
-1
LoginForm.java
src/main/java/com/wangtian/modules/app/form/LoginForm.java
+1
-1
RegisterForm.java
...main/java/com/wangtian/modules/app/form/RegisterForm.java
+1
-1
AuthorizationInterceptor.java
...ian/modules/app/interceptor/AuthorizationInterceptor.java
+4
-4
LoginUserHandlerMethodArgumentResolver.java
.../app/resolver/LoginUserHandlerMethodArgumentResolver.java
+5
-5
UserService.java
...in/java/com/wangtian/modules/app/service/UserService.java
+3
-3
UserServiceImpl.java
...om/wangtian/modules/app/service/impl/UserServiceImpl.java
+7
-7
JwtUtils.java
src/main/java/com/wangtian/modules/app/utils/JwtUtils.java
+1
-1
ScheduleConfig.java
.../java/com/wangtian/modules/job/config/ScheduleConfig.java
+1
-1
ScheduleJobController.java
...angtian/modules/job/controller/ScheduleJobController.java
+8
-8
ScheduleJobLogController.java
...tian/modules/job/controller/ScheduleJobLogController.java
+5
-5
ScheduleJobDao.java
...ain/java/com/wangtian/modules/job/dao/ScheduleJobDao.java
+2
-2
ScheduleJobLogDao.java
.../java/com/wangtian/modules/job/dao/ScheduleJobLogDao.java
+2
-2
ScheduleJobEntity.java
...va/com/wangtian/modules/job/entity/ScheduleJobEntity.java
+1
-1
ScheduleJobLogEntity.java
...com/wangtian/modules/job/entity/ScheduleJobLogEntity.java
+1
-1
ScheduleJobLogService.java
...m/wangtian/modules/job/service/ScheduleJobLogService.java
+3
-3
ScheduleJobService.java
.../com/wangtian/modules/job/service/ScheduleJobService.java
+3
-3
ScheduleJobLogServiceImpl.java
...n/modules/job/service/impl/ScheduleJobLogServiceImpl.java
+6
-6
ScheduleJobServiceImpl.java
...tian/modules/job/service/impl/ScheduleJobServiceImpl.java
+8
-8
ITask.java
src/main/java/com/wangtian/modules/job/task/ITask.java
+1
-1
TestTask.java
src/main/java/com/wangtian/modules/job/task/TestTask.java
+1
-1
ScheduleJob.java
...main/java/com/wangtian/modules/job/utils/ScheduleJob.java
+5
-5
ScheduleUtils.java
...in/java/com/wangtian/modules/job/utils/ScheduleUtils.java
+4
-4
InvestmentPlanController.java
...n/modules/manage/controller/InvestmentPlanController.java
+90
-0
InvestmentPlanDao.java
...va/com/wangtian/modules/manage/dao/InvestmentPlanDao.java
+17
-0
InvestmentPlanEntity.java
.../wangtian/modules/manage/entity/InvestmentPlanEntity.java
+83
-0
InvestmentPlanService.java
...angtian/modules/manage/service/InvestmentPlanService.java
+20
-0
InvestmentPlanServiceImpl.java
...odules/manage/service/impl/InvestmentPlanServiceImpl.java
+29
-0
AliyunCloudStorageService.java
...wangtian/modules/oss/cloud/AliyunCloudStorageService.java
+2
-2
CloudStorageConfig.java
...va/com/wangtian/modules/oss/cloud/CloudStorageConfig.java
+4
-4
CloudStorageService.java
...a/com/wangtian/modules/oss/cloud/CloudStorageService.java
+2
-2
OSSFactory.java
src/main/java/com/wangtian/modules/oss/cloud/OSSFactory.java
+5
-5
QcloudCloudStorageService.java
...wangtian/modules/oss/cloud/QcloudCloudStorageService.java
+2
-2
QiniuCloudStorageService.java
.../wangtian/modules/oss/cloud/QiniuCloudStorageService.java
+2
-2
SysOssController.java
...com/wangtian/modules/oss/controller/SysOssController.java
+12
-12
SysOssDao.java
src/main/java/com/wangtian/modules/oss/dao/SysOssDao.java
+2
-2
SysOssEntity.java
...in/java/com/wangtian/modules/oss/entity/SysOssEntity.java
+1
-1
SysOssService.java
.../java/com/wangtian/modules/oss/service/SysOssService.java
+3
-3
SysOssServiceImpl.java
.../wangtian/modules/oss/service/impl/SysOssServiceImpl.java
+6
-6
AbstractController.java
...m/wangtian/modules/sys/controller/AbstractController.java
+2
-2
SysConfigController.java
.../wangtian/modules/sys/controller/SysConfigController.java
+7
-7
SysLogController.java
...com/wangtian/modules/sys/controller/SysLogController.java
+4
-4
SysLoginController.java
...m/wangtian/modules/sys/controller/SysLoginController.java
+7
-7
SysMenuController.java
...om/wangtian/modules/sys/controller/SysMenuController.java
+9
-9
SysRoleController.java
...om/wangtian/modules/sys/controller/SysRoleController.java
+10
-10
SysUserController.java
...om/wangtian/modules/sys/controller/SysUserController.java
+14
-14
SysCaptchaDao.java
...main/java/com/wangtian/modules/sys/dao/SysCaptchaDao.java
+2
-2
SysConfigDao.java
src/main/java/com/wangtian/modules/sys/dao/SysConfigDao.java
+2
-2
SysLogDao.java
src/main/java/com/wangtian/modules/sys/dao/SysLogDao.java
+2
-2
SysMenuDao.java
src/main/java/com/wangtian/modules/sys/dao/SysMenuDao.java
+2
-2
SysRoleDao.java
src/main/java/com/wangtian/modules/sys/dao/SysRoleDao.java
+2
-2
SysRoleMenuDao.java
...ain/java/com/wangtian/modules/sys/dao/SysRoleMenuDao.java
+2
-2
SysUserDao.java
src/main/java/com/wangtian/modules/sys/dao/SysUserDao.java
+2
-2
SysUserRoleDao.java
...ain/java/com/wangtian/modules/sys/dao/SysUserRoleDao.java
+2
-2
SysUserTokenDao.java
...in/java/com/wangtian/modules/sys/dao/SysUserTokenDao.java
+2
-2
SysCaptchaEntity.java
...ava/com/wangtian/modules/sys/entity/SysCaptchaEntity.java
+1
-1
SysConfigEntity.java
...java/com/wangtian/modules/sys/entity/SysConfigEntity.java
+1
-1
SysLogEntity.java
...in/java/com/wangtian/modules/sys/entity/SysLogEntity.java
+1
-1
SysMenuEntity.java
...n/java/com/wangtian/modules/sys/entity/SysMenuEntity.java
+1
-1
SysRoleEntity.java
...n/java/com/wangtian/modules/sys/entity/SysRoleEntity.java
+1
-1
SysRoleMenuEntity.java
...va/com/wangtian/modules/sys/entity/SysRoleMenuEntity.java
+1
-1
SysUserEntity.java
...n/java/com/wangtian/modules/sys/entity/SysUserEntity.java
+3
-3
SysUserRoleEntity.java
...va/com/wangtian/modules/sys/entity/SysUserRoleEntity.java
+1
-1
SysUserTokenEntity.java
...a/com/wangtian/modules/sys/entity/SysUserTokenEntity.java
+1
-1
PasswordForm.java
...main/java/com/wangtian/modules/sys/form/PasswordForm.java
+1
-1
SysLoginForm.java
...main/java/com/wangtian/modules/sys/form/SysLoginForm.java
+1
-1
OAuth2Filter.java
...in/java/com/wangtian/modules/sys/oauth2/OAuth2Filter.java
+3
-3
OAuth2Realm.java
...ain/java/com/wangtian/modules/sys/oauth2/OAuth2Realm.java
+4
-4
OAuth2Token.java
...ain/java/com/wangtian/modules/sys/oauth2/OAuth2Token.java
+1
-1
TokenGenerator.java
.../java/com/wangtian/modules/sys/oauth2/TokenGenerator.java
+2
-2
SysConfigRedis.java
...n/java/com/wangtian/modules/sys/redis/SysConfigRedis.java
+4
-4
ShiroService.java
...n/java/com/wangtian/modules/sys/service/ShiroService.java
+3
-3
SysCaptchaService.java
...a/com/wangtian/modules/sys/service/SysCaptchaService.java
+2
-2
SysConfigService.java
...va/com/wangtian/modules/sys/service/SysConfigService.java
+3
-3
SysLogService.java
.../java/com/wangtian/modules/sys/service/SysLogService.java
+3
-3
SysMenuService.java
...java/com/wangtian/modules/sys/service/SysMenuService.java
+2
-2
SysRoleMenuService.java
.../com/wangtian/modules/sys/service/SysRoleMenuService.java
+2
-2
SysRoleService.java
...java/com/wangtian/modules/sys/service/SysRoleService.java
+3
-3
SysUserRoleService.java
.../com/wangtian/modules/sys/service/SysUserRoleService.java
+2
-2
SysUserService.java
...java/com/wangtian/modules/sys/service/SysUserService.java
+3
-3
SysUserTokenService.java
...com/wangtian/modules/sys/service/SysUserTokenService.java
+3
-3
ShiroServiceImpl.java
...m/wangtian/modules/sys/service/impl/ShiroServiceImpl.java
+9
-9
SysCaptchaServiceImpl.java
...gtian/modules/sys/service/impl/SysCaptchaServiceImpl.java
+6
-6
SysConfigServiceImpl.java
...ngtian/modules/sys/service/impl/SysConfigServiceImpl.java
+8
-8
SysLogServiceImpl.java
.../wangtian/modules/sys/service/impl/SysLogServiceImpl.java
+6
-6
SysMenuServiceImpl.java
...wangtian/modules/sys/service/impl/SysMenuServiceImpl.java
+8
-8
SysRoleMenuServiceImpl.java
...tian/modules/sys/service/impl/SysRoleMenuServiceImpl.java
+4
-4
SysRoleServiceImpl.java
...wangtian/modules/sys/service/impl/SysRoleServiceImpl.java
+11
-11
SysUserRoleServiceImpl.java
...tian/modules/sys/service/impl/SysUserRoleServiceImpl.java
+5
-5
SysUserServiceImpl.java
...wangtian/modules/sys/service/impl/SysUserServiceImpl.java
+10
-10
SysUserTokenServiceImpl.java
...ian/modules/sys/service/impl/SysUserTokenServiceImpl.java
+6
-6
InvestmentPlanDao.xml
src/main/resources/mapper/manage/InvestmentPlanDao.xml
+25
-0
SysConfigDao.xml
src/main/resources/mapper/sys/SysConfigDao.xml
+1
-1
SysMenuDao.xml
src/main/resources/mapper/sys/SysMenuDao.xml
+2
-2
SysUserDao.xml
src/main/resources/mapper/sys/SysUserDao.xml
+1
-1
SysUserTokenDao.xml
src/main/resources/mapper/sys/SysUserTokenDao.xml
+1
-1
DynamicDataSourceTest.java
src/test/java/com/wangtian/DynamicDataSourceTest.java
+2
-2
JwtTest.java
src/test/java/com/wangtian/JwtTest.java
+2
-2
RedisTest.java
src/test/java/com/wangtian/RedisTest.java
+3
-3
DynamicDataSourceTestService.java
...va/com/wangtian/service/DynamicDataSourceTestService.java
+4
-4
No files found.
src/main/java/
io
/wangtian/ProjectManageApplication.java
→
src/main/java/
com
/wangtian/ProjectManageApplication.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
;
package
com
.
wangtian
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
src/main/java/
io
/wangtian/common/annotation/SysLog.java
→
src/main/java/
com
/wangtian/common/annotation/SysLog.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
annotation
;
package
com
.
wangtian
.
common
.
annotation
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
...
...
src/main/java/
io
/wangtian/common/aspect/RedisAspect.java
→
src/main/java/
com
/wangtian/common/aspect/RedisAspect.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
aspect
;
package
com
.
wangtian
.
common
.
aspect
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
...
...
@@ -30,7 +30,7 @@ public class RedisAspect {
@Value
(
"${spring.redis.open: false}"
)
private
boolean
open
;
@Around
(
"execution(*
io
.wangtian.common.utils.RedisUtils.*(..))"
)
@Around
(
"execution(*
com
.wangtian.common.utils.RedisUtils.*(..))"
)
public
Object
around
(
ProceedingJoinPoint
point
)
throws
Throwable
{
Object
result
=
null
;
if
(
open
){
...
...
src/main/java/
io
/wangtian/common/aspect/SysLogAspect.java
→
src/main/java/
com
/wangtian/common/aspect/SysLogAspect.java
View file @
dfb47d22
...
...
@@ -6,15 +6,15 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
aspect
;
package
com
.
wangtian
.
common
.
aspect
;
import
com.google.gson.Gson
;
import
io
.wangtian.common.annotation.SysLog
;
import
io.wangtian.common.utils.HttpContextUtils
;
import
io.wangtian.common.utils.IPUtils
;
import
io.wangtian.modules.sys.entity.SysLogEntity
;
import
io.wangtian.modules.sys.entity.SysUserEntity
;
import
io.wangtian.modules.sys.service.SysLogService
;
import
com
.wangtian.common.annotation.SysLog
;
import
com.wangtian.modules.sys.entity.SysLogEntity
;
import
com.wangtian.modules.sys.entity.SysUserEntity
;
import
com.wangtian.modules.sys.service.SysLogService
;
import
com.wangtian.common.utils.HttpContextUtils
;
import
com.wangtian.common.utils.IPUtils
;
import
org.apache.shiro.SecurityUtils
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
...
...
@@ -40,7 +40,7 @@ public class SysLogAspect {
@Autowired
private
SysLogService
sysLogService
;
@Pointcut
(
"@annotation(
io
.wangtian.common.annotation.SysLog)"
)
@Pointcut
(
"@annotation(
com
.wangtian.common.annotation.SysLog)"
)
public
void
logPointCut
()
{
}
...
...
src/main/java/
io
/wangtian/common/exception/RRException.java
→
src/main/java/
com
/wangtian/common/exception/RRException.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
exception
;
package
com
.
wangtian
.
common
.
exception
;
/**
* 自定义异常
...
...
src/main/java/
io
/wangtian/common/exception/RRExceptionHandler.java
→
src/main/java/
com
/wangtian/common/exception/RRExceptionHandler.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
exception
;
package
com
.
wangtian
.
common
.
exception
;
import
io
.wangtian.common.utils.R
;
import
com
.wangtian.common.utils.R
;
import
org.apache.shiro.authz.AuthorizationException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
src/main/java/
io
/wangtian/common/utils/ConfigConstant.java
→
src/main/java/
com
/wangtian/common/utils/ConfigConstant.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
/**
* 系统参数相关Key
...
...
src/main/java/
io
/wangtian/common/utils/Constant.java
→
src/main/java/
com
/wangtian/common/utils/Constant.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
io.wangtian.common.validator.group.Aliyun
Group
;
import
io.wangtian.common.validator.group.Qcloud
Group
;
import
io
.wangtian.common.validator.group.QiniuGroup
;
import
com.wangtian.common.validator.group.Qcloud
Group
;
import
com.wangtian.common.validator.group.Aliyun
Group
;
import
com
.wangtian.common.validator.group.QiniuGroup
;
import
java.util.Optional
;
import
java.util.stream.Stream
;
...
...
src/main/java/
io
/wangtian/common/utils/DateUtils.java
→
src/main/java/
com
/wangtian/common/utils/DateUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
org.apache.commons.lang.StringUtils
;
import
org.joda.time.DateTime
;
...
...
src/main/java/
io
/wangtian/common/utils/HttpContextUtils.java
→
src/main/java/
com
/wangtian/common/utils/HttpContextUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
...
...
src/main/java/
io
/wangtian/common/utils/IPUtils.java
→
src/main/java/
com
/wangtian/common/utils/IPUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
com.alibaba.druid.util.StringUtils
;
import
org.slf4j.Logger
;
...
...
src/main/java/
io
/wangtian/common/utils/MapUtils.java
→
src/main/java/
com
/wangtian/common/utils/MapUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
java.util.HashMap
;
...
...
src/main/java/
io
/wangtian/common/utils/PageUtils.java
→
src/main/java/
com
/wangtian/common/utils/PageUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
src/main/java/
io
/wangtian/common/utils/Query.java
→
src/main/java/
com
/wangtian/common/utils/Query.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io
.wangtian.common.xss.SQLFilter
;
import
com
.wangtian.common.xss.SQLFilter
;
import
org.apache.commons.lang.StringUtils
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/common/utils/R.java
→
src/main/java/
com
/wangtian/common/utils/R.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
org.apache.http.HttpStatus
;
...
...
src/main/java/
io
/wangtian/common/utils/RedisKeys.java
→
src/main/java/
com
/wangtian/common/utils/RedisKeys.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
/**
* Redis所有Keys
...
...
src/main/java/
io
/wangtian/common/utils/RedisUtils.java
→
src/main/java/
com
/wangtian/common/utils/RedisUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
com.google.gson.Gson
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/
io
/wangtian/common/utils/ShiroUtils.java
→
src/main/java/
com
/wangtian/common/utils/ShiroUtils.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.session.Session
;
import
org.apache.shiro.subject.Subject
;
...
...
src/main/java/
io
/wangtian/common/utils/SpringContextUtils.java
→
src/main/java/
com
/wangtian/common/utils/SpringContextUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
utils
;
package
com
.
wangtian
.
common
.
utils
;
import
org.springframework.beans.BeansException
;
import
org.springframework.context.ApplicationContext
;
...
...
src/main/java/
io
/wangtian/common/validator/Assert.java
→
src/main/java/
com
/wangtian/common/validator/Assert.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
;
package
com
.
wangtian
.
common
.
validator
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
org.apache.commons.lang.StringUtils
;
/**
...
...
src/main/java/
io
/wangtian/common/validator/ValidatorUtils.java
→
src/main/java/
com
/wangtian/common/validator/ValidatorUtils.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
;
package
com
.
wangtian
.
common
.
validator
;
import
io.wangtian.common.exception.RRException
;
import
io.wangtian.common.utils.Constant
;
import
com.wangtian.common.utils.Constant
;
import
com.wangtian.common.exception.RRException
;
import
javax.validation.ConstraintViolation
;
import
javax.validation.Validation
;
...
...
src/main/java/
io
/wangtian/common/validator/group/AddGroup.java
→
src/main/java/
com
/wangtian/common/validator/group/AddGroup.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
.
group
;
package
com
.
wangtian
.
common
.
validator
.
group
;
/**
* 新增数据 Group
...
...
src/main/java/
io
/wangtian/common/validator/group/AliyunGroup.java
→
src/main/java/
com
/wangtian/common/validator/group/AliyunGroup.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
.
group
;
package
com
.
wangtian
.
common
.
validator
.
group
;
/**
* 阿里云
...
...
src/main/java/
io
/wangtian/common/validator/group/Group.java
→
src/main/java/
com
/wangtian/common/validator/group/Group.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
.
group
;
package
com
.
wangtian
.
common
.
validator
.
group
;
import
javax.validation.GroupSequence
;
...
...
src/main/java/
io
/wangtian/common/validator/group/QcloudGroup.java
→
src/main/java/
com
/wangtian/common/validator/group/QcloudGroup.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
.
group
;
package
com
.
wangtian
.
common
.
validator
.
group
;
/**
* 腾讯云
...
...
src/main/java/
io
/wangtian/common/validator/group/QiniuGroup.java
→
src/main/java/
com
/wangtian/common/validator/group/QiniuGroup.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
.
group
;
package
com
.
wangtian
.
common
.
validator
.
group
;
/**
* 七牛
...
...
src/main/java/
io
/wangtian/common/validator/group/UpdateGroup.java
→
src/main/java/
com
/wangtian/common/validator/group/UpdateGroup.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
validator
.
group
;
package
com
.
wangtian
.
common
.
validator
.
group
;
/**
* 更新数据 Group
...
...
src/main/java/
io
/wangtian/common/xss/HTMLFilter.java
→
src/main/java/
com
/wangtian/common/xss/HTMLFilter.java
View file @
dfb47d22
package
io
.
wangtian
.
common
.
xss
;
package
com
.
wangtian
.
common
.
xss
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
...
...
src/main/java/
io
/wangtian/common/xss/SQLFilter.java
→
src/main/java/
com
/wangtian/common/xss/SQLFilter.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
xss
;
package
com
.
wangtian
.
common
.
xss
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
org.apache.commons.lang.StringUtils
;
/**
...
...
src/main/java/
io
/wangtian/common/xss/XssFilter.java
→
src/main/java/
com
/wangtian/common/xss/XssFilter.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
xss
;
package
com
.
wangtian
.
common
.
xss
;
import
javax.servlet.*
;
import
javax.servlet.http.HttpServletRequest
;
...
...
src/main/java/
io
/wangtian/common/xss/XssHttpServletRequestWrapper.java
→
src/main/java/
com
/wangtian/common/xss/XssHttpServletRequestWrapper.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
common
.
xss
;
package
com
.
wangtian
.
common
.
xss
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang.StringUtils
;
...
...
src/main/java/
io
/wangtian/config/CorsConfig.java
→
src/main/java/
com
/wangtian/config/CorsConfig.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
config
;
package
com
.
wangtian
.
config
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.CorsRegistry
;
...
...
src/main/java/
io
/wangtian/config/FilterConfig.java
→
src/main/java/
com
/wangtian/config/FilterConfig.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
config
;
package
com
.
wangtian
.
config
;
import
io
.wangtian.common.xss.XssFilter
;
import
com
.wangtian.common.xss.XssFilter
;
import
org.springframework.boot.web.servlet.FilterRegistrationBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
src/main/java/
io
/wangtian/config/KaptchaConfig.java
→
src/main/java/
com
/wangtian/config/KaptchaConfig.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
config
;
package
com
.
wangtian
.
config
;
import
com.google.code.kaptcha.impl.DefaultKaptcha
;
import
com.google.code.kaptcha.util.Config
;
...
...
src/main/java/
io
/wangtian/config/MybatisPlusConfig.java
→
src/main/java/
com
/wangtian/config/MybatisPlusConfig.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
config
;
package
com
.
wangtian
.
config
;
import
com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
;
import
org.springframework.context.annotation.Bean
;
...
...
src/main/java/
io
/wangtian/config/RedisConfig.java
→
src/main/java/
com
/wangtian/config/RedisConfig.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
config
;
package
com
.
wangtian
.
config
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Bean
;
...
...
src/main/java/
io
/wangtian/config/ShiroConfig.java
→
src/main/java/
com
/wangtian/config/ShiroConfig.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
config
;
package
com
.
wangtian
.
config
;
import
io
.wangtian.modules.sys.oauth2.OAuth2Filter
;
import
io
.wangtian.modules.sys.oauth2.OAuth2Realm
;
import
com
.wangtian.modules.sys.oauth2.OAuth2Filter
;
import
com
.wangtian.modules.sys.oauth2.OAuth2Realm
;
import
org.apache.shiro.mgt.SecurityManager
;
import
org.apache.shiro.spring.LifecycleBeanPostProcessor
;
import
org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor
;
...
...
src/main/java/
io
/wangtian/config/SwaggerConfig.java
→
src/main/java/
com
/wangtian/config/SwaggerConfig.java
View file @
dfb47d22
File moved
src/main/java/
io
/wangtian/datasource/annotation/DataSource.java
→
src/main/java/
com
/wangtian/datasource/annotation/DataSource.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
annotation
;
package
com
.
wangtian
.
datasource
.
annotation
;
import
java.lang.annotation.*
;
...
...
src/main/java/
io
/wangtian/datasource/aspect/DataSourceAspect.java
→
src/main/java/
com
/wangtian/datasource/aspect/DataSourceAspect.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
aspect
;
package
com
.
wangtian
.
datasource
.
aspect
;
import
io
.wangtian.datasource.annotation.DataSource
;
import
io
.wangtian.datasource.config.DynamicContextHolder
;
import
com
.wangtian.datasource.annotation.DataSource
;
import
com
.wangtian.datasource.config.DynamicContextHolder
;
import
org.aspectj.lang.ProceedingJoinPoint
;
import
org.aspectj.lang.annotation.Around
;
import
org.aspectj.lang.annotation.Aspect
;
...
...
@@ -35,8 +35,8 @@ import java.lang.reflect.Method;
public
class
DataSourceAspect
{
protected
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
@Pointcut
(
"@annotation(
io
.wangtian.datasource.annotation.DataSource) "
+
"|| @within(
io
.wangtian.datasource.annotation.DataSource)"
)
@Pointcut
(
"@annotation(
com
.wangtian.datasource.annotation.DataSource) "
+
"|| @within(
com
.wangtian.datasource.annotation.DataSource)"
)
public
void
dataSourcePointCut
()
{
}
...
...
src/main/java/
io
/wangtian/datasource/config/DynamicContextHolder.java
→
src/main/java/
com
/wangtian/datasource/config/DynamicContextHolder.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
config
;
package
com
.
wangtian
.
datasource
.
config
;
import
java.util.ArrayDeque
;
import
java.util.Deque
;
...
...
src/main/java/
io
/wangtian/datasource/config/DynamicDataSource.java
→
src/main/java/
com
/wangtian/datasource/config/DynamicDataSource.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
config
;
package
com
.
wangtian
.
datasource
.
config
;
import
org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
;
...
...
src/main/java/
io
/wangtian/datasource/config/DynamicDataSourceConfig.java
→
src/main/java/
com
/wangtian/datasource/config/DynamicDataSourceConfig.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
config
;
package
com
.
wangtian
.
datasource
.
config
;
import
com.alibaba.druid.pool.DruidDataSource
;
import
io
.wangtian.datasource.properties.DataSourceProperties
;
import
io
.wangtian.datasource.properties.DynamicDataSourceProperties
;
import
com
.wangtian.datasource.properties.DataSourceProperties
;
import
com
.wangtian.datasource.properties.DynamicDataSourceProperties
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
...
...
src/main/java/
io
/wangtian/datasource/config/DynamicDataSourceFactory.java
→
src/main/java/
com
/wangtian/datasource/config/DynamicDataSourceFactory.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
config
;
package
com
.
wangtian
.
datasource
.
config
;
import
com.alibaba.druid.pool.DruidDataSource
;
import
io
.wangtian.datasource.properties.DataSourceProperties
;
import
com
.wangtian.datasource.properties.DataSourceProperties
;
import
java.sql.SQLException
;
...
...
src/main/java/
io
/wangtian/datasource/properties/DataSourceProperties.java
→
src/main/java/
com
/wangtian/datasource/properties/DataSourceProperties.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
properties
;
package
com
.
wangtian
.
datasource
.
properties
;
/**
* 多数据源属性
...
...
src/main/java/
io
/wangtian/datasource/properties/DynamicDataSourceProperties.java
→
src/main/java/
com
/wangtian/datasource/properties/DynamicDataSourceProperties.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
datasource
.
properties
;
package
com
.
wangtian
.
datasource
.
properties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
...
src/main/java/
io
/wangtian/modules/app/annotation/Login.java
→
src/main/java/
com
/wangtian/modules/app/annotation/Login.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
annotation
;
package
com
.
wangtian
.
modules
.
app
.
annotation
;
import
java.lang.annotation.*
;
...
...
src/main/java/
io
/wangtian/modules/app/annotation/LoginUser.java
→
src/main/java/
com
/wangtian/modules/app/annotation/LoginUser.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
annotation
;
package
com
.
wangtian
.
modules
.
app
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/
io
/wangtian/modules/app/config/WebMvcConfig.java
→
src/main/java/
com
/wangtian/modules/app/config/WebMvcConfig.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
config
;
package
com
.
wangtian
.
modules
.
app
.
config
;
import
io
.wangtian.modules.app.interceptor.AuthorizationInterceptor
;
import
io
.wangtian.modules.app.resolver.LoginUserHandlerMethodArgumentResolver
;
import
com
.wangtian.modules.app.interceptor.AuthorizationInterceptor
;
import
com
.wangtian.modules.app.resolver.LoginUserHandlerMethodArgumentResolver
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.method.support.HandlerMethodArgumentResolver
;
...
...
src/main/java/
io
/wangtian/modules/app/controller/AppLoginController.java
→
src/main/java/
com
/wangtian/modules/app/controller/AppLoginController.java
View file @
dfb47d22
...
...
@@ -6,14 +6,14 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
controller
;
package
com
.
wangtian
.
modules
.
app
.
controller
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.common.validator.ValidatorUtils
;
import
io
.wangtian.modules.app.form.LoginForm
;
import
io
.wangtian.modules.app.service.UserService
;
import
io
.wangtian.modules.app.utils.JwtUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.common.validator.ValidatorUtils
;
import
com
.wangtian.modules.app.form.LoginForm
;
import
com
.wangtian.modules.app.service.UserService
;
import
com
.wangtian.modules.app.utils.JwtUtils
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/
io
/wangtian/modules/app/controller/AppRegisterController.java
→
src/main/java/
com
/wangtian/modules/app/controller/AppRegisterController.java
View file @
dfb47d22
...
...
@@ -6,14 +6,14 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
controller
;
package
com
.
wangtian
.
modules
.
app
.
controller
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.common.validator.ValidatorUtils
;
import
io
.wangtian.modules.app.entity.UserEntity
;
import
io
.wangtian.modules.app.form.RegisterForm
;
import
io
.wangtian.modules.app.service.UserService
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.common.validator.ValidatorUtils
;
import
com
.wangtian.modules.app.entity.UserEntity
;
import
com
.wangtian.modules.app.form.RegisterForm
;
import
com
.wangtian.modules.app.service.UserService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.codec.digest.DigestUtils
;
...
...
src/main/java/
io
/wangtian/modules/app/controller/AppTestController.java
→
src/main/java/
com
/wangtian/modules/app/controller/AppTestController.java
View file @
dfb47d22
...
...
@@ -6,13 +6,13 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
controller
;
package
com
.
wangtian
.
modules
.
app
.
controller
;
import
io.wangtian.common.utils.R
;
import
io.wangtian.modules.app.annotation.Login
;
import
io.wangtian.modules.app.annotation.LoginUser
;
import
io
.wangtian.modules.app.entity.UserEntity
;
import
com.wangtian.modules.app.annotation.LoginUser
;
import
com.wangtian.common.utils.R
;
import
com.wangtian.modules.app.annotation.Login
;
import
com
.wangtian.modules.app.entity.UserEntity
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
src/main/java/
io
/wangtian/modules/app/dao/UserDao.java
→
src/main/java/
com
/wangtian/modules/app/dao/UserDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
dao
;
package
com
.
wangtian
.
modules
.
app
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.app.entity.UserEntity
;
import
com
.wangtian.modules.app.entity.UserEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/
io
/wangtian/modules/app/entity/UserEntity.java
→
src/main/java/
com
/wangtian/modules/app/entity/UserEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
entity
;
package
com
.
wangtian
.
modules
.
app
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/app/form/LoginForm.java
→
src/main/java/
com
/wangtian/modules/app/form/LoginForm.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
form
;
package
com
.
wangtian
.
modules
.
app
.
form
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
src/main/java/
io
/wangtian/modules/app/form/RegisterForm.java
→
src/main/java/
com
/wangtian/modules/app/form/RegisterForm.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
form
;
package
com
.
wangtian
.
modules
.
app
.
form
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
src/main/java/
io
/wangtian/modules/app/interceptor/AuthorizationInterceptor.java
→
src/main/java/
com
/wangtian/modules/app/interceptor/AuthorizationInterceptor.java
View file @
dfb47d22
...
...
@@ -6,13 +6,13 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
interceptor
;
package
com
.
wangtian
.
modules
.
app
.
interceptor
;
import
com.wangtian.modules.app.annotation.Login
;
import
io.jsonwebtoken.Claims
;
import
io.wangtian.common.exception.RRException
;
import
io.wangtian.modules.app.utils.JwtUtils
;
import
io.wangtian.modules.app.annotation.Login
;
import
com.wangtian.common.exception.RRException
;
import
com.wangtian.modules.app.utils.JwtUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
...
...
src/main/java/
io
/wangtian/modules/app/resolver/LoginUserHandlerMethodArgumentResolver.java
→
src/main/java/
com
/wangtian/modules/app/resolver/LoginUserHandlerMethodArgumentResolver.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
resolver
;
package
com
.
wangtian
.
modules
.
app
.
resolver
;
import
io
.wangtian.modules.app.annotation.LoginUser
;
import
io
.wangtian.modules.app.entity.UserEntity
;
import
io
.wangtian.modules.app.interceptor.AuthorizationInterceptor
;
import
io
.wangtian.modules.app.service.UserService
;
import
com
.wangtian.modules.app.annotation.LoginUser
;
import
com
.wangtian.modules.app.entity.UserEntity
;
import
com
.wangtian.modules.app.interceptor.AuthorizationInterceptor
;
import
com
.wangtian.modules.app.service.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.MethodParameter
;
import
org.springframework.stereotype.Component
;
...
...
src/main/java/
io
/wangtian/modules/app/service/UserService.java
→
src/main/java/
com
/wangtian/modules/app/service/UserService.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
service
;
package
com
.
wangtian
.
modules
.
app
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.modules.app.entity.UserEntity
;
import
io
.wangtian.modules.app.form.LoginForm
;
import
com
.wangtian.modules.app.entity.UserEntity
;
import
com
.wangtian.modules.app.form.LoginForm
;
/**
* 用户
...
...
src/main/java/
io
/wangtian/modules/app/service/impl/UserServiceImpl.java
→
src/main/java/
com
/wangtian/modules/app/service/impl/UserServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,17 +6,17 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
app
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.validator.Assert
;
import
io
.wangtian.modules.app.dao.UserDao
;
import
io
.wangtian.modules.app.entity.UserEntity
;
import
io
.wangtian.modules.app.form.LoginForm
;
import
io
.wangtian.modules.app.service.UserService
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.validator.Assert
;
import
com
.wangtian.modules.app.dao.UserDao
;
import
com
.wangtian.modules.app.entity.UserEntity
;
import
com
.wangtian.modules.app.form.LoginForm
;
import
com
.wangtian.modules.app.service.UserService
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/app/utils/JwtUtils.java
→
src/main/java/
com
/wangtian/modules/app/utils/JwtUtils.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
app
.
utils
;
package
com
.
wangtian
.
modules
.
app
.
utils
;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.Jwts
;
...
...
src/main/java/
io
/wangtian/modules/job/config/ScheduleConfig.java
→
src/main/java/
com
/wangtian/modules/job/config/ScheduleConfig.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
config
;
package
com
.
wangtian
.
modules
.
job
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
src/main/java/
io
/wangtian/modules/job/controller/ScheduleJobController.java
→
src/main/java/
com
/wangtian/modules/job/controller/ScheduleJobController.java
View file @
dfb47d22
...
...
@@ -6,14 +6,14 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
controller
;
import
io
.wangtian.common.annotation.SysLog
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.common.validator.ValidatorUtils
;
import
io
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
io
.wangtian.modules.job.service.ScheduleJobService
;
package
com
.
wangtian
.
modules
.
job
.
controller
;
import
com
.wangtian.common.annotation.SysLog
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.common.validator.ValidatorUtils
;
import
com
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com
.wangtian.modules.job.service.ScheduleJobService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/
io
/wangtian/modules/job/controller/ScheduleJobLogController.java
→
src/main/java/
com
/wangtian/modules/job/controller/ScheduleJobLogController.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
controller
;
package
com
.
wangtian
.
modules
.
job
.
controller
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
io
.wangtian.modules.job.service.ScheduleJobLogService
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
com
.wangtian.modules.job.service.ScheduleJobLogService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
src/main/java/
io
/wangtian/modules/job/dao/ScheduleJobDao.java
→
src/main/java/
com
/wangtian/modules/job/dao/ScheduleJobDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
dao
;
package
com
.
wangtian
.
modules
.
job
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/job/dao/ScheduleJobLogDao.java
→
src/main/java/
com
/wangtian/modules/job/dao/ScheduleJobLogDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
dao
;
package
com
.
wangtian
.
modules
.
job
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
com
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/
io
/wangtian/modules/job/entity/ScheduleJobEntity.java
→
src/main/java/
com
/wangtian/modules/job/entity/ScheduleJobEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
entity
;
package
com
.
wangtian
.
modules
.
job
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/job/entity/ScheduleJobLogEntity.java
→
src/main/java/
com
/wangtian/modules/job/entity/ScheduleJobLogEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
entity
;
package
com
.
wangtian
.
modules
.
job
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/job/service/ScheduleJobLogService.java
→
src/main/java/
com
/wangtian/modules/job/service/ScheduleJobLogService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
service
;
package
com
.
wangtian
.
modules
.
job
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
com.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
com.wangtian.common.utils.PageUtils
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/job/service/ScheduleJobService.java
→
src/main/java/
com
/wangtian/modules/job/service/ScheduleJobService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
service
;
package
com
.
wangtian
.
modules
.
job
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com.wangtian.common.utils.PageUtils
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/job/service/impl/ScheduleJobLogServiceImpl.java
→
src/main/java/
com
/wangtian/modules/job/service/impl/ScheduleJobLogServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,16 +6,16 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
job
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.common.utils.Query
;
import
io.wangtian.modules.job.dao.ScheduleJobLogDao
;
import
io
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
io
.wangtian.modules.job.service.ScheduleJobLogService
;
import
com.wangtian.modules.job.dao.ScheduleJobLogDao
;
import
com.wangtian.common.utils.PageUtils
;
import
com.wangtian.common.utils.Query
;
import
com
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
com
.wangtian.modules.job.service.ScheduleJobLogService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/job/service/impl/ScheduleJobServiceImpl.java
→
src/main/java/
com
/wangtian/modules/job/service/impl/ScheduleJobServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,18 +6,18 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
job
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io.wangtian.common.utils.Constant
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.common.utils.Query
;
import
io.wangtian.modules.job.dao.ScheduleJobDao
;
import
io.wangtian.modules.job.entity.ScheduleJobEntity
;
import
io.wangtian.modules.job.service.ScheduleJobService
;
import
io.wangtian.modules.job.utils.ScheduleUtils
;
import
com.wangtian.modules.job.dao.ScheduleJobDao
;
import
com.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com.wangtian.modules.job.utils.ScheduleUtils
;
import
com.wangtian.common.utils.Constant
;
import
com.wangtian.common.utils.PageUtils
;
import
com.wangtian.common.utils.Query
;
import
com.wangtian.modules.job.service.ScheduleJobService
;
import
org.apache.commons.lang.StringUtils
;
import
org.quartz.CronTrigger
;
import
org.quartz.Scheduler
;
...
...
src/main/java/
io
/wangtian/modules/job/task/ITask.java
→
src/main/java/
com
/wangtian/modules/job/task/ITask.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
task
;
package
com
.
wangtian
.
modules
.
job
.
task
;
/**
* 定时任务接口,所有定时任务都要实现该接口
...
...
src/main/java/
io
/wangtian/modules/job/task/TestTask.java
→
src/main/java/
com
/wangtian/modules/job/task/TestTask.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
task
;
package
com
.
wangtian
.
modules
.
job
.
task
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
src/main/java/
io
/wangtian/modules/job/utils/ScheduleJob.java
→
src/main/java/
com
/wangtian/modules/job/utils/ScheduleJob.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
utils
;
package
com
.
wangtian
.
modules
.
job
.
utils
;
import
io
.wangtian.common.utils.SpringContextUtils
;
import
io
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
io
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
io
.wangtian.modules.job.service.ScheduleJobLogService
;
import
com
.wangtian.common.utils.SpringContextUtils
;
import
com
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com
.wangtian.modules.job.entity.ScheduleJobLogEntity
;
import
com
.wangtian.modules.job.service.ScheduleJobLogService
;
import
org.apache.commons.lang.StringUtils
;
import
org.quartz.JobExecutionContext
;
import
org.quartz.JobExecutionException
;
...
...
src/main/java/
io
/wangtian/modules/job/utils/ScheduleUtils.java
→
src/main/java/
com
/wangtian/modules/job/utils/ScheduleUtils.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
job
.
utils
;
package
com
.
wangtian
.
modules
.
job
.
utils
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.modules.job.entity.ScheduleJobEntity
;
import
org.quartz.*
;
/**
...
...
src/main/java/com/wangtian/modules/manage/controller/InvestmentPlanController.java
0 → 100644
View file @
dfb47d22
package
com
.
wangtian
.
modules
.
manage
.
controller
;
import
java.util.Arrays
;
import
java.util.Map
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.wangtian.modules.manage.entity.InvestmentPlanEntity
;
import
com.wangtian.modules.manage.service.InvestmentPlanService
;
import
com.wangtian.common.utils.PageUtils
;
import
com.wangtian.common.utils.R
;
/**
* 投资计划管理表
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-07-15 15:20:15
*/
@RestController
@RequestMapping
(
"manage/investmentplan"
)
public
class
InvestmentPlanController
{
@Autowired
private
InvestmentPlanService
investmentPlanService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
@RequiresPermissions
(
"manage:investmentplan:list"
)
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
){
PageUtils
page
=
investmentPlanService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"page"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
@RequiresPermissions
(
"manage:investmentplan:info"
)
public
R
info
(
@PathVariable
(
"id"
)
Long
id
){
InvestmentPlanEntity
investmentPlan
=
investmentPlanService
.
getById
(
id
);
return
R
.
ok
().
put
(
"investmentPlan"
,
investmentPlan
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
@RequiresPermissions
(
"manage:investmentplan:save"
)
public
R
save
(
@RequestBody
InvestmentPlanEntity
investmentPlan
){
investmentPlanService
.
save
(
investmentPlan
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
@RequiresPermissions
(
"manage:investmentplan:update"
)
public
R
update
(
@RequestBody
InvestmentPlanEntity
investmentPlan
){
investmentPlanService
.
updateById
(
investmentPlan
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
@RequiresPermissions
(
"manage:investmentplan:delete"
)
public
R
delete
(
@RequestBody
Long
[]
ids
){
investmentPlanService
.
removeByIds
(
Arrays
.
asList
(
ids
));
return
R
.
ok
();
}
}
src/main/java/com/wangtian/modules/manage/dao/InvestmentPlanDao.java
0 → 100644
View file @
dfb47d22
package
com
.
wangtian
.
modules
.
manage
.
dao
;
import
com.wangtian.modules.manage.entity.InvestmentPlanEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 投资计划管理表
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-07-15 15:20:15
*/
@Mapper
public
interface
InvestmentPlanDao
extends
BaseMapper
<
InvestmentPlanEntity
>
{
}
src/main/java/com/wangtian/modules/manage/entity/InvestmentPlanEntity.java
0 → 100644
View file @
dfb47d22
package
com
.
wangtian
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.math.BigDecimal
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 投资计划管理表
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-07-15 15:20:15
*/
@Data
@TableName
(
"pm_investment_plan"
)
public
class
InvestmentPlanEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键,通过idwork-starter生成
*/
@TableId
(
type
=
IdType
.
INPUT
)
private
Long
id
;
/**
* 投资计划名称
*/
private
String
planName
;
/**
* 投资计划类型,使用Java枚举类维护
*/
private
Integer
planType
;
/**
* 年度
*/
private
String
planYear
;
/**
* 批次
*/
private
String
planBatchNumber
;
/**
* 计划文号
*/
private
String
planNumber
;
/**
* 资本性金额(万元)
*/
private
BigDecimal
planCapitalAmount
;
/**
* 成本性金额(万元)
*/
private
BigDecimal
planCostAmount
;
/**
* 投资计划下达时间
*/
private
Date
planDeliveryTime
;
/**
* 下达备注
*/
private
String
planRemarks
;
/**
* 排序字段
*/
private
Integer
orderNum
;
/**
* 是否发布 0/未发布,1/发布
*/
private
Integer
isPublish
;
/**
* 修改时间
*/
private
Date
updateTime
;
/**
* 创建时间
*/
private
Date
createTime
;
}
src/main/java/com/wangtian/modules/manage/service/InvestmentPlanService.java
0 → 100644
View file @
dfb47d22
package
com
.
wangtian
.
modules
.
manage
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.wangtian.common.utils.PageUtils
;
import
com.wangtian.modules.manage.entity.InvestmentPlanEntity
;
import
java.util.Map
;
/**
* 投资计划管理表
*
* @author wudi
* @email 632132852@qq.com
* @date 2023-07-15 15:20:15
*/
public
interface
InvestmentPlanService
extends
IService
<
InvestmentPlanEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
}
src/main/java/com/wangtian/modules/manage/service/impl/InvestmentPlanServiceImpl.java
0 → 100644
View file @
dfb47d22
package
com
.
wangtian
.
modules
.
manage
.
service
.
impl
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.wangtian.common.utils.PageUtils
;
import
com.wangtian.common.utils.Query
;
import
com.wangtian.modules.manage.dao.InvestmentPlanDao
;
import
com.wangtian.modules.manage.entity.InvestmentPlanEntity
;
import
com.wangtian.modules.manage.service.InvestmentPlanService
;
@Service
(
"investmentPlanService"
)
public
class
InvestmentPlanServiceImpl
extends
ServiceImpl
<
InvestmentPlanDao
,
InvestmentPlanEntity
>
implements
InvestmentPlanService
{
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
InvestmentPlanEntity
>
page
=
this
.
page
(
new
Query
<
InvestmentPlanEntity
>().
getPage
(
params
),
new
QueryWrapper
<
InvestmentPlanEntity
>()
);
return
new
PageUtils
(
page
);
}
}
src/main/java/
io
/wangtian/modules/oss/cloud/AliyunCloudStorageService.java
→
src/main/java/
com
/wangtian/modules/oss/cloud/AliyunCloudStorageService.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
cloud
;
package
com
.
wangtian
.
modules
.
oss
.
cloud
;
import
com.aliyun.oss.OSSClient
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
java.io.ByteArrayInputStream
;
import
java.io.InputStream
;
...
...
src/main/java/
io
/wangtian/modules/oss/cloud/CloudStorageConfig.java
→
src/main/java/
com
/wangtian/modules/oss/cloud/CloudStorageConfig.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
cloud
;
package
com
.
wangtian
.
modules
.
oss
.
cloud
;
import
io
.wangtian.common.validator.group.AliyunGroup
;
import
io
.wangtian.common.validator.group.QcloudGroup
;
import
io
.wangtian.common.validator.group.QiniuGroup
;
import
com
.wangtian.common.validator.group.AliyunGroup
;
import
com
.wangtian.common.validator.group.QcloudGroup
;
import
com
.wangtian.common.validator.group.QiniuGroup
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Range
;
import
org.hibernate.validator.constraints.URL
;
...
...
src/main/java/
io
/wangtian/modules/oss/cloud/CloudStorageService.java
→
src/main/java/
com
/wangtian/modules/oss/cloud/CloudStorageService.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
cloud
;
package
com
.
wangtian
.
modules
.
oss
.
cloud
;
import
io
.wangtian.common.utils.DateUtils
;
import
com
.wangtian.common.utils.DateUtils
;
import
org.apache.commons.lang.StringUtils
;
import
java.io.InputStream
;
...
...
src/main/java/
io
/wangtian/modules/oss/cloud/OSSFactory.java
→
src/main/java/
com
/wangtian/modules/oss/cloud/OSSFactory.java
View file @
dfb47d22
...
...
@@ -6,13 +6,13 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
cloud
;
package
com
.
wangtian
.
modules
.
oss
.
cloud
;
import
io.wangtian.common.utils.ConfigConstant
;
import
io.wangtian.common.utils.
Constant
;
import
io.wangtian.common.utils.SpringContextUtils
;
import
io.wangtian.modules.sys.service.SysConfigService
;
import
com.wangtian.modules.sys.service.SysConfigService
;
import
com.wangtian.common.utils.Config
Constant
;
import
com.wangtian.common.utils.Constant
;
import
com.wangtian.common.utils.SpringContextUtils
;
/**
* 文件上传Factory
...
...
src/main/java/
io
/wangtian/modules/oss/cloud/QcloudCloudStorageService.java
→
src/main/java/
com
/wangtian/modules/oss/cloud/QcloudCloudStorageService.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
cloud
;
package
com
.
wangtian
.
modules
.
oss
.
cloud
;
import
com.alibaba.fastjson.JSONObject
;
...
...
@@ -14,7 +14,7 @@ import com.qcloud.cos.COSClient;
import
com.qcloud.cos.ClientConfig
;
import
com.qcloud.cos.request.UploadFileRequest
;
import
com.qcloud.cos.sign.Credentials
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
org.apache.commons.io.IOUtils
;
import
java.io.IOException
;
...
...
src/main/java/
io
/wangtian/modules/oss/cloud/QiniuCloudStorageService.java
→
src/main/java/
com
/wangtian/modules/oss/cloud/QiniuCloudStorageService.java
View file @
dfb47d22
...
...
@@ -6,14 +6,14 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
cloud
;
package
com
.
wangtian
.
modules
.
oss
.
cloud
;
import
com.qiniu.common.Zone
;
import
com.qiniu.http.Response
;
import
com.qiniu.storage.Configuration
;
import
com.qiniu.storage.UploadManager
;
import
com.qiniu.util.Auth
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
org.apache.commons.io.IOUtils
;
import
java.io.IOException
;
...
...
src/main/java/
io
/wangtian/modules/oss/controller/SysOssController.java
→
src/main/java/
com
/wangtian/modules/oss/controller/SysOssController.java
View file @
dfb47d22
...
...
@@ -6,20 +6,20 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
controller
;
package
com
.
wangtian
.
modules
.
oss
.
controller
;
import
com.google.gson.Gson
;
import
io.wangtian.common.exception.RRException
;
import
io.wangtian.common.utils.ConfigConstant
;
import
io.wangtian.common.utils.
Constant
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.common.utils.R
;
import
io.wangtian.common.validator.ValidatorUtils
;
import
io.wangtian.modules.oss.cloud.CloudStorageConfig
;
import
io.wangtian.modules.oss.cloud.OSSFactory
;
import
io.wangtian.modules.oss.entity.SysOssEntit
y
;
import
io.wangtian.modules.oss.service.SysOssService
;
import
io.wangtian.modules.sys.service.SysConfig
Service
;
import
com.wangtian.modules.sys.service.SysConfigService
;
import
com.wangtian.common.exception.RRException
;
import
com.wangtian.common.utils.Config
Constant
;
import
com.wangtian.common.utils.Constant
;
import
com.wangtian.common.utils.PageUtils
;
import
com.wangtian.common.utils.R
;
import
com.wangtian.common.validator.ValidatorUtils
;
import
com.wangtian.modules.oss.cloud.CloudStorageConfig
;
import
com.wangtian.modules.oss.cloud.OSSFactor
y
;
import
com.wangtian.modules.oss.entity.SysOssEntity
;
import
com.wangtian.modules.oss.service.SysOss
Service
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/
io
/wangtian/modules/oss/dao/SysOssDao.java
→
src/main/java/
com
/wangtian/modules/oss/dao/SysOssDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
dao
;
package
com
.
wangtian
.
modules
.
oss
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.oss.entity.SysOssEntity
;
import
com
.wangtian.modules.oss.entity.SysOssEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/
io
/wangtian/modules/oss/entity/SysOssEntity.java
→
src/main/java/
com
/wangtian/modules/oss/entity/SysOssEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
entity
;
package
com
.
wangtian
.
modules
.
oss
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/oss/service/SysOssService.java
→
src/main/java/
com
/wangtian/modules/oss/service/SysOssService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
service
;
package
com
.
wangtian
.
modules
.
oss
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.modules.oss.entity.SysOssEntity
;
import
com.wangtian.modules.oss.entity.SysOssEntity
;
import
com.wangtian.common.utils.PageUtils
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/oss/service/impl/SysOssServiceImpl.java
→
src/main/java/
com
/wangtian/modules/oss/service/impl/SysOssServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,15 +6,15 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
oss
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
oss
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.Query
;
import
io
.wangtian.modules.oss.dao.SysOssDao
;
import
io
.wangtian.modules.oss.entity.SysOssEntity
;
import
io
.wangtian.modules.oss.service.SysOssService
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.Query
;
import
com
.wangtian.modules.oss.dao.SysOssDao
;
import
com
.wangtian.modules.oss.entity.SysOssEntity
;
import
com
.wangtian.modules.oss.service.SysOssService
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/AbstractController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/AbstractController.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
org.apache.shiro.SecurityUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/SysConfigController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/SysConfigController.java
View file @
dfb47d22
...
...
@@ -6,15 +6,15 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.common.annotation.SysLog
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.common.validator.ValidatorUtils
;
import
io
.wangtian.modules.sys.entity.SysConfigEntity
;
import
io
.wangtian.modules.sys.service.SysConfigService
;
import
com
.wangtian.common.annotation.SysLog
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.common.validator.ValidatorUtils
;
import
com
.wangtian.modules.sys.entity.SysConfigEntity
;
import
com
.wangtian.modules.sys.service.SysConfigService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/SysLogController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/SysLogController.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.modules.sys.service.SysLogService
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.modules.sys.service.SysLogService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/SysLoginController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/SysLoginController.java
View file @
dfb47d22
...
...
@@ -6,14 +6,14 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
io
.wangtian.modules.sys.form.SysLoginForm
;
import
io
.wangtian.modules.sys.service.SysCaptchaService
;
import
io
.wangtian.modules.sys.service.SysUserService
;
import
io
.wangtian.modules.sys.service.SysUserTokenService
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.form.SysLoginForm
;
import
com
.wangtian.modules.sys.service.SysCaptchaService
;
import
com
.wangtian.modules.sys.service.SysUserService
;
import
com
.wangtian.modules.sys.service.SysUserTokenService
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.shiro.crypto.hash.Sha256Hash
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/SysMenuController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/SysMenuController.java
View file @
dfb47d22
...
...
@@ -6,15 +6,15 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.common.annotation.SysLog
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.modules.sys.entity.SysMenuEntity
;
import
io
.wangtian.modules.sys.service.ShiroService
;
import
io
.wangtian.modules.sys.service.SysMenuService
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
com
.wangtian.common.annotation.SysLog
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.modules.sys.entity.SysMenuEntity
;
import
com
.wangtian.modules.sys.service.ShiroService
;
import
com
.wangtian.modules.sys.service.SysMenuService
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/SysRoleController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/SysRoleController.java
View file @
dfb47d22
...
...
@@ -6,16 +6,16 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.common.annotation.SysLog
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.common.validator.ValidatorUtils
;
import
io
.wangtian.modules.sys.entity.SysRoleEntity
;
import
io
.wangtian.modules.sys.service.SysRoleMenuService
;
import
io
.wangtian.modules.sys.service.SysRoleService
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
com
.wangtian.common.annotation.SysLog
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.common.validator.ValidatorUtils
;
import
com
.wangtian.modules.sys.entity.SysRoleEntity
;
import
com
.wangtian.modules.sys.service.SysRoleMenuService
;
import
com
.wangtian.modules.sys.service.SysRoleService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/
io
/wangtian/modules/sys/controller/SysUserController.java
→
src/main/java/
com
/wangtian/modules/sys/controller/SysUserController.java
View file @
dfb47d22
...
...
@@ -6,20 +6,20 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
controller
;
import
io
.wangtian.common.annotation.SysLog
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.common.validator.Assert
;
import
io
.wangtian.common.validator.ValidatorUtils
;
import
io
.wangtian.common.validator.group.AddGroup
;
import
io
.wangtian.common.validator.group.UpdateGroup
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
io
.wangtian.modules.sys.form.PasswordForm
;
import
io.wangtian.modules.sys.service.SysUserRole
Service
;
import
io.wangtian.modules.sys.service.SysUser
Service
;
package
com
.
wangtian
.
modules
.
sys
.
controller
;
import
com
.wangtian.common.annotation.SysLog
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.common.validator.Assert
;
import
com
.wangtian.common.validator.ValidatorUtils
;
import
com
.wangtian.common.validator.group.AddGroup
;
import
com
.wangtian.common.validator.group.UpdateGroup
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.form.PasswordForm
;
import
com.wangtian.modules.sys.service.SysUser
Service
;
import
com.wangtian.modules.sys.service.SysUserRole
Service
;
import
org.apache.commons.lang.ArrayUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.crypto.hash.Sha256Hash
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysCaptchaDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysCaptchaDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysCaptchaEntity
;
import
com
.wangtian.modules.sys.entity.SysCaptchaEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysConfigDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysConfigDao.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysConfigEntity
;
import
com
.wangtian.modules.sys.entity.SysConfigEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysLogDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysLogDao.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysLogEntity
;
import
com
.wangtian.modules.sys.entity.SysLogEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysMenuDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysMenuDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysMenuEntity
;
import
com
.wangtian.modules.sys.entity.SysMenuEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysRoleDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysRoleDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysRoleEntity
;
import
com
.wangtian.modules.sys.entity.SysRoleEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysRoleMenuDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysRoleMenuDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysRoleMenuEntity
;
import
com
.wangtian.modules.sys.entity.SysRoleMenuEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysUserDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysUserDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysUserRoleDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysUserRoleDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysUserRoleEntity
;
import
com
.wangtian.modules.sys.entity.SysUserRoleEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/dao/SysUserTokenDao.java
→
src/main/java/
com
/wangtian/modules/sys/dao/SysUserTokenDao.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
dao
;
package
com
.
wangtian
.
modules
.
sys
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
io
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
com
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysCaptchaEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysCaptchaEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysConfigEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysConfigEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysLogEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysLogEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysMenuEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysMenuEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysRoleEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysRoleEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysRoleMenuEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysRoleMenuEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysUserEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysUserEntity.java
View file @
dfb47d22
...
...
@@ -6,13 +6,13 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io
.wangtian.common.validator.group.AddGroup
;
import
io
.wangtian.common.validator.group.UpdateGroup
;
import
com
.wangtian.common.validator.group.AddGroup
;
import
com
.wangtian.common.validator.group.UpdateGroup
;
import
lombok.Data
;
import
javax.validation.constraints.Email
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysUserRoleEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysUserRoleEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
...
src/main/java/
io
/wangtian/modules/sys/entity/SysUserTokenEntity.java
→
src/main/java/
com
/wangtian/modules/sys/entity/SysUserTokenEntity.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
entity
;
package
com
.
wangtian
.
modules
.
sys
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
...
src/main/java/
io
/wangtian/modules/sys/form/PasswordForm.java
→
src/main/java/
com
/wangtian/modules/sys/form/PasswordForm.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
form
;
package
com
.
wangtian
.
modules
.
sys
.
form
;
import
lombok.Data
;
...
...
src/main/java/
io
/wangtian/modules/sys/form/SysLoginForm.java
→
src/main/java/
com
/wangtian/modules/sys/form/SysLoginForm.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
form
;
package
com
.
wangtian
.
modules
.
sys
.
form
;
import
lombok.Data
;
...
...
src/main/java/
io
/wangtian/modules/sys/oauth2/OAuth2Filter.java
→
src/main/java/
com
/wangtian/modules/sys/oauth2/OAuth2Filter.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
oauth2
;
package
com
.
wangtian
.
modules
.
sys
.
oauth2
;
import
com.google.gson.Gson
;
import
io
.wangtian.common.utils.HttpContextUtils
;
import
io
.wangtian.common.utils.R
;
import
com
.wangtian.common.utils.HttpContextUtils
;
import
com
.wangtian.common.utils.R
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.http.HttpStatus
;
import
org.apache.shiro.authc.AuthenticationException
;
...
...
src/main/java/
io
/wangtian/modules/sys/oauth2/OAuth2Realm.java
→
src/main/java/
com
/wangtian/modules/sys/oauth2/OAuth2Realm.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
oauth2
;
package
com
.
wangtian
.
modules
.
sys
.
oauth2
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
io
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
io
.wangtian.modules.sys.service.ShiroService
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
com
.wangtian.modules.sys.service.ShiroService
;
import
org.apache.shiro.authc.*
;
import
org.apache.shiro.authz.AuthorizationInfo
;
import
org.apache.shiro.authz.SimpleAuthorizationInfo
;
...
...
src/main/java/
io
/wangtian/modules/sys/oauth2/OAuth2Token.java
→
src/main/java/
com
/wangtian/modules/sys/oauth2/OAuth2Token.java
View file @
dfb47d22
...
...
@@ -6,7 +6,7 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
oauth2
;
package
com
.
wangtian
.
modules
.
sys
.
oauth2
;
import
org.apache.shiro.authc.AuthenticationToken
;
...
...
src/main/java/
io
/wangtian/modules/sys/oauth2/TokenGenerator.java
→
src/main/java/
com
/wangtian/modules/sys/oauth2/TokenGenerator.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
oauth2
;
package
com
.
wangtian
.
modules
.
sys
.
oauth2
;
import
io
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.exception.RRException
;
import
java.security.MessageDigest
;
import
java.util.UUID
;
...
...
src/main/java/
io
/wangtian/modules/sys/redis/SysConfigRedis.java
→
src/main/java/
com
/wangtian/modules/sys/redis/SysConfigRedis.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
redis
;
package
com
.
wangtian
.
modules
.
sys
.
redis
;
import
io.wangtian.common.utils.RedisKeys
;
import
io.wangtian.common.utils.RedisUtil
s
;
import
io.wangtian.modules.sys.entity.SysConfigEntity
;
import
com.wangtian.modules.sys.entity.SysConfigEntity
;
import
com.wangtian.common.utils.RedisKey
s
;
import
com.wangtian.common.utils.RedisUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/ShiroService.java
→
src/main/java/
com
/wangtian/modules/sys/service/ShiroService.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
io
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
java.util.Set
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysCaptchaService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysCaptchaService.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.modules.sys.entity.SysCaptchaEntity
;
import
com
.wangtian.modules.sys.entity.SysCaptchaEntity
;
import
java.awt.image.BufferedImage
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysConfigService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysConfigService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.modules.sys.entity.SysConfigEntity
;
import
com.wangtian.modules.sys.entity.SysConfigEntity
;
import
com.wangtian.common.utils.PageUtils
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysLogService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysLogService.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.modules.sys.entity.SysLogEntity
;
import
com.wangtian.modules.sys.entity.SysLogEntity
;
import
com.wangtian.common.utils.PageUtils
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysMenuService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysMenuService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.modules.sys.entity.SysMenuEntity
;
import
com
.wangtian.modules.sys.entity.SysMenuEntity
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysRoleMenuService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysRoleMenuService.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.modules.sys.entity.SysRoleMenuEntity
;
import
com
.wangtian.modules.sys.entity.SysRoleMenuEntity
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysRoleService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysRoleService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.wangtian.common.utils.PageUtils
;
import
io.wangtian.modules.sys.entity.SysRoleEntity
;
import
com.wangtian.modules.sys.entity.SysRoleEntity
;
import
com.wangtian.common.utils.PageUtils
;
import
java.util.List
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysUserRoleService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysUserRoleService.java
View file @
dfb47d22
...
...
@@ -6,10 +6,10 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.modules.sys.entity.SysUserRoleEntity
;
import
com
.wangtian.modules.sys.entity.SysUserRoleEntity
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysUserService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysUserService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
java.util.List
;
import
java.util.Map
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/SysUserTokenService.java
→
src/main/java/
com
/wangtian/modules/sys/service/SysUserTokenService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
;
package
com
.
wangtian
.
modules
.
sys
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.modules.sys.entity.SysUserTokenEntity
;
/**
* 用户Token
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/ShiroServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/ShiroServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,16 +6,16 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.modules.sys.dao.SysMenuDao
;
import
io
.wangtian.modules.sys.dao.SysUserDao
;
import
io
.wangtian.modules.sys.dao.SysUserTokenDao
;
import
io
.wangtian.modules.sys.entity.SysMenuEntity
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
io
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
io
.wangtian.modules.sys.service.ShiroService
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.modules.sys.dao.SysMenuDao
;
import
com
.wangtian.modules.sys.dao.SysUserDao
;
import
com
.wangtian.modules.sys.dao.SysUserTokenDao
;
import
com
.wangtian.modules.sys.entity.SysMenuEntity
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
com
.wangtian.modules.sys.service.ShiroService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysCaptchaServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysCaptchaServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,17 +6,17 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.google.code.kaptcha.Producer
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.utils.DateUtils
;
import
io
.wangtian.modules.sys.dao.SysCaptchaDao
;
import
io
.wangtian.modules.sys.entity.SysCaptchaEntity
;
import
io
.wangtian.modules.sys.service.SysCaptchaService
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.utils.DateUtils
;
import
com
.wangtian.modules.sys.dao.SysCaptchaDao
;
import
com
.wangtian.modules.sys.entity.SysCaptchaEntity
;
import
com
.wangtian.modules.sys.service.SysCaptchaService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysConfigServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysConfigServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,19 +6,19 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.google.gson.Gson
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.Query
;
import
io
.wangtian.modules.sys.dao.SysConfigDao
;
import
io
.wangtian.modules.sys.entity.SysConfigEntity
;
import
io
.wangtian.modules.sys.redis.SysConfigRedis
;
import
io
.wangtian.modules.sys.service.SysConfigService
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.Query
;
import
com
.wangtian.modules.sys.dao.SysConfigDao
;
import
com
.wangtian.modules.sys.entity.SysConfigEntity
;
import
com
.wangtian.modules.sys.redis.SysConfigRedis
;
import
com
.wangtian.modules.sys.service.SysConfigService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysLogServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysLogServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,16 +6,16 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.Query
;
import
io
.wangtian.modules.sys.dao.SysLogDao
;
import
io
.wangtian.modules.sys.entity.SysLogEntity
;
import
io
.wangtian.modules.sys.service.SysLogService
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.Query
;
import
com
.wangtian.modules.sys.dao.SysLogDao
;
import
com
.wangtian.modules.sys.entity.SysLogEntity
;
import
com
.wangtian.modules.sys.service.SysLogService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysMenuServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysMenuServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,18 +6,18 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.common.utils.MapUtils
;
import
io
.wangtian.modules.sys.dao.SysMenuDao
;
import
io
.wangtian.modules.sys.entity.SysMenuEntity
;
import
io
.wangtian.modules.sys.service.SysMenuService
;
import
io
.wangtian.modules.sys.service.SysRoleMenuService
;
import
io
.wangtian.modules.sys.service.SysUserService
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.common.utils.MapUtils
;
import
com
.wangtian.modules.sys.dao.SysMenuDao
;
import
com
.wangtian.modules.sys.entity.SysMenuEntity
;
import
com
.wangtian.modules.sys.service.SysMenuService
;
import
com
.wangtian.modules.sys.service.SysRoleMenuService
;
import
com
.wangtian.modules.sys.service.SysUserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysRoleMenuServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysRoleMenuServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,12 +6,12 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.modules.sys.dao.SysRoleMenuDao
;
import
io
.wangtian.modules.sys.entity.SysRoleMenuEntity
;
import
io
.wangtian.modules.sys.service.SysRoleMenuService
;
import
com
.wangtian.modules.sys.dao.SysRoleMenuDao
;
import
com
.wangtian.modules.sys.entity.SysRoleMenuEntity
;
import
com
.wangtian.modules.sys.service.SysRoleMenuService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysRoleServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysRoleServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,21 +6,21 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.Query
;
import
io
.wangtian.modules.sys.dao.SysRoleDao
;
import
io
.wangtian.modules.sys.dao.SysUserDao
;
import
io
.wangtian.modules.sys.entity.SysRoleEntity
;
import
io
.wangtian.modules.sys.service.SysRoleMenuService
;
import
io
.wangtian.modules.sys.service.SysRoleService
;
import
io
.wangtian.modules.sys.service.SysUserRoleService
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.Query
;
import
com
.wangtian.modules.sys.dao.SysRoleDao
;
import
com
.wangtian.modules.sys.dao.SysUserDao
;
import
com
.wangtian.modules.sys.entity.SysRoleEntity
;
import
com
.wangtian.modules.sys.service.SysRoleMenuService
;
import
com
.wangtian.modules.sys.service.SysRoleService
;
import
com
.wangtian.modules.sys.service.SysUserRoleService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysUserRoleServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysUserRoleServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,13 +6,13 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.utils.MapUtils
;
import
io
.wangtian.modules.sys.dao.SysUserRoleDao
;
import
io
.wangtian.modules.sys.entity.SysUserRoleEntity
;
import
io
.wangtian.modules.sys.service.SysUserRoleService
;
import
com
.wangtian.common.utils.MapUtils
;
import
com
.wangtian.modules.sys.dao.SysUserRoleDao
;
import
com
.wangtian.modules.sys.entity.SysUserRoleEntity
;
import
com
.wangtian.modules.sys.service.SysUserRoleService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysUserServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysUserServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,20 +6,20 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.exception.RRException
;
import
io
.wangtian.common.utils.Constant
;
import
io
.wangtian.common.utils.PageUtils
;
import
io
.wangtian.common.utils.Query
;
import
io
.wangtian.modules.sys.dao.SysUserDao
;
import
io
.wangtian.modules.sys.entity.SysUserEntity
;
import
io
.wangtian.modules.sys.service.SysRoleService
;
import
io.wangtian.modules.sys.service.SysUserRole
Service
;
import
io.wangtian.modules.sys.service.SysUser
Service
;
import
com
.wangtian.common.exception.RRException
;
import
com
.wangtian.common.utils.Constant
;
import
com
.wangtian.common.utils.PageUtils
;
import
com
.wangtian.common.utils.Query
;
import
com
.wangtian.modules.sys.dao.SysUserDao
;
import
com
.wangtian.modules.sys.entity.SysUserEntity
;
import
com
.wangtian.modules.sys.service.SysRoleService
;
import
com.wangtian.modules.sys.service.SysUser
Service
;
import
com.wangtian.modules.sys.service.SysUserRole
Service
;
import
org.apache.commons.lang.RandomStringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.shiro.crypto.hash.Sha256Hash
;
...
...
src/main/java/
io
/wangtian/modules/sys/service/impl/SysUserTokenServiceImpl.java
→
src/main/java/
com
/wangtian/modules/sys/service/impl/SysUserTokenServiceImpl.java
View file @
dfb47d22
...
...
@@ -6,14 +6,14 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
modules
.
sys
.
service
.
impl
;
package
com
.
wangtian
.
modules
.
sys
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io
.wangtian.common.utils.R
;
import
io
.wangtian.modules.sys.dao.SysUserTokenDao
;
import
io
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
io
.wangtian.modules.sys.oauth2.TokenGenerator
;
import
io
.wangtian.modules.sys.service.SysUserTokenService
;
import
com
.wangtian.common.utils.R
;
import
com
.wangtian.modules.sys.dao.SysUserTokenDao
;
import
com
.wangtian.modules.sys.entity.SysUserTokenEntity
;
import
com
.wangtian.modules.sys.oauth2.TokenGenerator
;
import
com
.wangtian.modules.sys.service.SysUserTokenService
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
...
...
src/main/resources/mapper/manage/InvestmentPlanDao.xml
0 → 100644
View file @
dfb47d22
<?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.wangtian.modules.manage.dao.InvestmentPlanDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"com.wangtian.modules.manage.entity.InvestmentPlanEntity"
id=
"investmentPlanMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"planName"
column=
"plan_name"
/>
<result
property=
"planType"
column=
"plan_type"
/>
<result
property=
"planYear"
column=
"plan_year"
/>
<result
property=
"planBatchNumber"
column=
"plan_batch_number"
/>
<result
property=
"planNumber"
column=
"plan_number"
/>
<result
property=
"planCapitalAmount"
column=
"plan_capital_amount"
/>
<result
property=
"planCostAmount"
column=
"plan_cost_amount"
/>
<result
property=
"planDeliveryTime"
column=
"plan_delivery_time"
/>
<result
property=
"planRemarks"
column=
"plan_remarks"
/>
<result
property=
"orderNum"
column=
"order_num"
/>
<result
property=
"isPublish"
column=
"is_publish"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
</resultMap>
</mapper>
src/main/resources/mapper/sys/SysConfigDao.xml
View file @
dfb47d22
...
...
@@ -8,7 +8,7 @@
</update>
<!-- 根据key,查询value -->
<select
id=
"queryByKey"
parameterType=
"string"
resultType=
"
io
.wangtian.modules.sys.entity.SysConfigEntity"
>
<select
id=
"queryByKey"
parameterType=
"string"
resultType=
"
com
.wangtian.modules.sys.entity.SysConfigEntity"
>
select * from sys_config where param_key = #{paramKey}
</select>
...
...
src/main/resources/mapper/sys/SysMenuDao.xml
View file @
dfb47d22
...
...
@@ -3,11 +3,11 @@
<mapper
namespace=
"io.renren.modules.sys.dao.SysMenuDao"
>
<select
id=
"queryListParentId"
resultType=
"
io
.wangtian.modules.sys.entity.SysMenuEntity"
>
<select
id=
"queryListParentId"
resultType=
"
com
.wangtian.modules.sys.entity.SysMenuEntity"
>
select * from sys_menu where parent_id = #{parentId} order by order_num asc
</select>
<select
id=
"queryNotButtonList"
resultType=
"
io
.wangtian.modules.sys.entity.SysMenuEntity"
>
<select
id=
"queryNotButtonList"
resultType=
"
com
.wangtian.modules.sys.entity.SysMenuEntity"
>
select * from sys_menu where type != 2 order by order_num asc
</select>
...
...
src/main/resources/mapper/sys/SysUserDao.xml
View file @
dfb47d22
...
...
@@ -17,7 +17,7 @@
where ur.user_id = #{userId}
</select>
<select
id=
"queryByUserName"
resultType=
"
io
.wangtian.modules.sys.entity.SysUserEntity"
>
<select
id=
"queryByUserName"
resultType=
"
com
.wangtian.modules.sys.entity.SysUserEntity"
>
select * from sys_user where username = #{username}
</select>
...
...
src/main/resources/mapper/sys/SysUserTokenDao.xml
View file @
dfb47d22
...
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"io.renren.modules.sys.dao.SysUserTokenDao"
>
<select
id=
"queryByToken"
resultType=
"
io
.wangtian.modules.sys.entity.SysUserTokenEntity"
>
<select
id=
"queryByToken"
resultType=
"
com
.wangtian.modules.sys.entity.SysUserTokenEntity"
>
select * from sys_user_token where token = #{value}
</select>
</mapper>
src/test/java/
io
/wangtian/DynamicDataSourceTest.java
→
src/test/java/
com
/wangtian/DynamicDataSourceTest.java
View file @
dfb47d22
...
...
@@ -6,9 +6,9 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
;
package
com
.
wangtian
;
import
io
.wangtian.service.DynamicDataSourceTestService
;
import
com
.wangtian.service.DynamicDataSourceTestService
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/test/java/
io
/wangtian/JwtTest.java
→
src/test/java/
com
/wangtian/JwtTest.java
View file @
dfb47d22
package
io
.
wangtian
;
package
com
.
wangtian
;
import
io
.wangtian.modules.app.utils.JwtUtils
;
import
com
.wangtian.modules.app.utils.JwtUtils
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/test/java/
io
/wangtian/RedisTest.java
→
src/test/java/
com
/wangtian/RedisTest.java
View file @
dfb47d22
package
io
.
wangtian
;
package
com
.
wangtian
;
import
io.wangtian.common.utils.RedisUtils
;
import
io.wangtian.modules.sys.entity.SysUserEntity
;
import
com.wangtian.modules.sys.entity.SysUserEntity
;
import
com.wangtian.common.utils.RedisUtils
;
import
org.apache.commons.lang.builder.ToStringBuilder
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
src/test/java/
io
/wangtian/service/DynamicDataSourceTestService.java
→
src/test/java/
com
/wangtian/service/DynamicDataSourceTestService.java
View file @
dfb47d22
...
...
@@ -6,11 +6,11 @@
* 版权所有,侵权必究!
*/
package
io
.
wangtian
.
service
;
package
com
.
wangtian
.
service
;
import
io.wangtian.datasource.annotation.DataSource
;
import
io.wangtian.modules.sys.dao.SysUserDao
;
import
io.wangtian.modules.sys.entity.SysUserEntity
;
import
com.wangtian.modules.sys.dao.SysUserDao
;
import
com.wangtian.modules.sys.entity.SysUserEntity
;
import
com.wangtian.datasource.annotation.DataSource
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment