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
5ab4831c
Commit
5ab4831c
authored
Jan 09, 2025
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化电站监控 及初始化电站数值
parent
7251cba8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
5 deletions
+59
-5
HouseholdTestController.java
.../api/householdapi/controller/HouseholdTestController.java
+15
-0
JpStationServiceImpl.java
.../householdapi/face/service/impl/JpStationServiceImpl.java
+39
-0
application-dev.properties
...-housepvapi/src/main/resources/application-dev.properties
+5
-5
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/controller/HouseholdTestController.java
View file @
5ab4831c
...
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.api.householdapi.face.orm.mapper.tdengine.*;
import
com.yeejoin.amos.api.householdapi.face.service.*
;
import
com.yeejoin.amos.api.householdapi.face.service.business.*
;
import
com.yeejoin.amos.api.householdapi.face.service.impl.ImasterDataServiceImpl
;
import
com.yeejoin.amos.api.householdapi.face.service.impl.JpStationServiceImpl
;
import
com.yeejoin.amos.api.householdapi.face.service.impl.SofarDataAcquisitionServiceImpl
;
import
fastjson.JSON
;
import
io.swagger.annotations.Api
;
...
...
@@ -77,6 +78,20 @@ public class HouseholdTestController {
@Autowired
private
TanYinDataAcquisitionService
tanYinDataAcquisitionService
;
@Autowired
private
JpStationServiceImpl
jpStationService
;
/**
* 新增户用光伏-厂商API haders
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/testInitStation"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"测试初始化场站"
,
notes
=
"测试初始化场站"
)
public
void
testInitStation
()
throws
IOException
{
jpStationService
.
initStationValue
();
}
/**
* 新增户用光伏-厂商API haders
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/JpStationServiceImpl.java
0 → 100644
View file @
5ab4831c
package
com
.
yeejoin
.
amos
.
api
.
householdapi
.
face
.
service
.
impl
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.yeejoin.amos.api.householdapi.face.orm.houseapi.entity.hygf.JpStation
;
import
com.yeejoin.amos.api.householdapi.face.orm.mapper.hygf.JpStationMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
@Service
public
class
JpStationServiceImpl
{
@Autowired
JpStationMapper
jpStationMapper
;
@Scheduled
(
cron
=
"${dataRequstScheduled.initStation:0 0 0 * * ?}"
)
@Async
public
void
initStationValue
(){
LambdaUpdateWrapper
<
JpStation
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
set
(
JpStation:
:
getCapacity
,
0.0
)
.
set
(
JpStation:
:
getRealTimePower
,
0.0
)
.
set
(
JpStation:
:
getAccumulatedPower
,
0.0
)
.
set
(
JpStation:
:
getDayGenerate
,
0.0
)
.
set
(
JpStation:
:
getMonthGenerate
,
0.0
)
.
set
(
JpStation:
:
getYearGenerate
,
0.0
)
.
set
(
JpStation:
:
getDayIncome
,
0.0
)
.
set
(
JpStation:
:
getMonthIncome
,
0.0
)
.
set
(
JpStation:
:
getYearIncome
,
0.0
)
.
set
(
JpStation:
:
getCumulativeIncome
,
0.0
)
.
set
(
JpStation:
:
getDayPowerUse
,
0.0
)
.
set
(
JpStation:
:
getMonthPowerUse
,
0.0
)
.
set
(
JpStation:
:
getYearPowerUse
,
0.0
)
.
set
(
JpStation:
:
getRatedPower
,
0.0
);
jpStationMapper
.
update
(
null
,
wrapper
);
}
}
amos-boot-data/amos-boot-data-housepvapi/src/main/resources/application-dev.properties
View file @
5ab4831c
...
...
@@ -66,12 +66,12 @@ biz.lxyd.lift.url=http://39.106.181.149:8088/elevatorapi
# ??????????
dataRequstScheduled.jinlangyun
=
0 0/40
8
* *
dataRequstScheduled.huawei
=
0 0/40
8
* *
dataRequstScheduled.keshida
=
0 0/40
8
* *
dataRequstScheduled.jinlangyun
=
0 0/40
* *
* *
dataRequstScheduled.huawei
=
0 0/40
* *
* *
dataRequstScheduled.keshida
=
0 0/40
* *
* *
dataRequstScheduled.Sunlight
=
0 0/40
8
* *
dataRequstScheduled.GoodWe
=
0 0/40
8
* *
dataRequstScheduled.Sunlight
=
0 0/40
* *
* *
dataRequstScheduled.GoodWe
=
0 0/40
* *
* *
dataRequstScheduled.Sofar
=
0 0/20 * * * *
...
...
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