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
ae2951b0
Commit
ae2951b0
authored
Jun 12, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://36.40.66.175:5000/moa/jxdj_zx/amos-boot-zx-biz
into developer
parents
d31f4b07
5ead37be
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
54 additions
and
36 deletions
+54
-36
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+1
-1
IMcbWarningService.java
...mos/boot/module/jxiop/api/service/IMcbWarningService.java
+2
-2
McbWarningMapper.xml
...pi/src/main/resources/mapper/warning/McbWarningMapper.xml
+14
-5
SjglZsjZsbtzMapper.xml
.../src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
+1
-0
McbWarningController.java
...oot/module/jxiop/biz/controller/McbWarningController.java
+8
-4
McbWarningMapper.java
...t/module/jxiop/biz/mcbwarningmapper/McbWarningMapper.java
+20
-16
McbWarningServiceImpl.java
.../module/jxiop/biz/service/impl/McbWarningServiceImpl.java
+8
-8
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
ae2951b0
...
@@ -470,7 +470,7 @@
...
@@ -470,7 +470,7 @@
<if
test=
"dto.amosCompanyCode!=null"
>
<if
test=
"dto.amosCompanyCode!=null"
>
and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode}
and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode}
</if>
</if>
and hygf_jp_station.`on_grid_type`
=
null and hygf_jp_station.type='家庭户用'
and hygf_jp_station.`on_grid_type`
is
null and hygf_jp_station.type='家庭户用'
</where>
</where>
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IMcbWarningService.java
View file @
ae2951b0
...
@@ -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 @
ae2951b0
...
@@ -116,7 +116,10 @@
...
@@ -116,7 +116,10 @@
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,
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 +148,10 @@
...
@@ -145,7 +148,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')
...
@@ -153,7 +159,7 @@
...
@@ -153,7 +159,7 @@
</where>
</where>
ORDER BY
ORDER BY
log.CREATE_DATE DESC
log.CREATE_DATE DESC
LIMIT #{start}, #{
offset
}
LIMIT #{start}, #{
size
}
</select>
</select>
<select
id=
"queryWarningCount"
resultType=
"java.lang.Long"
>
<select
id=
"queryWarningCount"
resultType=
"java.lang.Long"
>
...
@@ -187,7 +193,10 @@
...
@@ -187,7 +193,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')
...
@@ -199,7 +208,7 @@
...
@@ -199,7 +208,7 @@
SELECT
SELECT
warning.SEQUENCE_NBR warningId,
warning.SEQUENCE_NBR warningId,
question.CREATE_DATE createDate,
question.CREATE_DATE createDate,
question
.CONTENT content,
warning
.CONTENT content,
question.COMPLETION_STATUS_DESC completionStatusDesc,
question.COMPLETION_STATUS_DESC completionStatusDesc,
question.SOURCE_ATTRIBUTION_DESC sourceAttributionDesc
question.SOURCE_ATTRIBUTION_DESC sourceAttributionDesc
FROM
FROM
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
View file @
ae2951b0
...
@@ -155,6 +155,7 @@
...
@@ -155,6 +155,7 @@
ifnull(a.qrcode_color, '') AS qrCodeColor,
ifnull(a.qrcode_color, '') AS qrCodeColor,
ifnull(b.COMPANY_NAME, '') AS stationName,
ifnull(b.COMPANY_NAME, '') AS stationName,
ifnull(a.CREATE_TIME, '') as recDate,
ifnull(a.CREATE_TIME, '') as recDate,
ifnull(a.UPDATE_STAMP, '') as updateTime,
a.DBID AS objectId,
a.DBID AS objectId,
c.SBBM as jobId,
c.SBBM as jobId,
case when a.QRCODE_COLOR = 'red' then 1
case when a.QRCODE_COLOR = 'red' then 1
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/McbWarningController.java
View file @
ae2951b0
...
@@ -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 @
ae2951b0
...
@@ -36,7 +36,7 @@ public interface McbWarningMapper extends BaseMapper {
...
@@ -36,7 +36,7 @@ public interface McbWarningMapper extends BaseMapper {
*/
*/
List
<
Map
<
String
,
Object
>>
queryWarningList
(
List
<
Map
<
String
,
Object
>>
queryWarningList
(
@Param
(
"start"
)
Long
start
,
@Param
(
"start"
)
Long
start
,
@Param
(
"
offset"
)
Long
offset
,
@Param
(
"
size"
)
Long
size
,
@Param
(
"projectOrgCodes"
)
List
<
String
>
projectOrgCodes
,
@Param
(
"projectOrgCodes"
)
List
<
String
>
projectOrgCodes
,
@Param
(
"processingStatus"
)
Integer
processingStatus
,
@Param
(
"processingStatus"
)
Integer
processingStatus
,
@Param
(
"eventLevel"
)
String
eventLevel
,
@Param
(
"eventLevel"
)
String
eventLevel
,
...
@@ -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 @
ae2951b0
...
@@ -75,17 +75,17 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -75,17 +75,17 @@ 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
)
*
page
.
getSize
()
;
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
long
size
=
page
.
getSize
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
offset
,
projectOrgCodes
,
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
size
,
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