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
0c8e7dd4
Commit
0c8e7dd4
authored
May 11, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化证照目录获取方式
parent
76cca374
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
certificate-manager/src/main/java/com/mortals/xhx/module/mid/web/DataInterfaceController.java
...m/mortals/xhx/module/mid/web/DataInterfaceController.java
+1
-1
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/ApplyLogService.java
...om/mortals/xhx/module/record/service/ApplyLogService.java
+2
-2
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
...s/xhx/module/record/service/impl/ApplyLogServiceImpl.java
+9
-2
No files found.
certificate-manager/src/main/java/com/mortals/xhx/module/mid/web/DataInterfaceController.java
View file @
0c8e7dd4
...
...
@@ -146,7 +146,7 @@ public class DataInterfaceController extends BaseJsonBodyController {
//二维码地址
formContentJson
.
put
(
"@qrcode_1_二维码"
,
""
);
applyLogPdu
.
setFormContent
(
formContentJson
.
toJSONString
());
applyLogService
.
midSaveApplyLog
(
applyLogPdu
,
1
l
);
applyLogService
.
midSaveApplyLog
(
applyLogPdu
,
"食品经营许可证"
);
ret
.
put
(
"data"
,
applyLogPdu
);
model
.
put
(
"message_info"
,
"生成证照成功"
);
}
...
...
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/ApplyLogService.java
View file @
0c8e7dd4
...
...
@@ -62,8 +62,8 @@ public interface ApplyLogService extends ICRUDService<ApplyLogEntity,Long>{
/***
* 微中台接口数据转存
* @param pdu
* @param classify
Id
* @param classify
Name
* @throws AppException
*/
void
midSaveApplyLog
(
ApplyLogPdu
pdu
,
Long
classifyId
)
throws
AppException
;
void
midSaveApplyLog
(
ApplyLogPdu
pdu
,
String
classifyName
)
throws
AppException
;
}
\ No newline at end of file
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
0c8e7dd4
...
...
@@ -25,6 +25,7 @@ import com.mortals.xhx.common.utils.*;
import
com.mortals.xhx.module.certificate.model.CertificateCatalogEntity
;
import
com.mortals.xhx.module.certificate.model.CertificateCatalogQuery
;
import
com.mortals.xhx.module.certificate.model.CertificateClassifyEntity
;
import
com.mortals.xhx.module.certificate.model.CertificateClassifyQuery
;
import
com.mortals.xhx.module.certificate.pdu.ApplyLogPdu
;
import
com.mortals.xhx.module.certificate.service.CertificateCatalogService
;
import
com.mortals.xhx.module.certificate.service.CertificateClassifyService
;
...
...
@@ -84,6 +85,8 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
@Autowired
private
UserService
userService
;
@Autowired
private
CertificateClassifyService
certificateClassifyService
;
@Override
protected
ApplyLogEntity
findBefore
(
ApplyLogEntity
entity
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
...
...
@@ -570,8 +573,12 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
}
@Override
public
void
midSaveApplyLog
(
ApplyLogPdu
pdu
,
Long
classifyId
)
throws
AppException
{
List
<
CertificateCatalogEntity
>
catalogEntityList
=
this
.
certificateCatalogService
.
find
(
new
CertificateCatalogQuery
().
classifyId
(
classifyId
));
public
void
midSaveApplyLog
(
ApplyLogPdu
pdu
,
String
classifyName
)
throws
AppException
{
CertificateClassifyEntity
certificateClassifyEntity
=
certificateClassifyService
.
selectOne
(
new
CertificateClassifyQuery
().
classifyName
(
classifyName
));
if
(
certificateClassifyEntity
==
null
){
throw
new
AppException
(
"证照类型名称不正确"
);
}
List
<
CertificateCatalogEntity
>
catalogEntityList
=
this
.
certificateCatalogService
.
find
(
new
CertificateCatalogQuery
().
classifyId
(
certificateClassifyEntity
.
getId
()));
if
(
CollectionUtils
.
isNotEmpty
(
catalogEntityList
)){
for
(
CertificateCatalogEntity
catalogEntity:
catalogEntityList
){
ApplyLogEntity
entity
=
new
ApplyLogEntity
();
...
...
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