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
1010d970
Commit
1010d970
authored
Jul 30, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(编辑企业信息): 新增手动刷新用户组的接口
parent
af8851e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+6
-2
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+7
-0
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 @
1010d970
...
...
@@ -1080,6 +1080,7 @@ public class TzBaseEnterpriseInfoServiceImpl
@Override
public
TzBaseEnterpriseInfoDto
updateCompanyInfoById
(
Map
<
String
,
Object
>
map
,
ReginParams
reginParams
)
{
log
.
info
(
"根据ID修改企业信息 => {}, 更新人 => {}"
,
map
,
RequestContext
.
getExeUserId
());
RegUnitInfo
olrRegUnitInfo
=
new
RegUnitInfo
();
try
{
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
new
TzBaseEnterpriseInfo
();
tzBaseEnterpriseInfo
.
setSequenceNbr
(
Long
.
valueOf
(
map
.
get
(
"sequenceNbr"
).
toString
()));
...
...
@@ -1138,6 +1139,7 @@ public class TzBaseEnterpriseInfoServiceImpl
if
(
ValidationUtil
.
isEmpty
(
regUnitInfo
))
{
throw
new
BadRequest
(
"未找到单位注册信息"
);
}
BeanUtils
.
copyProperties
(
regUnitInfo
,
olrRegUnitInfo
);
FeignClientResult
<
AgencyUserModel
>
userResult
=
Privilege
.
agencyUserClient
.
queryByUserId
(
regUnitInfo
.
getAdminUserId
());
AgencyUserModel
agencyUserModel
=
Optional
.
ofNullable
(
userResult
).
map
(
FeignClientResult:
:
getResult
).
orElse
(
null
);
if
(
ValidationUtil
.
isEmpty
(
agencyUserModel
))
{
...
...
@@ -1158,7 +1160,7 @@ public class TzBaseEnterpriseInfoServiceImpl
// -- 20250627 调整为监管单位不能修改工商信息和资质
regUnitInfoService
.
updateBySeq
(
regUnitInfo
);
// 企业信息变更-同步修改企业下人员绑定设备类型
ArrayList
<
String
>
newData
=
new
ArrayList
<>();
JSONArray
objects
=
JSON
.
parseArray
(
tzBaseEnterpriseInfo
.
getEquipCategory
());
...
...
@@ -1186,7 +1188,6 @@ public class TzBaseEnterpriseInfoServiceImpl
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
=
new
TzBaseEnterpriseInfoDto
();
BeanUtils
.
copyProperties
(
tzBaseEnterpriseInfo
,
tzBaseEnterpriseInfoDto
);
// 更新完成后清理缓存
regUnitInfoService
.
updateById
(
regUnitInfo
);
redisUtil
.
del
(
RedisKey
.
buildReginRoleKey
(
agencyUserModel
.
getUserId
()));
publisher
.
publish
(
new
DataRefreshEvent
(
this
,
Collections
.
singletonList
(
tzBaseEnterpriseInfo
.
getSequenceNbr
()
+
""
),
DataRefreshEvent
.
DataType
.
enterprise
.
name
(),
DataRefreshEvent
.
Operation
.
UPDATE
));
return
tzBaseEnterpriseInfoDto
;
...
...
@@ -1194,6 +1195,9 @@ public class TzBaseEnterpriseInfoServiceImpl
return
null
;
}
}
catch
(
Exception
e
)
{
if
(!
ValidationUtil
.
isEmpty
(
olrRegUnitInfo
))
{
regUnitInfoService
.
updateBySeq
(
olrRegUnitInfo
);
}
log
.
error
(
"更新企业信息失败: "
,
e
);
throw
new
BadRequest
(
"更新企业信息失败!"
);
}
...
...
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 @
1010d970
...
...
@@ -64,6 +64,7 @@ import org.springframework.mock.web.MockMultipartFile;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.client.RestTemplate
;
...
...
@@ -1182,4 +1183,9 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
public
JSONArray
queryUnitType
(
String
type
)
{
return
UnitTypeNewEnum
.
getUnitTypeByLabel
(
type
);
}
@Transactional
(
rollbackFor
=
Exception
.
class
,
propagation
=
Propagation
.
REQUIRES_NEW
)
public
void
updateBySeq
(
RegUnitInfo
regUnitInfo
)
{
this
.
updateById
(
regUnitInfo
);
}
}
\ No newline at end of file
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