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
8a8367fb
Commit
8a8367fb
authored
Aug 12, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实例化关系
parent
bd6ac76b
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
75 additions
and
88 deletions
+75
-88
YzgError.java
...til-base/src/main/java/com/yanzuoguang/util/YzgError.java
+52
-49
YzgErrorData.java
...base/src/main/java/com/yanzuoguang/util/YzgErrorData.java
+2
-2
RandomHelper.java
...c/main/java/com/yanzuoguang/util/helper/RandomHelper.java
+2
-10
RunHelper.java
.../src/main/java/com/yanzuoguang/util/helper/RunHelper.java
+3
-3
ZipHelper.java
.../src/main/java/com/yanzuoguang/util/helper/ZipHelper.java
+4
-12
RunnableList.java
...c/main/java/com/yanzuoguang/util/thread/RunnableList.java
+1
-1
RunnableListAutoItem.java
...ava/com/yanzuoguang/util/thread/RunnableListAutoItem.java
+1
-1
ExcelHttp.java
.../src/main/java/com/yanzuoguang/cloud/excel/ExcelHttp.java
+1
-1
SqlCondBase.java
...b/src/main/java/com/yanzuoguang/dao/cond/SqlCondBase.java
+1
-1
SqlCondItem.java
...b/src/main/java/com/yanzuoguang/dao/cond/SqlCondItem.java
+1
-1
BaseDaoImpl.java
...b/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
+2
-2
BaseDaoSql.java
...db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
+1
-1
TableSqlCache.java
...src/main/java/com/yanzuoguang/dao/impl/TableSqlCache.java
+1
-1
MediaHelper.java
...image/src/main/java/com/yanzuoguang/util/MediaHelper.java
+2
-2
PrinterHelper.java
...int/src/main/java/com/yanzuoguang/util/PrinterHelper.java
+1
-1
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/YzgError.java
View file @
8a8367fb
...
...
@@ -13,55 +13,58 @@ public class YzgError {
private
static
YzgErrorData
error
=
new
YzgErrorData
(
"999."
);
private
static
void
init
()
{
error
.
add
(
"000"
,
"%s"
);
error
.
add
(
"000"
,
"%s"
);
error
.
add
(
"001"
,
"该页面未绑定表"
);
error
.
add
(
"002"
,
"类%s未发现表结构"
);
error
.
add
(
"003"
,
"类%s未发现SQL语句%s"
);
error
.
add
(
"004"
,
"泛型继承检测错误"
);
error
.
add
(
"005"
,
"视频文件不存在"
);
error
.
add
(
"006"
,
"对象%s不能复制"
);
error
.
add
(
"007"
,
"整形转换成字节的PCD码必须小于100"
);
error
.
add
(
"008"
,
"不能识别文件类型%s"
);
error
.
add
(
"009"
,
"文件类型不为图片、音频、视频"
);
error
.
add
(
"010"
,
"文件%s已存在文件,不能创建目录"
);
error
.
add
(
"011"
,
"创建文件夹失败"
);
error
.
add
(
"012"
,
"文件删除失败"
);
error
.
add
(
"013"
,
"变量名%s不支持"
);
error
.
add
(
"014"
,
"正则表达式错误"
);
error
.
add
(
"015"
,
"length params is error, must be greater than 0, this params is [%s]"
);
error
.
add
(
"016"
,
"random code, essential data is empty."
);
error
.
add
(
"017"
,
"生成时间搓 MD5 ID 时,时间不能为空"
);
error
.
add
(
"018"
,
"压缩时文件夹对象不能为空。"
);
error
.
add
(
"019"
,
"[%s]不是一个文件夹,或者不存在。"
);
error
.
add
(
"020"
,
"删除文件失败"
);
error
.
add
(
"021"
,
"文件%s不存在"
);
error
.
add
(
"022"
,
"没有抛出异常"
);
error
.
add
(
"023"
,
"监视错误"
);
error
.
add
(
"024"
,
"导出时请传入配置信息"
);
error
.
add
(
"025"
,
"不能处理非本条件的字段"
);
error
.
add
(
"026"
,
"代码片段%s:%s:%s为单数"
);
error
.
add
(
"027"
,
"SqlCondItem不支持输入参数,必须带代码片段"
);
error
.
add
(
"028"
,
"需要格式化的字符串不支持"
);
error
.
add
(
"029"
,
"表%s主键值为空时不能更新"
);
error
.
add
(
"030"
,
"修改失败,请确认是否被其他人修改,版本号传入是否正确"
);
error
.
add
(
"031"
,
"统计类型[%s]不支持"
);
error
.
add
(
"032"
,
"SQL语句%s不存在纬度%s"
);
error
.
add
(
"033"
,
"表中未包含MD5字段"
);
error
.
add
(
"034"
,
"Excel已初始化"
);
error
.
add
(
"035"
,
"保存失败"
);
error
.
add
(
"036"
,
"保存路径%s失败"
);
error
.
add
(
"037"
,
"%s失败,该数据可能已被修改"
);
error
.
add
(
"038"
,
"size请在0~1之间"
);
error
.
add
(
"039"
,
"视频转码压缩时文件不存在:%s"
);
error
.
add
(
"040"
,
"audioBitRateZip请在0~1之间"
);
error
.
add
(
"041"
,
"videoSizeZip请在0~1之间"
);
error
.
add
(
"042"
,
"videoBitRateZip请在0~1之间"
);
error
.
add
(
"043"
,
"你需要格式化的字符串格式为空"
);
error
.
add
(
"044"
,
"不能获取文件Mime类型%s"
);
error
.
add
(
"045"
,
"下载失败"
);
error
.
add
(
"046"
,
"创建对象%s出错"
);
error
.
add
(
"047"
,
"不能识别模板"
);
error
.
add
(
"048"
,
"获取视频所缩类图失败:%s"
);
error
.
add
(
"005"
,
"视频文件不存在"
);
error
.
add
(
"006"
,
"对象%s不能复制"
);
error
.
add
(
"007"
,
"整形转换成字节的PCD码必须小于100"
);
error
.
add
(
"008"
,
"不能识别文件类型%s"
);
error
.
add
(
"009"
,
"文件类型不为图片、音频、视频"
);
error
.
add
(
"010"
,
"文件%s已存在文件,不能创建目录"
);
error
.
add
(
"011"
,
"创建文件夹失败"
);
error
.
add
(
"012"
,
"文件删除失败"
);
error
.
add
(
"013"
,
"变量名%s不支持"
);
error
.
add
(
"014"
,
"正则表达式错误"
);
error
.
add
(
"015"
,
"length params is error, must be greater than 0, this params is [%s]"
);
error
.
add
(
"016"
,
"random code, essential data is empty."
);
error
.
add
(
"017"
,
"生成时间搓 MD5 ID 时,时间不能为空"
);
error
.
add
(
"018"
,
"压缩时文件夹对象不能为空。"
);
error
.
add
(
"019"
,
"[%s]不是一个文件夹,或者不存在。"
);
error
.
add
(
"020"
,
"删除文件[%s]失败"
);
error
.
add
(
"021"
,
"文件%s不存在"
);
error
.
add
(
"022"
,
"没有抛出异常"
);
error
.
add
(
"023"
,
"获取Web请求上下文错误"
);
error
.
add
(
"024"
,
"导出时请传入配置信息"
);
error
.
add
(
"025"
,
"不能处理非本条件的字段"
);
error
.
add
(
"026"
,
"代码片段%s:%s:%s为单数"
);
error
.
add
(
"027"
,
"SqlCondItem不支持输入参数,必须带代码片段"
);
error
.
add
(
"028"
,
"需要格式化的字符串不支持"
);
error
.
add
(
"029"
,
"表%s主键值为空时不能更新"
);
error
.
add
(
"030"
,
"修改失败,请确认是否被其他人修改,版本号传入是否正确"
);
error
.
add
(
"031"
,
"统计类型[%s]不支持"
);
error
.
add
(
"032"
,
"SQL语句%s不存在纬度%s"
);
error
.
add
(
"033"
,
"表中未包含MD5字段"
);
error
.
add
(
"034"
,
"Excel已初始化"
);
error
.
add
(
"035"
,
"保存失败"
);
error
.
add
(
"036"
,
"保存路径%s失败"
);
error
.
add
(
"037"
,
"%s失败,该数据可能已被修改"
);
error
.
add
(
"038"
,
"size请在0~1之间"
);
error
.
add
(
"039"
,
"视频转码压缩时文件不存在:%s"
);
error
.
add
(
"040"
,
"audioBitRateZip请在0~1之间"
);
error
.
add
(
"041"
,
"videoSizeZip请在0~1之间"
);
error
.
add
(
"042"
,
"videoBitRateZip请在0~1之间"
);
error
.
add
(
"043"
,
"你需要格式化的字符串格式为空"
);
error
.
add
(
"044"
,
"不能获取文件Mime类型%s"
);
error
.
add
(
"045"
,
"下载失败:%s"
);
error
.
add
(
"046"
,
"创建对象%s出错"
);
error
.
add
(
"047"
,
"不能识别模板:%s"
);
error
.
add
(
"048"
,
"获取视频所缩类图失败:%s"
);
error
.
add
(
"049"
,
"%s %s"
);
error
.
add
(
"050"
,
"%s"
);
error
.
add
(
"051"
,
"%s"
);
}
...
...
@@ -86,7 +89,7 @@ public class YzgError {
* @param code
* @param args
*/
public
static
CodeException
throwException
(
Exception
ex
,
String
code
,
Object
...
args
)
{
public
static
CodeException
throwException
(
Throwable
ex
,
String
code
,
Object
...
args
)
{
throw
error
.
getCodeException
(
ex
,
code
,
args
);
}
...
...
@@ -106,7 +109,7 @@ public class YzgError {
* @param code
* @param args
*/
public
static
CodeException
getException
(
Exception
ex
,
String
code
,
Object
...
args
)
{
public
static
CodeException
getException
(
Throwable
ex
,
String
code
,
Object
...
args
)
{
return
error
.
getCodeException
(
ex
,
code
,
args
);
}
...
...
@@ -126,7 +129,7 @@ public class YzgError {
* @param code
* @param args
*/
public
static
RuntimeCodeException
throwRuntimeException
(
Exception
ex
,
String
code
,
Object
...
args
)
{
public
static
RuntimeCodeException
throwRuntimeException
(
Throwable
ex
,
String
code
,
Object
...
args
)
{
throw
error
.
getRuntimeException
(
ex
,
code
,
args
);
}
...
...
@@ -146,7 +149,7 @@ public class YzgError {
* @param code
* @param args
*/
public
static
RuntimeCodeException
getRuntimeException
(
Exception
ex
,
String
code
,
Object
...
args
)
{
public
static
RuntimeCodeException
getRuntimeException
(
Throwable
ex
,
String
code
,
Object
...
args
)
{
return
error
.
getRuntimeException
(
ex
,
code
,
args
);
}
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/YzgErrorData.java
View file @
8a8367fb
...
...
@@ -54,7 +54,7 @@ public class YzgErrorData {
* @param code
* @param args
*/
public
CodeException
getCodeException
(
Exception
ex
,
String
code
,
Object
...
args
)
{
public
CodeException
getCodeException
(
Throwable
ex
,
String
code
,
Object
...
args
)
{
String
message
=
getMessage
(
ErrorCode
,
code
,
args
);
if
(
ex
!=
null
)
{
return
new
CodeException
(
TAG
+
code
,
message
,
ex
);
...
...
@@ -79,7 +79,7 @@ public class YzgErrorData {
* @param code
* @param args
*/
public
RuntimeCodeException
getRuntimeException
(
Exception
ex
,
String
code
,
Object
...
args
)
{
public
RuntimeCodeException
getRuntimeException
(
Throwable
ex
,
String
code
,
Object
...
args
)
{
String
message
=
getMessage
(
ErrorCode
,
code
,
args
);
if
(
ex
!=
null
)
{
return
new
RuntimeCodeException
(
TAG
+
code
,
message
,
ex
);
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/RandomHelper.java
View file @
8a8367fb
...
...
@@ -63,15 +63,7 @@ public final class RandomHelper {
* @return
*/
public
static
String
generateRandomCodeSix
(
int
len
)
{
if
(
len
<
1
)
{
throw
YzgError
.
getRuntimeException
(
"015"
,
len
);
}
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
sb
.
append
(
generateRandomCodeOne
(
RANDOM_CHARSET
,
RANDOM_CHARSET_LEN
));
}
return
sb
.
toString
();
return
generateRandomCode
(
RANDOM_CHARSET
,
len
);
}
/**
...
...
@@ -87,7 +79,7 @@ public final class RandomHelper {
}
if
(
len
<
1
)
{
throw
YzgError
.
getRuntimeException
(
"015"
,
len
);
throw
YzgError
.
getRuntimeException
(
"015"
,
len
);
}
StringBuffer
sb
=
new
StringBuffer
();
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/RunHelper.java
View file @
8a8367fb
...
...
@@ -36,13 +36,13 @@ public class RunHelper {
* @param size 需要执行的次数
*/
public
static
void
run
(
String
tag
,
Runnable
run
,
int
sleep
,
int
size
)
{
Exception
ex
=
null
;
Runtime
Exception
ex
=
null
;
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
try
{
run
.
run
();
ex
=
null
;
break
;
}
catch
(
Exception
e
)
{
}
catch
(
Runtime
Exception
e
)
{
if
(
i
<
size
)
{
// 间隔100ms,防止服务器重启时请求失败
ThreadHelper
.
sleep
(
sleep
);
...
...
@@ -51,7 +51,7 @@ public class RunHelper {
}
}
if
(
ex
!=
null
)
{
throw
YzgError
.
getRuntimeException
(
ex
,
"000"
,
tag
+
ex
.
getMessage
());
throw
YzgError
.
getRuntimeException
(
ex
,
"049"
,
tag
,
ex
.
getMessage
());
}
}
}
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/ZipHelper.java
View file @
8a8367fb
package
com
.
yanzuoguang
.
util
.
helper
;
import
com.yanzuoguang.util.YzgError
;
import
java.io.BufferedInputStream
;
import
java.io.BufferedOutputStream
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.*
;
import
java.nio.charset.Charset
;
import
java.util.ArrayList
;
import
java.util.Enumeration
;
...
...
@@ -43,7 +35,7 @@ public class ZipHelper {
throw
YzgError
.
getRuntimeException
(
"018"
);
}
if
(!
dirFile
.
isDirectory
())
{
throw
YzgError
.
getRuntimeException
(
"019"
,
dirFile
.
getName
());
throw
YzgError
.
getRuntimeException
(
"019"
,
dirFile
.
getName
());
}
if
(
zipFile
==
null
)
{
zipFile
=
new
File
(
dirFile
.
getAbsolutePath
()
+
".zip"
);
...
...
@@ -159,7 +151,7 @@ public class ZipHelper {
if
(
flag
)
{
tempFile
.
renameTo
(
zipTo
);
}
else
{
throw
YzgError
.
getRuntimeException
(
"020"
);
throw
YzgError
.
getRuntimeException
(
"020"
,
tempFile
.
getName
()
);
}
}
}
...
...
@@ -217,7 +209,7 @@ public class ZipHelper {
*/
private
static
void
zipFile
(
String
sourcePath
,
File
file
,
ZipOutputStream
zipOutStream
,
BufferedOutputStream
bufferOutStream
)
throws
IOException
{
if
(!
file
.
exists
())
{
throw
YzgError
.
getRuntimeException
(
"021"
,
file
.
getAbsolutePath
());
throw
YzgError
.
getRuntimeException
(
"021"
,
file
.
getAbsolutePath
());
}
// 创建压缩文件实体
ZipEntry
entry
=
new
ZipEntry
(
sourcePath
+
file
.
getName
());
...
...
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunnableList.java
View file @
8a8367fb
...
...
@@ -29,7 +29,7 @@ public class RunnableList extends AbstractThreadList<Runnable> {
}
catch
(
RuntimeException
ex
)
{
throw
ex
;
}
catch
(
Exception
ex
)
{
throw
YzgError
.
getRuntimeException
(
"0
00"
,
ex
.
getMessage
());
throw
YzgError
.
getRuntimeException
(
"0
50"
,
ex
.
getMessage
());
}
}
}
yzg-util-base/src/main/java/com/yanzuoguang/util/thread/RunnableListAutoItem.java
View file @
8a8367fb
...
...
@@ -158,7 +158,7 @@ public class RunnableListAutoItem implements Comparable<RunnableListAutoItem> {
if
(
ex
instanceof
RuntimeException
)
{
throw
(
RuntimeException
)
ex
;
}
else
{
throw
YzgError
.
getRuntimeException
(
"000"
,
ex
.
getMessage
());
throw
YzgError
.
getRuntimeException
(
ex
,
"051"
,
ex
.
getMessage
());
}
}
...
...
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/excel/ExcelHttp.java
View file @
8a8367fb
...
...
@@ -137,7 +137,7 @@ public class ExcelHttp<T extends Object> extends ExcelConsole<T> {
}
catch
(
IOException
e
)
{
isDown
=
true
;
e
.
printStackTrace
();
throw
YzgError
.
getRuntimeException
(
e
,
"045"
);
throw
YzgError
.
getRuntimeException
(
e
,
"045"
,
e
.
getMessage
()
);
}
finally
{
if
(
isDown
)
{
// 删除生成的临时文件
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondBase.java
View file @
8a8367fb
...
...
@@ -102,7 +102,7 @@ public abstract class SqlCondBase<T extends SqlCondBase> implements SqlCond<T> {
String
fieldName
=
this
.
fields
.
isEmpty
()
?
StringHelper
.
EMPTY
:
this
.
fields
.
get
(
0
);
// 判断代码片段是否合法
if
(
sqlDataField
.
getCodes
().
size
()
%
2
==
1
)
{
throw
YzgError
.
getRuntimeException
(
"026"
,
this
.
getClass
().
getSimpleName
(),
sqlData
.
getName
(),
fieldName
);
throw
YzgError
.
getRuntimeException
(
"026"
,
this
.
getClass
().
getSimpleName
(),
sqlData
.
getName
(),
fieldName
);
}
// 处理代码片段
for
(
int
i
=
0
;
i
<
sqlDataField
.
getCodes
().
size
();
i
=
i
+
DaoConst
.
CODE_UNIT
)
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/cond/SqlCondItem.java
View file @
8a8367fb
...
...
@@ -76,7 +76,7 @@ public class SqlCondItem extends SqlCondBase<SqlCondItem> {
String
fieldName
=
this
.
fields
.
isEmpty
()
?
StringHelper
.
EMPTY
:
this
.
fields
.
get
(
0
);
// 判断代码片段是否合法
if
(
sqlDataField
.
getCodes
().
size
()
%
2
==
1
)
{
throw
YzgError
.
getRuntimeException
(
"026"
,
this
.
getClass
().
getSimpleName
(),
sqlData
.
getName
(),
fieldName
);
throw
YzgError
.
getRuntimeException
(
"026"
,
this
.
getClass
().
getSimpleName
(),
sqlData
.
getName
(),
fieldName
);
}
Object
value
=
ObjectHelper
.
get
(
model
,
fieldName
);
List
list
=
ArrayHelper
.
getList
(
value
);
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
View file @
8a8367fb
...
...
@@ -171,7 +171,7 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
public
String
update
(
Object
model
)
{
String
keyString
=
this
.
getKeyString
(
model
);
if
(
StringHelper
.
isEmpty
(
keyString
))
{
throw
YzgError
.
getRuntimeException
(
"029"
,
this
.
table
.
getTable
().
getName
());
throw
YzgError
.
getRuntimeException
(
"029"
,
this
.
table
.
getTable
().
getName
());
}
this
.
check
(
DaoConst
.
OPERATOR_TYPE_UPDATE
,
keyString
,
model
);
SqlData
sqlData
=
this
.
getSql
(
DaoConst
.
UPDATE
);
...
...
@@ -866,7 +866,7 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
try
{
from
=
cls
.
newInstance
();
}
catch
(
Exception
ex
)
{
throw
YzgError
.
getRuntimeException
(
ex
,
"046"
,
cls
.
getName
());
throw
YzgError
.
getRuntimeException
(
ex
,
"046"
,
cls
.
getName
());
}
ObjectHelper
.
writeWithFrom
(
from
,
request
);
return
this
.
create
(
from
);
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
View file @
8a8367fb
...
...
@@ -792,7 +792,7 @@ public abstract class BaseDaoSql {
sb
.
append
(
"AVG"
);
break
;
default
:
throw
YzgError
.
getRuntimeException
(
"031"
,
from
.
getGroupType
());
throw
YzgError
.
getRuntimeException
(
"031"
,
from
.
getGroupType
());
}
sb
.
append
(
"( CASE WHEN "
);
sb
.
append
(
from
.
getCaseField
());
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableSqlCache.java
View file @
8a8367fb
...
...
@@ -170,7 +170,7 @@ public class TableSqlCache {
for
(
String
item
:
tableWhereField
.
getFields
())
{
String
name
=
item
.
toLowerCase
();
if
(!
sqlFieldHas
.
containsKey
(
name
))
{
throw
YzgError
.
getRuntimeException
(
"032"
,
item
,
item
);
throw
YzgError
.
getRuntimeException
(
"032"
,
sqlName
,
item
);
}
sqlFieldWhere
.
put
(
name
,
true
);
}
...
...
yzg-util-image/src/main/java/com/yanzuoguang/util/MediaHelper.java
View file @
8a8367fb
...
...
@@ -140,7 +140,7 @@ public class MediaHelper extends ImageHelper {
// 源文件判断
File
source
=
new
File
(
fromFile
);
if
(!
source
.
exists
())
{
throw
YzgError
.
getRuntimeException
(
"039"
,
fromFile
);
throw
YzgError
.
getRuntimeException
(
"039"
,
fromFile
);
}
File
target
=
new
File
(
toFile
);
if
(!
target
.
getParentFile
().
exists
())
{
...
...
@@ -163,7 +163,7 @@ public class MediaHelper extends ImageHelper {
String
suffix
=
toFile
.
substring
(
toFile
.
lastIndexOf
(
"."
)
+
1
);
getGrabberFFmpegImage
(
fromFile
,
toFile
,
suffix
,
FRAME_INDEX
);
}
catch
(
IOException
ex
)
{
throw
YzgError
.
getRuntimeException
(
ex
,
"048"
,
ex
.
getMessage
());
throw
YzgError
.
getRuntimeException
(
ex
,
"048"
,
ex
.
getMessage
());
}
}
...
...
yzg-util-print/src/main/java/com/yanzuoguang/util/PrinterHelper.java
View file @
8a8367fb
...
...
@@ -67,7 +67,7 @@ public class PrinterHelper {
try
{
pager
=
JsonHelper
.
deserialize
(
from
.
getPager
(),
PrinterPagerData
.
class
);
}
catch
(
Exception
ex
)
{
throw
YzgError
.
getRuntimeException
(
ex
,
"047"
);
throw
YzgError
.
getRuntimeException
(
ex
,
"047"
,
ex
.
getMessage
()
);
}
// 设置偏移量
pager
.
setMarginTop
(
pager
.
getMarginTop
()
+
top
);
...
...
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