This commit is contained in:
wyd 2024-04-23 09:01:15 +08:00
parent 994384da86
commit de213e300f
600 changed files with 1457 additions and 1404 deletions

View File

@ -7,13 +7,13 @@
<sourceOutputDir name="target/generated-sources/annotations" /> <sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" /> <outputRelativeToContentRoot value="true" />
<module name="ruoyi" /> <module name="jg" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>
</component> </component>
<component name="JavacSettings"> <component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE"> <option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="ruoyi" options="-parameters" /> <module name="jg" options="-parameters" />
</option> </option>
</component> </component>
</project> </project>

View File

@ -1,19 +1,19 @@
<p align="center"> <p align="center">
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png"> <img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
</p> </p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi改造版 v3.8.7</h1> <h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">jg改造版 v3.8.7</h1>
<h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4> <h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4>
<p align="center"> <p align="center">
<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a> <a href="https://gitee.com/y_project/jg-Vue/stargazers"><img src="https://gitee.com/y_project/jg-Vue/badge/star.svg?theme=dark"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.7-brightgreen.svg"></a> <a href="https://gitee.com/y_project/jg-Vue"><img src="https://img.shields.io/badge/jg-v3.8.7-brightgreen.svg"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a> <a href="https://gitee.com/y_project/jg-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
</p> </p>
## 平台简介 ## 平台简介
* 本仓库为RuoYi-Vue的单应用版本保持同步更新。 * 本仓库为jg-Vue的单应用版本保持同步更新。
* 配套前端代码地址[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue/tree/master/ruoyi-ui),技术栈([Vue2](https://cn.vuejs.org) + [Element](https://github.com/ElemeFE/element) + [Vue CLI](https://cli.vuejs.org/zh))。 * 配套前端代码地址[jg-Vue](https://gitee.com/y_project/jg-Vue/tree/master/jg-ui),技术栈([Vue2](https://cn.vuejs.org) + [Element](https://github.com/ElemeFE/element) + [Vue CLI](https://cli.vuejs.org/zh))。
* 配套前端代码地址[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3),技术栈([Vue3](https://v3.cn.vuejs.org) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev))。 * 配套前端代码地址[jg-Vue3](https://github.com/yangzongzhuan/jg-Vue3),技术栈([Vue3](https://v3.cn.vuejs.org) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev))。
* 前端采用Vue、Element UI。 * 前端采用Vue、Element UI。
* 后端采用Spring Boot、Spring Security、Redis & Jwt。 * 后端采用Spring Boot、Spring Security、Redis & Jwt。
* 权限认证使用Jwt支持多终端认证系统。 * 权限认证使用Jwt支持多终端认证系统。

10
pom.xml
View File

@ -3,14 +3,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.ruoyi</groupId> <groupId>com.jg</groupId>
<artifactId>ruoyi</artifactId> <artifactId>jg</artifactId>
<version>3.8.7</version> <version>3.8.7</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>ruoyi</name> <name>jg</name>
<url>http://www.ruoyi.vip</url> <!-- <url>http://www.jg.vip</url>-->
<description>若依管理系统</description> <description>JG管理系统</description>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

24
ry.bat
View File

@ -1,21 +1,21 @@
@echo off @echo off
rem jar平级目录 rem jarƽ<EFBFBD><EFBFBD>Ŀ¼
set AppName=ruoyi.jar set AppName=jg.jar
rem JVM参数 rem JVM<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
set JVM_OPTS="-Dname=%AppName% -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC" set JVM_OPTS="-Dname=%AppName% -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
ECHO. ECHO.
ECHO. [1] 启动%AppName% ECHO. [1] <EFBFBD><EFBFBD><EFBFBD><EFBFBD>%AppName%
ECHO. [2] 关闭%AppName% ECHO. [2] <EFBFBD>ر<EFBFBD>%AppName%
ECHO. [3] 重启%AppName% ECHO. [3] <EFBFBD><EFBFBD><EFBFBD><EFBFBD>%AppName%
ECHO. [4] 启动状态 %AppName% ECHO. [4] <EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬ %AppName%
ECHO. [5] 退 出 ECHO. [5] <EFBFBD><EFBFBD> <20><>
ECHO. ECHO.
ECHO.请输入选择项目的序号: ECHO.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
set /p ID= set /p ID=
IF "%id%"=="1" GOTO start IF "%id%"=="1" GOTO start
IF "%id%"=="2" GOTO stop IF "%id%"=="2" GOTO stop
@ -35,11 +35,11 @@ PAUSE
start javaw %JVM_OPTS% -jar %AppName% start javaw %JVM_OPTS% -jar %AppName%
echo starting…… echo starting<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
echo Start %AppName% success... echo Start %AppName% success...
goto:eof goto:eof
rem 函数stop通过jps命令查找pid并结束进程 rem <EFBFBD><EFBFBD><EFBFBD><EFBFBD>stopͨ<EFBFBD><EFBFBD>jps<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>pid<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
:stop :stop
for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %AppName%`) do ( for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %AppName%`) do (
set pid=%%a set pid=%%a
@ -48,7 +48,7 @@ rem
if not defined pid (echo process %AppName% does not exists) else ( if not defined pid (echo process %AppName% does not exists) else (
echo prepare to kill %image_name% echo prepare to kill %image_name%
echo start kill %pid% ... echo start kill %pid% ...
rem 根据进程IDkill进程 rem <EFBFBD><EFBFBD><EFBFBD>ݽ<EFBFBD><EFBFBD><EFBFBD>ID<EFBFBD><EFBFBD>kill<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
taskkill /f /pid %pid% taskkill /f /pid %pid%
) )
goto:eof goto:eof

2
ry.sh
View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# ./ry.sh start 启动 stop 停止 restart 重启 status 状态 # ./ry.sh start 启动 stop 停止 restart 重启 status 状态
AppName=target/ruoyi.jar AppName=target/jg.jar
# JVM参数 # JVM参数
JVM_OPTS="-Dname=$AppName -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC" JVM_OPTS="-Dname=$AppName -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"

View File

@ -160,7 +160,7 @@ create table sys_menu (
insert into sys_menu values('1', '系统管理', '0', '1', 'system', null, '', 1, 0, 'M', '0', '0', '', 'system', 'admin', sysdate(), '', null, '系统管理目录'); insert into sys_menu values('1', '系统管理', '0', '1', 'system', null, '', 1, 0, 'M', '0', '0', '', 'system', 'admin', sysdate(), '', null, '系统管理目录');
insert into sys_menu values('2', '系统监控', '0', '2', 'monitor', null, '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', sysdate(), '', null, '系统监控目录'); insert into sys_menu values('2', '系统监控', '0', '2', 'monitor', null, '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', sysdate(), '', null, '系统监控目录');
insert into sys_menu values('3', '系统工具', '0', '3', 'tool', null, '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', sysdate(), '', null, '系统工具目录'); insert into sys_menu values('3', '系统工具', '0', '3', 'tool', null, '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', sysdate(), '', null, '系统工具目录');
insert into sys_menu values('4', '若依官网', '0', '4', 'http://ruoyi.vip', null, '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', sysdate(), '', null, '若依官网地址'); insert into sys_menu values('4', '若依官网', '0', '4', 'http://jg.vip', null, '', 0, 0, 'M', '0', '0', '', 'guide', 'admin', sysdate(), '', null, '若依官网地址');
-- 二级菜单 -- 二级菜单
insert into sys_menu values('100', '用户管理', '1', '1', 'user', 'system/user/index', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', sysdate(), '', null, '用户管理菜单'); insert into sys_menu values('100', '用户管理', '1', '1', 'user', 'system/user/index', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', sysdate(), '', null, '用户管理菜单');
insert into sys_menu values('101', '角色管理', '1', '2', 'role', 'system/role/index', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', sysdate(), '', null, '角色管理菜单'); insert into sys_menu values('101', '角色管理', '1', '2', 'role', 'system/role/index', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', sysdate(), '', null, '角色管理菜单');

View File

@ -1,4 +1,4 @@
package com.ruoyi; package com.jg;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
@ -14,20 +14,20 @@ import java.net.UnknownHostException;
/** /**
* 启动程序 * 启动程序
* *
* @author ruoyi * @author jg
*/ */
@Slf4j @Slf4j
@EnableScheduling @EnableScheduling
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication public class JGApplication
{ {
public static void main(String[] args) throws UnknownHostException { public static void main(String[] args) throws UnknownHostException {
ConfigurableApplicationContext application = SpringApplication.run(RuoYiApplication.class, args); ConfigurableApplicationContext application = SpringApplication.run(JGApplication.class, args);
Environment env = application.getEnvironment(); Environment env = application.getEnvironment();
String ip = InetAddress.getLocalHost().getHostAddress(); String ip = InetAddress.getLocalHost().getHostAddress();
String port = env.getProperty("server.port"); String port = env.getProperty("server.port");
// System.setProperty("spring.devtools.restart.enabled", "false"); // System.setProperty("spring.devtools.restart.enabled", "false");
// SpringApplication.run(RuoYiApplication.class, args); // SpringApplication.run(jgApplication.class, args);
System.out.println(" ████████ ██ ██████ ██ ████████ ██ ██ \n" + System.out.println(" ████████ ██ ██████ ██ ████████ ██ ██ \n" +
" ██░░░░░░ ██████ ░░ █████ ░█░░░░██ ░██ ██░░░░░░ ░██ ░██ \n" + " ██░░░░░░ ██████ ░░ █████ ░█░░░░██ ░██ ██░░░░░░ ░██ ░██ \n" +
"░██ ░██░░░██ ██████ ██ ███████ ██░░░██░█ ░██ ██████ ██████ ██████░██ ██████ ██████ ██████ ██████\n" + "░██ ░██░░░██ ██████ ██ ███████ ██░░░██░█ ░██ ██████ ██████ ██████░██ ██████ ██████ ██████ ██████\n" +

View File

@ -1,4 +1,4 @@
package com.ruoyi; package com.jg;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@ -6,13 +6,13 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
/** /**
* web容器中进行部署 * web容器中进行部署
* *
* @author ruoyi * @author jg
*/ */
public class RuoYiServletInitializer extends SpringBootServletInitializer public class JGServletInitializer extends SpringBootServletInitializer
{ {
@Override @Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
{ {
return application.sources(RuoYiApplication.class); return application.sources(JGApplication.class);
} }
} }

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.constant; package com.jg.common.constant;
/** /**
* 缓存的key 常量 * 缓存的key 常量
* *
* @author ruoyi * @author jg
*/ */
public class CacheConstants public class CacheConstants
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.constant; package com.jg.common.constant;
import java.util.Locale; import java.util.Locale;
import io.jsonwebtoken.Claims; import io.jsonwebtoken.Claims;
@ -6,7 +6,7 @@ import io.jsonwebtoken.Claims;
/** /**
* 通用常量信息 * 通用常量信息
* *
* @author ruoyi * @author jg
*/ */
public class Constants public class Constants
{ {
@ -158,16 +158,16 @@ public class Constants
/** /**
* 自动识别json对象白名单配置仅允许解析的包名范围越小越安全 * 自动识别json对象白名单配置仅允许解析的包名范围越小越安全
*/ */
public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ruoyi" }; public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.jg" };
/** /**
* 定时任务白名单配置仅允许访问的包名如其他需要可以自行添加 * 定时任务白名单配置仅允许访问的包名如其他需要可以自行添加
*/ */
public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.framework.task" }; public static final String[] JOB_WHITELIST_STR = { "com.jg.framework.task" };
/** /**
* 定时任务违规的字符 * 定时任务违规的字符
*/ */
public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
"org.springframework", "org.apache", "com.ruoyi.common.utils.file", "com.ruoyi.framework.config", "com.ruoyi.project.tool" }; "org.springframework", "org.apache", "com.jg.common.utils.file", "com.jg.framework.config", "com.jg.project.tool" };
} }

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.constant; package com.jg.common.constant;
/** /**
* 代码生成通用常量 * 代码生成通用常量
* *
* @author ruoyi * @author jg
*/ */
public class GenConstants public class GenConstants
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.constant; package com.jg.common.constant;
/** /**
* 返回状态码 * 返回状态码
* *
* @author ruoyi * @author jg
*/ */
public class HttpStatus public class HttpStatus
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.constant; package com.jg.common.constant;
/** /**
* 任务调度通用常量 * 任务调度通用常量
* *
* @author ruoyi * @author jg
*/ */
public class ScheduleConstants public class ScheduleConstants
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.constant; package com.jg.common.constant;
/** /**
* 用户常量信息 * 用户常量信息
* *
* @author ruoyi * @author jg
*/ */
public class UserConstants public class UserConstants
{ {

View File

@ -1,13 +1,13 @@
package com.ruoyi.common.core.text; package com.jg.common.core.text;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* 字符集工具类 * 字符集工具类
* *
* @author ruoyi * @author jg
*/ */
public class CharsetKit public class CharsetKit
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.core.text; package com.jg.common.core.text;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.BigInteger; import java.math.BigInteger;
@ -7,13 +7,13 @@ import java.nio.ByteBuffer;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.text.NumberFormat; import java.text.NumberFormat;
import java.util.Set; import java.util.Set;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
/** /**
* 类型转换器 * 类型转换器
* *
* @author ruoyi * @author jg
*/ */
public class Convert public class Convert
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.core.text; package com.jg.common.core.text;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* 字符串格式化 * 字符串格式化
* *
* @author ruoyi * @author jg
*/ */
public class StrFormatter public class StrFormatter
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.enums; package com.jg.common.enums;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -7,7 +7,7 @@ import org.springframework.lang.Nullable;
/** /**
* 请求方式 * 请求方式
* *
* @author ruoyi * @author jg
*/ */
public enum HttpMethod public enum HttpMethod
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.enums; package com.jg.common.enums;
/** /**
* 用户状态 * 用户状态
* *
* @author ruoyi * @author jg
*/ */
public enum UserStatus public enum UserStatus
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception; package com.jg.common.exception;
/** /**
* 演示模式异常 * 演示模式异常
* *
* @author ruoyi * @author jg
*/ */
public class DemoModeException extends RuntimeException public class DemoModeException extends RuntimeException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception; package com.jg.common.exception;
/** /**
* 全局异常 * 全局异常
* *
* @author ruoyi * @author jg
*/ */
public class GlobalException extends RuntimeException public class GlobalException extends RuntimeException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception; package com.jg.common.exception;
/** /**
* 业务异常 * 业务异常
* *
* @author ruoyi * @author jg
*/ */
public final class ServiceException extends RuntimeException public final class ServiceException extends RuntimeException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception; package com.jg.common.exception;
/** /**
* 工具类异常 * 工具类异常
* *
* @author ruoyi * @author jg
*/ */
public class UtilException extends RuntimeException public class UtilException extends RuntimeException
{ {

View File

@ -1,12 +1,12 @@
package com.ruoyi.common.exception.base; package com.jg.common.exception.base;
import com.ruoyi.common.utils.MessageUtils; import com.jg.common.utils.MessageUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* 基础异常 * 基础异常
* *
* @author ruoyi * @author jg
*/ */
public class BaseException extends RuntimeException public class BaseException extends RuntimeException
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.exception.file; package com.jg.common.exception.file;
import com.ruoyi.common.exception.base.BaseException; import com.jg.common.exception.base.BaseException;
/** /**
* 文件信息异常类 * 文件信息异常类
* *
* @author ruoyi * @author jg
*/ */
public class FileException extends BaseException public class FileException extends BaseException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.file; package com.jg.common.exception.file;
/** /**
* 文件名称超长限制异常类 * 文件名称超长限制异常类
* *
* @author ruoyi * @author jg
*/ */
public class FileNameLengthLimitExceededException extends FileException public class FileNameLengthLimitExceededException extends FileException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.file; package com.jg.common.exception.file;
/** /**
* 文件名大小限制异常类 * 文件名大小限制异常类
* *
* @author ruoyi * @author jg
*/ */
public class FileSizeLimitExceededException extends FileException public class FileSizeLimitExceededException extends FileException
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.exception.file; package com.jg.common.exception.file;
import java.io.PrintStream; import java.io.PrintStream;
import java.io.PrintWriter; import java.io.PrintWriter;
@ -6,7 +6,7 @@ import java.io.PrintWriter;
/** /**
* 文件上传异常类 * 文件上传异常类
* *
* @author ruoyi * @author jg
*/ */
public class FileUploadException extends Exception public class FileUploadException extends Exception
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.exception.file; package com.jg.common.exception.file;
import java.util.Arrays; import java.util.Arrays;
/** /**
* 文件上传 误异常类 * 文件上传 误异常类
* *
* @author ruoyi * @author jg
*/ */
public class InvalidExtensionException extends FileUploadException public class InvalidExtensionException extends FileUploadException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.job; package com.jg.common.exception.job;
/** /**
* 计划策略异常 * 计划策略异常
* *
* @author ruoyi * @author jg
*/ */
public class TaskException extends Exception public class TaskException extends Exception
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
/** /**
* 黑名单IP异常类 * 黑名单IP异常类
* *
* @author ruoyi * @author jg
*/ */
public class BlackListException extends UserException public class BlackListException extends UserException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
/** /**
* 验证码错误异常类 * 验证码错误异常类
* *
* @author ruoyi * @author jg
*/ */
public class CaptchaException extends UserException public class CaptchaException extends UserException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
/** /**
* 验证码失效异常类 * 验证码失效异常类
* *
* @author ruoyi * @author jg
*/ */
public class CaptchaExpireException extends UserException public class CaptchaExpireException extends UserException
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
import com.ruoyi.common.exception.base.BaseException; import com.jg.common.exception.base.BaseException;
/** /**
* 用户信息异常类 * 用户信息异常类
* *
* @author ruoyi * @author jg
*/ */
public class UserException extends BaseException public class UserException extends BaseException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
/** /**
* 用户不存在异常类 * 用户不存在异常类
* *
* @author ruoyi * @author jg
*/ */
public class UserNotExistsException extends UserException public class UserNotExistsException extends UserException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
/** /**
* 用户密码不正确或不符合规范异常类 * 用户密码不正确或不符合规范异常类
* *
* @author ruoyi * @author jg
*/ */
public class UserPasswordNotMatchException extends UserException public class UserPasswordNotMatchException extends UserException
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.exception.user; package com.jg.common.exception.user;
/** /**
* 用户错误最大次数异常类 * 用户错误最大次数异常类
* *
* @author ruoyi * @author jg
*/ */
public class UserPasswordRetryLimitExceedException extends UserException public class UserPasswordRetryLimitExceedException extends UserException
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.filter; package com.jg.common.filter;
import com.alibaba.fastjson2.filter.SimplePropertyPreFilter; import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
/** /**
* 排除JSON敏感属性 * 排除JSON敏感属性
* *
* @author ruoyi * @author jg
*/ */
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.filter; package com.jg.common.filter;
import java.io.IOException; import java.io.IOException;
import javax.servlet.Filter; import javax.servlet.Filter;
@ -9,12 +9,12 @@ import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* Repeatable 过滤器 * Repeatable 过滤器
* *
* @author ruoyi * @author jg
*/ */
public class RepeatableFilter implements Filter public class RepeatableFilter implements Filter
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.filter; package com.jg.common.filter;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
@ -9,13 +9,13 @@ import javax.servlet.ServletInputStream;
import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper; import javax.servlet.http.HttpServletRequestWrapper;
import com.ruoyi.common.utils.http.HttpHelper; import com.jg.common.utils.http.HttpHelper;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
/** /**
* 构建可重复读取inputStream的request * 构建可重复读取inputStream的request
* *
* @author ruoyi * @author jg
*/ */
public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.filter; package com.jg.common.filter;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
@ -11,13 +11,13 @@ import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse; import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.enums.HttpMethod; import com.jg.common.enums.HttpMethod;
/** /**
* 防止XSS攻击的过滤器 * 防止XSS攻击的过滤器
* *
* @author ruoyi * @author jg
*/ */
public class XssFilter implements Filter public class XssFilter implements Filter
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.filter; package com.jg.common.filter;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
@ -9,13 +9,13 @@ import javax.servlet.http.HttpServletRequestWrapper;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.html.EscapeUtil; import com.jg.common.utils.html.EscapeUtil;
/** /**
* XSS过滤处理 * XSS过滤处理
* *
* @author ruoyi * @author jg
*/ */
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.RoundingMode; import java.math.RoundingMode;
@ -6,7 +6,7 @@ import java.math.RoundingMode;
/** /**
* 精确的浮点数运算 * 精确的浮点数运算
* *
* @author ruoyi * @author jg
*/ */
public class Arith public class Arith
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.lang.management.ManagementFactory; import java.lang.management.ManagementFactory;
import java.text.ParseException; import java.text.ParseException;
@ -14,7 +14,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
/** /**
* 时间工具类 * 时间工具类
* *
* @author ruoyi * @author jg
*/ */
public class DateUtils extends org.apache.commons.lang3.time.DateUtils public class DateUtils extends org.apache.commons.lang3.time.DateUtils
{ {

View File

@ -1,17 +1,17 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONArray;
import com.ruoyi.common.constant.CacheConstants; import com.jg.common.constant.CacheConstants;
import com.ruoyi.common.utils.spring.SpringUtils; import com.jg.common.utils.spring.SpringUtils;
import com.ruoyi.framework.redis.RedisCache; import com.jg.framework.redis.RedisCache;
import com.ruoyi.project.system.domain.SysDictData; import com.jg.project.system.domain.SysDictData;
/** /**
* 字典工具类 * 字典工具类
* *
* @author ruoyi * @author jg
*/ */
public class DictUtils public class DictUtils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.StringWriter; import java.io.StringWriter;
@ -7,7 +7,7 @@ import org.apache.commons.lang3.exception.ExceptionUtils;
/** /**
* 错误信息处理类 * 错误信息处理类
* *
* @author ruoyi * @author jg
*/ */
public class ExceptionUtil public class ExceptionUtil
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
/** /**
* 处理并记录日志文件 * 处理并记录日志文件
* *
* @author ruoyi * @author jg
*/ */
public class LogUtils public class LogUtils
{ {

View File

@ -1,13 +1,13 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import org.springframework.context.MessageSource; import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.context.i18n.LocaleContextHolder;
import com.ruoyi.common.utils.spring.SpringUtils; import com.jg.common.utils.spring.SpringUtils;
/** /**
* 获取i18n资源文件 * 获取i18n资源文件
* *
* @author ruoyi * @author jg
*/ */
public class MessageUtils public class MessageUtils
{ {

View File

@ -1,14 +1,14 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.ruoyi.common.utils.sql.SqlUtil; import com.jg.common.utils.sql.SqlUtil;
import com.ruoyi.framework.web.page.PageDomain; import com.jg.framework.web.page.PageDomain;
import com.ruoyi.framework.web.page.TableSupport; import com.jg.framework.web.page.TableSupport;
/** /**
* 分页工具类 * 分页工具类
* *
* @author ruoyi * @author jg
*/ */
public class PageUtils extends PageHelper public class PageUtils extends PageHelper
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
@ -7,16 +7,16 @@ import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.util.PatternMatchUtils; import org.springframework.util.PatternMatchUtils;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.constant.HttpStatus; import com.jg.common.constant.HttpStatus;
import com.ruoyi.common.exception.ServiceException; import com.jg.common.exception.ServiceException;
import com.ruoyi.framework.security.LoginUser; import com.jg.framework.security.LoginUser;
import com.ruoyi.project.system.domain.SysRole; import com.jg.project.system.domain.SysRole;
/** /**
* 安全服务工具类 * 安全服务工具类
* *
* @author ruoyi * @author jg
*/ */
public class SecurityUtils public class SecurityUtils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
@ -14,13 +14,13 @@ import javax.servlet.http.HttpSession;
import org.springframework.web.context.request.RequestAttributes; import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.context.request.ServletRequestAttributes;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.core.text.Convert; import com.jg.common.core.text.Convert;
/** /**
* 客户端工具类 * 客户端工具类
* *
* @author ruoyi * @author jg
*/ */
public class ServletUtils public class ServletUtils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
@ -7,13 +7,13 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import org.springframework.util.AntPathMatcher; import org.springframework.util.AntPathMatcher;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.core.text.StrFormatter; import com.jg.common.core.text.StrFormatter;
/** /**
* 字符串工具类 * 字符串工具类
* *
* @author ruoyi * @author jg
*/ */
public class StringUtils extends org.apache.commons.lang3.StringUtils public class StringUtils extends org.apache.commons.lang3.StringUtils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils; package com.jg.common.utils;
import java.util.concurrent.CancellationException; import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
@ -11,7 +11,7 @@ import org.slf4j.LoggerFactory;
/** /**
* 线程相关工具类. * 线程相关工具类.
* *
* @author ruoyi * @author jg
*/ */
public class Threads public class Threads
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.bean; package com.jg.common.utils.bean;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.ArrayList; import java.util.ArrayList;
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/** /**
* Bean 工具类 * Bean 工具类
* *
* @author ruoyi * @author jg
*/ */
public class BeanUtils extends org.springframework.beans.BeanUtils public class BeanUtils extends org.springframework.beans.BeanUtils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.bean; package com.jg.common.utils.bean;
import java.util.Set; import java.util.Set;
import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolation;
@ -8,7 +8,7 @@ import javax.validation.Validator;
/** /**
* bean对象属性验证 * bean对象属性验证
* *
* @author ruoyi * @author jg
*/ */
public class BeanValidators public class BeanValidators
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.file; package com.jg.common.utils.file;
import java.io.File; import java.io.File;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -6,14 +6,14 @@ import org.apache.commons.lang3.StringUtils;
/** /**
* 文件类型工具类 * 文件类型工具类
* *
* @author ruoyi * @author jg
*/ */
public class FileTypeUtils public class FileTypeUtils
{ {
/** /**
* 获取文件类型 * 获取文件类型
* <p> * <p>
* 例如: ruoyi.txt, 返回: txt * 例如: jg.txt, 返回: txt
* *
* @param file 文件名 * @param file 文件名
* @return 后缀不含".") * @return 后缀不含".")
@ -30,7 +30,7 @@ public class FileTypeUtils
/** /**
* 获取文件类型 * 获取文件类型
* <p> * <p>
* 例如: ruoyi.txt, 返回: txt * 例如: jg.txt, 返回: txt
* *
* @param fileName 文件名 * @param fileName 文件名
* @return 后缀不含".") * @return 后缀不含".")

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.file; package com.jg.common.utils.file;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -6,19 +6,19 @@ import java.nio.file.Paths;
import java.util.Objects; import java.util.Objects;
import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.FilenameUtils;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.exception.file.FileNameLengthLimitExceededException; import com.jg.common.exception.file.FileNameLengthLimitExceededException;
import com.ruoyi.common.exception.file.FileSizeLimitExceededException; import com.jg.common.exception.file.FileSizeLimitExceededException;
import com.ruoyi.common.exception.file.InvalidExtensionException; import com.jg.common.exception.file.InvalidExtensionException;
import com.ruoyi.common.utils.DateUtils; import com.jg.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.uuid.Seq; import com.jg.common.utils.uuid.Seq;
import com.ruoyi.framework.config.RuoYiConfig; import com.jg.framework.config.JGConfig;
/** /**
* 文件上传工具类 * 文件上传工具类
* *
* @author ruoyi * @author jg
*/ */
public class FileUploadUtils public class FileUploadUtils
{ {
@ -35,7 +35,7 @@ public class FileUploadUtils
/** /**
* 默认上传的地址 * 默认上传的地址
*/ */
private static String defaultBaseDir = RuoYiConfig.getProfile(); private static String defaultBaseDir = JGConfig.getProfile();
public static void setDefaultBaseDir(String defaultBaseDir) public static void setDefaultBaseDir(String defaultBaseDir)
{ {
@ -142,7 +142,7 @@ public class FileUploadUtils
public static final String getPathFileName(String uploadDir, String fileName) throws IOException public static final String getPathFileName(String uploadDir, String fileName) throws IOException
{ {
int dirLastIndex = RuoYiConfig.getProfile().length() + 1; int dirLastIndex = JGConfig.getProfile().length() + 1;
String currentDir = StringUtils.substring(uploadDir, dirLastIndex); String currentDir = StringUtils.substring(uploadDir, dirLastIndex);
return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName; return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName;
} }

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.file; package com.jg.common.utils.file;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
@ -14,15 +14,15 @@ import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import com.ruoyi.common.utils.DateUtils; import com.jg.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.uuid.IdUtils; import com.jg.common.utils.uuid.IdUtils;
import com.ruoyi.framework.config.RuoYiConfig; import com.jg.framework.config.JGConfig;
/** /**
* 文件处理工具类 * 文件处理工具类
* *
* @author ruoyi * @author jg
*/ */
public class FileUtils public class FileUtils
{ {
@ -73,7 +73,7 @@ public class FileUtils
*/ */
public static String writeImportBytes(byte[] data) throws IOException public static String writeImportBytes(byte[] data) throws IOException
{ {
return writeBytes(data, RuoYiConfig.getImportPath()); return writeBytes(data, JGConfig.getImportPath());
} }
/** /**
@ -256,7 +256,7 @@ public class FileUtils
} }
/** /**
* 获取文件名称 /profile/upload/2022/04/16/ruoyi.png -- ruoyi.png * 获取文件名称 /profile/upload/2022/04/16/jg.png -- jg.png
* *
* @param fileName 路径名称 * @param fileName 路径名称
* @return 没有文件路径的名称 * @return 没有文件路径的名称
@ -274,7 +274,7 @@ public class FileUtils
} }
/** /**
* 获取不带后缀文件名称 /profile/upload/2022/04/16/ruoyi.png -- ruoyi * 获取不带后缀文件名称 /profile/upload/2022/04/16/jg.png -- jg
* *
* @param fileName 路径名称 * @param fileName 路径名称
* @return 没有文件路径和后缀的名称 * @return 没有文件路径和后缀的名称

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.file; package com.jg.common.utils.file;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.FileInputStream; import java.io.FileInputStream;
@ -9,14 +9,14 @@ import java.util.Arrays;
import org.apache.poi.util.IOUtils; import org.apache.poi.util.IOUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.framework.config.RuoYiConfig; import com.jg.framework.config.JGConfig;
/** /**
* 图片处理工具类 * 图片处理工具类
* *
* @author ruoyi * @author jg
*/ */
public class ImageUtils public class ImageUtils
{ {
@ -79,7 +79,7 @@ public class ImageUtils
else else
{ {
// 本机地址 // 本机地址
String localPath = RuoYiConfig.getProfile(); String localPath = JGConfig.getProfile();
String downloadPath = localPath + StringUtils.substringAfter(url, Constants.RESOURCE_PREFIX); String downloadPath = localPath + StringUtils.substringAfter(url, Constants.RESOURCE_PREFIX);
in = new FileInputStream(downloadPath); in = new FileInputStream(downloadPath);
} }

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.utils.file; package com.jg.common.utils.file;
/** /**
* 媒体类型工具类 * 媒体类型工具类
* *
* @author ruoyi * @author jg
*/ */
public class MimeTypeUtils public class MimeTypeUtils
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.utils.html; package com.jg.common.utils.html;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* 转义和反转义工具类 * 转义和反转义工具类
* *
* @author ruoyi * @author jg
*/ */
public class EscapeUtil public class EscapeUtil
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.html; package com.jg.common.utils.html;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
@ -13,7 +13,7 @@ import java.util.regex.Pattern;
/** /**
* HTML过滤器用于去除XSS漏洞隐患 * HTML过滤器用于去除XSS漏洞隐患
* *
* @author ruoyi * @author jg
*/ */
public final class HTMLFilter public final class HTMLFilter
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.http; package com.jg.common.utils.http;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
@ -13,7 +13,7 @@ import org.slf4j.LoggerFactory;
/** /**
* 通用http工具封装 * 通用http工具封装
* *
* @author ruoyi * @author jg
*/ */
public class HttpHelper public class HttpHelper
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.http; package com.jg.common.utils.http;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
@ -19,13 +19,13 @@ import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager; import javax.net.ssl.X509TrustManager;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* 通用http发送方法 * 通用http发送方法
* *
* @author ruoyi * @author jg
*/ */
public class HttpUtils public class HttpUtils
{ {

View File

@ -1,18 +1,18 @@
package com.ruoyi.common.utils.ip; package com.jg.common.utils.ip;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.http.HttpUtils; import com.jg.common.utils.http.HttpUtils;
import com.ruoyi.framework.config.RuoYiConfig; import com.jg.framework.config.JGConfig;
/** /**
* 获取地址类 * 获取地址类
* *
* @author ruoyi * @author jg
*/ */
public class AddressUtils public class AddressUtils
{ {
@ -31,7 +31,7 @@ public class AddressUtils
{ {
return "内网IP"; return "内网IP";
} }
if (RuoYiConfig.isAddressEnabled()) if (JGConfig.isAddressEnabled())
{ {
try try
{ {

View File

@ -1,15 +1,15 @@
package com.ruoyi.common.utils.ip; package com.jg.common.utils.ip;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import com.ruoyi.common.utils.ServletUtils; import com.jg.common.utils.ServletUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* 获取IP方法 * 获取IP方法
* *
* @author ruoyi * @author jg
*/ */
public class IpUtils public class IpUtils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.job; package com.jg.common.utils.job;
import java.util.Date; import java.util.Date;
import org.quartz.Job; import org.quartz.Job;
@ -6,20 +6,20 @@ import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException; import org.quartz.JobExecutionException;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.constant.ScheduleConstants; import com.jg.common.constant.ScheduleConstants;
import com.ruoyi.common.utils.ExceptionUtil; import com.jg.common.utils.ExceptionUtil;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.bean.BeanUtils; import com.jg.common.utils.bean.BeanUtils;
import com.ruoyi.common.utils.spring.SpringUtils; import com.jg.common.utils.spring.SpringUtils;
import com.ruoyi.project.monitor.domain.SysJob; import com.jg.project.monitor.domain.SysJob;
import com.ruoyi.project.monitor.domain.SysJobLog; import com.jg.project.monitor.domain.SysJobLog;
import com.ruoyi.project.monitor.service.ISysJobLogService; import com.jg.project.monitor.service.ISysJobLogService;
/** /**
* 抽象quartz调用 * 抽象quartz调用
* *
* @author ruoyi * @author jg
*/ */
public abstract class AbstractQuartzJob implements Job public abstract class AbstractQuartzJob implements Job
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.job; package com.jg.common.utils.job;
import java.text.ParseException; import java.text.ParseException;
import java.util.Date; import java.util.Date;
@ -7,7 +7,7 @@ import org.quartz.CronExpression;
/** /**
* cron表达式工具类 * cron表达式工具类
* *
* @author ruoyi * @author jg
* *
*/ */
public class CronUtils public class CronUtils

View File

@ -1,17 +1,17 @@
package com.ruoyi.common.utils.job; package com.jg.common.utils.job;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.spring.SpringUtils; import com.jg.common.utils.spring.SpringUtils;
import com.ruoyi.project.monitor.domain.SysJob; import com.jg.project.monitor.domain.SysJob;
/** /**
* 任务执行工具 * 任务执行工具
* *
* @author ruoyi * @author jg
*/ */
public class JobInvokeUtil public class JobInvokeUtil
{ {

View File

@ -1,13 +1,13 @@
package com.ruoyi.common.utils.job; package com.jg.common.utils.job;
import org.quartz.DisallowConcurrentExecution; import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import com.ruoyi.project.monitor.domain.SysJob; import com.jg.project.monitor.domain.SysJob;
/** /**
* 定时任务处理禁止并发执行 * 定时任务处理禁止并发执行
* *
* @author ruoyi * @author jg
* *
*/ */
@DisallowConcurrentExecution @DisallowConcurrentExecution

View File

@ -1,12 +1,12 @@
package com.ruoyi.common.utils.job; package com.jg.common.utils.job;
import org.quartz.JobExecutionContext; import org.quartz.JobExecutionContext;
import com.ruoyi.project.monitor.domain.SysJob; import com.jg.project.monitor.domain.SysJob;
/** /**
* 定时任务处理允许并发执行 * 定时任务处理允许并发执行
* *
* @author ruoyi * @author jg
* *
*/ */
public class QuartzJobExecution extends AbstractQuartzJob public class QuartzJobExecution extends AbstractQuartzJob

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.job; package com.jg.common.utils.job;
import org.quartz.CronScheduleBuilder; import org.quartz.CronScheduleBuilder;
import org.quartz.CronTrigger; import org.quartz.CronTrigger;
@ -10,18 +10,18 @@ import org.quartz.Scheduler;
import org.quartz.SchedulerException; import org.quartz.SchedulerException;
import org.quartz.TriggerBuilder; import org.quartz.TriggerBuilder;
import org.quartz.TriggerKey; import org.quartz.TriggerKey;
import com.ruoyi.common.constant.Constants; import com.jg.common.constant.Constants;
import com.ruoyi.common.constant.ScheduleConstants; import com.jg.common.constant.ScheduleConstants;
import com.ruoyi.common.exception.job.TaskException; import com.jg.common.exception.job.TaskException;
import com.ruoyi.common.exception.job.TaskException.Code; import com.jg.common.exception.job.TaskException.Code;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.spring.SpringUtils; import com.jg.common.utils.spring.SpringUtils;
import com.ruoyi.project.monitor.domain.SysJob; import com.jg.project.monitor.domain.SysJob;
/** /**
* 定时任务工具类 * 定时任务工具类
* *
* @author ruoyi * @author jg
* *
*/ */
public class ScheduleUtils public class ScheduleUtils

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.poi; package com.jg.common.utils.poi;
import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
@ -6,7 +6,7 @@ import org.apache.poi.ss.usermodel.Workbook;
/** /**
* Excel数据格式处理适配器 * Excel数据格式处理适配器
* *
* @author ruoyi * @author jg
*/ */
public interface ExcelHandlerAdapter public interface ExcelHandlerAdapter
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.poi; package com.jg.common.utils.poi;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
@ -70,26 +70,26 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker; import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.ruoyi.common.core.text.Convert; import com.jg.common.core.text.Convert;
import com.ruoyi.common.exception.UtilException; import com.jg.common.exception.UtilException;
import com.ruoyi.common.utils.DateUtils; import com.jg.common.utils.DateUtils;
import com.ruoyi.common.utils.DictUtils; import com.jg.common.utils.DictUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.file.FileTypeUtils; import com.jg.common.utils.file.FileTypeUtils;
import com.ruoyi.common.utils.file.FileUtils; import com.jg.common.utils.file.FileUtils;
import com.ruoyi.common.utils.file.ImageUtils; import com.jg.common.utils.file.ImageUtils;
import com.ruoyi.common.utils.reflect.ReflectUtils; import com.jg.common.utils.reflect.ReflectUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.jg.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; import com.jg.framework.aspectj.lang.annotation.Excel.ColumnType;
import com.ruoyi.framework.aspectj.lang.annotation.Excel.Type; import com.jg.framework.aspectj.lang.annotation.Excel.Type;
import com.ruoyi.framework.aspectj.lang.annotation.Excels; import com.jg.framework.aspectj.lang.annotation.Excels;
import com.ruoyi.framework.config.RuoYiConfig; import com.jg.framework.config.JGConfig;
import com.ruoyi.framework.web.domain.AjaxResult; import com.jg.framework.web.domain.AjaxResult;
/** /**
* Excel相关处理 * Excel相关处理
* *
* @author ruoyi * @author jg
*/ */
public class ExcelUtil<T> public class ExcelUtil<T>
{ {
@ -1393,7 +1393,7 @@ public class ExcelUtil<T>
*/ */
public String getAbsoluteFile(String filename) public String getAbsoluteFile(String filename)
{ {
String downloadPath = RuoYiConfig.getDownloadPath() + filename; String downloadPath = JGConfig.getDownloadPath() + filename;
File desc = new File(downloadPath); File desc = new File(downloadPath);
if (!desc.getParentFile().exists()) if (!desc.getParentFile().exists())
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.reflect; package com.jg.common.utils.reflect;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
@ -12,13 +12,13 @@ import org.apache.commons.lang3.Validate;
import org.apache.poi.ss.usermodel.DateUtil; import org.apache.poi.ss.usermodel.DateUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.ruoyi.common.core.text.Convert; import com.jg.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils; import com.jg.common.utils.DateUtils;
/** /**
* 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数. * 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数.
* *
* @author ruoyi * @author jg
*/ */
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public class ReflectUtils public class ReflectUtils

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.utils.sign; package com.jg.common.utils.sign;
/** /**
* Base64工具类 * Base64工具类
* *
* @author ruoyi * @author jg
*/ */
public final class Base64 public final class Base64
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.sign; package com.jg.common.utils.sign;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.security.MessageDigest; import java.security.MessageDigest;
@ -8,7 +8,7 @@ import org.slf4j.LoggerFactory;
/** /**
* Md5加密方法 * Md5加密方法
* *
* @author ruoyi * @author jg
*/ */
public class Md5Utils public class Md5Utils
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.utils.spring; package com.jg.common.utils.spring;
import org.springframework.aop.framework.AopContext; import org.springframework.aop.framework.AopContext;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
@ -8,12 +8,12 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* spring工具类 方便在非spring管理环境中获取bean * spring工具类 方便在非spring管理环境中获取bean
* *
* @author ruoyi * @author jg
*/ */
@Component @Component
public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware

View File

@ -1,12 +1,12 @@
package com.ruoyi.common.utils.sql; package com.jg.common.utils.sql;
import com.ruoyi.common.exception.UtilException; import com.jg.common.exception.UtilException;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* sql操作工具类 * sql操作工具类
* *
* @author ruoyi * @author jg
*/ */
public class SqlUtil public class SqlUtil
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.common.utils.uuid; package com.jg.common.utils.uuid;
/** /**
* ID生成器工具类 * ID生成器工具类
* *
* @author ruoyi * @author jg
*/ */
public class IdUtils public class IdUtils
{ {

View File

@ -1,11 +1,11 @@
package com.ruoyi.common.utils.uuid; package com.jg.common.utils.uuid;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import com.ruoyi.common.utils.DateUtils; import com.jg.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
/** /**
* @author ruoyi 序列生成类 * @author jg 序列生成类
*/ */
public class Seq public class Seq
{ {

View File

@ -1,16 +1,16 @@
package com.ruoyi.common.utils.uuid; package com.jg.common.utils.uuid;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom; import java.security.SecureRandom;
import java.util.Random; import java.util.Random;
import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;
import com.ruoyi.common.exception.UtilException; import com.jg.common.exception.UtilException;
/** /**
* 提供通用唯一识别码universally unique identifierUUID实现 * 提供通用唯一识别码universally unique identifierUUID实现
* *
* @author ruoyi * @author jg
*/ */
public final class UUID implements java.io.Serializable, Comparable<UUID> public final class UUID implements java.io.Serializable, Comparable<UUID>
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.common.xss; package com.jg.common.xss;
import javax.validation.Constraint; import javax.validation.Constraint;
import javax.validation.Payload; import javax.validation.Payload;
@ -10,7 +10,7 @@ import java.lang.annotation.Target;
/** /**
* 自定义xss校验注解 * 自定义xss校验注解
* *
* @author ruoyi * @author jg
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER }) @Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })

View File

@ -1,6 +1,6 @@
package com.ruoyi.common.xss; package com.jg.common.xss;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext; import javax.validation.ConstraintValidatorContext;
import java.util.regex.Matcher; import java.util.regex.Matcher;
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/** /**
* 自定义xss校验注解实现 * 自定义xss校验注解实现
* *
* @author ruoyi * @author jg
*/ */
public class XssValidator implements ConstraintValidator<Xss, String> public class XssValidator implements ConstraintValidator<Xss, String>
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj; package com.jg.framework.aspectj;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -6,20 +6,20 @@ import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.ruoyi.common.core.text.Convert; import com.jg.common.core.text.Convert;
import com.ruoyi.common.utils.SecurityUtils; import com.jg.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope; import com.jg.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.framework.security.LoginUser; import com.jg.framework.security.LoginUser;
import com.ruoyi.framework.security.context.PermissionContextHolder; import com.jg.framework.security.context.PermissionContextHolder;
import com.ruoyi.framework.web.domain.BaseEntity; import com.jg.framework.web.domain.BaseEntity;
import com.ruoyi.project.system.domain.SysRole; import com.jg.project.system.domain.SysRole;
import com.ruoyi.project.system.domain.SysUser; import com.jg.project.system.domain.SysUser;
/** /**
* 数据过滤处理 * 数据过滤处理
* *
* @author ruoyi * @author jg
*/ */
@Aspect @Aspect
@Component @Component

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj; package com.jg.framework.aspectj;
import java.util.Objects; import java.util.Objects;
import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.ProceedingJoinPoint;
@ -11,14 +11,14 @@ import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.AnnotationUtils; import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.framework.aspectj.lang.annotation.DataSource; import com.jg.framework.aspectj.lang.annotation.DataSource;
import com.ruoyi.framework.datasource.DynamicDataSourceContextHolder; import com.jg.framework.datasource.DynamicDataSourceContextHolder;
/** /**
* 多数据源处理 * 多数据源处理
* *
* @author ruoyi * @author jg
*/ */
@Aspect @Aspect
@Order(1) @Order(1)
@ -27,8 +27,8 @@ public class DataSourceAspect
{ {
protected Logger logger = LoggerFactory.getLogger(getClass()); protected Logger logger = LoggerFactory.getLogger(getClass());
@Pointcut("@annotation(com.ruoyi.framework.aspectj.lang.annotation.DataSource)" @Pointcut("@annotation(com.jg.framework.aspectj.lang.annotation.DataSource)"
+ "|| @within(com.ruoyi.framework.aspectj.lang.annotation.DataSource)") + "|| @within(com.jg.framework.aspectj.lang.annotation.DataSource)")
public void dsPointCut() public void dsPointCut()
{ {

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj; package com.jg.framework.aspectj;
import java.util.Collection; import java.util.Collection;
import java.util.Map; import java.util.Map;
@ -17,24 +17,24 @@ import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import com.ruoyi.common.enums.HttpMethod; import com.jg.common.enums.HttpMethod;
import com.ruoyi.common.filter.PropertyPreExcludeFilter; import com.jg.common.filter.PropertyPreExcludeFilter;
import com.ruoyi.common.utils.SecurityUtils; import com.jg.common.utils.SecurityUtils;
import com.ruoyi.common.utils.ServletUtils; import com.jg.common.utils.ServletUtils;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.ip.IpUtils; import com.jg.common.utils.ip.IpUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Log; import com.jg.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessStatus; import com.jg.framework.aspectj.lang.enums.BusinessStatus;
import com.ruoyi.framework.manager.AsyncManager; import com.jg.framework.manager.AsyncManager;
import com.ruoyi.framework.manager.factory.AsyncFactory; import com.jg.framework.manager.factory.AsyncFactory;
import com.ruoyi.framework.security.LoginUser; import com.jg.framework.security.LoginUser;
import com.ruoyi.project.monitor.domain.SysOperLog; import com.jg.project.monitor.domain.SysOperLog;
import com.ruoyi.project.system.domain.SysUser; import com.jg.project.system.domain.SysUser;
/** /**
* 操作日志记录处理 * 操作日志记录处理
* *
* @author ruoyi * @author jg
*/ */
@Aspect @Aspect
@Component @Component

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj; package com.jg.framework.aspectj;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.Collections; import java.util.Collections;
@ -13,16 +13,16 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.script.RedisScript; import org.springframework.data.redis.core.script.RedisScript;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.ruoyi.common.exception.ServiceException; import com.jg.common.exception.ServiceException;
import com.ruoyi.common.utils.StringUtils; import com.jg.common.utils.StringUtils;
import com.ruoyi.common.utils.ip.IpUtils; import com.jg.common.utils.ip.IpUtils;
import com.ruoyi.framework.aspectj.lang.annotation.RateLimiter; import com.jg.framework.aspectj.lang.annotation.RateLimiter;
import com.ruoyi.framework.aspectj.lang.enums.LimitType; import com.jg.framework.aspectj.lang.enums.LimitType;
/** /**
* 限流处理 * 限流处理
* *
* @author ruoyi * @author jg
*/ */
@Aspect @Aspect
@Component @Component

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/** /**
* 匿名访问不鉴权注解 * 匿名访问不鉴权注解
* *
* @author ruoyi * @author jg
*/ */
@Target({ ElementType.METHOD, ElementType.TYPE }) @Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/** /**
* 数据权限过滤注解 * 数据权限过滤注解
* *
* @author ruoyi * @author jg
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
@ -6,14 +6,14 @@ import java.lang.annotation.Inherited;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import com.ruoyi.framework.aspectj.lang.enums.DataSourceType; import com.jg.framework.aspectj.lang.enums.DataSourceType;
/** /**
* 自定义多数据源切换注解 * 自定义多数据源切换注解
* *
* 优先级先方法后类如果方法覆盖了类上的数据源类型以方法的为准否则以类上的为准 * 优先级先方法后类如果方法覆盖了类上的数据源类型以方法的为准否则以类上的为准
* *
* @author ruoyi * @author jg
*/ */
@Target({ ElementType.METHOD, ElementType.TYPE }) @Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
@ -7,12 +7,12 @@ import java.lang.annotation.Target;
import java.math.BigDecimal; import java.math.BigDecimal;
import org.apache.poi.ss.usermodel.HorizontalAlignment; import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors; import org.apache.poi.ss.usermodel.IndexedColors;
import com.ruoyi.common.utils.poi.ExcelHandlerAdapter; import com.jg.common.utils.poi.ExcelHandlerAdapter;
/** /**
* 自定义导出Excel数据注解 * 自定义导出Excel数据注解
* *
* @author ruoyi * @author jg
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) @Target(ElementType.FIELD)

View File

@ -1,4 +1,4 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/** /**
* Excel注解集 * Excel注解集
* *
* @author ruoyi * @author jg
*/ */
@Target(ElementType.FIELD) @Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -1,17 +1,17 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType; import com.jg.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.aspectj.lang.enums.OperatorType; import com.jg.framework.aspectj.lang.enums.OperatorType;
/** /**
* 自定义操作日志记录注解 * 自定义操作日志记录注解
* *
* @author ruoyi * @author jg
* *
*/ */
@Target({ ElementType.PARAMETER, ElementType.METHOD }) @Target({ ElementType.PARAMETER, ElementType.METHOD })

View File

@ -1,17 +1,17 @@
package com.ruoyi.framework.aspectj.lang.annotation; package com.jg.framework.aspectj.lang.annotation;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import com.ruoyi.common.constant.CacheConstants; import com.jg.common.constant.CacheConstants;
import com.ruoyi.framework.aspectj.lang.enums.LimitType; import com.jg.framework.aspectj.lang.enums.LimitType;
/** /**
* 限流注解 * 限流注解
* *
* @author ruoyi * @author jg
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -1,9 +1,9 @@
package com.ruoyi.framework.aspectj.lang.enums; package com.jg.framework.aspectj.lang.enums;
/** /**
* 操作状态 * 操作状态
* *
* @author ruoyi * @author jg
* *
*/ */
public enum BusinessStatus public enum BusinessStatus

View File

@ -1,9 +1,9 @@
package com.ruoyi.framework.aspectj.lang.enums; package com.jg.framework.aspectj.lang.enums;
/** /**
* 业务操作类型 * 业务操作类型
* *
* @author ruoyi * @author jg
*/ */
public enum BusinessType public enum BusinessType
{ {

View File

@ -1,9 +1,9 @@
package com.ruoyi.framework.aspectj.lang.enums; package com.jg.framework.aspectj.lang.enums;
/** /**
* 数据源 * 数据源
* *
* @author ruoyi * @author jg
*/ */
public enum DataSourceType public enum DataSourceType
{ {

Some files were not shown because too many files have changed in this diff Show More