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
259dc624
Commit
259dc624
authored
May 13, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actorref(amos-boot-module-jg): 优化使用单位信息获取逻辑
- 在 getUnitListByType 方法中增加对 "use" 类型的特殊处理 - 当 type 为 "use" 时,直接返回空列表,不暴露使用单位信息 - 调整代码结构,提高可读性和维护性
parent
873ce1a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
259dc624
...
...
@@ -827,10 +827,12 @@ public class CommonServiceImpl implements ICommonService {
@Override
public
List
<
Map
<
String
,
Object
>>
getUnitListByType
(
String
type
,
String
business
,
Boolean
needAuth
)
{
List
<
Map
<
String
,
Object
>>
unitList
=
new
ArrayList
<>(
Collections
.
emptyList
());
if
(
Objects
.
equals
(
type
,
"use"
))
{
// 该接口不暴露使用单位信息,返回空列表
return
unitList
;
}
switch
(
type
)
{
case
"use"
:
type
=
"使用单位"
;
break
;
case
"maintenance"
:
type
=
"安装改造维修单位"
;
break
;
...
...
@@ -844,7 +846,6 @@ public class CommonServiceImpl implements ICommonService {
type
=
"all"
;
break
;
}
List
<
Map
<
String
,
Object
>>
unitList
=
new
ArrayList
<>(
Collections
.
emptyList
());
// 检验检测机构 追加车用气瓶
if
(
"检验检测机构"
.
equals
(
type
)
&&
"gasCylindersForCars"
.
equals
(
business
))
{
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
"OLD_INSPECTION_TESTING_UNIT"
).
getResult
();
...
...
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