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
8eb48528
Commit
8eb48528
authored
Dec 18, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm): 优化企业信息更新逻辑
- 增加核准日期的空值校验与解析异常处理 - 完善经营状态字段的字典查询条件判断
parent
af7e6e8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+9
-6
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 @
8eb48528
...
...
@@ -762,7 +762,6 @@ public class TzBaseEnterpriseInfoServiceImpl
}
tzBaseEnterpriseInfo
.
setCommunity
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"community"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"community"
)));
tzBaseEnterpriseInfo
.
setStreet
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"street"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"street"
)));
// tzBaseEnterpriseInfo.setAddress(ObjectUtils.isEmpty(map.get("regAddress")) ? null : String.valueOf(map.get("regAddress")));
tzBaseEnterpriseInfo
.
setLegalPerson
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"legalPerson"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"legalPerson"
)));
regUnitIc
.
setIndustryName
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"industryName"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"industryName"
)));
DataDictionary
regOrganCodeDict
=
iDataDictionaryService
.
getByCode
(
String
.
valueOf
(
map
.
get
(
"registeredOrganCode"
)),
"DJJG"
);
...
...
@@ -770,14 +769,18 @@ public class TzBaseEnterpriseInfoServiceImpl
regUnitIc
.
setRegisteredOrganCode
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"registeredOrganCode"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"registeredOrganCode"
)));
Date
approvedDate
;
try
{
approvedDate
=
DateUtils
.
dateParse
(
String
.
valueOf
(
map
.
get
(
"approvedDate"
)),
"yyyy-MM-dd"
);
if
(!
ValidationUtil
.
isEmpty
(
map
.
get
(
"approvedDate"
)))
{
approvedDate
=
DateUtils
.
dateParse
(
String
.
valueOf
(
map
.
get
(
"approvedDate"
)),
"yyyy-MM-dd"
);
regUnitIc
.
setApprovedDate
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"approvedDate"
))
?
null
:
approvedDate
);
}
}
catch
(
ParseException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
BadRequest
(
"请核对核准时间"
);
}
regUnitIc
.
setBusinessStateCode
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"businessState"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"businessState"
)));
DataDictionary
businessStateDict
=
iDataDictionaryService
.
getByCode
(
String
.
valueOf
(
map
.
get
(
"businessState"
)),
"jyzt"
);
regUnitIc
.
setBusinessState
(
ObjectUtils
.
isEmpty
(
businessStateDict
)
?
null
:
businessStateDict
.
getName
());
regUnitIc
.
setApprovedDate
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"approvedDate"
))
?
null
:
approvedDate
);
if
(!
ValidationUtil
.
isEmpty
(
map
.
get
(
"businessState"
)))
{
DataDictionary
businessStateDict
=
iDataDictionaryService
.
getByCode
(
String
.
valueOf
(
map
.
get
(
"businessState"
)),
"jyzt"
);
regUnitIc
.
setBusinessState
(
ObjectUtils
.
isEmpty
(
businessStateDict
)
?
null
:
businessStateDict
.
getName
());
}
regUnitIcService
.
update
(
regUnitIc
,
new
QueryWrapper
<
RegUnitIc
>().
eq
(
"unit_code"
,
regUnitIcDto
.
getUnitCode
()));
}
...
...
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