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
81a2eb36
Commit
81a2eb36
authored
May 11, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):撬装式承压设备
parent
20858eff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+9
-3
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+1
-1
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+5
-5
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/controller/CommonController.java
View file @
81a2eb36
...
...
@@ -250,8 +250,8 @@ public class CommonController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询监管业务名称列表"
,
notes
=
"查询监管业务名称列表"
)
@GetMapping
(
value
=
"/superviseBusinessCategory"
)
public
ResponseModel
<
Object
>
equipTree
(
String
t
ype
)
{
return
ResponseHelper
.
buildResponse
(
commonService
.
superviseBusinessCategory
(
t
ype
));
public
ResponseModel
<
Object
>
equipTree
(
@RequestParam
(
value
=
"businessType"
)
String
businessT
ype
)
{
return
ResponseHelper
.
buildResponse
(
commonService
.
superviseBusinessCategory
(
businessT
ype
));
}
/**
...
...
@@ -413,10 +413,16 @@ public class CommonController extends BaseController {
@GetMapping
(
value
=
"/equ-category/{categoryCode}/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"按照业务类型、设备种类查询设备类别"
,
notes
=
"按照业务类型、设备种类查询设备类别"
)
public
ResponseModel
<
List
<
DictionarieValueModel
>>
equCategoryList
(
@RequestParam
(
value
=
"type"
)
String
bizType
,
@RequestParam
(
value
=
"businessScenarios"
)
String
businessScenarios
,
@PathVariable
String
categoryCode
)
{
// 在平台字典配置的自定义业务的设备种类:格式{bizType}_{categoryCode},如BF_YZ_1000==》移装注销-锅炉
String
dictCode
=
String
.
format
(
"%s_%s"
,
bizType
,
categoryCode
);
return
ResponseHelper
.
buildResponse
(
Systemctl
.
dictionarieClient
.
dictValues
(
dictCode
).
getResult
());
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
dictCode
).
getResult
();
//使用登记bizType(DJ_SY) + 压力容器categoryCode(2000) + 按照场景选择businessScenarios(1) => 只展示固定式压力容器(2100)
boolean
isFlag
=
"DJ_SY"
.
equals
(
bizType
)
&&
"2000"
.
equals
(
categoryCode
)
&&
"1"
.
equals
(
businessScenarios
);
List
<
DictionarieValueModel
>
collect
=
result
.
stream
()
.
filter
(
x
->
!
isFlag
||
x
.
getDictDataKey
().
equals
(
"2100"
)).
collect
(
Collectors
.
toList
());
return
ResponseHelper
.
buildResponse
(
collect
);
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
81a2eb36
...
...
@@ -49,7 +49,7 @@ public interface ICommonService {
List
<
LinkedHashMap
>
creatApproveTree
();
List
<
Map
<
String
,
Object
>>
superviseBusinessCategory
(
String
t
ype
);
List
<
Map
<
String
,
Object
>>
superviseBusinessCategory
(
String
businessT
ype
);
List
<
Map
<
String
,
Object
>>
businessScenarios
(
String
type
);
...
...
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 @
81a2eb36
...
...
@@ -611,20 +611,20 @@ public class CommonServiceImpl implements ICommonService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
superviseBusinessCategory
(
String
t
ype
)
{
public
List
<
Map
<
String
,
Object
>>
superviseBusinessCategory
(
String
businessT
ype
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
resourceJson
=
JsonUtils
.
getResourceJson
(
superviseBusinessCategory
);
if
(
XZSB
.
equals
(
t
ype
)
&&
CompanyTypeEnum
.
CONSTRUCTION
.
getName
().
equals
(
reginParams
.
getCompany
().
getCompanyType
())){
Iterator
<
Map
<
String
,
Object
>>
iterator
=
resourceJson
.
get
(
t
ype
).
iterator
();
if
(
XZSB
.
equals
(
businessT
ype
)
&&
CompanyTypeEnum
.
CONSTRUCTION
.
getName
().
equals
(
reginParams
.
getCompany
().
getCompanyType
())){
Iterator
<
Map
<
String
,
Object
>>
iterator
=
resourceJson
.
get
(
businessT
ype
).
iterator
();
while
(
iterator
.
hasNext
())
{
Map
<
String
,
Object
>
item
=
iterator
.
next
();
if
(
item
.
get
(
CODE
).
equals
(
PL_DR
))
{
iterator
.
remove
();
}
}
return
resourceJson
.
get
(
t
ype
);
return
resourceJson
.
get
(
businessT
ype
);
}
return
resourceJson
.
get
(
t
ype
);
return
resourceJson
.
get
(
businessT
ype
);
}
@Override
...
...
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