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
62414e7a
Commit
62414e7a
authored
Feb 02, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除遗留文件
parent
b026498d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
127 deletions
+0
-127
McbWarningController.java
...oot/module/jxiop/biz/controller/McbWarningController.java
+0
-127
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/McbWarningController.java
deleted
100644 → 0
View file @
b026498d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.IMcbWarningService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@Api
(
tags
=
"McbWarning Controller"
)
@RequestMapping
(
value
=
"/warning"
)
public
class
McbWarningController
{
@Autowired
private
IMcbWarningService
iMcbWarningService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]今日预警-预警总数"
,
notes
=
"[监测总览]今日预警-预警总数"
)
@GetMapping
(
value
=
"/count/today"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
queryTodayCount
(
@RequestParam
(
value
=
"processingStatus"
,
required
=
false
)
Integer
processingStatus
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
queryTodayCount
(
processingStatus
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]近七日预警统计"
,
notes
=
"[监测总览]近七日预警统计"
)
@GetMapping
(
value
=
"/count/week"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
queryWeekCount
()
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
queryWeekCount
());
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]预警信息列表"
,
notes
=
"[监测总览]预警信息列表"
)
@GetMapping
(
value
=
"/warning/page"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryWarningPage
(
@RequestParam
(
value
=
"pageNumber"
,
defaultValue
=
"1"
)
Integer
pageNumber
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
,
@RequestParam
(
value
=
"processingStatus"
,
required
=
false
)
Integer
processingStatus
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
pageNumber
,
pageSize
);
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
queryWarningPage
(
page
,
processingStatus
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]预警信息总数"
,
notes
=
"[监测总览]预警信息总数"
)
@GetMapping
(
value
=
"/warning/count"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
queryWarningCount
(
@RequestParam
(
value
=
"processingStatus"
,
required
=
false
)
Integer
processingStatus
)
{
Long
count
=
iMcbWarningService
.
queryWarningCount
(
processingStatus
);
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>()
{{
this
.
put
(
"count"
,
count
);
}};
return
ResponseHelper
.
buildResponse
(
result
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]问题列表"
,
notes
=
"[监测总览]问题列表"
)
@GetMapping
(
value
=
"/question/page"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
queryQuestionList
(
@RequestParam
(
value
=
"pageNumber"
,
defaultValue
=
"1"
)
Integer
pageNumber
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
,
@RequestParam
(
value
=
"completionStatus"
,
required
=
false
)
Integer
completionStatus
)
{
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
pageNumber
,
pageSize
);
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
queryQuestionPage
(
page
,
completionStatus
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"任务详情、问题记录左侧树"
,
notes
=
"任务详情、问题记录左侧树"
)
@GetMapping
(
value
=
"/warning-warning-info/tree"
)
public
ResponseModel
getWarnTree
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
getWarnTree
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"任务详情分页列表"
,
notes
=
"任务详情分页列表"
)
@GetMapping
(
value
=
"/warning-warning-info/page"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getTaskDetailPage
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
getTaskDetailPage
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"任务详情统计"
,
notes
=
"任务详情统计"
)
@GetMapping
(
value
=
"/warning-warning-info/statistics"
)
public
ResponseModel
getTaskDetailStatistic
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
getTaskDetailStatistic
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"问题记录分页列表"
,
notes
=
"问题记录分页列表"
)
@GetMapping
(
value
=
"/warning-question-info/questionPage"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getQuestionRecordPage
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
getQuestionRecordPage
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"问题记录统计"
,
notes
=
"问题记录统计"
)
@GetMapping
(
value
=
"/warning-question-info/questionPageTopStatistics"
)
public
ResponseModel
getQuestionRecordStatistic
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
getQuestionRecordStatistic
(
map
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]问题总数"
,
notes
=
"[监测总览]问题总数"
)
@GetMapping
(
value
=
"/question/count"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
queryQuestionCount
(
@RequestParam
(
value
=
"completionStatus"
,
required
=
false
)
Integer
completionStatus
)
{
Long
count
=
iMcbWarningService
.
queryQuestionCount
(
completionStatus
);
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>()
{{
this
.
put
(
"count"
,
count
);
}};
return
ResponseHelper
.
buildResponse
(
result
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"[监测总览]地图点位/路线"
,
notes
=
"[监测总览]地图点位/路线"
)
@GetMapping
(
value
=
"/map/routes"
)
public
ResponseModel
<
Object
>
queryMapRoutes
(
@RequestParam
(
value
=
"province"
,
required
=
false
)
String
province
)
{
return
ResponseHelper
.
buildResponse
(
iMcbWarningService
.
queryMapRoutes
(
province
));
}
}
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