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
1582b087
Commit
1582b087
authored
Nov 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监盘接口
parent
ac8055d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
DayGenerateMapper.xml
.../src/main/resources/mapper/tdengine/DayGenerateMapper.xml
+8
-3
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+8
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/DayGenerateMapper.xml
View file @
1582b087
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.DayGenerateMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.DayGenerateMapper"
>
<select
id=
"getDayGenerateph"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.
dto.DayPowerDto
"
>
<select
id=
"getDayGenerateph"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.
entity.DayGenerate
"
>
SELECT
SELECT
*
*
FROM house_pv_data.td_hygf_station_day_generate
FROM house_pv_data.td_hygf_station_day_generate
...
@@ -17,8 +17,13 @@
...
@@ -17,8 +17,13 @@
day_time = #{dateTime}
day_time = #{dateTime}
</if>
</if>
</where>
</where>
ORDER by fullhour #{sort} limit 10
<if
test=
"sort=='desc'"
>
ORDER by fullhour desc
</if>
<if
test=
"sort=='asc'"
>
ORDER by fullhour asc
</if>
limit 10
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
1582b087
...
@@ -569,7 +569,7 @@ public class JpStationController extends BaseController {
...
@@ -569,7 +569,7 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"日满发小时排行"
,
notes
=
"日满发小时排行"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"日满发小时排行"
,
notes
=
"日满发小时排行"
)
@GetMapping
(
value
=
"/getDayGenerateph"
)
@GetMapping
(
value
=
"/getDayGenerateph"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getDayGenerateph
(
JpStationDto
reviewDto
,
String
type
,
String
dateTime
)
{
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getDayGenerateph
(
JpStationDto
reviewDto
,
String
type
,
String
dateTime
)
{
List
<
JpStation
>
list
=
jpStationServiceImpl
.
getJpStation
(
reviewDto
);
List
<
JpStation
>
list
=
jpStationServiceImpl
.
getJpStation
(
reviewDto
);
List
<
Map
<
String
,
Object
>>
li
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
li
=
new
ArrayList
<>();
...
@@ -584,15 +584,18 @@ public class JpStationController extends BaseController {
...
@@ -584,15 +584,18 @@ public class JpStationController extends BaseController {
map
.
put
(
"name"
,
jpStation
.
getName
());
map
.
put
(
"name"
,
jpStation
.
getName
());
map
.
put
(
"address"
,
jpStation
.
getName
());
map
.
put
(
"address"
,
jpStation
.
getName
());
map
.
put
(
"fullhour"
,
dayGenerate
.
getFullhour
());
map
.
put
(
"fullhour"
,
dayGenerate
.
getFullhour
());
li
.
add
(
map
);
break
;
break
;
}
}
}
}
if
(!
map
.
isEmpty
()){
li
.
add
(
map
);
}
}
}
}
}
return
ResponseHelper
.
buildResponse
(
li
);
Page
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
result
.
setCurrent
(
1
);
result
.
setTotal
(
10
);
result
.
setRecords
(
li
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
...
...
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