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
d65c7bd3
Commit
d65c7bd3
authored
Feb 29, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加权限过滤
parent
ed8343b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
McbWarningServiceImpl.java
.../module/jxiop/biz/service/impl/McbWarningServiceImpl.java
+33
-2
No files found.
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 @
d65c7bd3
...
...
@@ -42,6 +42,10 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
Map
<
String
,
Object
>
queryTodayCount
(
Integer
processingStatus
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryTodayCount
(
projectOrgCodes
,
processingStatus
);
}
...
...
@@ -53,6 +57,10 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
List
<
Map
<
String
,
Object
>>
queryWeekCount
()
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryWeekCount
(
projectOrgCodes
);
}
...
...
@@ -69,6 +77,10 @@ public class McbWarningServiceImpl implements IMcbWarningService {
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
long
start
=
page
.
getCurrent
()
-
1
;
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
offset
,
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
warningSourceType
);
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
...
...
@@ -88,6 +100,10 @@ public class McbWarningServiceImpl implements IMcbWarningService {
public
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
warningSourceType
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
warningSourceType
);
}
...
...
@@ -104,6 +120,10 @@ public class McbWarningServiceImpl implements IMcbWarningService {
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
long
start
=
page
.
getCurrent
()
-
1
;
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryQuestionList
(
start
,
offset
,
projectOrgCodes
,
completionStatus
);
Long
total
=
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
);
...
...
@@ -121,6 +141,10 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
Long
queryQuestionCount
(
Integer
completionStatus
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
);
}
...
...
@@ -223,7 +247,8 @@ public class McbWarningServiceImpl implements IMcbWarningService {
*/
@Override
public
Object
getTaskDetailStatistic
(
Map
<
String
,
Object
>
map
)
{
map
.
put
(
"projectOrgCodes"
,
this
.
getProjectOrgCodes
());
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
map
.
put
(
"projectOrgCodes"
,
projectOrgCodes
);
FeignClientResult
result
=
mcbWarningFeign
.
getTaskDetailStatistic
(
map
);
return
result
.
getResult
();
}
...
...
@@ -234,6 +259,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
*/
@Override
public
Object
getQuestionRecordStatistic
(
Map
<
String
,
Object
>
map
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
map
.
put
(
"projectOrgCodes"
,
this
.
getProjectOrgCodes
());
FeignClientResult
result
=
mcbWarningFeign
.
getQuestionRecordStatistic
(
map
);
return
result
.
getResult
();
...
...
@@ -245,7 +271,12 @@ public class McbWarningServiceImpl implements IMcbWarningService {
*/
@Override
public
Object
getMapRouteInfoByCodes
(
String
province
)
{
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getMapRouteInfoByCodes
(
province
,
this
.
getProjectOrgCodes
(),
"in"
);
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getMapRouteInfoByCodes
(
province
,
projectOrgCodes
,
"in"
);
return
result
.
getResult
();
}
...
...
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