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
ee4dab8a
Commit
ee4dab8a
authored
Aug 18, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新结案冻结接口
parent
4bc65f7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+10
-14
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/AlertCalledController.java
View file @
ee4dab8a
...
@@ -373,43 +373,39 @@ public class AlertCalledController extends BaseController {
...
@@ -373,43 +373,39 @@ public class AlertCalledController extends BaseController {
/**
/**
* 冻结工单-维修
* 冻结工单-维修
* @param forzenResult
* @param alertId
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveForzen"
)
@PostMapping
(
value
=
"/saveForzen"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"冻结工单-维修"
,
notes
=
"冻结工单-维修"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"冻结工单-维修"
,
notes
=
"冻结工单-维修"
)
public
ResponseModel
<
Boolean
>
forzenAlertById
(
@
ApiParam
(
value
=
"冻结原因"
,
required
=
true
)
@RequestParam
String
forzenResult
,
@ApiParam
(
value
=
"警情id"
,
required
=
true
)
@RequestParam
Long
alertId
)
{
public
ResponseModel
<
Boolean
>
forzenAlertById
(
@
RequestBody
AlertCalledDto
alertCalledDto
)
{
if
(
ValidationUtil
.
isEmpty
(
alert
Id
)
if
(
ValidationUtil
.
isEmpty
(
alert
CalledDto
.
getSequenceNbr
()
)
||
ValidationUtil
.
isEmpty
(
forzenResult
)){
||
ValidationUtil
.
isEmpty
(
alertCalledDto
.
getForzenResult
()
)){
throw
new
BadRequest
(
"参数校验失败."
);
throw
new
BadRequest
(
"参数校验失败."
);
}
}
LambdaUpdateWrapper
<
AlertCalled
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
AlertCalled
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
AlertCalled:
:
getForzenResult
,
forzenResult
);
updateWrapper
.
set
(
AlertCalled:
:
getForzenResult
,
alertCalledDto
.
getForzenResult
()
);
updateWrapper
.
set
(
AlertCalled:
:
getAlertStage
,
1
);
updateWrapper
.
set
(
AlertCalled:
:
getAlertStage
,
1
);
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
alert
Id
);
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
alert
CalledDto
.
getSequenceNbr
()
);
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
update
(
updateWrapper
));
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
update
(
updateWrapper
));
}
}
/**
/**
* 工单结案-投诉
* 工单结案-投诉
* @param finalReason
* @param alertId
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveFinalReason"
)
@PostMapping
(
value
=
"/saveFinalReason"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"工单结案-投诉"
,
notes
=
"工单结案-投诉"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"工单结案-投诉"
,
notes
=
"工单结案-投诉"
)
public
ResponseModel
<
Boolean
>
finishAlertById
(
@
ApiParam
(
value
=
"结案说明"
,
required
=
true
)
@RequestParam
String
finalReason
,
@ApiParam
(
value
=
"警情id"
,
required
=
true
)
@RequestParam
Long
alertId
)
{
public
ResponseModel
<
Boolean
>
finishAlertById
(
@
RequestBody
AlertCalledDto
alertCalledDto
)
{
if
(
ValidationUtil
.
isEmpty
(
finalReason
)
if
(
ValidationUtil
.
isEmpty
(
alertCalledDto
.
getFinalReason
()
)
||
ValidationUtil
.
isEmpty
(
alert
Id
)){
||
ValidationUtil
.
isEmpty
(
alert
CalledDto
.
getSequenceNbr
()
)){
throw
new
BadRequest
(
"参数校验失败."
);
throw
new
BadRequest
(
"参数校验失败."
);
}
}
LambdaUpdateWrapper
<
AlertCalled
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
AlertCalled
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
AlertCalled:
:
getFinalReason
,
finalReason
);
updateWrapper
.
set
(
AlertCalled:
:
getFinalReason
,
alertCalledDto
.
getFinalReason
()
);
updateWrapper
.
set
(
AlertCalled:
:
getAlertStage
,
1
);
updateWrapper
.
set
(
AlertCalled:
:
getAlertStage
,
1
);
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
alert
Id
);
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
alert
CalledDto
.
getSequenceNbr
()
);
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
update
(
updateWrapper
));
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
update
(
updateWrapper
));
}
}
...
...
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