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
f63215e5
Commit
f63215e5
authored
Jul 01, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tcm): 更新企业注册逻辑
- 修改了企业类型判断逻辑,改为全部企业类型生成对接数据账号 - 添加了同步平台ORG_CODE的方法 - 优化了代码结构,提高了可读性和可维护性
parent
2aefe430
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+12
-3
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+3
-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 @
f63215e5
...
...
@@ -1193,6 +1193,7 @@ public class TzBaseEnterpriseInfoServiceImpl
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
=
new
TzBaseEnterpriseInfoDto
();
BeanUtils
.
copyProperties
(
tzBaseEnterpriseInfo
,
tzBaseEnterpriseInfoDto
);
redisUtil
.
del
(
RedisKey
.
buildReginRoleKey
(
agencyUserModel
.
getUserId
()));
this
.
asyncPlatformCompany
(
map
,
agencyUserModel
);
return
tzBaseEnterpriseInfoDto
;
}
else
{
return
null
;
...
...
@@ -1237,9 +1238,11 @@ public class TzBaseEnterpriseInfoServiceImpl
regUnitInfo
.
setUnitTypeCode
(
unitTypeCodesStr
);
// 省内充装单位1231:生成对接数据账号
final
String
FILLING_UNIT_TYPE
=
RegUnitInfoServiceImpl
.
FILLING_UNIT_TYPE
;
if
(
unitTypeCodes
.
contains
(
FILLING_UNIT_TYPE
)
&&
(
ValidationUtil
.
isEmpty
(
regUnitInfo
.
getIsNationwide
())
||
"0"
.
equals
(
regUnitInfo
.
getIsNationwide
())))
{
// final String FILLING_UNIT_TYPE = RegUnitInfoServiceImpl.FILLING_UNIT_TYPE;
// 20250701 改为全部企业类型生成对接数据账号@tianbo
if
(
ValidationUtil
.
isEmpty
(
regUnitInfo
.
getIsNationwide
())
||
"0"
.
equals
(
regUnitInfo
.
getIsNationwide
()))
{
// if (unitTypeCodes.contains(FILLING_UNIT_TYPE)
// && (ValidationUtil.isEmpty(regUnitInfo.getIsNationwide()) || "0".equals(regUnitInfo.getIsNationwide()))) {
if
(
ValidationUtil
.
isEmpty
(
regUnitInfo
.
getAppId
()))
{
String
appId
=
DesUtil
.
encode
(
regUnitInfo
.
getAdminUserId
(),
RegUnitInfoServiceImpl
.
SECRETKEY
);
...
...
@@ -1307,4 +1310,10 @@ public class TzBaseEnterpriseInfoServiceImpl
throw
new
BadRequest
(
"单位更新失败"
);
}
}
private
void
asyncPlatformCompany
(
Map
<
String
,
Object
>
map
,
AgencyUserModel
agencyUserModel
)
{
// 同步平台ORG_CODE
System
.
out
.
println
(
map
);
// Privilege.companyClient.update();
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
f63215e5
...
...
@@ -819,7 +819,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
String
adminUserId
=
userResult
.
getResult
().
getUserId
();
// 省内充装单位1231:生成对接数据账号
if
(
Arrays
.
asList
(
units
).
contains
(
FILLING_UNIT_TYPE
)
&&
(
ValidationUtil
.
isEmpty
(
regUnitInfo
.
getIsNationwide
())
||
"0"
.
equals
(
regUnitInfo
.
getIsNationwide
())))
{
// if (Arrays.asList(units).contains(FILLING_UNIT_TYPE) && (ValidationUtil.isEmpty(regUnitInfo.getIsNationwide()) || "0".equals(regUnitInfo.getIsNationwide()))) {
// 20250701 改为全部企业类型生成对接数据账号@tianbo
if
(
ValidationUtil
.
isEmpty
(
regUnitInfo
.
getIsNationwide
())
||
"0"
.
equals
(
regUnitInfo
.
getIsNationwide
()))
{
AgencyUserModel
shadowUser
=
new
AgencyUserModel
();
shadowUser
.
setUserId
(
adminUserId
);
String
appId
=
DesUtil
.
encode
(
adminUserId
,
SECRETKEY
);
...
...
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