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
e6a43401
Commit
e6a43401
authored
Jun 18, 2021
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)警情报送添加调度类型字段
parent
3873ab3c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
27 deletions
+70
-27
AlertSubmitted.java
...ejoin/amos/boot/module/jcs/api/entity/AlertSubmitted.java
+8
-2
AlertSubmittedVo.java
...yeejoin/amos/boot/module/jcs/api/vo/AlertSubmittedVo.java
+8
-2
SchedulingReportingVo.java
...in/amos/boot/module/jcs/api/vo/SchedulingReportingVo.java
+22
-0
AlertSubmittedController.java
...t/module/jcs/biz/controller/AlertSubmittedController.java
+32
-23
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/entity/AlertSubmitted.java
View file @
e6a43401
...
@@ -32,12 +32,18 @@ public class AlertSubmitted extends BaseEntity {
...
@@ -32,12 +32,18 @@ public class AlertSubmitted extends BaseEntity {
@ApiModelProperty
(
value
=
"警情id"
)
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertCalledId
;
private
Long
alertCalledId
;
@ApiModelProperty
(
value
=
"业务类型"
)
@ApiModelProperty
(
value
=
"业务类型
(警情续报、非警情确认、警情结案)
"
)
private
String
businessType
;
private
String
businessType
;
@ApiModelProperty
(
value
=
"业务类型code"
)
@ApiModelProperty
(
value
=
"业务类型code"
)
private
String
businessTypeCode
;
private
String
businessTypeCode
;
@ApiModelProperty
(
value
=
"调度类型(融合调度、外部协调)"
)
private
String
schedulingType
;
@ApiModelProperty
(
value
=
"调度类型code"
)
private
String
schedulingTypeCode
;
@ApiModelProperty
(
value
=
"报送时间"
)
@ApiModelProperty
(
value
=
"报送时间"
)
private
Date
submissionTime
;
private
Date
submissionTime
;
...
@@ -47,7 +53,7 @@ public class AlertSubmitted extends BaseEntity {
...
@@ -47,7 +53,7 @@ public class AlertSubmitted extends BaseEntity {
@ApiModelProperty
(
value
=
"发送人"
)
@ApiModelProperty
(
value
=
"发送人"
)
private
String
sender
;
private
String
sender
;
@ApiModelProperty
(
value
=
"报送方式"
)
@ApiModelProperty
(
value
=
"报送方式
(电话、短信)
"
)
private
String
submissionMethod
;
private
String
submissionMethod
;
@ApiModelProperty
(
value
=
"报送方式code"
)
@ApiModelProperty
(
value
=
"报送方式code"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/AlertSubmittedVo.java
View file @
e6a43401
...
@@ -31,12 +31,18 @@ public class AlertSubmittedVo{
...
@@ -31,12 +31,18 @@ public class AlertSubmittedVo{
@ApiModelProperty
(
value
=
"警情id"
)
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertCalledId
;
private
Long
alertCalledId
;
@ApiModelProperty
(
value
=
"业务类型"
)
@ApiModelProperty
(
value
=
"业务类型
(警情续报、非警情确认、警情结案)
"
)
private
String
businessType
;
private
String
businessType
;
@ApiModelProperty
(
value
=
"业务类型code"
)
@ApiModelProperty
(
value
=
"业务类型code"
)
private
String
businessTypeCode
;
private
String
businessTypeCode
;
@ApiModelProperty
(
value
=
"调度类型(融合调度、外部协调)"
)
private
String
schedulingType
;
@ApiModelProperty
(
value
=
"调度类型code"
)
private
String
schedulingTypeCode
;
@ApiModelProperty
(
value
=
"报送时间"
)
@ApiModelProperty
(
value
=
"报送时间"
)
private
Date
submissionTime
;
private
Date
submissionTime
;
...
@@ -46,7 +52,7 @@ public class AlertSubmittedVo{
...
@@ -46,7 +52,7 @@ public class AlertSubmittedVo{
@ApiModelProperty
(
value
=
"发送人"
)
@ApiModelProperty
(
value
=
"发送人"
)
private
String
sender
;
private
String
sender
;
@ApiModelProperty
(
value
=
"报送方式"
)
@ApiModelProperty
(
value
=
"报送方式
(电话、短信)
"
)
private
String
submissionMethod
;
private
String
submissionMethod
;
@ApiModelProperty
(
value
=
"报送方式code"
)
@ApiModelProperty
(
value
=
"报送方式code"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/SchedulingReportingVo.java
0 → 100644
View file @
e6a43401
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
vo
;
import
lombok.Data
;
import
java.util.List
;
/**
* 警情报送和融合调度vo
* @author DELL
*/
@Data
public
class
SchedulingReportingVo
{
/**
* 额外信息(统计)
*/
private
String
extraInfo
;
/**
* 警情报送/融合调度列表
*/
List
<
AlertSubmittedVo
>
schedulingReportingList
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertSubmittedController.java
View file @
e6a43401
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertSubmittedService
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertSubmittedService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Arrays
;
import
java.util.Arrays
;
...
@@ -42,8 +46,8 @@ public class AlertSubmittedController extends BaseController {
...
@@ -42,8 +46,8 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增警情报送记录"
,
notes
=
"新增警情报送记录"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增警情报送记录"
,
notes
=
"新增警情报送记录"
)
public
boolean
saveAlertSubmitted
(
HttpServletRequest
request
,
@RequestBody
AlertSubmitted
alertSubmitted
){
public
ResponseModel
saveAlertSubmitted
(
HttpServletRequest
request
,
@RequestBody
AlertSubmitted
alertSubmitted
){
return
iAlertSubmittedService
.
save
(
alertSubmitted
);
return
CommonResponseUtil
.
success
(
iAlertSubmittedService
.
save
(
alertSubmitted
)
);
}
}
/**
/**
...
@@ -54,8 +58,8 @@ public class AlertSubmittedController extends BaseController {
...
@@ -54,8 +58,8 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
public
boolean
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
public
ResponseModel
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertSubmittedService
.
removeById
(
id
);
return
CommonResponseUtil
.
success
(
iAlertSubmittedService
.
removeById
(
id
)
);
}
}
...
@@ -68,8 +72,8 @@ public class AlertSubmittedController extends BaseController {
...
@@ -68,8 +72,8 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改警情报送记录"
,
notes
=
"修改警情报送记录"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改警情报送记录"
,
notes
=
"修改警情报送记录"
)
public
boolean
updateByIdAlertSubmitted
(
HttpServletRequest
request
,
@RequestBody
AlertSubmitted
alertSubmitted
){
public
ResponseModel
updateByIdAlertSubmitted
(
HttpServletRequest
request
,
@RequestBody
AlertSubmitted
alertSubmitted
){
return
iAlertSubmittedService
.
updateById
(
alertSubmitted
);
return
CommonResponseUtil
.
success
(
iAlertSubmittedService
.
updateById
(
alertSubmitted
)
);
}
}
...
@@ -82,11 +86,16 @@ public class AlertSubmittedController extends BaseController {
...
@@ -82,11 +86,16 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
AlertSubmitted
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
public
ResponseModel
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iAlertSubmittedService
.
getById
(
id
);
return
CommonResponseUtil
.
success
(
iAlertSubmittedService
.
getById
(
id
)
);
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/schedulingReporting/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据警情id查询融合调度、警情报送列表"
,
notes
=
"根据警情id查询融合调度、警情报送列表"
)
public
ResponseModel
listByAlertCallIdAndType
()
{
return
CommonResponseUtil
.
success
();
}
/**
/**
* 列表分页查询
* 列表分页查询
...
@@ -95,7 +104,7 @@ public class AlertSubmittedController extends BaseController {
...
@@ -95,7 +104,7 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
AlertSubmitted
>
listPage
(
String
pageNum
,
String
pageSize
,
AlertSubmitted
alertSubmitted
)
{
public
IPage
<
AlertSubmitted
>
listPage
(
String
pageNum
,
String
pageSize
,
AlertSubmitted
alertSubmitted
)
{
Page
<
AlertSubmitted
>
pageBean
;
Page
<
AlertSubmitted
>
pageBean
;
QueryWrapper
<
AlertSubmitted
>
alertSubmittedQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
AlertSubmitted
>
alertSubmittedQueryWrapper
=
new
QueryWrapper
<>();
...
...
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