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
ed8343b3
Commit
ed8343b3
authored
Feb 29, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改智能分析健康指数、权重等权限过滤
parent
c2cdd554
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
24 deletions
+31
-24
TdInfoQueryController.java
...ot/module/jxiop/biz/controller/TdInfoQueryController.java
+8
-8
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+1
-0
FanHealthIndex.xml
...iz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
+6
-4
FanWarningRecord.xml
.../src/main/resources/mapper/tdengine2/FanWarningRecord.xml
+4
-4
PvHealthIndex.xml
...biz/src/main/resources/mapper/tdengine2/PvHealthIndex.xml
+6
-4
PvWarningRecord.xml
...z/src/main/resources/mapper/tdengine2/PvWarningRecord.xml
+6
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TdInfoQueryController.java
View file @
ed8343b3
...
@@ -84,9 +84,9 @@ public class TdInfoQueryController extends BaseController {
...
@@ -84,9 +84,9 @@ public class TdInfoQueryController extends BaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
String
orgCode
=
"86"
+
"%"
;
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
)
+
"%"
;
}
}
dto
.
setOrgCode
(
orgCode
);
dto
.
setOrgCode
(
orgCode
);
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
...
@@ -160,9 +160,9 @@ public class TdInfoQueryController extends BaseController {
...
@@ -160,9 +160,9 @@ public class TdInfoQueryController extends BaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
String
orgCode
=
"86"
+
"%"
;
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
)
+
"%"
;
}
}
dto
.
setOrgCode
(
orgCode
);
dto
.
setOrgCode
(
orgCode
);
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
...
@@ -219,9 +219,9 @@ public class TdInfoQueryController extends BaseController {
...
@@ -219,9 +219,9 @@ public class TdInfoQueryController extends BaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
String
orgCode
=
"86"
+
"%"
;
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
)
+
"%"
;
}
}
dto
.
setOrgCode
(
orgCode
);
dto
.
setOrgCode
(
orgCode
);
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
...
@@ -277,9 +277,9 @@ public class TdInfoQueryController extends BaseController {
...
@@ -277,9 +277,9 @@ public class TdInfoQueryController extends BaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
String
userId
=
reginParams
.
getUserModel
().
getUserId
();
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
StdUserEmpower
stdUserEmpower
=
userEmpowerMapper
.
selectOne
(
new
QueryWrapper
<
StdUserEmpower
>().
eq
(
"amos_user_id"
,
userId
).
eq
(
"permission_type"
,
"YTH"
));
String
orgCode
=
"86"
;
String
orgCode
=
"86"
+
"%"
;
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
if
(!
ObjectUtils
.
isEmpty
(
stdUserEmpower
))
{
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
);
orgCode
=
stdUserEmpower
.
getAmosOrgCode
().
get
(
0
)
+
"%"
;
}
}
dto
.
setOrgCode
(
orgCode
);
dto
.
setOrgCode
(
orgCode
);
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
...
...
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 @
ed8343b3
...
@@ -301,6 +301,7 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -301,6 +301,7 @@ public class HealthStatusIndicatorServiceImpl {
pvWarningRecord
.
setRecDate
(
format
);
pvWarningRecord
.
setRecDate
(
format
);
pvWarningRecord
.
setTs
(
timestamp
);
pvWarningRecord
.
setTs
(
timestamp
);
pvWarningRecord
.
setHealthIndex
(
String
.
format
(
CommonConstans
.
Onedecimalplaces
,
idxBizPvHealthIndices
.
get
(
0
).
getHealthIndex
()));
pvWarningRecord
.
setHealthIndex
(
String
.
format
(
CommonConstans
.
Onedecimalplaces
,
idxBizPvHealthIndices
.
get
(
0
).
getHealthIndex
()));
pvWarningRecord
.
setOrgCode
(
idxBizPvHealthIndices
.
get
(
0
).
getOrgCode
());
tdPvWarningRecordList
.
add
(
pvWarningRecord
);
tdPvWarningRecordList
.
add
(
pvWarningRecord
);
// idxBizPvWarningRecordMapper.insert(idxBizPvWarningRecord);
// idxBizPvWarningRecordMapper.insert(idxBizPvWarningRecord);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
View file @
ed8343b3
...
@@ -181,10 +181,11 @@
...
@@ -181,10 +181,11 @@
<if
test=
"dto.subSystem!= null and dto.subSystem!= ''"
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
"dto.subSystem!= null and dto.subSystem!= ''"
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like CONCAT(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
order by ${dto.orderColumns}
order by ${dto.orderColumns}
</if>
</if>
...
@@ -209,10 +210,11 @@
...
@@ -209,10 +210,11 @@
<if
test=
"dto.subSystem!= null and dto.subSystem!= ''"
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
"dto.subSystem!= null and dto.subSystem!= ''"
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like CONCAT(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
</select>
</select>
<select
id=
"saveBatchHealthIndexLatestInfo"
resultType=
"int"
>
<select
id=
"saveBatchHealthIndexLatestInfo"
resultType=
"int"
>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanWarningRecord.xml
View file @
ed8343b3
...
@@ -241,10 +241,10 @@
...
@@ -241,10 +241,10 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like concat(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
order by ${dto.orderColumns}
order by ${dto.orderColumns}
</if>
</if>
...
@@ -271,10 +271,10 @@
...
@@ -271,10 +271,10 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like concat(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
</select>
</select>
<select
id=
"getInfoByTs"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanWarningRecord"
>
<select
id=
"getInfoByTs"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanWarningRecord"
>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/PvHealthIndex.xml
View file @
ed8343b3
...
@@ -212,10 +212,11 @@
...
@@ -212,10 +212,11 @@
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like CONCAT(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
order by ${dto.orderColumns}
order by ${dto.orderColumns}
</if>
</if>
...
@@ -239,10 +240,11 @@
...
@@ -239,10 +240,11 @@
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like CONCAT(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
</select>
</select>
<select
id=
"saveBatchHealthIndexLatestInfo"
resultType=
"int"
>
<select
id=
"saveBatchHealthIndexLatestInfo"
resultType=
"int"
>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/PvWarningRecord.xml
View file @
ed8343b3
...
@@ -260,10 +260,11 @@
...
@@ -260,10 +260,11 @@
<if
test=
"dto.disposotionState!= null and dto.disposotionState!= ''"
>
AND disposotion_state = #{dto.disposotionState}
</if>
<if
test=
"dto.disposotionState!= null and dto.disposotionState!= ''"
>
AND disposotion_state = #{dto.disposotionState}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= '' "
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= '' "
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like concat(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
order by ${dto.orderColumns}
order by ${dto.orderColumns}
</if>
</if>
...
@@ -285,10 +286,11 @@
...
@@ -285,10 +286,11 @@
<if
test=
"dto.disposotionState!= null and dto.disposotionState!= ''"
>
AND disposotion_state = #{dto.disposotionState}
</if>
<if
test=
"dto.disposotionState!= null and dto.disposotionState!= ''"
>
AND disposotion_state = #{dto.disposotionState}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= '' "
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= '' "
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
</where>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
<if
test=
"dto.orgCode != null and dto.orgCode != ''"
>
org_code like concat(#{dto.orgCode},'%')
and org_code like #{dto.orgCode}
</if>
</if>
</where>
</select>
</select>
<select
id=
"getInfoByTs"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord"
>
<select
id=
"getInfoByTs"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord"
>
...
...
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