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
57ef45bb
Commit
57ef45bb
authored
Dec 09, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):企业资质维护不填写资质信息报未知错误
parent
f0f2fecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+15
-8
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
57ef45bb
...
...
@@ -713,14 +713,21 @@ public class TzBaseEnterpriseInfoServiceImpl
private
void
saveLicenceData
(
Map
<
String
,
Object
>
map
)
{
List
<
BaseUnitLicence
>
licences
=
Lists
.
newArrayList
();
List
<
DataDictionary
>
dictionaries
=
regUnitInfoService
.
initAllDataDictionaryList
();
JSON
.
parseArray
(
JSON
.
toJSONString
(
map
.
get
(
"unitLicences"
))).
forEach
(
obj
->
{
BaseUnitLicence
baseUnitLicence
=
JSON
.
toJavaObject
((
JSONObject
)
obj
,
BaseUnitLicence
.
class
);
baseUnitLicence
.
setUnitCode
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"useCode"
))
?
null
:
(
String
)
map
.
get
(
"useCode"
));
baseUnitLicence
.
setUnitName
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"useUnit"
))
?
null
:
(
String
)
map
.
get
(
"useUnit"
));
// 处理许可字典值对应名称
handleDictName
(
baseUnitLicence
,
dictionaries
);
licences
.
add
(
baseUnitLicence
);
});
Object
unitLicences
=
map
.
get
(
"unitLicences"
);
if
(
unitLicences
instanceof
Collection
&&
!((
Collection
<?>)
unitLicences
).
isEmpty
())
{
JSON
.
parseArray
(
JSON
.
toJSONString
(
unitLicences
)).
forEach
(
obj
->
{
BaseUnitLicence
baseUnitLicence
=
JSON
.
toJavaObject
((
JSONObject
)
obj
,
BaseUnitLicence
.
class
);
if
(
ObjectUtils
.
isEmpty
(
baseUnitLicence
.
getLicAddress
()))
{
throw
new
IllegalArgumentException
(
"许可地址不能为空!"
);
}
baseUnitLicence
.
setUnitCode
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"useCode"
))
?
null
:
(
String
)
map
.
get
(
"useCode"
));
baseUnitLicence
.
setUnitName
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"useUnit"
))
?
null
:
(
String
)
map
.
get
(
"useUnit"
));
// 处理许可字典值对应名称
handleDictName
(
baseUnitLicence
,
dictionaries
);
// 添加到结果集合
licences
.
add
(
baseUnitLicence
);
});
}
if
(!
ValidationUtil
.
isEmpty
(
licences
)){
baseUnitLicenceService
.
saveOrUpdateBatch
(
licences
);
}
...
...
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