Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
316438e9
Commit
316438e9
authored
May 07, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消除成功接收处理
parent
79c67185
Changes
100
Show whitespace changes
Inline
Side-by-side
Showing
100 changed files
with
142 additions
and
17 deletions
+142
-17
MethodField.java
.../src/main/java/com/yanzuoguang/util/base/MethodField.java
+1
-0
ObjectHelper.java
...src/main/java/com/yanzuoguang/util/base/ObjectHelper.java
+1
-0
MemoryCache.java
...src/main/java/com/yanzuoguang/util/cache/MemoryCache.java
+1
-0
MemoryCacheCenter.java
...in/java/com/yanzuoguang/util/cache/MemoryCacheCenter.java
+1
-0
MemoryCacheItem.java
...main/java/com/yanzuoguang/util/cache/MemoryCacheItem.java
+1
-0
ResultConstants.java
...n/java/com/yanzuoguang/util/contants/ResultConstants.java
+1
-0
ResultMessageConstants.java
...com/yanzuoguang/util/contants/ResultMessageConstants.java
+1
-0
CodeException.java
...in/java/com/yanzuoguang/util/exception/CodeException.java
+1
-1
ExceptionHelper.java
.../java/com/yanzuoguang/util/exception/ExceptionHelper.java
+1
-0
StatusException.java
.../java/com/yanzuoguang/util/exception/StatusException.java
+1
-0
ConfigBase.java
...src/main/java/com/yanzuoguang/util/extend/ConfigBase.java
+1
-0
ByteHelper.java
...src/main/java/com/yanzuoguang/util/helper/ByteHelper.java
+1
-0
CheckerHelper.java
.../main/java/com/yanzuoguang/util/helper/CheckerHelper.java
+1
-0
DateAutoHelper.java
...main/java/com/yanzuoguang/util/helper/DateAutoHelper.java
+1
-0
DateHelper.java
...src/main/java/com/yanzuoguang/util/helper/DateHelper.java
+1
-0
EnumHelper.java
...src/main/java/com/yanzuoguang/util/helper/EnumHelper.java
+1
-0
Event.java
...base/src/main/java/com/yanzuoguang/util/helper/Event.java
+1
-0
EventRun.java
...e/src/main/java/com/yanzuoguang/util/helper/EventRun.java
+1
-0
FileHelper.java
...src/main/java/com/yanzuoguang/util/helper/FileHelper.java
+1
-0
HttpHelper.java
...src/main/java/com/yanzuoguang/util/helper/HttpHelper.java
+1
-0
JsonHelper.java
...src/main/java/com/yanzuoguang/util/helper/JsonHelper.java
+1
-1
RunHelper.java
.../src/main/java/com/yanzuoguang/util/helper/RunHelper.java
+1
-0
StringHelper.java
...c/main/java/com/yanzuoguang/util/helper/StringHelper.java
+1
-0
UrlHelper.java
.../src/main/java/com/yanzuoguang/util/helper/UrlHelper.java
+1
-0
ZipHelper.java
.../src/main/java/com/yanzuoguang/util/helper/ZipHelper.java
+5
-0
Log.java
...util-base/src/main/java/com/yanzuoguang/util/log/Log.java
+1
-0
LogDefault.java
...se/src/main/java/com/yanzuoguang/util/log/LogDefault.java
+1
-0
LogInfo.java
...-base/src/main/java/com/yanzuoguang/util/log/LogInfo.java
+1
-1
RunnableLog.java
...e/src/main/java/com/yanzuoguang/util/log/RunnableLog.java
+1
-0
TableHeadHelper.java
...main/java/com/yanzuoguang/util/table/TableHeadHelper.java
+1
-0
TableHeadItem.java
...c/main/java/com/yanzuoguang/util/table/TableHeadItem.java
+1
-0
AbstractThreadList.java
.../java/com/yanzuoguang/util/thread/AbstractThreadList.java
+1
-0
ProcessData.java
...rc/main/java/com/yanzuoguang/util/thread/ProcessData.java
+1
-0
RunInterval.java
...rc/main/java/com/yanzuoguang/util/thread/RunInterval.java
+1
-0
RunPlan.java
...se/src/main/java/com/yanzuoguang/util/thread/RunPlan.java
+1
-0
RunPlanData.java
...rc/main/java/com/yanzuoguang/util/thread/RunPlanData.java
+1
-0
RunProcess.java
...src/main/java/com/yanzuoguang/util/thread/RunProcess.java
+1
-0
RunnableData.java
...c/main/java/com/yanzuoguang/util/thread/RunnableData.java
+1
-0
RunnableList.java
...c/main/java/com/yanzuoguang/util/thread/RunnableList.java
+1
-0
RunnableListAuto.java
...in/java/com/yanzuoguang/util/thread/RunnableListAuto.java
+1
-0
RunnableListAutoItem.java
...ava/com/yanzuoguang/util/thread/RunnableListAutoItem.java
+1
-0
ThreadHelper.java
...c/main/java/com/yanzuoguang/util/thread/ThreadHelper.java
+1
-0
ThreadListData.java
...main/java/com/yanzuoguang/util/thread/ThreadListData.java
+1
-0
ThreadListNum.java
.../main/java/com/yanzuoguang/util/thread/ThreadListNum.java
+1
-0
ThreadNext.java
...src/main/java/com/yanzuoguang/util/thread/ThreadNext.java
+1
-0
ThreadWait.java
...src/main/java/com/yanzuoguang/util/thread/ThreadWait.java
+1
-0
ThreadWaitExecute.java
...n/java/com/yanzuoguang/util/thread/ThreadWaitExecute.java
+1
-0
BaseVo.java
...il-base/src/main/java/com/yanzuoguang/util/vo/BaseVo.java
+1
-0
InitDao.java
...l-base/src/main/java/com/yanzuoguang/util/vo/InitDao.java
+1
-0
LogVo.java
...til-base/src/main/java/com/yanzuoguang/util/vo/LogVo.java
+1
-0
MapRow.java
...il-base/src/main/java/com/yanzuoguang/util/vo/MapRow.java
+1
-1
PageSizeData.java
...e/src/main/java/com/yanzuoguang/util/vo/PageSizeData.java
+3
-1
PageSizeReq.java
...se/src/main/java/com/yanzuoguang/util/vo/PageSizeReq.java
+1
-0
Ref.java
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/Ref.java
+1
-0
ResponseResult.java
...src/main/java/com/yanzuoguang/util/vo/ResponseResult.java
+1
-0
BaseRequestAspect.java
...ain/java/com/yanzuoguang/cloud/aop/BaseRequestAspect.java
+4
-0
FeignAspect.java
.../src/main/java/com/yanzuoguang/cloud/aop/FeignAspect.java
+1
-0
HttpAspectUtil.java
...c/main/java/com/yanzuoguang/cloud/aop/HttpAspectUtil.java
+1
-0
LogFeign.java
...oud/src/main/java/com/yanzuoguang/cloud/aop/LogFeign.java
+1
-0
RequestCacheResult.java
...in/java/com/yanzuoguang/cloud/aop/RequestCacheResult.java
+1
-0
YzgEnvironmentPostProcessor.java
...om/yanzuoguang/cloud/env/YzgEnvironmentPostProcessor.java
+1
-0
HttpFileHelper.java
...ain/java/com/yanzuoguang/cloud/helper/HttpFileHelper.java
+1
-0
CodePwd.java
yzg-util-db/src/main/java/com/yanzuoguang/code/CodePwd.java
+1
-0
CodePwdImpl.java
...il-db/src/main/java/com/yanzuoguang/code/CodePwdImpl.java
+1
-0
BaseDao.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/BaseDao.java
+1
-1
DaoConst.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
+3
-1
BaseDaoImpl.java
...b/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
+1
-1
BaseDaoSql.java
...db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
+1
-0
SqlData.java
...il-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
+1
-1
SqlDataField.java
.../src/main/java/com/yanzuoguang/dao/impl/SqlDataField.java
+1
-0
TableFieldVo.java
.../src/main/java/com/yanzuoguang/dao/impl/TableFieldVo.java
+1
-1
TableSqlCache.java
...src/main/java/com/yanzuoguang/dao/impl/TableSqlCache.java
+1
-1
DbExecute.java
yzg-util-db/src/main/java/com/yanzuoguang/db/DbExecute.java
+3
-1
AllBeanRowMapper.java
...c/main/java/com/yanzuoguang/db/impl/AllBeanRowMapper.java
+1
-1
DbExecuteImpl.java
.../src/main/java/com/yanzuoguang/db/impl/DbExecuteImpl.java
+1
-0
DbPrintSql.java
...-db/src/main/java/com/yanzuoguang/db/impl/DbPrintSql.java
+5
-0
DbRow.java
yzg-util-db/src/main/java/com/yanzuoguang/db/impl/DbRow.java
+1
-0
ConfigDb.java
...til-db/src/main/java/com/yanzuoguang/extend/ConfigDb.java
+1
-0
BaseService.java
...db/src/main/java/com/yanzuoguang/service/BaseService.java
+1
-1
BaseServiceImpl.java
...in/java/com/yanzuoguang/service/impl/BaseServiceImpl.java
+1
-1
MqConfigurable.java
...src/main/java/com/yanzuoguang/mq/base/MqConfigurable.java
+4
-0
MqConsumeDynamic.java
...c/main/java/com/yanzuoguang/mq/base/MqConsumeDynamic.java
+5
-0
MyRabbitTemplate.java
...c/main/java/com/yanzuoguang/mq/base/MyRabbitTemplate.java
+1
-0
ConsumerSimpleMessageListenerContainer.java
...base/consumer/ConsumerSimpleMessageListenerContainer.java
+5
-0
BeanDao.java
...util-mq/src/main/java/com/yanzuoguang/mq/dao/BeanDao.java
+4
-0
MessageDao.java
...l-mq/src/main/java/com/yanzuoguang/mq/dao/MessageDao.java
+1
-0
QueueDao.java
...til-mq/src/main/java/com/yanzuoguang/mq/dao/QueueDao.java
+1
-0
MessageDaoImpl.java
...main/java/com/yanzuoguang/mq/dao/impl/MessageDaoImpl.java
+5
-0
QueueDaoImpl.java
...c/main/java/com/yanzuoguang/mq/dao/impl/QueueDaoImpl.java
+5
-0
MqMessageInitPlan.java
.../main/java/com/yanzuoguang/mq/plan/MqMessageInitPlan.java
+1
-0
MqQueueInitPlan.java
...rc/main/java/com/yanzuoguang/mq/plan/MqQueueInitPlan.java
+1
-0
MessageService.java
.../main/java/com/yanzuoguang/mq/service/MessageService.java
+1
-2
MqService.java
...q/src/main/java/com/yanzuoguang/mq/service/MqService.java
+1
-0
QueueService.java
...rc/main/java/com/yanzuoguang/mq/service/QueueService.java
+1
-0
MessageServiceImpl.java
...a/com/yanzuoguang/mq/service/impl/MessageServiceImpl.java
+1
-0
MqServiceImpl.java
...n/java/com/yanzuoguang/mq/service/impl/MqServiceImpl.java
+4
-0
QueueServiceImpl.java
...ava/com/yanzuoguang/mq/service/impl/QueueServiceImpl.java
+1
-0
MessageVo.java
...til-mq/src/main/java/com/yanzuoguang/mq/vo/MessageVo.java
+1
-0
QueueVo.java
yzg-util-mq/src/main/java/com/yanzuoguang/mq/vo/QueueVo.java
+1
-0
QueueQueryReqVo.java
.../main/java/com/yanzuoguang/mq/vo/req/QueueQueryReqVo.java
+1
-0
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/base/MethodField.java
View file @
316438e9
...
@@ -6,6 +6,7 @@ import java.lang.reflect.Method;
...
@@ -6,6 +6,7 @@ import java.lang.reflect.Method;
/**
/**
* 字段对应的类型的信息,依赖于字段操作类
* 字段对应的类型的信息,依赖于字段操作类
* @author 颜佐光
*/
*/
public
class
MethodField
{
public
class
MethodField
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/base/ObjectHelper.java
View file @
316438e9
...
@@ -13,6 +13,7 @@ import java.util.*;
...
@@ -13,6 +13,7 @@ import java.util.*;
/**
/**
* 对象操作类,包含字段反射
* 对象操作类,包含字段反射
* @author 颜佐光
*/
*/
public
class
ObjectHelper
{
public
class
ObjectHelper
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/cache/MemoryCache.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import java.util.Hashtable;
...
@@ -9,6 +9,7 @@ import java.util.Hashtable;
* 内存缓存
* 内存缓存
*
*
* @param <T>
* @param <T>
* @author 颜佐光
*/
*/
public
class
MemoryCache
<
T
>
{
public
class
MemoryCache
<
T
>
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/cache/MemoryCacheCenter.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import java.util.Vector;
...
@@ -9,6 +9,7 @@ import java.util.Vector;
/**
/**
* 内存缓存中心,负责自动清除过期缓存
* 内存缓存中心,负责自动清除过期缓存
* @author 颜佐光
*/
*/
public
class
MemoryCacheCenter
{
public
class
MemoryCacheCenter
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/cache/MemoryCacheItem.java
View file @
316438e9
...
@@ -6,6 +6,7 @@ import java.util.Date;
...
@@ -6,6 +6,7 @@ import java.util.Date;
/**
/**
* 内存缓存值
* 内存缓存值
* @param <T>
* @param <T>
* @author 颜佐光
*/
*/
public
class
MemoryCacheItem
<
T
>
{
public
class
MemoryCacheItem
<
T
>
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/contants/ResultConstants.java
View file @
316438e9
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.contants;
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.contants;
/**
/**
* 系统服务返回code静态常量类
* 系统服务返回code静态常量类
* 要求所有返回code不要相同,便于统一规范服务代码
* 要求所有返回code不要相同,便于统一规范服务代码
* @author 颜佐光
*/
*/
public
final
class
ResultConstants
{
public
final
class
ResultConstants
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/contants/ResultMessageConstants.java
View file @
316438e9
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.contants;
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.contants;
/**
/**
* 系统服务返回code静态常量类
* 系统服务返回code静态常量类
* 要求所有返回code不要相同,便于统一规范服务代码
* 要求所有返回code不要相同,便于统一规范服务代码
* @author 颜佐光
*/
*/
public
final
class
ResultMessageConstants
{
public
final
class
ResultMessageConstants
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/exception/CodeException.java
View file @
316438e9
...
@@ -2,7 +2,7 @@ package com.yanzuoguang.util.exception;
...
@@ -2,7 +2,7 @@ package com.yanzuoguang.util.exception;
/**
/**
* 途比达异常信息
* 途比达异常信息
*
Created by yanzu on 2018/7/13.
*
@author 颜佐光
*/
*/
public
class
CodeException
extends
RuntimeException
{
public
class
CodeException
extends
RuntimeException
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/exception/ExceptionHelper.java
View file @
316438e9
...
@@ -6,6 +6,7 @@ import com.yanzuoguang.util.vo.ResponseResult;
...
@@ -6,6 +6,7 @@ import com.yanzuoguang.util.vo.ResponseResult;
/**
/**
* 异常处理帮助类
* 异常处理帮助类
* @author 颜佐光
*/
*/
public
class
ExceptionHelper
{
public
class
ExceptionHelper
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/exception/StatusException.java
View file @
316438e9
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.exception;
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.exception;
/**
/**
* 状态异常错误
* 状态异常错误
* @author 颜佐光
*/
*/
public
class
StatusException
extends
RuntimeException
{
public
class
StatusException
extends
RuntimeException
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/extend/ConfigBase.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.log.RunnableLog;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.log.RunnableLog;
/**
/**
* 配置参数
* 配置参数
* @author 颜佐光
*/
*/
public
class
ConfigBase
{
public
class
ConfigBase
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/ByteHelper.java
View file @
316438e9
...
@@ -8,6 +8,7 @@ import com.yanzuoguang.util.exception.CodeException;
...
@@ -8,6 +8,7 @@ import com.yanzuoguang.util.exception.CodeException;
* <p>
* <p>
* Java和一些windows编程语言如c、c++、delphi所写的网络程序进行通讯时,需要进行相应的转换 高、低字节之间的转换
* Java和一些windows编程语言如c、c++、delphi所写的网络程序进行通讯时,需要进行相应的转换 高、低字节之间的转换
* windows的字节序为低字节开头 linux,unix的字节序为高字节开头 java则无论平台变化,都是高字节开头
* windows的字节序为低字节开头 linux,unix的字节序为高字节开头 java则无论平台变化,都是高字节开头
* @author 颜佐光
*/
*/
public
class
ByteHelper
{
public
class
ByteHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/CheckerHelper.java
View file @
316438e9
...
@@ -11,6 +11,7 @@ import java.util.regex.Pattern;
...
@@ -11,6 +11,7 @@ import java.util.regex.Pattern;
/**
/**
* 参数业务逻辑校验
* 参数业务逻辑校验
* @author 颜佐光
*/
*/
public
final
class
CheckerHelper
{
public
final
class
CheckerHelper
{
public
static
final
String
PARAM_NOT_NULL_TIPS
=
"param [%s] is null"
;
public
static
final
String
PARAM_NOT_NULL_TIPS
=
"param [%s] is null"
;
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/DateAutoHelper.java
View file @
316438e9
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
/**
/**
* 将时间格式字符串转换为时间
* 将时间格式字符串转换为时间
* @author 颜佐光
*/
*/
public
class
DateAutoHelper
{
public
class
DateAutoHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/DateHelper.java
View file @
316438e9
...
@@ -12,6 +12,7 @@ import java.util.Date;
...
@@ -12,6 +12,7 @@ import java.util.Date;
/**
/**
* 日期工具类
* 日期工具类
* @author 颜佐光
*/
*/
public
class
DateHelper
{
public
class
DateHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/EnumHelper.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import java.util.HashMap;
...
@@ -7,6 +7,7 @@ import java.util.HashMap;
/**
/**
* 字符串和枚举进行转换
* 字符串和枚举进行转换
* @author 颜佐光
*/
*/
public
class
EnumHelper
{
public
class
EnumHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/Event.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import java.util.List;
...
@@ -7,6 +7,7 @@ import java.util.List;
* Java事件处理类
* Java事件处理类
*
*
* @param <T>
* @param <T>
* @author 颜佐光
*/
*/
public
class
Event
<
T
>
{
public
class
Event
<
T
>
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/EventRun.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ package com.yanzuoguang.util.helper;
...
@@ -4,6 +4,7 @@ package com.yanzuoguang.util.helper;
* 执行的时候得事件处理类
* 执行的时候得事件处理类
*
*
* @param <T> 需要处理的数据的类型
* @param <T> 需要处理的数据的类型
* @author 颜佐光
*/
*/
public
interface
EventRun
<
T
>
{
public
interface
EventRun
<
T
>
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/FileHelper.java
View file @
316438e9
...
@@ -11,6 +11,7 @@ import java.io.RandomAccessFile;
...
@@ -11,6 +11,7 @@ import java.io.RandomAccessFile;
/**
/**
* 登录相关函数
* 登录相关函数
* @author 颜佐光
*/
*/
public
class
FileHelper
{
public
class
FileHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/HttpHelper.java
View file @
316438e9
...
@@ -13,6 +13,7 @@ import java.net.URLConnection;
...
@@ -13,6 +13,7 @@ import java.net.URLConnection;
/**
/**
* HTTP请求工具类
* HTTP请求工具类
* @author 颜佐光
*/
*/
public
class
HttpHelper
{
public
class
HttpHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/JsonHelper.java
View file @
316438e9
...
@@ -5,7 +5,7 @@ import com.alibaba.fastjson.TypeReference;
...
@@ -5,7 +5,7 @@ import com.alibaba.fastjson.TypeReference;
/**
/**
* JSON序列化的处理
* JSON序列化的处理
*
Created by yanzu on 2017/5/28.
*
@author 颜佐光
*/
*/
public
class
JsonHelper
{
public
class
JsonHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/RunHelper.java
View file @
316438e9
...
@@ -6,6 +6,7 @@ import com.yanzuoguang.util.thread.ThreadHelper;
...
@@ -6,6 +6,7 @@ import com.yanzuoguang.util.thread.ThreadHelper;
/**
/**
* 重复执行工具类
* 重复执行工具类
* @author 颜佐光
*/
*/
public
class
RunHelper
{
public
class
RunHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/StringHelper.java
View file @
316438e9
...
@@ -14,6 +14,7 @@ import java.util.UUID;
...
@@ -14,6 +14,7 @@ import java.util.UUID;
/**
/**
* 字符串帮主类
* 字符串帮主类
* @author 颜佐光
*/
*/
public
class
StringHelper
{
public
class
StringHelper
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/UrlHelper.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import java.util.List;
...
@@ -9,6 +9,7 @@ import java.util.List;
/**
/**
* 地址字符串处理
* 地址字符串处理
* @author 颜佐光
*/
*/
public
class
UrlHelper
{
public
class
UrlHelper
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/ZipHelper.java
View file @
316438e9
...
@@ -20,6 +20,11 @@ import java.util.zip.ZipFile;
...
@@ -20,6 +20,11 @@ import java.util.zip.ZipFile;
import
java.util.zip.ZipOutputStream
;
import
java.util.zip.ZipOutputStream
;
/**
* ZIP压缩处理工具类
*
* @author 颜佐光
*/
public
class
ZipHelper
{
public
class
ZipHelper
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/log/Log.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import java.util.HashMap;
...
@@ -7,6 +7,7 @@ import java.util.HashMap;
/**
/**
* 日志操作类
* 日志操作类
* @author 颜佐光
*/
*/
public
class
Log
{
public
class
Log
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/log/LogDefault.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.helper.DateHelper;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.helper.DateHelper;
/**
/**
* 日志处理默认处理函数
* 日志处理默认处理函数
* @author 颜佐光
*/
*/
public
class
LogDefault
implements
RunnableLog
{
public
class
LogDefault
implements
RunnableLog
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/log/LogInfo.java
View file @
316438e9
...
@@ -4,7 +4,7 @@ import java.util.Date;
...
@@ -4,7 +4,7 @@ import java.util.Date;
/**
/**
* 日志实体记录类
* 日志实体记录类
*
Created by yanzu on 2018/7/10.
*
@author 颜佐光
*/
*/
public
class
LogInfo
{
public
class
LogInfo
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/log/RunnableLog.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.log;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.log;
/**
/**
* 日志处理接口
* 日志处理接口
* @author 颜佐光
*/
*/
public
interface
RunnableLog
{
public
interface
RunnableLog
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/table/TableHeadHelper.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import java.util.Map;
...
@@ -7,6 +7,7 @@ import java.util.Map;
/**
/**
* 表头计算
* 表头计算
* @author 颜佐光
*/
*/
public
class
TableHeadHelper
{
public
class
TableHeadHelper
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/table/TableHeadItem.java
View file @
316438e9
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.table;
...
@@ -3,6 +3,7 @@ package com.yanzuoguang.util.table;
/**
/**
* 列头
* 列头
* @author 颜佐光
*/
*/
public
class
TableHeadItem
{
public
class
TableHeadItem
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/AbstractThreadList.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -9,6 +9,7 @@ import java.util.concurrent.TimeUnit;
/**
/**
* 多线程处理队列
* 多线程处理队列
* @author 颜佐光
*/
*/
public
abstract
class
AbstractThreadList
<
T
extends
Object
>
implements
ThreadWaitExecute
{
public
abstract
class
AbstractThreadList
<
T
extends
Object
>
implements
ThreadWaitExecute
{
private
long
threadID
;
private
long
threadID
;
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ProcessData.java
View file @
316438e9
...
@@ -5,6 +5,7 @@ import com.yanzuoguang.util.log.Log;
...
@@ -5,6 +5,7 @@ import com.yanzuoguang.util.log.Log;
/**
/**
* 进度数据
* 进度数据
* @author 颜佐光
*/
*/
public
class
ProcessData
{
public
class
ProcessData
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunInterval.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
/**
/**
* 循环执行任务
* 循环执行任务
* @author 颜佐光
*/
*/
public
class
RunInterval
{
public
class
RunInterval
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunPlan.java
View file @
316438e9
...
@@ -10,6 +10,7 @@ import java.util.List;
...
@@ -10,6 +10,7 @@ import java.util.List;
/**
/**
* 自动执行任务
* 自动执行任务
* @author 颜佐光
*/
*/
public
class
RunPlan
{
public
class
RunPlan
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunPlanData.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import java.util.Date;
...
@@ -4,6 +4,7 @@ import java.util.Date;
/***
/***
* 任务项数据
* 任务项数据
* @author 颜佐光
*/
*/
public
class
RunPlanData
{
public
class
RunPlanData
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunProcess.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
/**
/**
* 运行进度处理
* 运行进度处理
* @author 颜佐光
*/
*/
public
interface
RunProcess
{
public
interface
RunProcess
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunnableData.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.vo.ResponseResult;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.vo.ResponseResult;
/**
/**
* 执行字符串
* 执行字符串
* @author 颜佐光
*/
*/
public
interface
RunnableData
<
T
extends
Object
>
{
public
interface
RunnableData
<
T
extends
Object
>
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunnableList.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.exception.CodeException;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.exception.CodeException;
/**
/**
* 根据指定的线程数量, 执行多个Runnable对象
* 根据指定的线程数量, 执行多个Runnable对象
* @author 颜佐光
*/
*/
public
class
RunnableList
extends
AbstractThreadList
<
Runnable
>
{
public
class
RunnableList
extends
AbstractThreadList
<
Runnable
>
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunnableListAuto.java
View file @
316438e9
...
@@ -6,6 +6,7 @@ import java.util.*;
...
@@ -6,6 +6,7 @@ import java.util.*;
/**
/**
* 执行队列的数据,会根据其中的执行函数,自动优化执行循序
* 执行队列的数据,会根据其中的执行函数,自动优化执行循序
* @author 颜佐光
*/
*/
public
final
class
RunnableListAuto
{
public
final
class
RunnableListAuto
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunnableListAutoItem.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import java.util.Date;
...
@@ -7,6 +7,7 @@ import java.util.Date;
/**
/**
* 自动执行队列的某一项
* 自动执行队列的某一项
* @author 颜佐光
*/
*/
public
class
RunnableListAutoItem
implements
Comparable
<
RunnableListAutoItem
>
{
public
class
RunnableListAutoItem
implements
Comparable
<
RunnableListAutoItem
>
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ThreadHelper.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import java.util.concurrent.Executors;
...
@@ -9,6 +9,7 @@ import java.util.concurrent.Executors;
/**
/**
* 线程帮助类
* 线程帮助类
* @author 颜佐光
*/
*/
public
class
ThreadHelper
{
public
class
ThreadHelper
{
private
static
Object
threadLock
=
new
Object
();
private
static
Object
threadLock
=
new
Object
();
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ThreadListData.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import java.util.Date;
...
@@ -7,6 +7,7 @@ import java.util.Date;
* 执行队列中的数据
* 执行队列中的数据
*
*
* @param <T>
* @param <T>
* @author 颜佐光
*/
*/
public
class
ThreadListData
<
T
>
{
public
class
ThreadListData
<
T
>
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ThreadListNum.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
/**
/**
* 多线程处理时用于线程数量控制
* 多线程处理时用于线程数量控制
* @author 颜佐光
*/
*/
public
class
ThreadListNum
{
public
class
ThreadListNum
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ThreadNext.java
View file @
316438e9
...
@@ -5,6 +5,7 @@ import com.yanzuoguang.util.log.Log;
...
@@ -5,6 +5,7 @@ import com.yanzuoguang.util.log.Log;
/**
/**
* 线程执行类
* 线程执行类
* @author 颜佐光
*/
*/
public
class
ThreadNext
{
public
class
ThreadNext
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ThreadWait.java
View file @
316438e9
...
@@ -10,6 +10,7 @@ import java.util.TimerTask;
...
@@ -10,6 +10,7 @@ import java.util.TimerTask;
/**
/**
* 等待某个任务完成后才能继续往下执行
* 等待某个任务完成后才能继续往下执行
* @author 颜佐光
*/
*/
public
class
ThreadWait
{
public
class
ThreadWait
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/ThreadWaitExecute.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.thread;
/**
/**
* 当前执行类库
* 当前执行类库
* @author 颜佐光
*/
*/
public
interface
ThreadWaitExecute
{
public
interface
ThreadWaitExecute
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/BaseVo.java
View file @
316438e9
...
@@ -6,6 +6,7 @@ import java.io.Serializable;
...
@@ -6,6 +6,7 @@ import java.io.Serializable;
/**
/**
* 基本数据类
* 基本数据类
* @author 颜佐光
*/
*/
public
class
BaseVo
implements
Serializable
{
public
class
BaseVo
implements
Serializable
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/InitDao.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
/**
/**
* 初始化Dao数据
* 初始化Dao数据
* @author 颜佐光
*/
*/
public
interface
InitDao
{
public
interface
InitDao
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/LogVo.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
/**
/**
* 日志实例
* 日志实例
* @author 颜佐光
*/
*/
public
class
LogVo
extends
BaseVo
{
public
class
LogVo
extends
BaseVo
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/MapRow.java
View file @
316438e9
...
@@ -4,7 +4,7 @@ import java.util.HashMap;
...
@@ -4,7 +4,7 @@ import java.util.HashMap;
/**
/**
* 行映射
* 行映射
*
created by yanzu on 2017/5/31.
*
@author 颜佐光
*/
*/
public
class
MapRow
extends
HashMap
<
String
,
Object
>
{
public
class
MapRow
extends
HashMap
<
String
,
Object
>
{
}
}
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/PageSizeData.java
View file @
316438e9
...
@@ -4,7 +4,9 @@ import java.util.ArrayList;
...
@@ -4,7 +4,9 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
/**
/**
* Created by yanzu on 2017/5/30.
* 查询分页数据结果呈现类
*
* @author 颜佐光
*/
*/
public
class
PageSizeData
<
T
extends
Object
>
extends
PageSizeReqVo
{
public
class
PageSizeData
<
T
extends
Object
>
extends
PageSizeReqVo
{
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/PageSizeReq.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
/**
/**
* 查询时分页请求接口
* 查询时分页请求接口
* @author 颜佐光
*/
*/
public
interface
PageSizeReq
{
public
interface
PageSizeReq
{
/**
/**
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/Ref.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ package com.yanzuoguang.util.vo;
...
@@ -4,6 +4,7 @@ package com.yanzuoguang.util.vo;
* 引用值,方便修改
* 引用值,方便修改
*
*
* @param <T>
* @param <T>
* @author 颜佐光
*/
*/
public
class
Ref
<
T
>
{
public
class
Ref
<
T
>
{
public
T
value
;
public
T
value
;
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/ResponseResult.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.contants.ResultConstants;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.contants.ResultConstants;
/**
/**
* 接口之间的通讯结果
* 接口之间的通讯结果
* @author 颜佐光
*/
*/
public
class
ResponseResult
<
T
>
extends
BaseVo
{
public
class
ResponseResult
<
T
>
extends
BaseVo
{
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/BaseRequestAspect.java
View file @
316438e9
...
@@ -19,6 +19,10 @@ import java.util.ArrayList;
...
@@ -19,6 +19,10 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
java.util.concurrent.LinkedBlockingQueue
;
import
java.util.concurrent.LinkedBlockingQueue
;
/**
* 基本处理拦截类
* @author 颜佐光
*/
public
class
BaseRequestAspect
implements
ThreadNext
.
Next
{
public
class
BaseRequestAspect
implements
ThreadNext
.
Next
{
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/FeignAspect.java
View file @
316438e9
...
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Component;
...
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Component;
/**
/**
* 接口切面,用于验证接口回调返回参数
* 接口切面,用于验证接口回调返回参数
* @author 颜佐光
*/
*/
@Aspect
@Aspect
@Component
@Component
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/HttpAspectUtil.java
View file @
316438e9
...
@@ -8,6 +8,7 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -8,6 +8,7 @@ import javax.servlet.http.HttpServletRequest;
/**
/**
* 虚拟拦截类
* 虚拟拦截类
* @author 颜佐光
*/
*/
public
class
HttpAspectUtil
{
public
class
HttpAspectUtil
{
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/LogFeign.java
View file @
316438e9
...
@@ -5,6 +5,7 @@ import com.yanzuoguang.util.vo.ResponseResult;
...
@@ -5,6 +5,7 @@ import com.yanzuoguang.util.vo.ResponseResult;
/**
/**
* 调用外置服务保存日志对象
* 调用外置服务保存日志对象
* @author 颜佐光
*/
*/
public
interface
LogFeign
{
public
interface
LogFeign
{
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/RequestCacheResult.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import java.util.Date;
...
@@ -4,6 +4,7 @@ import java.util.Date;
/**
/**
* 请求缓存的数据
* 请求缓存的数据
* @author 颜佐光
*/
*/
public
class
RequestCacheResult
{
public
class
RequestCacheResult
{
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/env/YzgEnvironmentPostProcessor.java
View file @
316438e9
...
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Component;
...
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Component;
/**
/**
* 环境变量处理,通过服务处理环境变量
* 环境变量处理,通过服务处理环境变量
* @author 颜佐光
*/
*/
@Component
@Component
public
class
YzgEnvironmentPostProcessor
implements
EnvironmentPostProcessor
{
public
class
YzgEnvironmentPostProcessor
implements
EnvironmentPostProcessor
{
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/helper/HttpFileHelper.java
View file @
316438e9
...
@@ -8,6 +8,7 @@ import java.io.*;
...
@@ -8,6 +8,7 @@ import java.io.*;
/**
/**
* HTTP文件
* HTTP文件
* @author 颜佐光
*/
*/
public
class
HttpFileHelper
extends
HttpHelper
{
public
class
HttpFileHelper
extends
HttpHelper
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/code/CodePwd.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.code;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.code;
/**
/**
* 加密算法生成接口
* 加密算法生成接口
* @author 颜佐光
*/
*/
public
interface
CodePwd
{
public
interface
CodePwd
{
/**
/**
...
...
yzg-util-db/src/main/java/com/yanzuoguang/code/CodePwdImpl.java
View file @
316438e9
...
@@ -10,6 +10,7 @@ import java.util.Random;
...
@@ -10,6 +10,7 @@ import java.util.Random;
/**
/**
* 加密算法0版实现
* 加密算法0版实现
* @author 颜佐光
*/
*/
public
class
CodePwdImpl
implements
CodePwd
{
public
class
CodePwdImpl
implements
CodePwd
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/BaseDao.java
View file @
316438e9
...
@@ -3,7 +3,7 @@ package com.yanzuoguang.dao;
...
@@ -3,7 +3,7 @@ package com.yanzuoguang.dao;
/**
/**
* 数据基本操作接口
* 数据基本操作接口
*
created by yanzu on 2017/5/30.
*
@author 颜佐光
*/
*/
public
interface
BaseDao
{
public
interface
BaseDao
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
View file @
316438e9
package
com
.
yanzuoguang
.
dao
;
package
com
.
yanzuoguang
.
dao
;
/**
/**
* created by yanzu on 2017/5/30.
* DAO层处理基本美剧
*
* @author 颜佐光
*/
*/
public
class
DaoConst
{
public
class
DaoConst
{
/**
/**
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
View file @
316438e9
...
@@ -17,7 +17,7 @@ import java.util.Map;
...
@@ -17,7 +17,7 @@ import java.util.Map;
/**
/**
* 数据库操作的基本工具类
* 数据库操作的基本工具类
*
created by yanzu on 2017/5/30.
*
@author 颜佐光
*/
*/
public
abstract
class
BaseDaoImpl
extends
BaseDaoSql
implements
BaseDao
{
public
abstract
class
BaseDaoImpl
extends
BaseDaoSql
implements
BaseDao
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
View file @
316438e9
...
@@ -20,6 +20,7 @@ import java.util.regex.Pattern;
...
@@ -20,6 +20,7 @@ import java.util.regex.Pattern;
/**
/**
* SQL语句基本操作类
* SQL语句基本操作类
* @author 颜佐光
*/
*/
public
abstract
class
BaseDaoSql
{
public
abstract
class
BaseDaoSql
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
View file @
316438e9
...
@@ -7,7 +7,7 @@ import java.util.List;
...
@@ -7,7 +7,7 @@ import java.util.List;
/**
/**
* SQL语句基本信息
* SQL语句基本信息
*
created by yanzu on 2017/5/30.
*
@author 颜佐光
*/
*/
public
class
SqlData
{
public
class
SqlData
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/SqlDataField.java
View file @
316438e9
...
@@ -5,6 +5,7 @@ import java.util.List;
...
@@ -5,6 +5,7 @@ import java.util.List;
/**
/**
* SQL语句的字段
* SQL语句的字段
* @author 颜佐光
*/
*/
public
class
SqlDataField
{
public
class
SqlDataField
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableFieldVo.java
View file @
316438e9
...
@@ -4,7 +4,7 @@ import com.yanzuoguang.dao.DaoConst;
...
@@ -4,7 +4,7 @@ import com.yanzuoguang.dao.DaoConst;
/**
/**
* 表结构的基本信息
* 表结构的基本信息
*
created by yanzu on 2017/5/30.
*
@author 颜佐光
*/
*/
public
class
TableFieldVo
{
public
class
TableFieldVo
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableSqlCache.java
View file @
316438e9
...
@@ -14,7 +14,7 @@ import java.util.regex.Pattern;
...
@@ -14,7 +14,7 @@ import java.util.regex.Pattern;
/**
/**
* 缓存的SQL语句信息
* 缓存的SQL语句信息
*
created by yanzu on 2017/5/30.
*
@author 颜佐光
*/
*/
public
class
TableSqlCache
{
public
class
TableSqlCache
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/db/DbExecute.java
View file @
316438e9
...
@@ -6,7 +6,9 @@ import com.yanzuoguang.util.vo.MapRow;
...
@@ -6,7 +6,9 @@ import com.yanzuoguang.util.vo.MapRow;
import
java.util.List
;
import
java.util.List
;
/**
/**
* created by yanzu on 2017/5/30.
* 数据库链接处理工具类
*
* @author 颜佐光
*/
*/
public
interface
DbExecute
{
public
interface
DbExecute
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/db/impl/AllBeanRowMapper.java
View file @
316438e9
...
@@ -25,7 +25,7 @@ import java.util.Map;
...
@@ -25,7 +25,7 @@ import java.util.Map;
/**
/**
* 将数据映射为结果
* 将数据映射为结果
*
Created by yanzu on 2017/5/31.
*
@author 颜佐光
*/
*/
public
class
AllBeanRowMapper
<
T
>
implements
RowMapper
<
T
>
{
public
class
AllBeanRowMapper
<
T
>
implements
RowMapper
<
T
>
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/db/impl/DbExecuteImpl.java
View file @
316438e9
...
@@ -18,6 +18,7 @@ import java.util.List;
...
@@ -18,6 +18,7 @@ import java.util.List;
/**
/**
* 数据库操作类
* 数据库操作类
* @author 颜佐光
*/
*/
@Component
@Component
public
class
DbExecuteImpl
implements
DbExecute
{
public
class
DbExecuteImpl
implements
DbExecute
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/db/impl/DbPrintSql.java
View file @
316438e9
...
@@ -7,6 +7,11 @@ import org.springframework.stereotype.Component;
...
@@ -7,6 +7,11 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
/**
* 打印SQL语句日志工具类
*
* @author 颜佐光
*/
@Component
@Component
public
class
DbPrintSql
{
public
class
DbPrintSql
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/db/impl/DbRow.java
View file @
316438e9
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.db.impl;
...
@@ -2,6 +2,7 @@ package com.yanzuoguang.db.impl;
/**
/**
* 处理行数据
* 处理行数据
* @author 颜佐光
*/
*/
public
interface
DbRow
<
T
>
{
public
interface
DbRow
<
T
>
{
/**
/**
...
...
yzg-util-db/src/main/java/com/yanzuoguang/extend/ConfigDb.java
View file @
316438e9
...
@@ -5,6 +5,7 @@ import org.springframework.stereotype.Component;
...
@@ -5,6 +5,7 @@ import org.springframework.stereotype.Component;
/**
/**
* 打印SQL日志
* 打印SQL日志
* @author 颜佐光
*/
*/
@Component
@Component
public
class
ConfigDb
{
public
class
ConfigDb
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/service/BaseService.java
View file @
316438e9
...
@@ -4,7 +4,7 @@ import java.util.List;
...
@@ -4,7 +4,7 @@ import java.util.List;
/**
/**
* 基本服务接口
* 基本服务接口
*
created by yanzu on 2017/5/29.
*
@author 颜佐光
*/
*/
public
interface
BaseService
<
T
>
{
public
interface
BaseService
<
T
>
{
/**
/**
...
...
yzg-util-db/src/main/java/com/yanzuoguang/service/impl/BaseServiceImpl.java
View file @
316438e9
...
@@ -10,7 +10,7 @@ import java.util.List;
...
@@ -10,7 +10,7 @@ import java.util.List;
/**
/**
* 基本服务实现
* 基本服务实现
*
created by yanzu on 2017/5/31.
*
@author 颜佐光
*/
*/
public
abstract
class
BaseServiceImpl
<
T
>
implements
BaseService
<
T
>
{
public
abstract
class
BaseServiceImpl
<
T
>
implements
BaseService
<
T
>
{
/**
/**
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/base/MqConfigurable.java
View file @
316438e9
...
@@ -18,6 +18,10 @@ import org.springframework.stereotype.Component;
...
@@ -18,6 +18,10 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
/**
* MQ队列相关配置信息
* @author 颜佐光
*/
@Configurable
@Configurable
@Component
@Component
public
class
MqConfigurable
implements
RabbitTemplate
.
ConfirmCallback
,
RabbitTemplate
.
ReturnCallback
{
public
class
MqConfigurable
implements
RabbitTemplate
.
ConfirmCallback
,
RabbitTemplate
.
ReturnCallback
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/base/MqConsumeDynamic.java
View file @
316438e9
...
@@ -12,6 +12,11 @@ import org.springframework.stereotype.Component;
...
@@ -12,6 +12,11 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
/**
* MQ消费者通过代码初始化
*
* @author 颜佐光
*/
@Component
@Component
public
class
MqConsumeDynamic
{
public
class
MqConsumeDynamic
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/base/MyRabbitTemplate.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import org.springframework.amqp.rabbit.core.RabbitTemplate;
...
@@ -4,6 +4,7 @@ import org.springframework.amqp.rabbit.core.RabbitTemplate;
/**
/**
* 我的处理实例
* 我的处理实例
* @author 颜佐光
*/
*/
public
class
MyRabbitTemplate
{
public
class
MyRabbitTemplate
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/base/consumer/ConsumerSimpleMessageListenerContainer.java
View file @
316438e9
...
@@ -2,6 +2,11 @@ package com.yanzuoguang.mq.base.consumer;
...
@@ -2,6 +2,11 @@ package com.yanzuoguang.mq.base.consumer;
import
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer
;
import
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer
;
/**
* 自定义消息容器类
*
* @author 颜佐光
*/
public
class
ConsumerSimpleMessageListenerContainer
extends
SimpleMessageListenerContainer
{
public
class
ConsumerSimpleMessageListenerContainer
extends
SimpleMessageListenerContainer
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/BeanDao.java
View file @
316438e9
...
@@ -14,6 +14,10 @@ import org.springframework.stereotype.Component;
...
@@ -14,6 +14,10 @@ import org.springframework.stereotype.Component;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/**
* 基本队列处理类
* @author 颜佐光
*/
@Component
@Component
public
class
BeanDao
{
public
class
BeanDao
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/MessageDao.java
View file @
316438e9
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
/**
/**
* 日志接口基本操作类
* 日志接口基本操作类
* @author 颜佐光
*/
*/
public
interface
MessageDao
extends
BaseDao
{
public
interface
MessageDao
extends
BaseDao
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/QueueDao.java
View file @
316438e9
...
@@ -10,6 +10,7 @@ import java.util.List;
...
@@ -10,6 +10,7 @@ import java.util.List;
/**
/**
* 日志接口基本操作类
* 日志接口基本操作类
* @author 颜佐光
*/
*/
public
interface
QueueDao
extends
BaseDao
{
public
interface
QueueDao
extends
BaseDao
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/impl/MessageDaoImpl.java
View file @
316438e9
...
@@ -12,6 +12,11 @@ import java.util.HashMap;
...
@@ -12,6 +12,11 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
* 消息队列处理工具类
*
* @author 颜佐光
*/
@Component
@Component
public
class
MessageDaoImpl
extends
BaseDaoImpl
implements
MessageDao
{
public
class
MessageDaoImpl
extends
BaseDaoImpl
implements
MessageDao
{
private
static
final
String
UPDATE_BATCH_SQL
=
"UPDATE_BATCH_SQL"
;
private
static
final
String
UPDATE_BATCH_SQL
=
"UPDATE_BATCH_SQL"
;
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/dao/impl/QueueDaoImpl.java
View file @
316438e9
...
@@ -11,6 +11,11 @@ import org.springframework.stereotype.Component;
...
@@ -11,6 +11,11 @@ import org.springframework.stereotype.Component;
import
java.util.List
;
import
java.util.List
;
/**
* 消息队列Dao层实现类
*
* @author 颜佐光
*/
@Component
@Component
public
class
QueueDaoImpl
extends
BaseDaoImpl
implements
QueueDao
{
public
class
QueueDaoImpl
extends
BaseDaoImpl
implements
QueueDao
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/plan/MqMessageInitPlan.java
View file @
316438e9
...
@@ -14,6 +14,7 @@ import java.util.List;
...
@@ -14,6 +14,7 @@ import java.util.List;
/**
/**
* 消息队列初始化服务,用于重启时,初始化消息队列对象
* 消息队列初始化服务,用于重启时,初始化消息队列对象
* @author 颜佐光
*/
*/
@Component
@Component
public
class
MqMessageInitPlan
implements
ThreadNext
.
Next
,
Runnable
{
public
class
MqMessageInitPlan
implements
ThreadNext
.
Next
,
Runnable
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/plan/MqQueueInitPlan.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import org.springframework.stereotype.Component;
...
@@ -7,6 +7,7 @@ import org.springframework.stereotype.Component;
/**
/**
* 消息队列初始化服务,用于重启时,初始化消息队列对象
* 消息队列初始化服务,用于重启时,初始化消息队列对象
* @author 颜佐光
*/
*/
@Component
@Component
public
class
MqQueueInitPlan
implements
ThreadNext
.
Next
{
public
class
MqQueueInitPlan
implements
ThreadNext
.
Next
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/MessageService.java
View file @
316438e9
package
com
.
yanzuoguang
.
mq
.
service
;
package
com
.
yanzuoguang
.
mq
.
service
;
import
com.rabbitmq.client.Channel
;
import
com.yanzuoguang.mq.vo.MessageVo
;
import
com.yanzuoguang.mq.vo.MessageVo
;
import
org.springframework.amqp.core.Message
;
import
java.util.List
;
import
java.util.List
;
/**
/**
* 发送消息服务
* 发送消息服务
* @author 颜佐光
*/
*/
public
interface
MessageService
{
public
interface
MessageService
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/MqService.java
View file @
316438e9
...
@@ -10,6 +10,7 @@ import org.springframework.amqp.core.Message;
...
@@ -10,6 +10,7 @@ import org.springframework.amqp.core.Message;
/**
/**
* 消息队列服务
* 消息队列服务
* @author 颜佐光
*/
*/
public
interface
MqService
{
public
interface
MqService
{
/**
/**
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/QueueService.java
View file @
316438e9
...
@@ -7,6 +7,7 @@ import com.yanzuoguang.util.vo.PageSizeData;
...
@@ -7,6 +7,7 @@ import com.yanzuoguang.util.vo.PageSizeData;
/**
/**
* 队列服务
* 队列服务
* @author 颜佐光
*/
*/
public
interface
QueueService
{
public
interface
QueueService
{
/**
/**
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/impl/MessageServiceImpl.java
View file @
316438e9
...
@@ -22,6 +22,7 @@ import java.util.List;
...
@@ -22,6 +22,7 @@ import java.util.List;
/**
/**
* 发送消息服务的实现
* 发送消息服务的实现
* @author 颜佐光
*/
*/
@Component
@Component
public
class
MessageServiceImpl
implements
MessageService
{
public
class
MessageServiceImpl
implements
MessageService
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/impl/MqServiceImpl.java
View file @
316438e9
...
@@ -16,6 +16,10 @@ import org.springframework.stereotype.Component;
...
@@ -16,6 +16,10 @@ import org.springframework.stereotype.Component;
import
java.io.IOException
;
import
java.io.IOException
;
/**
* 消息队列服务实现类
* @author 颜佐光
*/
@Component
@Component
public
class
MqServiceImpl
implements
MqService
{
public
class
MqServiceImpl
implements
MqService
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/service/impl/QueueServiceImpl.java
View file @
316438e9
...
@@ -15,6 +15,7 @@ import java.util.List;
...
@@ -15,6 +15,7 @@ import java.util.List;
/**
/**
* 交换器服务类
* 交换器服务类
* @author 颜佐光
*/
*/
@Component
@Component
public
class
QueueServiceImpl
implements
QueueService
{
public
class
QueueServiceImpl
implements
QueueService
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/vo/MessageVo.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import com.yanzuoguang.util.vo.InitDao;
...
@@ -9,6 +9,7 @@ import com.yanzuoguang.util.vo.InitDao;
/**
/**
* 发送消息
* 发送消息
* @author 颜佐光
*/
*/
@TableAnnotation
(
"Queue_Message"
)
@TableAnnotation
(
"Queue_Message"
)
public
class
MessageVo
extends
BaseVo
implements
InitDao
{
public
class
MessageVo
extends
BaseVo
implements
InitDao
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/vo/QueueVo.java
View file @
316438e9
...
@@ -9,6 +9,7 @@ import com.yanzuoguang.util.vo.InitDao;
...
@@ -9,6 +9,7 @@ import com.yanzuoguang.util.vo.InitDao;
/**
/**
* 创建队列
* 创建队列
* @author 颜佐光
*/
*/
@TableAnnotation
(
"Queue_Queue"
)
@TableAnnotation
(
"Queue_Queue"
)
public
class
QueueVo
extends
BaseVo
implements
InitDao
{
public
class
QueueVo
extends
BaseVo
implements
InitDao
{
...
...
yzg-util-mq/src/main/java/com/yanzuoguang/mq/vo/req/QueueQueryReqVo.java
View file @
316438e9
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.vo.PageSizeReqVo;
...
@@ -4,6 +4,7 @@ import com.yanzuoguang.util.vo.PageSizeReqVo;
/**
/**
* 请求实体队列
* 请求实体队列
* @author 颜佐光
*/
*/
public
class
QueueQueryReqVo
extends
PageSizeReqVo
{
public
class
QueueQueryReqVo
extends
PageSizeReqVo
{
/**
/**
...
...
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