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
72601f7a
Commit
72601f7a
authored
Apr 09, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加手动刷数据接口
parent
40b0dc1b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
HouseholdTestController.java
.../api/householdapi/controller/HouseholdTestController.java
+2
-2
HYGFJPInverterWarnImpl.java
...holdapi/face/service/business/HYGFJPInverterWarnImpl.java
+2
-2
HYGFJPStationPowerHistoryImpl.java
.../face/service/business/HYGFJPStationPowerHistoryImpl.java
+2
-2
TdHYGFInverterDayGenerateImpl.java
.../face/service/business/TdHYGFInverterDayGenerateImpl.java
+2
-2
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/controller/HouseholdTestController.java
View file @
72601f7a
...
@@ -194,13 +194,13 @@ public class HouseholdTestController {
...
@@ -194,13 +194,13 @@ public class HouseholdTestController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/
imasterNew
"
)
@GetMapping
(
value
=
"/
updateAscription
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"手动同步数据"
,
notes
=
"手动同步数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"手动同步数据"
,
notes
=
"手动同步数据"
)
public
void
updateAscription
(
public
void
updateAscription
(
@RequestParam
(
value
=
"table"
,
required
=
false
)
String
table
,
//表名
@RequestParam
(
value
=
"table"
,
required
=
false
)
String
table
,
//表名
@RequestParam
(
value
=
"time"
,
required
=
false
)
String
time
@RequestParam
(
value
=
"time"
,
required
=
false
)
String
time
){
){
AscriptionService
ascriptionService
=
this
.
updateAscriptionlist
(
table
);
AscriptionService
ascriptionService
=
this
.
updateAscriptionlist
(
table
);
ascriptionService
.
updateAscription
(
time
);
ascriptionService
.
updateAscription
(
time
);
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/business/HYGFJPInverterWarnImpl.java
View file @
72601f7a
...
@@ -41,9 +41,9 @@ public class HYGFJPInverterWarnImpl implements AscriptionService {
...
@@ -41,9 +41,9 @@ public class HYGFJPInverterWarnImpl implements AscriptionService {
int
day
=
d
.
intValue
();
int
day
=
d
.
intValue
();
String
sql
=
""
;
String
sql
=
""
;
if
(
day
==
0
){
if
(
day
==
0
){
sql
=
" created_time>=TODAY() and created_time< TODAY() + 1d "
;
sql
=
"
and
created_time>=TODAY() and created_time< TODAY() + 1d "
;
}
else
{
}
else
{
sql
=
" created_time>=TODAY() - "
+
day
+
"d and created_time< TODAY() - "
+(
day
-
1
)+
"d "
;
sql
=
"
and
created_time>=TODAY() - "
+
day
+
"d and created_time< TODAY() - "
+(
day
-
1
)+
"d "
;
}
}
List
<
HYGFJPInverterWarn
>
hygfjpDayPower
=
hygfjpInverterWarnMapper
.
selectList
(
List
<
HYGFJPInverterWarn
>
hygfjpDayPower
=
hygfjpInverterWarnMapper
.
selectList
(
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/business/HYGFJPStationPowerHistoryImpl.java
View file @
72601f7a
...
@@ -40,9 +40,9 @@ public class HYGFJPStationPowerHistoryImpl implements AscriptionService {
...
@@ -40,9 +40,9 @@ public class HYGFJPStationPowerHistoryImpl implements AscriptionService {
int
day
=
d
.
intValue
();
int
day
=
d
.
intValue
();
String
sql
=
""
;
String
sql
=
""
;
if
(
day
==
0
){
if
(
day
==
0
){
sql
=
" created_time>=TODAY() and created_time< TODAY() + 1d "
;
sql
=
"
and
created_time>=TODAY() and created_time< TODAY() + 1d "
;
}
else
{
}
else
{
sql
=
" created_time>=TODAY() - "
+
day
+
"d and created_time< TODAY() - "
+(
day
-
1
)+
"d "
;
sql
=
"
and
created_time>=TODAY() - "
+
day
+
"d and created_time< TODAY() - "
+(
day
-
1
)+
"d "
;
}
}
List
<
HYGFJPStationPowerHistory
>
hygfjpDayPower
=
hygfjpStationPowerHistoryMapper
.
selectList
(
List
<
HYGFJPStationPowerHistory
>
hygfjpDayPower
=
hygfjpStationPowerHistoryMapper
.
selectList
(
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/business/TdHYGFInverterDayGenerateImpl.java
View file @
72601f7a
...
@@ -39,9 +39,9 @@ public class TdHYGFInverterDayGenerateImpl implements AscriptionService {
...
@@ -39,9 +39,9 @@ public class TdHYGFInverterDayGenerateImpl implements AscriptionService {
int
day
=
d
.
intValue
();
int
day
=
d
.
intValue
();
String
sql
=
""
;
String
sql
=
""
;
if
(
day
==
0
){
if
(
day
==
0
){
sql
=
" created_time>=TODAY() and created_time< TODAY() + 1d "
;
sql
=
"
and
created_time>=TODAY() and created_time< TODAY() + 1d "
;
}
else
{
}
else
{
sql
=
" created_time>=TODAY() - "
+
day
+
"d and created_time< TODAY() - "
+(
day
-
1
)+
"d "
;
sql
=
"
and
created_time>=TODAY() - "
+
day
+
"d and created_time< TODAY() - "
+(
day
-
1
)+
"d "
;
}
}
List
<
TdHYGFInverterDayGenerate
>
hygfjpDayPower
=
tdHYGFInverterDayGenerateMapper
.
selectList
(
List
<
TdHYGFInverterDayGenerate
>
hygfjpDayPower
=
tdHYGFInverterDayGenerateMapper
.
selectList
(
...
...
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