Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
certificate-print
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
廖旭伟
certificate-print
Commits
c4f1b7ef
Commit
c4f1b7ef
authored
Oct 27, 2022
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
终端打印文件查询接口bug修改,打印成功后记录打印次数
parent
32bd3ce7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
certificate-manager/src/main/java/com/mortals/xhx/module/certificate/web/CertificatePrintController.java
...hx/module/certificate/web/CertificatePrintController.java
+4
-2
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/PrintWaitQueueServiceImpl.java
...module/record/service/impl/PrintWaitQueueServiceImpl.java
+12
-0
No files found.
certificate-manager/src/main/java/com/mortals/xhx/module/certificate/web/CertificatePrintController.java
View file @
c4f1b7ef
...
...
@@ -153,13 +153,15 @@ public class CertificatePrintController extends BaseJsonBodyController {
CertificateCatalogEntity
catalogEntity
=
new
CertificateCatalogEntity
();
catalogEntity
.
setClassifyId
(
pdu
.
getClassifyId
());
List
<
CertificateCatalogEntity
>
clist
=
certificateCatalogService
.
find
(
catalogEntity
);
List
<
Long
>
cIdList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
clist
)){
List
<
Long
>
cIdList
=
new
ArrayList
<>();
for
(
CertificateCatalogEntity
entity:
clist
){
cIdList
.
add
(
entity
.
getId
());
}
query
.
setCatalogIdList
(
cIdList
);
}
else
{
cIdList
.
add
(-
1
l
);
}
query
.
setCatalogIdList
(
cIdList
);
List
<
PrintWaitQueueEntity
>
list
=
printWaitQueueService
.
find
(
query
);
model
.
put
(
"data"
,
list
);
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
...
...
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/PrintWaitQueueServiceImpl.java
View file @
c4f1b7ef
...
...
@@ -4,7 +4,9 @@ import com.mortals.framework.util.HttpUtil;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.module.certificate.model.CertificateCatalogEntity
;
import
com.mortals.xhx.module.certificate.model.CertificateClassifyEntity
;
import
com.mortals.xhx.module.certificate.model.CertificateClassifyQuery
;
import
com.mortals.xhx.module.certificate.service.CertificateCatalogService
;
import
com.mortals.xhx.module.certificate.service.CertificateClassifyService
;
import
com.mortals.xhx.module.record.dao.PrintLogDao
;
import
com.mortals.xhx.module.record.dao.RetainLogDao
;
import
com.mortals.xhx.module.record.model.ApplyLogEntity
;
...
...
@@ -52,6 +54,8 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
private
RetainLogDao
retainLogDao
;
@Autowired
private
CertificateCatalogService
certificateCatalogService
;
@Autowired
private
CertificateClassifyService
certificateClassifyService
;
@Override
protected
void
findAfter
(
PrintWaitQueueEntity
entity
,
Context
context
,
List
<
PrintWaitQueueEntity
>
list
)
throws
AppException
{
...
...
@@ -199,5 +203,13 @@ public class PrintWaitQueueServiceImpl extends AbstractCRUDServiceImpl<PrintWait
printLogEntity
.
setPrintStatus
(
PrintStatus
.
SUCCESS
.
getValue
());
retainLogDao
.
insert
(
retainLogEntity
);
printLogDao
.
insert
(
printLogEntity
);
CertificateCatalogEntity
catalogEntity
=
certificateCatalogService
.
get
(
waitQueueEntity
.
getCatalogId
());
CertificateClassifyQuery
query
=
new
CertificateClassifyQuery
();
query
.
setId
(
catalogEntity
.
getClassifyId
());
query
.
setTotalIncrement
(
1
);
query
.
setUpdateTime
(
now
);
certificateClassifyService
.
update
(
query
);
}
}
\ No newline at end of file
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