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
c43511be
Commit
c43511be
authored
Jul 31, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/first' into first
parents
cd56ea0e
38ee89a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
one-certificate-manager/src/main/java/com/mortals/xhx/module/child/service/impl/ChildLicenseServiceImpl.java
...hx/module/child/service/impl/ChildLicenseServiceImpl.java
+5
-3
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
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/ApplyLogController.java
...com/mortals/xhx/module/record/web/ApplyLogController.java
+2
-1
No files found.
one-certificate-manager/src/main/java/com/mortals/xhx/module/child/service/impl/ChildLicenseServiceImpl.java
View file @
c43511be
...
...
@@ -69,9 +69,10 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens
this
.
update
(
oldChildList
);
}
if
(
isAdd
)
{
List
<
CertificateChildEntity
>
childEntityList
=
certificateChildService
.
find
(
new
CertificateChildQuery
().
catalogId
(
applyLogEntity
.
getCatalogId
()));
List
<
Long
>
documentIdList
=
childEntityList
.
stream
().
map
(
CertificateChildEntity:
:
getDocumentId
).
collect
(
Collectors
.
toList
());
List
<
CertificateDocumentEntity
>
documentEntityList
=
certificateDocumentService
.
find
(
new
CertificateDocumentQuery
().
idList
(
documentIdList
).
status
(
StatusEnum
.
ENABLE
.
getValue
()));
// List<CertificateChildEntity> childEntityList = certificateChildService.find(new CertificateChildQuery().catalogId(applyLogEntity.getCatalogId()));
// List<Long> documentIdList = childEntityList.stream().map(CertificateChildEntity::getDocumentId).collect(Collectors.toList());
//
List
<
CertificateDocumentEntity
>
documentEntityList
=
certificateDocumentService
.
find
(
new
CertificateDocumentQuery
().
status
(
StatusEnum
.
ENABLE
.
getValue
()));
if
(
CollectionUtils
.
isNotEmpty
(
documentEntityList
))
{
List
<
ChildLicenseEntity
>
childLicense
=
new
ArrayList
<>();
for
(
CertificateDocumentEntity
item
:
documentEntityList
)
{
...
...
@@ -96,6 +97,7 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens
entity
.
setLicensedItems
(
applyLogEntity
.
getLicenseProject
());
entity
.
setFormStyleContent
(
item
.
getTemplateContent
());
entity
.
setFormContent
(
item
.
getFormContent
());
entity
.
setShortName
(
item
.
getShortName
());
entity
.
setProcessStatus
(
ProcessStatusEnum
.
未处理
.
getValue
());
entity
.
setCreateTime
(
applyLogEntity
.
getCreateTime
());
entity
.
setCreateUserId
(
applyLogEntity
.
getCreateUserId
());
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
c43511be
...
...
@@ -183,9 +183,10 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
// if(StringUtils.isEmpty(entity.getAuthority())){
// throw new AppException("制证机关不能为空");
// }
// if(StringUtils.isEmpty(entity.getSocialCode())){
// throw new AppException("统一社会信用代码不能为空");
// }
if
(
StringUtils
.
isEmpty
(
entity
.
getSocialCode
())){
entity
.
setSocialCode
(
DateUtils
.
getCurrDateTime
(
"yyyyMMddHHmmss"
)+
RandomUtil
.
randomNumbers
(
4
));
//throw new AppException("统一社会信用代码不能为空");
}
// if(StringUtils.isEmpty(entity.getLicenseProject())){
// throw new AppException("许可项目不能为空");
// }
...
...
@@ -237,7 +238,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
try
{
String
rootPath
=
this
.
filePath
.
endsWith
(
"/"
)
?
this
.
filePath
:
this
.
filePath
+
"/"
;
String
filePath
=
rootPath
+
"certificate/qrcode/"
;
String
qrcodeName
=
applyLogEntity
.
get
Certificate
Code
()
+
".png"
;
String
qrcodeName
=
applyLogEntity
.
get
Social
Code
()
+
".png"
;
File
pathDir
=
new
File
(
filePath
);
if
(!
pathDir
.
exists
())
{
pathDir
.
mkdirs
();
...
...
one-certificate-manager/src/main/java/com/mortals/xhx/module/record/web/ApplyLogController.java
View file @
c43511be
...
...
@@ -175,7 +175,7 @@ public class ApplyLogController extends BaseCRUDJsonBodyMappingController<ApplyL
public
String
get
(
@PathVariable
(
value
=
"socialCode"
)
String
socialCode
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
if
(
StringUtils
.
isEmpty
(
socialCode
))
{
return
this
.
createFailJsonResp
(
"
许可证
编码不正确"
);
return
this
.
createFailJsonResp
(
"
信用
编码不正确"
);
}
else
{
JSONObject
ret
=
new
JSONObject
();
String
busiDesc
=
"扫码查看"
+
this
.
getModuleDesc
();
...
...
@@ -199,6 +199,7 @@ public class ApplyLogController extends BaseCRUDJsonBodyMappingController<ApplyL
this
.
init
(
model
,
context
);
ret
.
put
(
"code"
,
1
);
ret
.
put
(
"systemDate"
,
new
Date
());
ret
.
put
(
"msg"
,
model
.
remove
(
"message_info"
));
ret
.
put
(
"dict"
,
model
.
remove
(
"dict"
));
return
ret
.
toJSONString
();
...
...
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