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
44a233f1
Commit
44a233f1
authored
Jul 11, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(tcm): 修复企业信息更新逻辑并添加数据刷新事件
- 修复了企业管辖机构代码更新的比较逻辑 - 在企业信息更新后添加了数据刷新事件发布
parent
c3838953
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+2
-1
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 @
44a233f1
...
...
@@ -1405,7 +1405,7 @@ public class TzBaseEnterpriseInfoServiceImpl
String
oldSuperviseOrgCode
=
tzBaseEnterpriseInfo
.
getSuperviseOrgCode
();
String
newSuperviseOrgCode
=
companyModel
.
getOrgCode
().
replace
(
"*"
+
companyModel
.
getCompanyOrgCode
(),
""
);
// 更新 tz_base_enterprise_info。只有管辖机构有改动才更新
if
(!
new
SuperviseOrgCode
.
equals
(
oldSupervise
OrgCode
))
{
if
(!
new
OrgCode
.
equals
(
old
OrgCode
))
{
HashMap
<
String
,
Object
>
parentMessage
=
(
HashMap
<
String
,
Object
>)
Privilege
.
companyClient
.
queryByOrgcode
(
newSuperviseOrgCode
).
getResult
();
// 目前平台返回key为compnay(存在拼写错误)
CompanyModel
parentModel
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
parentMessage
.
get
(
"compnay"
)),
CompanyModel
.
class
);
...
...
@@ -1425,5 +1425,6 @@ public class TzBaseEnterpriseInfoServiceImpl
public
void
updateUnitOrgCode
(
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
,
CompanyModel
parentModel
,
String
oldSuperviseOrgCode
,
String
newSuperviseOrgCode
,
String
oldOrgCode
,
String
newOrgCode
)
{
tzBaseEnterpriseInfoMapper
.
updateSubCompanyOrgCode
(
parentModel
.
getCompanyName
(),
oldSuperviseOrgCode
,
newSuperviseOrgCode
,
oldOrgCode
,
newOrgCode
,
tzBaseEnterpriseInfo
.
getSequenceNbr
());
tzBaseEnterpriseInfoMapper
.
updateUnitOrgCode
(
oldOrgCode
,
newOrgCode
);
publisher
.
publish
(
new
DataRefreshEvent
(
this
,
Collections
.
singletonList
(
tzBaseEnterpriseInfo
.
getSequenceNbr
()
+
""
),
DataRefreshEvent
.
DataType
.
enterprise
.
name
(),
DataRefreshEvent
.
Operation
.
UPDATE
));
}
}
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