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
39eebf06
Commit
39eebf06
authored
Jun 11, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预警列表查询条件
parent
34228114
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
29 deletions
+45
-29
IMcbWarningService.java
...mos/boot/module/jxiop/api/service/IMcbWarningService.java
+2
-2
McbWarningMapper.xml
...pi/src/main/resources/mapper/warning/McbWarningMapper.xml
+11
-3
McbWarningController.java
...oot/module/jxiop/biz/controller/McbWarningController.java
+8
-4
McbWarningMapper.java
...t/module/jxiop/biz/mcbwarningmapper/McbWarningMapper.java
+19
-15
McbWarningServiceImpl.java
.../module/jxiop/biz/service/impl/McbWarningServiceImpl.java
+5
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IMcbWarningService.java
View file @
39eebf06
...
@@ -29,7 +29,7 @@ public interface IMcbWarningService {
...
@@ -29,7 +29,7 @@ public interface IMcbWarningService {
* @return 预警信息列表
* @return 预警信息列表
*/
*/
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
overView
);
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
o
bjectName
,
String
o
verView
);
Page
<
OverviewQuestionDto
>
overviewQuestionList
(
Integer
current
,
Integer
size
,
String
startTime
,
String
endTime
);
Page
<
OverviewQuestionDto
>
overviewQuestionList
(
Integer
current
,
Integer
size
,
String
startTime
,
String
endTime
);
...
@@ -39,7 +39,7 @@ public interface IMcbWarningService {
...
@@ -39,7 +39,7 @@ public interface IMcbWarningService {
*
*
* @return 预警信息总数
* @return 预警信息总数
*/
*/
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
overView
);
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
o
bjectName
,
String
o
verView
);
/**
/**
* 问题信息列表
* 问题信息列表
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/warning/McbWarningMapper.xml
View file @
39eebf06
...
@@ -116,7 +116,9 @@
...
@@ -116,7 +116,9 @@
log.CONTENT,
log.CONTENT,
LEVEL.COLOR,
LEVEL.COLOR,
source.PROVINCE,
source.PROVINCE,
log.WARNING_SOURCE_TYPE
log.WARNING_SOURCE_TYPE,
log.OBJECT_NAME,
log.PROCESSING_STATUS_DESC
FROM
FROM
amos_mcb.mcb_warning_warning_info log
amos_mcb.mcb_warning_warning_info log
LEFT JOIN amos_mcb.mcb_warning_base_warning_level LEVEL ON log.EVENT_LEVEL = LEVEL.CODE and LEVEL.SEQUENCE_NBR in (1, 2, 3)
LEFT JOIN amos_mcb.mcb_warning_base_warning_level LEVEL ON log.EVENT_LEVEL = LEVEL.CODE and LEVEL.SEQUENCE_NBR in (1, 2, 3)
...
@@ -145,7 +147,10 @@
...
@@ -145,7 +147,10 @@
AND log.CREATE_DATE
<
= concat(#{endTime}, ' 23:59:59')
AND log.CREATE_DATE
<
= concat(#{endTime}, ' 23:59:59')
</if>
</if>
<if
test=
"warningSourceType != null and warningSourceType != ''"
>
<if
test=
"warningSourceType != null and warningSourceType != ''"
>
AND log.WARNING_SOURCE_TYPE = #{warningSourceType}
AND log.WARNING_SOURCE_TYPE like concat('%', #{warningSourceType}, '%')
</if>
<if
test=
"objectName != null and objectName != ''"
>
AND log.OBJECT_NAME like concat('%', #{objectName}, '%')
</if>
</if>
<if
test=
"overView != null and overView != ''"
>
<if
test=
"overView != null and overView != ''"
>
AND log.WARNING_SOURCE_TYPE_CODE IN (select code from mcb_data_dictionary where remark = 'OVERVIEW')
AND log.WARNING_SOURCE_TYPE_CODE IN (select code from mcb_data_dictionary where remark = 'OVERVIEW')
...
@@ -187,7 +192,10 @@
...
@@ -187,7 +192,10 @@
AND log.CREATE_DATE
<
= concat(#{endTime}, ' 23:59:59')
AND log.CREATE_DATE
<
= concat(#{endTime}, ' 23:59:59')
</if>
</if>
<if
test=
"warningSourceType != null and warningSourceType != ''"
>
<if
test=
"warningSourceType != null and warningSourceType != ''"
>
AND log.WARNING_SOURCE_TYPE = #{warningSourceType}
AND log.WARNING_SOURCE_TYPE like concat('%', #{warningSourceType}, '%')
</if>
<if
test=
"objectName != null and objectName != ''"
>
AND log.OBJECT_NAME like concat('%', #{objectName}, '%')
</if>
</if>
<if
test=
"overView != null and overView != ''"
>
<if
test=
"overView != null and overView != ''"
>
AND log.WARNING_SOURCE_TYPE_CODE IN (select code from mcb_data_dictionary where remark = 'OVERVIEW')
AND log.WARNING_SOURCE_TYPE_CODE IN (select code from mcb_data_dictionary where remark = 'OVERVIEW')
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/McbWarningController.java
View file @
39eebf06
...
@@ -67,10 +67,12 @@ public class McbWarningController {
...
@@ -67,10 +67,12 @@ public class McbWarningController {
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"overView"
,
required
=
false
)
String
overView
,
@RequestParam
(
value
=
"overView"
,
required
=
false
)
String
overView
,
@RequestParam
(
value
=
"warningSourceType"
,
required
=
false
)
String
warningSourceType
)
{
@RequestParam
(
value
=
"warningSourceType"
,
required
=
false
)
String
warningSourceType
,
@RequestParam
(
value
=
"objectName"
,
required
=
false
)
String
objectName
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
pageNumber
,
pageSize
);
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
pageNumber
,
pageSize
);
return
ResponseHelper
.
buildResponse
(
return
ResponseHelper
.
buildResponse
(
mcbWarningService
.
queryWarningPage
(
page
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
overView
));
mcbWarningService
.
queryWarningPage
(
page
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
o
bjectName
,
o
verView
));
}
}
/**
/**
...
@@ -103,8 +105,10 @@ public class McbWarningController {
...
@@ -103,8 +105,10 @@ public class McbWarningController {
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"overView"
,
required
=
false
)
String
overView
,
@RequestParam
(
value
=
"overView"
,
required
=
false
)
String
overView
,
@RequestParam
(
value
=
"warningSourceType"
,
required
=
false
)
String
warningSourceType
)
{
@RequestParam
(
value
=
"warningSourceType"
,
required
=
false
)
String
warningSourceType
,
Long
count
=
mcbWarningService
.
queryWarningCount
(
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
overView
);
@RequestParam
(
value
=
"objectName"
,
required
=
false
)
String
objectName
)
{
Long
count
=
mcbWarningService
.
queryWarningCount
(
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>()
{
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>()
{
{
{
this
.
put
(
"count"
,
count
);
this
.
put
(
"count"
,
count
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mcbwarningmapper/McbWarningMapper.java
View file @
39eebf06
...
@@ -44,24 +44,10 @@ public interface McbWarningMapper extends BaseMapper {
...
@@ -44,24 +44,10 @@ public interface McbWarningMapper extends BaseMapper {
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
endTime
,
@Param
(
"endTime"
)
String
endTime
,
@Param
(
"warningSourceType"
)
String
warningSourceType
,
@Param
(
"warningSourceType"
)
String
warningSourceType
,
@Param
(
"objectName"
)
String
objectName
,
@Param
(
"overView"
)
String
overView
@Param
(
"overView"
)
String
overView
);
);
List
<
OverviewQuestionDto
>
overviewQuestionList
(
Integer
offset
,
Integer
size
,
List
<
String
>
projectOrgCodes
,
String
startTime
,
String
endTime
);
Integer
overviewQuestionListTotal
(
List
<
String
>
projectOrgCodes
,
String
startTime
,
String
endTime
);
/**
/**
* 预警总数
* 预警总数
*
*
...
@@ -75,9 +61,27 @@ public interface McbWarningMapper extends BaseMapper {
...
@@ -75,9 +61,27 @@ public interface McbWarningMapper extends BaseMapper {
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"startTime"
)
String
startTime
,
@Param
(
"endTime"
)
String
endTime
,
@Param
(
"endTime"
)
String
endTime
,
@Param
(
"warningSourceType"
)
String
warningSourceType
,
@Param
(
"warningSourceType"
)
String
warningSourceType
,
@Param
(
"objectName"
)
String
objectName
,
@Param
(
"overView"
)
String
overView
@Param
(
"overView"
)
String
overView
);
);
List
<
OverviewQuestionDto
>
overviewQuestionList
(
Integer
offset
,
Integer
size
,
List
<
String
>
projectOrgCodes
,
String
startTime
,
String
endTime
);
Integer
overviewQuestionListTotal
(
List
<
String
>
projectOrgCodes
,
String
startTime
,
String
endTime
);
/**
/**
* 问题列表
* 问题列表
*
*
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/McbWarningServiceImpl.java
View file @
39eebf06
...
@@ -75,7 +75,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -75,7 +75,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
*/
*/
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
public
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
overView
)
{
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
o
bjectName
,
String
o
verView
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
long
start
=
page
.
getCurrent
()
-
1
;
long
start
=
page
.
getCurrent
()
-
1
;
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
...
@@ -83,9 +83,9 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -83,9 +83,9 @@ public class McbWarningServiceImpl implements IMcbWarningService {
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
offset
,
projectOrgCodes
,
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
offset
,
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
overView
);
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
o
bjectName
,
o
verView
);
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
overView
);
warningSourceType
,
o
bjectName
,
o
verView
);
page
.
setRecords
(
records
);
page
.
setRecords
(
records
);
page
.
setTotal
(
total
);
page
.
setTotal
(
total
);
return
page
;
return
page
;
...
@@ -123,13 +123,13 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -123,13 +123,13 @@ public class McbWarningServiceImpl implements IMcbWarningService {
*/
*/
@Override
@Override
public
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
public
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
overView
)
{
String
warningSourceType
,
String
o
bjectName
,
String
o
verView
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
return
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
return
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
overView
);
warningSourceType
,
o
bjectName
,
o
verView
);
}
}
/**
/**
...
...
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