Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
f7700935
Commit
f7700935
authored
Dec 19, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复电站配置
parent
c918c5f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+1
-1
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+14
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
f7700935
...
...
@@ -869,7 +869,7 @@
</select>
<select
id=
"queryUnitInfo"
resultType=
"java.util.Map"
>
SELECT amos_company_code
value
, name
SELECT amos_company_code , name
FROM hygf_unit_info
WHERE is_delete = 0 and amos_company_code is not null
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
f7700935
...
...
@@ -1112,9 +1112,8 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
if
(
CollectionUtil
.
isNotEmpty
(
maps
)){
for
(
Map
<
String
,
String
>
map
:
maps
)
{
Map
<
String
,
String
>
newMap
=
new
HashMap
<>();
String
orgCode
=
map
.
get
(
"ORG_CODE"
);
String
companyName
=
map
.
get
(
"COMPANY_NAME"
);
newMap
.
put
(
orgCode
,
companyName
);
newMap
.
put
(
"value"
,
map
.
get
(
"ORG_CODE"
));
newMap
.
put
(
"name"
,
map
.
get
(
"COMPANY_NAME"
));
result
.
add
(
newMap
);
}
}
...
...
@@ -1130,6 +1129,16 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
}
public
List
<
Map
<
String
,
String
>>
queryUnitInfo
()
{
return
jpStationMapper
.
queryUnitInfo
();
List
<
Map
<
String
,
String
>>
maps
=
jpStationMapper
.
queryUnitInfo
();
List
<
Map
<
String
,
String
>>
result
=
new
ArrayList
<>();
if
(
CollectionUtil
.
isNotEmpty
(
maps
)){
for
(
Map
<
String
,
String
>
map
:
maps
)
{
Map
<
String
,
String
>
newMap
=
new
HashMap
<>();
newMap
.
put
(
"value"
,
map
.
get
(
"amos_company_code"
));
newMap
.
put
(
"name"
,
map
.
get
(
"name"
));
result
.
add
(
newMap
);
}
}
return
result
;
}
}
\ 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