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
b5a0e298
Commit
b5a0e298
authored
Mar 22, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加跑马灯筛选接口
parent
af56b939
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
188 additions
and
194 deletions
+188
-194
McbWarningFeign.java
...oin/amos/boot/module/jxiop/api/feign/McbWarningFeign.java
+86
-88
IMcbWarningService.java
...mos/boot/module/jxiop/api/service/IMcbWarningService.java
+86
-84
McbWarningController.java
...oot/module/jxiop/biz/controller/McbWarningController.java
+0
-0
McbWarningServiceImpl.java
.../module/jxiop/biz/service/impl/McbWarningServiceImpl.java
+16
-22
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/feign/McbWarningFeign.java
View file @
b5a0e298
...
...
@@ -14,96 +14,94 @@ import org.springframework.web.bind.annotation.RequestParam;
import
java.util.List
;
import
java.util.Map
;
//@FeignClient(name = "${mcb.warning.name:MCB-SERVER}", path = "warning", configuration = {FeignConfiguration.class})
@FeignClient
(
name
=
"mcb"
,
url
=
"http://10.20.1.160:10005"
,
path
=
"warning"
,
configuration
=
{
FeignConfiguration
.
class
})
@FeignClient
(
name
=
"mcb"
,
url
=
"http://10.20.1.160:10005"
,
path
=
"warning"
,
configuration
=
{
FeignConfiguration
.
class
})
public
interface
McbWarningFeign
{
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@GetMapping
(
"/task/getQrCodeCount"
)
FeignClientResult
<
Map
<
String
,
Object
>>
getQrCodeCount
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
@RequestParam
(
value
=
"warningObjectType"
)
String
warningObjectType
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@GetMapping
(
"/task/getWarningInfoCountByObjectId"
)
FeignClientResult
<
Integer
>
getWarningInfoCountByObjectId
(
@RequestParam
(
value
=
"code"
)
String
code
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@GetMapping
(
"/task/getWarningInfoByTraceId"
)
FeignClientResult
<
String
>
getWarningInfoByTraceId
(
@RequestParam
(
value
=
"traceId"
)
String
traceId
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@PostMapping
(
"/task/updateRawDataByTraceId"
)
FeignClientResult
<
Boolean
>
updateRawDataByTraceId
(
@RequestParam
(
value
=
"traceId"
)
String
traceId
,
@RequestParam
(
value
=
"rawData"
)
String
rawData
);
/**
* 任务详情分页列表
*/
@GetMapping
(
"/warning-warning-info/page"
)
FeignClientResult
<
Page
<
Map
<
String
,
Object
>>>
getTaskDetailPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 问题记录分页列表
*/
@GetMapping
(
"/warning-question-info/questionPage"
)
FeignClientResult
<
Page
<
Map
<
String
,
Object
>>>
getQuestionRecordPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 任务详情、问题记录左侧树
*/
@GetMapping
(
"/warning-warning-info/tree"
)
FeignClientResult
<
List
<
RectificationUnitClassifyTreeDto
>>
getWarnTree
();
/**
* 任务详情列表统计
*/
@GetMapping
(
"/warning-warning-info/statistics"
)
FeignClientResult
getTaskDetailStatistic
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 问题记录列表统计
*/
@GetMapping
(
"/warning-question-info/questionPageTopStatistics"
)
FeignClientResult
getQuestionRecordStatistic
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 任务总览地图信息数据
*/
@GetMapping
(
"/monitor/overview/getMapRouteInfoByCodes"
)
FeignClientResult
getMapRouteInfoByCodes
(
@RequestParam
String
province
,
@RequestParam
(
"codes"
)
List
<
String
>
codes
,
@RequestParam
(
value
=
"operator"
,
defaultValue
=
"="
)
String
operator
);
/**
* 跑马灯列表数据分页查询
*/
@GetMapping
(
value
=
"/monitor/overview/getLampListPage"
)
FeignClientResult
getLampListPage
(
@RequestParam
String
questionRectificationStatus
,
@RequestParam
(
"codes"
)
List
<
String
>
codes
,
@RequestParam
(
value
=
"operator"
,
defaultValue
=
"="
)
String
operator
,
@RequestParam
(
"current"
)
Long
current
,
@RequestParam
(
"size"
)
Long
size
);
/**
* 跑马灯列表数据查询
*/
@GetMapping
(
"/monitor/overview/getLampList"
)
FeignClientResult
getLampList
(
@RequestParam
String
questionRectificationStatus
,
@RequestParam
(
"codes"
)
List
<
String
>
codes
,
@RequestParam
(
value
=
"operator"
,
defaultValue
=
"="
)
String
operator
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@GetMapping
(
"/task/getQrCodeCount"
)
FeignClientResult
<
Map
<
String
,
Object
>>
getQrCodeCount
(
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
,
@RequestParam
(
value
=
"warningObjectType"
)
String
warningObjectType
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@GetMapping
(
"/task/getWarningInfoCountByObjectId"
)
FeignClientResult
<
Integer
>
getWarningInfoCountByObjectId
(
@RequestParam
(
value
=
"code"
)
String
code
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@GetMapping
(
"/task/getWarningInfoByTraceId"
)
FeignClientResult
<
String
>
getWarningInfoByTraceId
(
@RequestParam
(
value
=
"traceId"
)
String
traceId
);
/**
* 根据风险来源查询人员红黄绿吗信息
*/
@PostMapping
(
"/task/updateRawDataByTraceId"
)
FeignClientResult
<
Boolean
>
updateRawDataByTraceId
(
@RequestParam
(
value
=
"traceId"
)
String
traceId
,
@RequestParam
(
value
=
"rawData"
)
String
rawData
);
/**
* 任务详情分页列表
*/
@GetMapping
(
"/warning-warning-info/page"
)
FeignClientResult
<
Page
<
Map
<
String
,
Object
>>>
getTaskDetailPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 问题记录分页列表
*/
@GetMapping
(
"/warning-question-info/questionPage"
)
FeignClientResult
<
Page
<
Map
<
String
,
Object
>>>
getQuestionRecordPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 任务详情、问题记录左侧树
*/
@GetMapping
(
"/warning-warning-info/tree"
)
FeignClientResult
<
List
<
RectificationUnitClassifyTreeDto
>>
getWarnTree
();
/**
* 任务详情列表统计
*/
@GetMapping
(
"/warning-warning-info/statistics"
)
FeignClientResult
getTaskDetailStatistic
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 问题记录列表统计
*/
@GetMapping
(
"/warning-question-info/questionPageTopStatistics"
)
FeignClientResult
getQuestionRecordStatistic
(
@RequestParam
Map
<
String
,
Object
>
map
);
/**
* 任务总览地图信息数据
*/
@GetMapping
(
"/monitor/overview/getMapRouteInfoByCodes"
)
FeignClientResult
getMapRouteInfoByCodes
(
@RequestParam
String
province
,
@RequestParam
(
"codes"
)
List
<
String
>
codes
,
@RequestParam
(
value
=
"operator"
,
defaultValue
=
"="
)
String
operator
);
/**
* 跑马灯列表数据分页查询
*/
@GetMapping
(
value
=
"/monitor/overview/getLampListPage"
)
FeignClientResult
getLampListPage
(
@RequestParam
String
questionRectificationStatus
,
@RequestParam
(
value
=
"warningSourceType"
,
required
=
false
)
String
warningSourceType
,
@RequestParam
(
value
=
"objectName"
,
required
=
false
)
String
objectName
,
@RequestParam
(
"codes"
)
List
<
String
>
codes
,
@RequestParam
(
value
=
"operator"
,
defaultValue
=
"="
)
String
operator
,
@RequestParam
(
"current"
)
Long
current
,
@RequestParam
(
"size"
)
Long
size
);
/**
* 跑马灯列表数据查询
*/
@GetMapping
(
"/monitor/overview/getLampList"
)
FeignClientResult
getLampList
(
@RequestParam
String
questionRectificationStatus
,
@RequestParam
(
value
=
"warningSourceType"
,
required
=
false
)
String
warningSourceType
,
@RequestParam
(
value
=
"objectName"
,
required
=
false
)
String
objectName
,
@RequestParam
(
"codes"
)
List
<
String
>
codes
,
@RequestParam
(
value
=
"operator"
,
defaultValue
=
"="
)
String
operator
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IMcbWarningService.java
View file @
b5a0e298
...
...
@@ -7,89 +7,91 @@ import java.util.Map;
public
interface
IMcbWarningService
{
/**
* 今日预警-预警总数
*
* @param processingStatus 处理状态
* @return 预警总数
*/
Map
<
String
,
Object
>
queryTodayCount
(
Integer
processingStatus
);
/**
* 近七日预警统计
*
* @return 预警统计
*/
List
<
Map
<
String
,
Object
>>
queryWeekCount
();
/**
* 预警信息列表
*
* @return 预警信息列表
*/
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
warningSourceType
);
/**
* 预警信息总数
*
* @return 预警信息总数
*/
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
warningSourceType
);
/**
* 问题信息列表
*
* @return 问题信息列表
*/
Page
<
Map
<
String
,
Object
>>
queryQuestionPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
completionStatus
);
/**
* 问题信息列表
*
* @return 问题信息列表
*/
Long
queryQuestionCount
(
Integer
completionStatus
);
/**
* 获取地图点位/路线
*
* @return 地图点位/路线
*/
Object
queryMapRoutes
(
String
province
);
/**
* 任务详情分页列表
*
* @return 任务详情分页列表
*/
Page
<
Map
<
String
,
Object
>>
getTaskDetailPage
(
Map
<
String
,
Object
>
map
);
/**
* 问题记录分页列表
*
* @return 任务详情分页列表
*/
Page
<
Map
<
String
,
Object
>>
getQuestionRecordPage
(
Map
<
String
,
Object
>
map
);
/**
* 任务详情、问题记录左侧树
*/
Object
getWarnTree
();
/**
* 任务详情列表统计
*/
Object
getTaskDetailStatistic
(
Map
<
String
,
Object
>
map
);
/**
* 问题记录列表统计
*/
Object
getQuestionRecordStatistic
(
Map
<
String
,
Object
>
map
);
Object
getMapRouteInfoByCodes
(
String
province
);
Object
getLampListPageByCodes
(
String
questionRectificationStatus
,
Page
page
);
Object
getLampListByCodes
(
String
questionRectificationStatus
);
/**
* 今日预警-预警总数
*
* @param processingStatus 处理状态
* @return 预警总数
*/
Map
<
String
,
Object
>
queryTodayCount
(
Integer
processingStatus
);
/**
* 近七日预警统计
*
* @return 预警统计
*/
List
<
Map
<
String
,
Object
>>
queryWeekCount
();
/**
* 预警信息列表
*
* @return 预警信息列表
*/
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
warningSourceType
);
/**
* 预警信息总数
*
* @return 预警信息总数
*/
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
warningSourceType
);
/**
* 问题信息列表
*
* @return 问题信息列表
*/
Page
<
Map
<
String
,
Object
>>
queryQuestionPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
completionStatus
);
/**
* 问题信息列表
*
* @return 问题信息列表
*/
Long
queryQuestionCount
(
Integer
completionStatus
);
/**
* 获取地图点位/路线
*
* @return 地图点位/路线
*/
Object
queryMapRoutes
(
String
province
);
/**
* 任务详情分页列表
*
* @return 任务详情分页列表
*/
Page
<
Map
<
String
,
Object
>>
getTaskDetailPage
(
Map
<
String
,
Object
>
map
);
/**
* 问题记录分页列表
*
* @return 任务详情分页列表
*/
Page
<
Map
<
String
,
Object
>>
getQuestionRecordPage
(
Map
<
String
,
Object
>
map
);
/**
* 任务详情、问题记录左侧树
*/
Object
getWarnTree
();
/**
* 任务详情列表统计
*/
Object
getTaskDetailStatistic
(
Map
<
String
,
Object
>
map
);
/**
* 问题记录列表统计
*/
Object
getQuestionRecordStatistic
(
Map
<
String
,
Object
>
map
);
Object
getMapRouteInfoByCodes
(
String
province
);
Object
getLampListPageByCodes
(
String
questionRectificationStatus
,
String
warningSourceType
,
String
objectName
,
Page
page
);
Object
getLampListByCodes
(
String
questionRectificationStatus
,
String
warningSourceType
,
String
objectName
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/McbWarningController.java
View file @
b5a0e298
This diff is collapsed.
Click to expand it.
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 @
b5a0e298
...
...
@@ -42,8 +42,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
Map
<
String
,
Object
>
queryTodayCount
(
Integer
processingStatus
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryTodayCount
(
projectOrgCodes
,
processingStatus
);
...
...
@@ -57,8 +56,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
List
<
Map
<
String
,
Object
>>
queryWeekCount
()
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryWeekCount
(
projectOrgCodes
);
...
...
@@ -77,8 +75,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
long
start
=
page
.
getCurrent
()
-
1
;
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
offset
,
projectOrgCodes
,
...
...
@@ -100,8 +97,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
public
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
warningSourceType
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
...
...
@@ -120,8 +116,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
long
start
=
page
.
getCurrent
()
-
1
;
long
offset
=
page
.
getSize
()
*
page
.
getCurrent
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryQuestionList
(
start
,
offset
,
projectOrgCodes
,
...
...
@@ -141,8 +136,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
Long
queryQuestionCount
(
Integer
completionStatus
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
return
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
);
...
...
@@ -272,8 +266,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
@Override
public
Object
getMapRouteInfoByCodes
(
String
province
)
{
List
<
String
>
projectOrgCodes
=
permissionService
.
getCurrentUserAmosOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getMapRouteInfoByCodes
(
province
,
projectOrgCodes
,
"like"
);
...
...
@@ -281,24 +274,25 @@ public class McbWarningServiceImpl implements IMcbWarningService {
}
@Override
public
Object
getLampListPageByCodes
(
String
questionRectificationStatus
,
Page
page
)
{
public
Object
getLampListPageByCodes
(
String
questionRectificationStatus
,
String
warningSourceType
,
String
objectName
,
Page
page
)
{
List
<
String
>
projectOrgCodes
=
permissionService
.
getCurrentUserAmosOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getLampListPage
(
questionRectificationStatus
,
projectOrgCodes
,
"like"
,
page
.
getCurrent
(),
page
.
getSize
());
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getLampListPage
(
questionRectificationStatus
,
warningSourceType
,
objectName
,
projectOrgCodes
,
"like"
,
page
.
getCurrent
(),
page
.
getSize
());
return
result
.
getResult
();
}
@Override
public
Object
getLampListByCodes
(
String
questionRectificationStatus
)
{
public
Object
getLampListByCodes
(
String
questionRectificationStatus
,
String
warningSourceType
,
String
objectName
)
{
List
<
String
>
projectOrgCodes
=
permissionService
.
getCurrentUserAmosOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
}
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getLampList
(
questionRectificationStatus
,
projectOrgCodes
,
"like"
);
FeignClientResult
<
Object
>
result
=
mcbWarningFeign
.
getLampList
(
questionRectificationStatus
,
warningSourceType
,
objectName
,
projectOrgCodes
,
"like"
);
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