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
fd6430b7
Commit
fd6430b7
authored
Oct 09, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
6549746f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
8 deletions
+57
-8
IdxBizFanWarningRuleSetController.java
...iop/biz/controller/IdxBizFanWarningRuleSetController.java
+7
-3
IdxBizFanWarningRuleSetMapper.java
...dule/jxiop/biz/mapper2/IdxBizFanWarningRuleSetMapper.java
+6
-0
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+3
-1
IdxBizFanWarningRuleSetServiceImpl.java
.../biz/service/impl/IdxBizFanWarningRuleSetServiceImpl.java
+10
-0
IdxBizFanWarningRuleSetMapper.xml
...esources/mapper/cluster/IdxBizFanWarningRuleSetMapper.xml
+27
-0
TemporaryDataMapper.xml
...src/main/resources/mapper/cluster/TemporaryDataMapper.xml
+2
-2
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanWarningRuleSetController.java
View file @
fd6430b7
...
@@ -15,6 +15,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -15,6 +15,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
*
*
...
@@ -93,12 +94,15 @@ public class IdxBizFanWarningRuleSetController extends BaseController {
...
@@ -93,12 +94,15 @@ public class IdxBizFanWarningRuleSetController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
IdxBizFanWarningRuleSetDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
(
value
=
"size"
)
int
size
)
{
Page
<
IdxBizFanWarningRuleSetDto
>
page
=
new
Page
<
IdxBizFanWarningRuleSetDto
>();
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
idxBizFanWarningRuleSetServiceImpl
.
queryForIdxBizFanWarningRuleSetPage
(
page
));
List
<
Map
<
String
,
Object
>>
data
=
idxBizFanWarningRuleSetServiceImpl
.
queryList
(
current
,
current
*
size
);
int
i
=
idxBizFanWarningRuleSetServiceImpl
.
queryListCount
();
page
.
setTotal
(
i
);
return
ResponseHelper
.
buildResponse
(
page
);
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mapper2/IdxBizFanWarningRuleSetMapper.java
View file @
fd6430b7
...
@@ -3,6 +3,9 @@ package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;
...
@@ -3,6 +3,9 @@ package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWarningRuleSet
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWarningRuleSet
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* Mapper 接口
* Mapper 接口
*
*
...
@@ -11,4 +14,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWarningRuleSet;
...
@@ -11,4 +14,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.entity.IdxBizFanWarningRuleSet;
*/
*/
public
interface
IdxBizFanWarningRuleSetMapper
extends
BaseMapper
<
IdxBizFanWarningRuleSet
>
{
public
interface
IdxBizFanWarningRuleSetMapper
extends
BaseMapper
<
IdxBizFanWarningRuleSet
>
{
List
<
Map
<
String
,
Object
>>
queryList
(
int
current
,
int
size
);
int
queryListCount
();
}
}
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 @
fd6430b7
...
@@ -975,7 +975,7 @@ public class CommonServiceImpl {
...
@@ -975,7 +975,7 @@ public class CommonServiceImpl {
return
s
;
return
s
;
}
}
@Scheduled
(
cron
=
"0 0/
10
* * * ?"
)
@Scheduled
(
cron
=
"0 0/
5
* * * ?"
)
public
void
healthWarningMinuteByFJ
()
{
public
void
healthWarningMinuteByFJ
()
{
Date
time
=
new
Date
();
Date
time
=
new
Date
();
List
<
IdxBizFanPointProcessVariableClassificationDto
>
data
=
idxBizFanPointProcessVariableClassificationMapper
.
getInfluxDBData
();
List
<
IdxBizFanPointProcessVariableClassificationDto
>
data
=
idxBizFanPointProcessVariableClassificationMapper
.
getInfluxDBData
();
...
@@ -1085,6 +1085,7 @@ public class CommonServiceImpl {
...
@@ -1085,6 +1085,7 @@ public class CommonServiceImpl {
IdxBizFanHealthLevel
idxBizFanHealthLevel
=
idxBizFanHealthLevelMapper
.
selectOne
(
query
);
IdxBizFanHealthLevel
idxBizFanHealthLevel
=
idxBizFanHealthLevelMapper
.
selectOne
(
query
);
idxBizFanHealthIndex
.
setHealthLevel
(
idxBizFanHealthLevel
.
getHealthLevel
());
idxBizFanHealthIndex
.
setHealthLevel
(
idxBizFanHealthLevel
.
getHealthLevel
());
idxBizFanHealthIndex
.
setAnalysisType
(
"按时刻"
);
idxBizFanHealthIndex
.
setAnalysisType
(
"按时刻"
);
idxBizFanHealthIndex
.
setAnalysisObjType
(
"测点"
);
idxBizFanHealthIndex
.
setANOMALY
(
object
.
getDouble
(
"scoreValue"
));
idxBizFanHealthIndex
.
setANOMALY
(
object
.
getDouble
(
"scoreValue"
));
idxBizFanHealthIndexs
.
add
(
idxBizFanHealthIndex
);
idxBizFanHealthIndexs
.
add
(
idxBizFanHealthIndex
);
}
}
...
@@ -1209,6 +1210,7 @@ public class CommonServiceImpl {
...
@@ -1209,6 +1210,7 @@ public class CommonServiceImpl {
IdxBizPvHealthLevel
idxBizFanHealthLevel
=
idxBizPvHealthLevelMapper
.
selectOne
(
query
);
IdxBizPvHealthLevel
idxBizFanHealthLevel
=
idxBizPvHealthLevelMapper
.
selectOne
(
query
);
idxBizFanHealthIndex
.
setHealthLevel
(
idxBizFanHealthLevel
.
getHealthLevel
());
idxBizFanHealthIndex
.
setHealthLevel
(
idxBizFanHealthLevel
.
getHealthLevel
());
idxBizFanHealthIndex
.
setAnalysisType
(
"按时刻"
);
idxBizFanHealthIndex
.
setAnalysisType
(
"按时刻"
);
idxBizFanHealthIndex
.
setAnalysisObjType
(
"测点"
);
idxBizFanHealthIndex
.
setANOMALY
(
object
.
getDouble
(
"scoreValue"
));
idxBizFanHealthIndex
.
setANOMALY
(
object
.
getDouble
(
"scoreValue"
));
idxBizPvHealthIndexs
.
add
(
idxBizFanHealthIndex
);
idxBizPvHealthIndexs
.
add
(
idxBizFanHealthIndex
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/IdxBizFanWarningRuleSetServiceImpl.java
View file @
fd6430b7
...
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
...
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 服务实现类
* 服务实现类
...
@@ -31,4 +32,12 @@ public class IdxBizFanWarningRuleSetServiceImpl extends BaseService<IdxBizFanWar
...
@@ -31,4 +32,12 @@ public class IdxBizFanWarningRuleSetServiceImpl extends BaseService<IdxBizFanWar
public
List
<
IdxBizFanWarningRuleSetDto
>
queryForIdxBizFanWarningRuleSetList
()
{
public
List
<
IdxBizFanWarningRuleSetDto
>
queryForIdxBizFanWarningRuleSetList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
public
List
<
Map
<
String
,
Object
>>
queryList
(
int
current
,
int
size
)
{
return
this
.
getBaseMapper
().
queryList
(
current
,
size
);
}
public
int
queryListCount
()
{
return
this
.
getBaseMapper
().
queryListCount
();
}
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanWarningRuleSetMapper.xml
View file @
fd6430b7
...
@@ -2,4 +2,31 @@
...
@@ -2,4 +2,31 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.biz.mapper2.IdxBizFanWarningRuleSetMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.biz.mapper2.IdxBizFanWarningRuleSetMapper"
>
<select
id=
"queryList"
resultType=
"map"
>
SELECT *,
(
SELECT zy.WARNING_IF
FROM `idx_biz_fan_warning_rule_set` zy
WHERE zy.WARNING_NAME = '注意'
LIMIT 1 ) AS WARNING_ZY,
(
SELECT zy.WARNING_IF
FROM `idx_biz_fan_warning_rule_set` zy
WHERE zy.WARNING_NAME = '危险'
LIMIT 1) AS WARNING_WX
FROM
`idx_biz_fan_warning_rule_set`
WHERE
WARNING_NAME = '警告'
Limit #{current},#{size}
</select>
<select
id=
"queryListCount"
resultType=
"INT"
>
SELECT count(1)
FROM
`idx_biz_fan_warning_rule_set` WHERE
WARNING_NAME = '警告'
</select>
</mapper>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/mapper/cluster/TemporaryDataMapper.xml
View file @
fd6430b7
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<select
id=
"timingTemporarysSorageData"
resultType=
"map"
>
<select
id=
"timingTemporarysSorageData"
resultType=
"map"
>
SELECT
avg(value)
as value ,
SELECT FORMAT( avg(value),2)
as value ,
created_time as createdTime ,
created_time as createdTime ,
equipmentIndexName
equipmentIndexName
FROM
FROM
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
fd6430b7
...
@@ -590,8 +590,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -590,8 +590,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public
void
schedAddAlarmEventData
(
String
gatewayId
,
String
stationId
,
String
stationName
,
long
currentsort
)
{
public
void
schedAddAlarmEventData
(
String
gatewayId
,
String
stationId
,
String
stationName
,
long
currentsort
)
{
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringSystemType
,
Arrays
.
asList
(
"光字牌"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringSystemType
Keyword
,
Arrays
.
asList
(
"光字牌"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringValue
,
Arrays
.
asList
(
"false"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringValue
Keyword
,
Arrays
.
asList
(
"false"
));
List
<
ESEquipments
>
indicatorsDtoList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
List
<
ESEquipments
>
indicatorsDtoList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
List
<
AlarmEvent
>
newAlarmEvents
=
new
ArrayList
<>();
List
<
AlarmEvent
>
newAlarmEvents
=
new
ArrayList
<>();
List
<
String
>
alarmsNames
=
new
ArrayList
<>();
List
<
String
>
alarmsNames
=
new
ArrayList
<>();
...
...
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