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
ec2ed9e8
Commit
ec2ed9e8
authored
Jul 01, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(amos-boot-module-tcm): 优化更新单位信息逻辑- 移除了冗余的异步执行代码
- 简化了公司信息更新流程,直接使用 updateCompanyType 接口- 注释掉了未使用的父级公司查询和更新代码
parent
775b2361
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+5
-19
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 @
ec2ed9e8
...
...
@@ -1163,14 +1163,11 @@ public class TzBaseEnterpriseInfoServiceImpl
}
private
void
updateCompanyInfo
(
Map
<
String
,
Object
>
map
,
CompanyModel
updateModel
)
{
// String token = RequestContext.getToken();
// String appKey = RequestContext.getAppKey();
// String product = RequestContext.getProduct();
// CompletableFuture.runAsync(() -> {
//
// RequestContext.setToken(token);
// RequestContext.setAppKey(appKey);
// RequestContext.setProduct(product);
FeignClientResult
<
CompanyModel
>
companyResult
=
Privilege
.
companyClient
.
updateCompanyType
(
updateModel
.
getCompanyCode
(),
updateModel
.
getCompanyType
());
if
(
companyResult
==
null
||
companyResult
.
getStatus
()
!=
200
)
{
log
.
error
(
"更新单位错误: {}"
,
companyResult
);
throw
new
BadRequest
(
"更新单位失败!"
);
}
//
// HashMap<String, Object> parentMessage = (HashMap<String, Object>) Privilege.companyClient.queryByOrgcode(String.valueOf(map.get("superviseOrgCode"))).getResult();
// // 目前平台返回key为compnay(存在拼写错误)
...
...
@@ -1181,17 +1178,6 @@ public class TzBaseEnterpriseInfoServiceImpl
// log.error("更新单位错误: {}", companyResult);
// throw new BadRequest("更新单位失败!");
// }
// });
HashMap
<
String
,
Object
>
parentMessage
=
(
HashMap
<
String
,
Object
>)
Privilege
.
companyClient
.
queryByOrgcode
(
String
.
valueOf
(
map
.
get
(
"superviseOrgCode"
))).
getResult
();
// 目前平台返回key为compnay(存在拼写错误)
CompanyModel
parentModel
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
parentMessage
.
get
(
"compnay"
)),
CompanyModel
.
class
);
updateModel
.
setParentId
(
parentModel
.
getSequenceNbr
());
FeignClientResult
<
CompanyModel
>
companyResult
=
Privilege
.
companyClient
.
update
(
updateModel
,
updateModel
.
getSequenceNbr
());
if
(
companyResult
==
null
||
companyResult
.
getStatus
()
!=
200
)
{
log
.
error
(
"更新单位错误: {}"
,
companyResult
);
throw
new
BadRequest
(
"更新单位失败!"
);
}
}
private
void
handleUnitType
(
Map
<
String
,
Object
>
map
,
RegUnitInfo
regUnitInfo
,
AgencyUserModel
agencyUserModel
)
{
...
...
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