Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pension
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
mengmeng
pension
Commits
f50ca1bd
Commit
f50ca1bd
authored
Mar 11, 2021
by
mlchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.机构处理添加取消原因
parent
81d8e984
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
PensionOrderController.java
...dules/serviceOrder/controller/PensionOrderController.java
+3
-2
PensionOrderServiceImpl.java
...es/serviceOrder/service/impl/PensionOrderServiceImpl.java
+1
-0
No files found.
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrderController.java
View file @
f50ca1bd
...
@@ -324,11 +324,12 @@ public class PensionOrderController {
...
@@ -324,11 +324,12 @@ public class PensionOrderController {
*/
*/
@Login
@Login
@GetMapping
(
"organizationHandle"
)
@GetMapping
(
"organizationHandle"
)
@ApiOperation
(
value
=
"机构处理(机构)"
,
notes
=
"传参为1(派单)时,recipient_id必传"
)
@ApiOperation
(
value
=
"机构处理(机构)"
,
notes
=
"传参为1(派单)时,recipient_id必传
;传参为3(取消)时,cancel_reason必传;
"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"id"
,
value
=
"订单ID"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"long"
)
,
@ApiImplicitParam
(
name
=
"id"
,
value
=
"订单ID"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"long"
)
,
@ApiImplicitParam
(
name
=
"status"
,
value
=
"处理状态: 5接单 1派单 3取消"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
"status"
,
value
=
"处理状态: 5接单 1派单 3取消"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
"recipient_id"
,
value
=
"接单服务人员ID"
,
paramType
=
"query"
,
dataType
=
"long"
)
@ApiImplicitParam
(
name
=
"recipient_id"
,
value
=
"接单服务人员ID"
,
paramType
=
"query"
,
dataType
=
"long"
)
,
@ApiImplicitParam
(
name
=
"cancel_reason"
,
value
=
"订单取消原因"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
})
public
Result
organizationHandle
(
@ApiIgnore
@LoginUser
UserEntity
user
,
public
Result
organizationHandle
(
@ApiIgnore
@LoginUser
UserEntity
user
,
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrderServiceImpl.java
View file @
f50ca1bd
...
@@ -192,6 +192,7 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
...
@@ -192,6 +192,7 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
if
(
pensionOrderEntity
.
getStatus
()
!=
2
&&
pensionOrderEntity
.
getStatus
()
!=
4
)
{
if
(
pensionOrderEntity
.
getStatus
()
!=
2
&&
pensionOrderEntity
.
getStatus
()
!=
4
)
{
pensionOrderEntity
.
setStatus
(
3
);
pensionOrderEntity
.
setStatus
(
3
);
pensionOrderEntity
.
setStatusName
(
Constant
.
OrderStatus
.
CANCEL
.
getMessage
());
pensionOrderEntity
.
setStatusName
(
Constant
.
OrderStatus
.
CANCEL
.
getMessage
());
pensionOrderEntity
.
setCancelReason
(
params
.
get
(
"cancel_reason"
).
toString
());
update
(
ConvertUtils
.
sourceToTarget
(
pensionOrderEntity
,
PensionOrderDTO
.
class
));
update
(
ConvertUtils
.
sourceToTarget
(
pensionOrderEntity
,
PensionOrderDTO
.
class
));
}
else
{
}
else
{
return
false
;
return
false
;
...
...
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