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
1b970d72
Commit
1b970d72
authored
Feb 25, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_ccs' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_ccs
parents
8b7b9e35
901d3ab0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
WaterResourceDto.java
...oin/amos/boot/module/common/api/dto/WaterResourceDto.java
+1
-1
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+17
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/WaterResourceDto.java
View file @
1b970d72
...
@@ -54,7 +54,7 @@ public class WaterResourceDto extends BaseDto {
...
@@ -54,7 +54,7 @@ public class WaterResourceDto extends BaseDto {
@ApiModelProperty
(
value
=
"所在建筑id"
)
@ApiModelProperty
(
value
=
"所在建筑id"
)
private
Long
belongBuildingId
;
private
Long
belongBuildingId
;
@ExplicitConstraint
(
indexNum
=
3
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getBuildingList"
)
@ExplicitConstraint
(
indexNum
=
3
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"get
Water
BuildingList"
)
@ExcelProperty
(
value
=
"所在建筑"
,
index
=
3
)
@ExcelProperty
(
value
=
"所在建筑"
,
index
=
3
)
@ApiModelProperty
(
value
=
"所在建筑"
)
@ApiModelProperty
(
value
=
"所在建筑"
)
private
String
belongBuilding
;
private
String
belongBuilding
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
View file @
1b970d72
...
@@ -112,6 +112,9 @@ public class DataSourcesImpl implements DataSources {
...
@@ -112,6 +112,9 @@ public class DataSourcesImpl implements DataSources {
case
"getBuildingList"
:
case
"getBuildingList"
:
str
=
getBuildingList
();
str
=
getBuildingList
();
break
;
break
;
case
"getWaterBuildingList"
:
str
=
getWaterBuildingList
();
break
;
case
"getFireSystemList"
:
case
"getFireSystemList"
:
str
=
getFireSystemList
();
str
=
getFireSystemList
();
break
;
break
;
...
@@ -404,6 +407,20 @@ public class DataSourcesImpl implements DataSources {
...
@@ -404,6 +407,20 @@ public class DataSourcesImpl implements DataSources {
return
str
;
return
str
;
}
}
private
String
[]
getWaterBuildingList
()
{
ResponseModel
<
Object
>
response
=
equipFeignClient
.
getBuildingTree
();
List
<
Map
<
String
,
Object
>>
buildingMapList
=
(
List
<
Map
<
String
,
Object
>>)
response
.
getResult
();
List
<
Map
<
String
,
Object
>>
children
=
(
List
<
Map
<
String
,
Object
>>)
buildingMapList
.
get
(
0
).
get
(
"children"
);
List
<
String
>
collect
=
children
.
stream
().
map
(
itme
->
{
return
itme
.
get
(
"name"
)
+
"@"
+
itme
.
get
(
"id"
);
}).
collect
(
Collectors
.
toList
());
String
[]
str
=
collect
.
toArray
(
new
String
[
collect
.
size
()]);
return
str
;
}
private
String
[]
getDataDictionary
(
String
type
)
{
private
String
[]
getDataDictionary
(
String
type
)
{
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
type
);
queryWrapper
.
eq
(
"type"
,
type
);
...
...
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