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
8225f603
Commit
8225f603
authored
Nov 13, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日月明年发电量
parent
5d6a13f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
85 deletions
+42
-85
AllGenerate.java
...yeejoin/amos/boot/module/hygf/api/entity/AllGenerate.java
+0
-53
DayGenerate.java
...yeejoin/amos/boot/module/hygf/api/entity/DayGenerate.java
+16
-5
MonthGenerate.java
...ejoin/amos/boot/module/hygf/api/entity/MonthGenerate.java
+11
-10
YearGenerate.java
...eejoin/amos/boot/module/hygf/api/entity/YearGenerate.java
+6
-7
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+1
-2
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+1
-1
WindSpeedScheduled.java
...os/boot/module/hygf/biz/scheduled/WindSpeedScheduled.java
+7
-7
DayGenerateServiceImpl.java
.../module/hygf/biz/service/impl/DayGenerateServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/AllGenerate.java
deleted
100644 → 0
View file @
5d6a13f1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
org.springframework.data.annotation.Id
;
/**
* @description:
* @author: tw
* @createDate: 2023/11/8
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_all_generate"
)
public
class
AllGenerate
{
@Id
private
Long
createdTime
;
/**
* 第三方电站id
*/
@TableField
(
"third_station_id"
)
private
String
thirdStationId
;
/**
* 年
*/
@TableField
(
"year_time"
)
private
String
yearTime
;
/**
* 平均功率
*/
@TableField
(
"year"
)
private
String
year
;
/**
* 平均功率
*/
@TableField
(
"generate"
)
private
Double
generate
;
public
AllGenerate
(
Long
createdTime
,
String
thirdStationId
,
String
yearTime
,
String
year
,
Double
generate
)
{
this
.
createdTime
=
createdTime
;
this
.
thirdStationId
=
thirdStationId
;
this
.
yearTime
=
yearTime
;
this
.
year
=
year
;
this
.
generate
=
generate
;
}
public
AllGenerate
()
{
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/DayGenerate.java
View file @
8225f603
...
@@ -24,19 +24,30 @@ public class DayGenerate {
...
@@ -24,19 +24,30 @@ public class DayGenerate {
private
String
thirdStationId
;
private
String
thirdStationId
;
/**
/**
*
小时
*
天
*/
*/
@TableField
(
"
hour
_time"
)
@TableField
(
"
day
_time"
)
private
String
hour
Time
;
private
String
day
Time
;
/**
/**
* 月份
* 月份
*/
*/
@TableField
(
"
month_day
"
)
@TableField
(
"
year_month
"
)
private
String
monthDay
;
private
String
yearMonth
;
/**
/**
* 发电量
* 发电量
*/
*/
@TableField
(
"generate"
)
@TableField
(
"generate"
)
private
Double
generate
;
private
Double
generate
;
public
DayGenerate
(
Long
createdTime
,
String
thirdStationId
,
String
dayTime
,
String
yearMonth
,
Double
generate
)
{
this
.
createdTime
=
createdTime
;
this
.
thirdStationId
=
thirdStationId
;
this
.
dayTime
=
dayTime
;
this
.
yearMonth
=
yearMonth
;
this
.
generate
=
generate
;
}
public
DayGenerate
()
{
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/MonthGenerate.java
View file @
8225f603
...
@@ -24,27 +24,28 @@ public class MonthGenerate {
...
@@ -24,27 +24,28 @@ public class MonthGenerate {
private
String
thirdStationId
;
private
String
thirdStationId
;
/**
/**
*
天
*
年
*/
*/
@TableField
(
"
day
_time"
)
@TableField
(
"
month
_time"
)
private
String
day
Time
;
private
String
month
Time
;
/**
/**
*
月份
*
平均功率
*/
*/
@TableField
(
"year_month"
)
@TableField
(
"year"
)
private
String
yearMonth
;
private
String
year
;
/**
/**
*
发电量
*
平均功率
*/
*/
@TableField
(
"generate"
)
@TableField
(
"generate"
)
private
Double
generate
;
private
Double
generate
;
public
MonthGenerate
(
Long
createdTime
,
String
thirdStationId
,
String
dayTime
,
String
yearMonth
,
Double
generate
)
{
public
MonthGenerate
(
Long
createdTime
,
String
thirdStationId
,
String
monthTime
,
String
year
,
Double
generate
)
{
this
.
createdTime
=
createdTime
;
this
.
createdTime
=
createdTime
;
this
.
thirdStationId
=
thirdStationId
;
this
.
thirdStationId
=
thirdStationId
;
this
.
dayTime
=
day
Time
;
this
.
monthTime
=
month
Time
;
this
.
year
Month
=
yearMonth
;
this
.
year
=
year
;
this
.
generate
=
generate
;
this
.
generate
=
generate
;
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/YearGenerate.java
View file @
8225f603
...
@@ -26,25 +26,24 @@ public class YearGenerate {
...
@@ -26,25 +26,24 @@ public class YearGenerate {
/**
/**
* 年
* 年
*/
*/
@TableField
(
"
month
_time"
)
@TableField
(
"
year
_time"
)
private
String
month
Time
;
private
String
year
Time
;
/**
/**
*
平均功率
*
*/
*/
@TableField
(
"year"
)
@TableField
(
"year"
)
private
String
year
;
private
String
year
;
/**
/**
*
平均功率
*
*/
*/
@TableField
(
"generate"
)
@TableField
(
"generate"
)
private
Double
generate
;
private
Double
generate
;
public
YearGenerate
(
Long
createdTime
,
String
thirdStationId
,
String
month
Time
,
String
year
,
Double
generate
)
{
public
YearGenerate
(
Long
createdTime
,
String
thirdStationId
,
String
year
Time
,
String
year
,
Double
generate
)
{
this
.
createdTime
=
createdTime
;
this
.
createdTime
=
createdTime
;
this
.
thirdStationId
=
thirdStationId
;
this
.
thirdStationId
=
thirdStationId
;
this
.
monthTime
=
month
Time
;
this
.
yearTime
=
year
Time
;
this
.
year
=
year
;
this
.
year
=
year
;
this
.
generate
=
generate
;
this
.
generate
=
generate
;
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
8225f603
...
@@ -155,8 +155,7 @@
...
@@ -155,8 +155,7 @@
<select
id=
"getJpStation"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.JpStation"
>
<select
id=
"getJpStation"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.JpStation"
>
select
select
`sequence_nbr` sequenceNbr,
*
third_station_id thirdStationId
from hygf_jp_station
from hygf_jp_station
<where>
<where>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
8225f603
...
@@ -353,7 +353,7 @@ public class JpStationController extends BaseController {
...
@@ -353,7 +353,7 @@ public class JpStationController extends BaseController {
public
Object
getPowerqx
()
{
public
Object
getPowerqx
()
{
return
jpStationMapper
.
getJpStation
();
return
jpStationMapper
.
getJpStation
(
null
);
}
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/scheduled/WindSpeedScheduled.java
View file @
8225f603
...
@@ -24,8 +24,8 @@ public class WindSpeedScheduled {
...
@@ -24,8 +24,8 @@ public class WindSpeedScheduled {
@Autowired
@Autowired
TdHygfJpInvertorElecHistoryServiceImpl
tdHygfJpInvertorElecHistoryServiceImpl
;
TdHygfJpInvertorElecHistoryServiceImpl
tdHygfJpInvertorElecHistoryServiceImpl
;
@Autowired
//
@Autowired
DayGenerateServiceImpl
dayGenerateServiceImpl
;
//
DayGenerateServiceImpl dayGenerateServiceImpl;
@Scheduled
(
cron
=
"${cheduled.crons}"
)
@Scheduled
(
cron
=
"${cheduled.crons}"
)
private
void
initData
()
{
private
void
initData
()
{
...
@@ -38,10 +38,10 @@ public class WindSpeedScheduled {
...
@@ -38,10 +38,10 @@ public class WindSpeedScheduled {
//发电量
//发电量
@Scheduled
(
cron
=
"${generate.crons}"
)
//
@Scheduled(cron = "${generate.crons}")
private
void
initGenerateData
()
{
//
private void initGenerateData() {
//发电量
//
//发电量
dayGenerateServiceImpl
.
getGenerate
();
//
dayGenerateServiceImpl.getGenerate();
}
//
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/DayGenerateServiceImpl.java
View file @
8225f603
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