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
76cca374
Commit
76cca374
authored
May 11, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加证照编号校验避免重复申请
parent
60a91d94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
certificate-manager/src/main/java/com/mortals/xhx/module/mid/web/DataInterfaceController.java
...m/mortals/xhx/module/mid/web/DataInterfaceController.java
+7
-2
No files found.
certificate-manager/src/main/java/com/mortals/xhx/module/mid/web/DataInterfaceController.java
View file @
76cca374
...
@@ -15,7 +15,10 @@ import com.mortals.xhx.module.certificate.model.CertificateCatalogQuery;
...
@@ -15,7 +15,10 @@ import com.mortals.xhx.module.certificate.model.CertificateCatalogQuery;
import
com.mortals.xhx.module.certificate.pdu.ApplyLogPdu
;
import
com.mortals.xhx.module.certificate.pdu.ApplyLogPdu
;
import
com.mortals.xhx.module.certificate.service.CertificateCatalogService
;
import
com.mortals.xhx.module.certificate.service.CertificateCatalogService
;
import
com.mortals.xhx.module.mid.pdu.*
;
import
com.mortals.xhx.module.mid.pdu.*
;
import
com.mortals.xhx.module.record.model.ApplyLogEntity
;
import
com.mortals.xhx.module.record.model.ApplyLogQuery
;
import
com.mortals.xhx.module.record.service.ApplyLogService
;
import
com.mortals.xhx.module.record.service.ApplyLogService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang.StringEscapeUtils
;
import
org.apache.commons.lang.StringEscapeUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -38,8 +41,6 @@ public class DataInterfaceController extends BaseJsonBodyController {
...
@@ -38,8 +41,6 @@ public class DataInterfaceController extends BaseJsonBodyController {
private
IMidFeign
iMidFeign
;
private
IMidFeign
iMidFeign
;
@Autowired
@Autowired
private
ApplyLogService
applyLogService
;
private
ApplyLogService
applyLogService
;
@Autowired
private
CertificateCatalogService
certificateCatalogService
;
@PostMapping
({
"certificate/spjyxkz"
})
@PostMapping
({
"certificate/spjyxkz"
})
@UnAuth
@UnAuth
...
@@ -49,6 +50,10 @@ public class DataInterfaceController extends BaseJsonBodyController {
...
@@ -49,6 +50,10 @@ public class DataInterfaceController extends BaseJsonBodyController {
byte
code
=
1
;
byte
code
=
1
;
String
busiDesc
=
"调用微中台接口生成证照"
;
String
busiDesc
=
"调用微中台接口生成证照"
;
try
{
try
{
List
<
ApplyLogEntity
>
applyLogEntities
=
applyLogService
.
find
(
new
ApplyLogQuery
().
certificateCode
(
midCertificatePdu
.
getCertificateNumber
()));
if
(
CollectionUtils
.
isNotEmpty
(
applyLogEntities
)){
throw
new
AppException
(
"系统已存在编号:"
+
midCertificatePdu
.
getCertificateNumber
()+
"的证照信息"
);
}
MidReq
midReq
=
new
MidReq
();
MidReq
midReq
=
new
MidReq
();
midReq
.
setMethod
(
"get"
);
midReq
.
setMethod
(
"get"
);
midReq
.
setType
(
1
);
midReq
.
setType
(
1
);
...
...
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