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
8e44700d
Commit
8e44700d
authored
Feb 28, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智能分析指标权限配置权限过滤问题处理
parent
83f124b9
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
59 additions
and
19 deletions
+59
-19
IdxBizFanWeightController.java
...odule/jxiop/biz/controller/IdxBizFanWeightController.java
+2
-2
IdxBizPvWeightController.java
...module/jxiop/biz/controller/IdxBizPvWeightController.java
+2
-2
IdxBizFanPointProcessVariableClassificationDto.java
...z/dto/IdxBizFanPointProcessVariableClassificationDto.java
+4
-0
IdxBizPvPointProcessVariableClassificationDto.java
...iz/dto/IdxBizPvPointProcessVariableClassificationDto.java
+14
-11
IdxBizFanPointProcessVariableClassification.java
...z/entity/IdxBizFanPointProcessVariableClassification.java
+5
-0
IdxBizPvPointProcessVariableClassification.java
...iz/entity/IdxBizPvPointProcessVariableClassification.java
+4
-0
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+2
-0
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+3
-0
FanHealthIndex.java
...n/amos/boot/module/jxiop/biz/tdengine/FanHealthIndex.java
+1
-0
FanHealthIndexDay.java
...mos/boot/module/jxiop/biz/tdengine/FanHealthIndexDay.java
+1
-0
FanHealthIndexHour.java
...os/boot/module/jxiop/biz/tdengine/FanHealthIndexHour.java
+1
-0
FanHealthIndexMoment.java
.../boot/module/jxiop/biz/tdengine/FanHealthIndexMoment.java
+1
-0
FanWarningRecord.java
...amos/boot/module/jxiop/biz/tdengine/FanWarningRecord.java
+1
-0
PvHealthIndex.java
...in/amos/boot/module/jxiop/biz/tdengine/PvHealthIndex.java
+1
-1
PvHealthIndexDay.java
...amos/boot/module/jxiop/biz/tdengine/PvHealthIndexDay.java
+1
-0
PvHealthIndexHour.java
...mos/boot/module/jxiop/biz/tdengine/PvHealthIndexHour.java
+1
-1
PvHealthIndexMoment.java
...s/boot/module/jxiop/biz/tdengine/PvHealthIndexMoment.java
+1
-1
PvWarningRecord.java
.../amos/boot/module/jxiop/biz/tdengine/PvWarningRecord.java
+1
-0
IdxBizPvHealthIndexMapper.xml
...in/resources/mapper/cluster/IdxBizPvHealthIndexMapper.xml
+3
-1
FanHealthIndex.xml
...iz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
+8
-0
FanWarningRecord.xml
.../src/main/resources/mapper/tdengine2/FanWarningRecord.xml
+1
-0
PvHealthIndex.xml
...biz/src/main/resources/mapper/tdengine2/PvHealthIndex.xml
+1
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanWeightController.java
View file @
8e44700d
...
...
@@ -58,7 +58,7 @@ public class IdxBizFanWeightController extends BaseController {
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
if
(
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(
!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
}
LambdaQueryWrapper
<
IdxBizFanWeight
>
qu
=
new
LambdaQueryWrapper
<>();
...
...
@@ -123,7 +123,7 @@ public class IdxBizFanWeightController extends BaseController {
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
if
(
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(
!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
}
QueryWrapper
<
IdxBizFanWeight
>
qu
=
new
QueryWrapper
<>();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizPvWeightController.java
View file @
8e44700d
...
...
@@ -63,7 +63,7 @@ public class IdxBizPvWeightController extends BaseController {
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
if
(
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(
!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
}
LambdaQueryWrapper
<
IdxBizPvWeight
>
qu
=
new
LambdaQueryWrapper
<>();
...
...
@@ -130,7 +130,7 @@ public class IdxBizPvWeightController extends BaseController {
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
if
(
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(
!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
}
QueryWrapper
<
IdxBizPvWeight
>
qu
=
new
QueryWrapper
<>();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/IdxBizFanPointProcessVariableClassificationDto.java
View file @
8e44700d
...
...
@@ -104,6 +104,10 @@ public class IdxBizFanPointProcessVariableClassificationDto {
@TableField
(
"KKS"
)
private
String
kks
;
@ApiModelProperty
(
value
=
"orgCode"
)
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
private
Double
currentValue
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/IdxBizPvPointProcessVariableClassificationDto.java
View file @
8e44700d
...
...
@@ -5,22 +5,22 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
/**
*
*
* @author system_generator
* @date 2023-08-15
*/
@Data
@ApiModel
(
value
=
"IdxBizPvPointProcessVariableClassificationDto"
,
description
=
""
)
public
class
IdxBizPvPointProcessVariableClassificationDto
{
@ApiModel
(
value
=
"IdxBizPvPointProcessVariableClassificationDto"
,
description
=
""
)
public
class
IdxBizPvPointProcessVariableClassificationDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
"SEQUENCE_NBR"
)
...
...
@@ -102,12 +102,15 @@ public class IdxBizPvPointProcessVariableClassificationDto {
@ApiModelProperty
(
value
=
"KKS码"
)
@TableField
(
"KKS"
)
private
String
kks
;
@ApiModelProperty
(
value
=
"orgCode"
)
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
private
Double
currentValue
;
private
Double
currentValue
;
private
String
pointOneId
;
private
String
pointTwoId
;
private
String
pointThreeId
;
private
String
pointOneId
;
private
String
pointTwoId
;
private
String
pointThreeId
;
private
String
analysVariableId
;
private
String
analysVariableId
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizFanPointProcessVariableClassification.java
View file @
8e44700d
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
...
...
@@ -156,4 +157,8 @@ public class IdxBizFanPointProcessVariableClassification{
@TableField
(
"KKS"
)
private
String
kks
;
@ApiModelProperty
(
value
=
"orgCode"
)
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizPvPointProcessVariableClassification.java
View file @
8e44700d
...
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
...
...
@@ -164,4 +165,7 @@ public class IdxBizPvPointProcessVariableClassification{
@TableField
(
"KKS"
)
private
String
kks
;
@ApiModelProperty
(
value
=
"orgCode"
)
@TableField
(
"ORG_CODE"
)
private
String
orgCode
;
}
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 @
8e44700d
...
...
@@ -1740,6 +1740,7 @@ public class CommonServiceImpl {
fanHealthIndex
.
setHealthLevel
(
fanHealthIndex
.
getHealthLevel
());
fanHealthIndex
.
setKks
(
idxBizFanHealthIndex
.
getKks
());
fanHealthIndex
.
setRecDate
(
format
);
fanHealthIndex
.
setOrgCode
(
obj
.
getOrgCode
());
fanHealthIndices1
.
add
(
fanHealthIndex
);
}
}
...
...
@@ -2019,6 +2020,7 @@ public class CommonServiceImpl {
pvHealthIndex
.
setHealthLevel
(
idxBizPvHealthIndex
.
getHealthLevel
());
pvHealthIndex
.
setKks
(
idxBizPvHealthIndex
.
getKks
());
pvHealthIndex
.
setRecDate
(
format
);
pvHealthIndex
.
setOrgCode
(
obj
.
getOrgCode
());
fanHealthIndices1
.
add
(
pvHealthIndex
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HealthStatusIndicatorServiceImpl.java
View file @
8e44700d
...
...
@@ -804,6 +804,7 @@ public class HealthStatusIndicatorServiceImpl {
fanWarningRecord
.
setRecDate
(
format
);
fanWarningRecord
.
setTs
(
timestamp
);
fanWarningRecord
.
setHealthIndex
(
String
.
format
(
CommonConstans
.
Onedecimalplaces
,
idxBizFanHealthIndices
.
get
(
0
).
getHealthIndex
()));
fanWarningRecord
.
setOrgCode
(
idxBizFanHealthIndices
.
get
(
0
).
getOrgCode
());
tdFanWarningRecordList
.
add
(
fanWarningRecord
);
...
...
@@ -972,6 +973,7 @@ public class HealthStatusIndicatorServiceImpl {
fanWarningRecord
.
setRecDate
(
format
);
fanWarningRecord
.
setTs
(
timestamp
);
fanWarningRecord
.
setHealthIndex
(
String
.
format
(
CommonConstans
.
Onedecimalplaces
,
idxBizFanHealthIndices
.
get
(
0
).
getHealthIndex
()));
fanWarningRecord
.
setOrgCode
(
idxBizFanHealthIndices
.
get
(
0
).
getOrgCode
());
tdFanWarningRecordList
.
add
(
fanWarningRecord
);
}
}
...
...
@@ -1143,6 +1145,7 @@ public class HealthStatusIndicatorServiceImpl {
fanWarningRecord
.
setRecDate
(
format
);
fanWarningRecord
.
setTs
(
timestamp
);
fanWarningRecord
.
setHealthIndex
(
String
.
format
(
CommonConstans
.
Onedecimalplaces
,
idxBizFanHealthIndices
.
get
(
0
).
getHealthIndex
()));
fanWarningRecord
.
setOrgCode
(
idxBizFanHealthIndices
.
get
(
0
).
getOrgCode
());
tdFanWarningRecordList
.
add
(
fanWarningRecord
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/FanHealthIndex.java
View file @
8e44700d
...
...
@@ -30,4 +30,5 @@ public class FanHealthIndex implements Serializable {
private
String
pointName
;
private
String
analysisTime
;
private
String
kks
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/FanHealthIndexDay.java
View file @
8e44700d
...
...
@@ -31,4 +31,5 @@ public class FanHealthIndexDay implements Serializable {
private
String
kks
;
private
String
status
;
private
String
value
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/FanHealthIndexHour.java
View file @
8e44700d
...
...
@@ -31,4 +31,5 @@ public class FanHealthIndexHour implements Serializable {
private
String
kks
;
private
String
status
;
private
String
value
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/FanHealthIndexMoment.java
View file @
8e44700d
...
...
@@ -31,4 +31,5 @@ public class FanHealthIndexMoment implements Serializable {
private
String
kks
;
private
String
status
;
private
String
value
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/FanWarningRecord.java
View file @
8e44700d
...
...
@@ -28,4 +28,5 @@ public class FanWarningRecord implements Serializable {
private
String
kks
;
private
String
warningPeriod
;
private
String
status
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/PvHealthIndex.java
View file @
8e44700d
...
...
@@ -34,5 +34,5 @@ public class PvHealthIndex {
private
String
pointName
;
private
String
analysisTime
;
private
String
kks
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/PvHealthIndexDay.java
View file @
8e44700d
...
...
@@ -36,4 +36,5 @@ public class PvHealthIndexDay {
private
String
kks
;
private
String
value
;
private
String
status
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/PvHealthIndexHour.java
View file @
8e44700d
...
...
@@ -36,5 +36,5 @@ public class PvHealthIndexHour {
private
String
kks
;
private
String
value
;
private
String
status
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/PvHealthIndexMoment.java
View file @
8e44700d
...
...
@@ -36,5 +36,5 @@ public class PvHealthIndexMoment {
private
String
kks
;
private
String
value
;
private
String
status
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdengine/PvWarningRecord.java
View file @
8e44700d
...
...
@@ -30,4 +30,5 @@ public class PvWarningRecord implements Serializable {
private
String
kks
;
private
String
warningPeriod
;
private
String
status
;
private
String
orgCode
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizPvHealthIndexMapper.xml
View file @
8e44700d
...
...
@@ -358,7 +358,8 @@
`ANOMALY`,
`POINT_NAME`,
`ANALYSIS_TIME`,
`KKS`
`KKS`,
`ORG_CODE`
)
values
<foreach
collection=
"list"
separator=
","
item=
"item"
index=
"index"
>
...
...
@@ -383,6 +384,7 @@
#{item.pointName, jdbcType=VARCHAR},
#{item.analysisTime, jdbcType=VARCHAR},
#{item.kks, jdbcType=VARCHAR}
#{item.orgCode, jdbcType=VARCHAR}
)
</foreach>
</insert>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
View file @
8e44700d
...
...
@@ -29,6 +29,7 @@
#{item.pointName, jdbcType=VARCHAR},
#{item.analysisTime, jdbcType=VARCHAR},
#{item.kks, jdbcType=VARCHAR}
#{item.orgCode, jdbcType=VARCHAR}
)
</foreach>
</insert>
...
...
@@ -48,6 +49,7 @@
avg(anomaly) as anomaly,
point_name,
kks,
org_code,
AVG(health_index) as health_index
from
#{tableName}
...
...
@@ -79,6 +81,7 @@
equipment_name,
number,
avg(anomaly) as anomaly,
org_code,
AVG(health_index) as health_index
from
#{tableName}
...
...
@@ -104,6 +107,7 @@
number,
equipment_name,
avg(anomaly) as anomaly,
org_code,
AVG(health_index) as health_index
from
#{tableName}
...
...
@@ -126,6 +130,7 @@
'场站' as analysis_obj_type,
area,
avg(anomaly) as anomaly,
org_code,
AVG(health_index) as health_index
from
#{tableName}
...
...
@@ -144,6 +149,7 @@
'片区' as analysis_obj_type,
area,
avg(anomaly) as anomaly,
org_code,
AVG(health_index) as health_index
from
#{tableName}
...
...
@@ -224,6 +230,7 @@
#{item.pointName, jdbcType=VARCHAR},
#{item.analysisTime, jdbcType=VARCHAR},
#{item.kks, jdbcType=VARCHAR}
#{item.orgCode, jdbcType=VARCHAR}
)
</foreach>
...
...
@@ -498,6 +505,7 @@
select
'全域' as analysis_obj_type,
avg(anomaly) as anomaly,
org_code,
AVG(health_index) as health_index
from
#{tableName}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanWarningRecord.xml
View file @
8e44700d
...
...
@@ -52,6 +52,7 @@
#{item.kks, jdbcType=VARCHAR},
#{item.warningPeriod, jdbcType=VARCHAR},
#{item.status, jdbcType=VARCHAR})
#{item.orgCode, jdbcType=VARCHAR})
</foreach>
</insert>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/PvHealthIndex.xml
View file @
8e44700d
...
...
@@ -63,6 +63,7 @@
#{item.pointName, jdbcType=VARCHAR},
#{item.analysisTime, jdbcType=VARCHAR},
#{item.kks, jdbcType=VARCHAR}
#{item.orgCode, jdbcType=VARCHAR}
)
</foreach>
</insert>
...
...
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