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
1f2c0c37
Commit
1f2c0c37
authored
Jul 01, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(tcm): 更新单位信息逻辑
- 移除了异步执行更新单位信息的代码 - 恢复了同步执行更新单位信息的逻辑 - 注释掉了获取请求上下文信息的代码
parent
52be956f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+19
-10
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 @
1f2c0c37
...
@@ -1163,14 +1163,25 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -1163,14 +1163,25 @@ public class TzBaseEnterpriseInfoServiceImpl
}
}
private
void
updateCompanyInfo
(
Map
<
String
,
Object
>
map
,
CompanyModel
updateModel
)
{
private
void
updateCompanyInfo
(
Map
<
String
,
Object
>
map
,
CompanyModel
updateModel
)
{
String
token
=
RequestContext
.
getToken
();
// String token = RequestContext.getToken();
String
appKey
=
RequestContext
.
getAppKey
();
// String appKey = RequestContext.getAppKey();
String
product
=
RequestContext
.
getProduct
();
// String product = RequestContext.getProduct();
CompletableFuture
.
runAsync
(()
->
{
// CompletableFuture.runAsync(() -> {
//
RequestContext
.
setToken
(
token
);
// RequestContext.setToken(token);
RequestContext
.
setAppKey
(
appKey
);
// RequestContext.setAppKey(appKey);
RequestContext
.
setProduct
(
product
);
// RequestContext.setProduct(product);
//
// 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("更新单位失败!");
// }
// });
HashMap
<
String
,
Object
>
parentMessage
=
(
HashMap
<
String
,
Object
>)
Privilege
.
companyClient
.
queryByOrgcode
(
String
.
valueOf
(
map
.
get
(
"superviseOrgCode"
))).
getResult
();
HashMap
<
String
,
Object
>
parentMessage
=
(
HashMap
<
String
,
Object
>)
Privilege
.
companyClient
.
queryByOrgcode
(
String
.
valueOf
(
map
.
get
(
"superviseOrgCode"
))).
getResult
();
// 目前平台返回key为compnay(存在拼写错误)
// 目前平台返回key为compnay(存在拼写错误)
...
@@ -1181,8 +1192,6 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -1181,8 +1192,6 @@ public class TzBaseEnterpriseInfoServiceImpl
log
.
error
(
"更新单位错误: {}"
,
companyResult
);
log
.
error
(
"更新单位错误: {}"
,
companyResult
);
throw
new
BadRequest
(
"更新单位失败!"
);
throw
new
BadRequest
(
"更新单位失败!"
);
}
}
});
}
}
private
void
handleUnitType
(
Map
<
String
,
Object
>
map
,
RegUnitInfo
regUnitInfo
,
AgencyUserModel
agencyUserModel
)
{
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