Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
cdb68f95
Commit
cdb68f95
authored
May 15, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):证打印标记功能开发
parent
b369bcae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
JgUseRegistrationManage.java
...os/boot/module/jg/api/entity/JgUseRegistrationManage.java
+1
-1
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+8
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgUseRegistrationManage.java
View file @
cdb68f95
...
...
@@ -246,5 +246,5 @@ public class JgUseRegistrationManage extends BaseEntity {
* 证书是否打印标记
*/
@TableField
(
"certificate_print_tag"
)
private
JSONObject
certificatePrintTag
;
private
String
certificatePrintTag
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationManageServiceImpl.java
View file @
cdb68f95
...
...
@@ -603,9 +603,11 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
}
private
void
handleExportSummaryTable
(
HttpServletResponse
response
,
JgUseRegistrationManage
manage
)
{
JSONObject
tagJson
=
Optional
.
ofNullable
(
manage
.
getCertificatePrintTag
()).
orElse
(
new
JSONObject
());
JSONObject
tagJson
=
Optional
.
ofNullable
(
manage
.
getCertificatePrintTag
())
.
map
(
JSONObject:
:
parseObject
)
.
orElse
(
new
JSONObject
());
tagJson
.
put
(
EXPORT_SUMMARY_TABLE
,
2
);
manage
.
setCertificatePrintTag
(
tagJson
);
manage
.
setCertificatePrintTag
(
JSONObject
.
toJSONString
(
tagJson
)
);
List
<
JgUseRegistration
>
registrations
=
jgUseRegistrationService
.
getBaseMapper
().
selectList
(
new
LambdaQueryWrapper
<
JgUseRegistration
>()
.
eq
(
JgUseRegistration:
:
getUseRegistrationCode
,
manage
.
getUseRegistrationCode
())
...
...
@@ -625,7 +627,9 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
throw
new
BadRequest
(
"设备信息为空,导出失败!"
);
}
Map
<
String
,
Object
>
params
=
buildExportParams
(
manage
,
deviceList
);
JSONObject
tagJson
=
new
JSONObject
(
manage
.
getCertificatePrintTag
());
JSONObject
tagJson
=
Optional
.
ofNullable
(
manage
.
getCertificatePrintTag
())
.
map
(
JSONObject:
:
parseObject
)
.
orElse
(
new
JSONObject
());
switch
(
printType
)
{
case
CERTIFICATE_NORMAL:
//证 普打
commonService
.
generateCertificateReport
(
params
,
response
);
...
...
@@ -646,7 +650,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
default
:
throw
new
BadRequest
(
"无效的打印类型!"
);
}
manage
.
setCertificatePrintTag
(
tagJson
);
manage
.
setCertificatePrintTag
(
JSONObject
.
toJSONString
(
tagJson
)
);
}
private
Map
<
String
,
Object
>
buildExportParams
(
JgUseRegistrationManage
manage
,
List
<
JSONObject
>
deviceList
)
{
...
...
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