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
01317c76
Commit
01317c76
authored
Jun 11, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分页
parent
b017bf4e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
McbWarningMapper.xml
...pi/src/main/resources/mapper/warning/McbWarningMapper.xml
+1
-1
McbWarningMapper.java
...t/module/jxiop/biz/mcbwarningmapper/McbWarningMapper.java
+1
-1
McbWarningServiceImpl.java
.../module/jxiop/biz/service/impl/McbWarningServiceImpl.java
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/warning/McbWarningMapper.xml
View file @
01317c76
...
@@ -159,7 +159,7 @@
...
@@ -159,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"
>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mcbwarningmapper/McbWarningMapper.java
View file @
01317c76
...
@@ -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
,
...
...
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 @
01317c76
...
@@ -77,12 +77,12 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -77,12 +77,12 @@ public class McbWarningServiceImpl implements IMcbWarningService {
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
objectName
,
String
overView
)
{
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
objectName
,
String
overView
)
{
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
,
objectName
,
overView
);
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
warningSourceType
,
objectName
,
overView
);
...
...
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