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
ba9877fc
Commit
ba9877fc
authored
Jul 15, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改采集统一
parent
4bdfe47e
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
30 additions
and
26 deletions
+30
-26
HYGFJPDayPower.java
...pi/face/orm/houseapi/entity/tdeingine/HYGFJPDayPower.java
+6
-2
HYGFJPDayPowerImpl.java
...ouseholdapi/face/service/business/HYGFJPDayPowerImpl.java
+1
-1
GoLangDataAcquisitionServiceImpl.java
...i/face/service/impl/GoLangDataAcquisitionServiceImpl.java
+2
-2
GoodWeDataAcquisitionServiceImpl.java
...i/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
+2
-2
ImasterDataServiceImpl.java
...ouseholdapi/face/service/impl/ImasterDataServiceImpl.java
+2
-2
KsolarDataAcquisitionServiceImpl.java
...i/face/service/impl/KsolarDataAcquisitionServiceImpl.java
+2
-2
SofarDataAcquisitionServiceImpl.java
...pi/face/service/impl/SofarDataAcquisitionServiceImpl.java
+2
-2
SunlightServiceImpl.java
...i/householdapi/face/service/impl/SunlightServiceImpl.java
+2
-2
AllPower.java
...om/yeejoin/amos/boot/module/hygf/api/entity/AllPower.java
+2
-2
DayGenerate.java
...yeejoin/amos/boot/module/hygf/api/entity/DayGenerate.java
+1
-1
DayPower.java
...om/yeejoin/amos/boot/module/hygf/api/entity/DayPower.java
+2
-2
MonthGenerate.java
...ejoin/amos/boot/module/hygf/api/entity/MonthGenerate.java
+1
-1
MonthPower.java
.../yeejoin/amos/boot/module/hygf/api/entity/MonthPower.java
+2
-2
YearGenerate.java
...eejoin/amos/boot/module/hygf/api/entity/YearGenerate.java
+1
-1
YearPower.java
...m/yeejoin/amos/boot/module/hygf/api/entity/YearPower.java
+2
-2
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/orm/houseapi/entity/tdeingine/HYGFJPDayPower.java
View file @
ba9877fc
...
...
@@ -8,8 +8,12 @@ import java.io.Serializable;
@Data
@TableName
(
value
=
"td_hygf_station_power_day"
,
autoResultMap
=
true
)
public
class
HYGFJPDayPower
implements
Serializable
{
private
Long
createdTime
;
private
String
tationId
;
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
private
Long
createdTime
;
private
String
thirdStationId
;
private
String
hour
;
private
String
yearMonthDay
;
private
Double
power
;
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/business/HYGFJPDayPowerImpl.java
View file @
ba9877fc
...
...
@@ -44,7 +44,7 @@ public class HYGFJPDayPowerImpl implements AscriptionService {
if
(
hygfjpDayPower
!=
null
&&!
hygfjpDayPower
.
isEmpty
()){
for
(
HYGFJPDayPower
dayPower
:
hygfjpDayPower
)
{
JpStation
jpStation
=
jpStationMapper
.
selectOne
(
new
QueryWrapper
<
JpStation
>().
eq
(
"third_station_id"
,
dayPower
.
getTationId
()));
eq
(
"third_station_id"
,
dayPower
.
getT
hirdSt
ationId
()));
if
(
jpStation
!=
null
)
{
dayPower
.
setAmosCompanyCode
(
jpStation
.
getAmosCompanyCode
());
dayPower
.
setRegionalCompaniesCode
(
jpStation
.
getRegionalCompaniesCode
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoLangDataAcquisitionServiceImpl.java
View file @
ba9877fc
...
...
@@ -260,11 +260,11 @@ public class GoLangDataAcquisitionServiceImpl implements GoLangDataAcquisitionSe
hygfjpStationPowerHistoryMapper
.
insert
(
hygfjpStationPowerHistory
);
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>()
.
eq
(
"tation_id"
,
stationIds
.
get
(
i
)).
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
.
eq
(
"t
hird_st
ation_id"
,
stationIds
.
get
(
i
)).
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
if
(
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
}
hygfjpDayPower
.
setTationId
(
stationIds
.
get
(
i
));
hygfjpDayPower
.
setT
hirdSt
ationId
(
stationIds
.
get
(
i
));
hygfjpDayPower
.
setHour
(
hour
);
hygfjpDayPower
.
setYearMonthDay
(
today
);
hygfjpDayPower
.
setPower
(
golangStationDetail
.
getPower
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
View file @
ba9877fc
...
...
@@ -205,11 +205,11 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
hygfjpStationPowerHistoryMapper
.
insert
(
hygfjpStationPowerHistory
);
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>()
.
eq
(
"tation_id"
,
jpStation
.
getThirdStationId
()).
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
.
eq
(
"t
hird_st
ation_id"
,
jpStation
.
getThirdStationId
()).
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
if
(
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
}
hygfjpDayPower
.
setTationId
(
goodWeStationList
.
getPowerstation_id
());
hygfjpDayPower
.
setT
hirdSt
ationId
(
goodWeStationList
.
getPowerstation_id
());
hygfjpDayPower
.
setHour
(
hour
);
hygfjpDayPower
.
setYearMonthDay
(
today
);
hygfjpDayPower
.
setPower
(
jpStation
.
getRealTimePower
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/ImasterDataServiceImpl.java
View file @
ba9877fc
...
...
@@ -366,14 +366,14 @@ public class ImasterDataServiceImpl implements ImasterDataService {
hygfjpStationPowerHistoryMapper
.
insert
(
hygfjpStationPowerHistory
);
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"tation_id"
,
imasterStationList
.
getPlantCode
()).
eq
(
"t
hird_st
ation_id"
,
imasterStationList
.
getPlantCode
()).
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
)
);
if
(
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
}
hygfjpDayPower
.
setTationId
(
imasterStationList
.
getPlantCode
());
hygfjpDayPower
.
setT
hirdSt
ationId
(
imasterStationList
.
getPlantCode
());
hygfjpDayPower
.
setHour
(
hour
);
hygfjpDayPower
.
setYearMonthDay
(
today
);
hygfjpDayPower
.
setPower
(
active_power
);
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/KsolarDataAcquisitionServiceImpl.java
View file @
ba9877fc
...
...
@@ -286,12 +286,12 @@ public class KsolarDataAcquisitionServiceImpl implements KSolarDataAcquisitionSe
hygfjpStationPowerHistoryMapper
.
insert
(
hygfjpStationPowerHistory
);
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"tation_id"
,
ksolarStation
.
getStationId
())
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"t
hird_st
ation_id"
,
ksolarStation
.
getStationId
())
.
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
if
(
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
}
hygfjpDayPower
.
setTationId
(
ksolarStation
.
getStationId
());
hygfjpDayPower
.
setT
hirdSt
ationId
(
ksolarStation
.
getStationId
());
hygfjpDayPower
.
setHour
(
hour
);
hygfjpDayPower
.
setYearMonthDay
(
today
);
hygfjpDayPower
.
setPower
(
ksolarStation
.
getPowerInter
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SofarDataAcquisitionServiceImpl.java
View file @
ba9877fc
...
...
@@ -442,12 +442,12 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
String
today
=
DateUtil
.
today
();
String
hour
=
new
Date
().
getHours
()
+
":00"
;
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"tation_id"
,
sunlightDto
.
getId
().
toString
())
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"t
hird_st
ation_id"
,
sunlightDto
.
getId
().
toString
())
.
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
if
(
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
}
hygfjpDayPower
.
setTationId
(
sunlightDto
.
getId
().
toString
());
hygfjpDayPower
.
setT
hirdSt
ationId
(
sunlightDto
.
getId
().
toString
());
hygfjpDayPower
.
setHour
(
hour
);
hygfjpDayPower
.
setYearMonthDay
(
today
);
hygfjpDayPower
.
setPower
(
jpStation
.
getRealTimePower
());
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SunlightServiceImpl.java
View file @
ba9877fc
...
...
@@ -348,12 +348,12 @@ public class SunlightServiceImpl implements SunlightService {
String
today
=
DateUtil
.
today
();
String
hour
=
new
Date
().
getHours
()
+
":00"
;
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"tation_id"
,
sunlightDto
.
getPs_id
().
toString
())
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"t
hird_st
ation_id"
,
sunlightDto
.
getPs_id
().
toString
())
.
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
if
(
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
}
hygfjpDayPower
.
setTationId
(
sunlightDto
.
getPs_id
().
toString
());
hygfjpDayPower
.
setT
hirdSt
ationId
(
sunlightDto
.
getPs_id
().
toString
());
hygfjpDayPower
.
setHour
(
hour
);
hygfjpDayPower
.
setYearMonthDay
(
today
);
hygfjpDayPower
.
setPower
(
jpStation
.
getRealTimePower
());
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/AllPower.java
View file @
ba9877fc
...
...
@@ -17,7 +17,7 @@ import java.time.format.DateTimeFormatter;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_
all_power
"
)
@TableName
(
"td_hygf_
station_power_all
"
)
public
class
AllPower
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -26,7 +26,7 @@ public class AllPower {
/**
* 第三方电站id
*/
@TableField
(
"tation_id"
)
@TableField
(
"t
hird_st
ation_id"
)
private
String
thirdStationId
;
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/DayGenerate.java
View file @
ba9877fc
...
...
@@ -13,7 +13,7 @@ import org.springframework.data.annotation.Id;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_station_
day_generate
"
)
@TableName
(
"td_hygf_station_
generate_month
"
)
public
class
DayGenerate
{
@Id
private
Long
createdTime
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/DayPower.java
View file @
ba9877fc
...
...
@@ -14,7 +14,7 @@ import lombok.experimental.Accessors;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_
day_power
"
)
@TableName
(
"td_hygf_
station_power_day
"
)
public
class
DayPower
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -24,7 +24,7 @@ public class DayPower {
/**
* 第三方电站id
*/
@TableField
(
"tation_id"
)
@TableField
(
"t
hird_st
ation_id"
)
private
String
thirdStationId
;
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/MonthGenerate.java
View file @
ba9877fc
...
...
@@ -13,7 +13,7 @@ import org.springframework.data.annotation.Id;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_station_
month_generate
"
)
@TableName
(
"td_hygf_station_
generate_year
"
)
public
class
MonthGenerate
{
@Id
private
Long
createdTime
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/MonthPower.java
View file @
ba9877fc
...
...
@@ -17,7 +17,7 @@ import java.time.format.DateTimeFormatter;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_
month_power
"
)
@TableName
(
"td_hygf_
station_power_month
"
)
public
class
MonthPower
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -32,7 +32,7 @@ public class MonthPower {
/**
* 第三方电站id
*/
@TableField
(
"tation_id"
)
@TableField
(
"t
hird_st
ation_id"
)
private
String
thirdStationId
;
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/YearGenerate.java
View file @
ba9877fc
...
...
@@ -13,7 +13,7 @@ import org.springframework.data.annotation.Id;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_station_
year_generate
"
)
@TableName
(
"td_hygf_station_
generate_all
"
)
public
class
YearGenerate
{
@Id
private
Long
createdTime
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/YearPower.java
View file @
ba9877fc
...
...
@@ -17,7 +17,7 @@ import java.time.format.DateTimeFormatter;
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"td_hygf_
year_powe
r"
)
@TableName
(
"td_hygf_
station_power_yea
r"
)
public
class
YearPower
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -26,7 +26,7 @@ public class YearPower {
/**
* 第三方电站id
*/
@TableField
(
"tation_id"
)
@TableField
(
"t
hird_st
ation_id"
)
private
String
thirdStationId
;
/**
...
...
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