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
fa6882c4
Commit
fa6882c4
authored
Apr 01, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.运行监盘获取全国数据service方法编写及实现。
parent
e373867b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
DemoController.java
...amos/boot/module/jxiop/biz/controller/DemoController.java
+6
-4
MonitorService.java
...in/amos/boot/module/jxiop/biz/service/MonitorService.java
+5
-0
MonitorServiceImpl.java
...oot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/DemoController.java
View file @
fa6882c4
...
@@ -19,6 +19,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.Test;
...
@@ -19,6 +19,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.Test;
import
com.yeejoin.amos.boot.module.jxiop.biz.feign.CoreFeignClient
;
import
com.yeejoin.amos.boot.module.jxiop.biz.feign.CoreFeignClient
;
import
com.yeejoin.amos.boot.module.jxiop.biz.repository.ESEquipmentsRepository
;
import
com.yeejoin.amos.boot.module.jxiop.biz.repository.ESEquipmentsRepository
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.CoreCommonService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.CoreCommonService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.MonitorService
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.*
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.*
;
//import com.yeejoin.amos.boot.module.jxiop.biz.utils.InfluxDButils;
//import com.yeejoin.amos.boot.module.jxiop.biz.utils.InfluxDButils;
//import com.yeejoin.amos.component.influxdb.InfluxDbConnection;
//import com.yeejoin.amos.component.influxdb.InfluxDbConnection;
...
@@ -110,7 +111,8 @@ public class DemoController extends BaseController {
...
@@ -110,7 +111,8 @@ public class DemoController extends BaseController {
@Autowired
@Autowired
private
EquipmentsJxiopDocMysqlMapper
equipmentsJxiopDocMysqlMapper
;
private
EquipmentsJxiopDocMysqlMapper
equipmentsJxiopDocMysqlMapper
;
@Autowired
private
MonitorService
monitorService
;
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"手动更新场站缓存信息接口"
)
@ApiOperation
(
value
=
"手动更新场站缓存信息接口"
)
...
@@ -445,7 +447,6 @@ public class DemoController extends BaseController {
...
@@ -445,7 +447,6 @@ public class DemoController extends BaseController {
query
.
setTrackTotalHits
(
true
);
query
.
setTrackTotalHits
(
true
);
SearchHits
<
ESEquipments
>
search
=
elasticsearchTemplate
.
search
(
query
,
ESEquipments
.
class
);
SearchHits
<
ESEquipments
>
search
=
elasticsearchTemplate
.
search
(
query
,
ESEquipments
.
class
);
return
ResponseHelper
.
buildResponse
(
search
);
return
ResponseHelper
.
buildResponse
(
search
);
}
}
...
@@ -515,8 +516,9 @@ public class DemoController extends BaseController {
...
@@ -515,8 +516,9 @@ public class DemoController extends BaseController {
@GetMapping
(
"/testFeignCall"
)
@GetMapping
(
"/testFeignCall"
)
public
List
<
CoreValuesDto
>
testFeignCall
()
{
public
List
<
CoreValuesDto
>
testFeignCall
()
{
List
<
CoreValuesDto
>
coreValuesDtos
=
coreCommonService
.
getValuesByStationNamesAndPointsNames
(
null
,
null
);
List
<
CoreValuesDto
>
coreValuesDtos
=
coreCommonService
.
getValuesByStationNamesAndPointsNames
(
null
,
null
);
Double
sum
=
coreCommonService
.
getSumOfByPointName
(
coreValuesDtos
,
CommonConstans
.
DAY_POWER_GENERATION
);
monitorService
.
getTotalData
();
Double
avg
=
coreCommonService
.
getAverageOfByPointName
(
coreValuesDtos
,
CommonConstans
.
DAY_POWER_GENERATION
);
// Double sum = coreCommonService.getSumOfByPointName(coreValuesDtos, CommonConstans.DAY_POWER_GENERATION);
// Double avg = coreCommonService.getAverageOfByPointName(coreValuesDtos, CommonConstans.DAY_POWER_GENERATION);
return
coreValuesDtos
;
return
coreValuesDtos
;
}
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/MonitorService.java
0 → 100644
View file @
fa6882c4
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
;
public
interface
MonitorService
{
public
void
getTotalData
();
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorServiceImpl.java
0 → 100644
View file @
fa6882c4
This diff is collapsed.
Click to expand it.
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