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
a4d6eec7
Commit
a4d6eec7
authored
Aug 06, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分析光伏预警生成数据不对
parent
cd67f54d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
23 deletions
+10
-23
TestController.java
...amos/boot/module/jxiop/biz/controller/TestController.java
+9
-22
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TestController.java
View file @
a4d6eec7
...
...
@@ -9,6 +9,7 @@ import java.util.Map;
import
java.util.Map.Entry
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.HealthStatusIndicatorServiceImpl
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -47,6 +48,8 @@ public class TestController extends BaseController {
IndicatorDataMapper
indicatorDataMapper
;
@Autowired
CommonServiceImpl
commonService
;
@Autowired
HealthStatusIndicatorServiceImpl
healthStatusIndicatorService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"test1"
,
notes
=
"test1"
)
...
...
@@ -162,29 +165,13 @@ public class TestController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"test2"
,
notes
=
"test1"
)
@GetMapping
(
"/
set-date
"
)
@GetMapping
(
"/
test123
"
)
public
void
clearRecord
()
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
String
d
=
sdf
.
format
(
new
Date
());
LambdaQueryWrapper
<
FanWarningRecord
>
wf
=
new
LambdaQueryWrapper
<>();
wf
.
isNull
(
FanWarningRecord:
:
getDisposotionDate
);
List
<
FanWarningRecord
>
list
=
fanWaringRecordMapper
.
selectList
(
wf
);
if
(!
list
.
isEmpty
())
{
list
.
forEach
(
i
->
{
i
.
setDisposotionDate
(
d
);
});
fanWaringRecordMapper
.
saveBatchWarningRecords
(
list
);
}
LambdaQueryWrapper
<
PvWarningRecord
>
pf
=
new
LambdaQueryWrapper
<>();
pf
.
isNull
(
PvWarningRecord:
:
getDisposotionDate
);
List
<
PvWarningRecord
>
list1
=
pvWaringRecordMapper
.
selectList
(
pf
);
if
(!
list1
.
isEmpty
())
{
list1
.
forEach
(
i
->
{
i
.
setDisposotionDate
(
d
);
});
pvWaringRecordMapper
.
saveBatchWarningRecords
(
list1
);
}
Date
time
=
new
Date
();
time
=
DateUtil
.
offsetMinute
(
time
,
-
DateUtil
.
minute
(
time
)
%
10
);
String
format
=
DateUtil
.
format
(
time
,
"yyyy-MM-dd HH:mm:00"
);
time
=
DateUtil
.
parse
(
format
,
"yyyy-MM-dd HH:mm:00"
);
healthStatusIndicatorService
.
healthWarningMinuteGF
(
time
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
PUBLIC
,
needAuth
=
false
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
a4d6eec7
...
...
@@ -2694,7 +2694,7 @@ public class CommonServiceImpl {
BeanUtil
.
copyProperties
(
idxBizPvHealthIndex
,
pvHealthIndex
);
pvHealthIndex
.
setWeight
(
idxBizPvHealthIndex
.
getWeigth
());
pvHealthIndex
.
setAnomaly
(
idxBizPvHealthIndex
.
getANOMALY
());
pvHealthIndex
.
setRecDate
(
DateUtil
.
now
()
);
pvHealthIndex
.
setRecDate
(
format
);
pvHealthIndex
.
setArea
(
idxBizPvHealthIndex
.
getArae
());
pvHealthIndex
.
setAnalysisTime
(
format
);
pvHealthIndex
.
setHealthLevel
(
idxBizPvHealthIndex
.
getHealthLevel
());
...
...
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