Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
one-certificate-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
one-certificate-system
Commits
28d9c9cd
Commit
28d9c9cd
authored
Jul 31, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/first' into first
parents
ffcbecb1
a2c980d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
...s/xhx/module/record/service/impl/ApplyLogServiceImpl.java
+5
-4
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
28d9c9cd
...
@@ -168,9 +168,10 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -168,9 +168,10 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
@Override
@Override
protected
void
validData
(
ApplyLogEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
validData
(
ApplyLogEntity
entity
,
Context
context
)
throws
AppException
{
// if(StringUtils.isEmpty(entity.getCertificateCode())){
if
(
StringUtils
.
isEmpty
(
entity
.
getCertificateCode
())){
// throw new AppException("许可证编号不能为空");
entity
.
setCertificateCode
(
DateUtils
.
getCurrDateTime
(
"yyyyMMddHHmmss"
)+
RandomUtil
.
randomNumbers
(
4
));
// }
//throw new AppException("许可证编号不能为空");
}
// if(entity.getIssueTime()==null){
// if(entity.getIssueTime()==null){
// throw new AppException("制证时间不能为空");
// throw new AppException("制证时间不能为空");
// }
// }
...
@@ -478,7 +479,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -478,7 +479,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
// QrCodeUtil.generateQrCodeFile(entry.getValue().toString(),imagepath);
// QrCodeUtil.generateQrCodeFile(entry.getValue().toString(),imagepath);
String
imagepath
=
rootPath
+
docTemplate
.
getQrCode
();
String
imagepath
=
rootPath
+
docTemplate
.
getQrCode
();
PictureRenderData
pictureRenderData
=
Pictures
.
ofStream
(
new
FileInputStream
(
imagepath
),
PictureType
.
PNG
)
PictureRenderData
pictureRenderData
=
Pictures
.
ofStream
(
new
FileInputStream
(
imagepath
),
PictureType
.
PNG
)
.
size
(
1
50
,
15
0
).
create
();
.
size
(
1
00
,
10
0
).
create
();
addMap
.
put
(
StrUtil
.
removePrefixIgnoreCase
(
entry
.
getKey
(),
"@"
),
pictureRenderData
);
addMap
.
put
(
StrUtil
.
removePrefixIgnoreCase
(
entry
.
getKey
(),
"@"
),
pictureRenderData
);
//entry.setValue(pictureRenderData);
//entry.setValue(pictureRenderData);
}
catch
(
FileNotFoundException
e
)
{
}
catch
(
FileNotFoundException
e
)
{
...
...
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