Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 59a0c9db
authored
Jun 08, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增获取订单区块接口
1 parent
54b35f31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderServiceDetailController.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/OrderServiceDetail.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceDetailImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderServiceDetailController.java
View file @
59a0c9d
...
...
@@ -53,4 +53,16 @@ public class OrderServiceDetailController {
}
return
res
;
}
@GetMapping
(
"/order/appointment/list"
)
public
Result
<?>
getOrderTeamBlock
(
@RequestParam
String
orderId
)
{
// 工单工作队区块
Result
<?>
res
=
null
;
try
{
res
=
orderServiceDetail
.
getOrderTeamBlock
(
orderId
);
}
catch
(
BusinessException
e
)
{
return
Result
.
failed
(
e
.
getMessage
());
}
return
res
;
}
}
\ No newline at end of file
project-order/src/main/java/com/alibaba/cloud/integration/order/service/OrderServiceDetail.java
View file @
59a0c9d
...
...
@@ -8,4 +8,6 @@ public interface OrderServiceDetail {
Result
<?>
getOrderServiceDynamics
(
String
orderId
);
Result
<?>
getOrderAppointmentList
(
String
orderId
);
Result
<?>
getOrderTeamBlock
(
String
orderId
);
}
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceDetailImpl.java
View file @
59a0c9d
...
...
@@ -6,6 +6,7 @@ import com.alibaba.cloud.integration.order.dto.*;
import
com.alibaba.cloud.integration.order.entity.*
;
import
com.alibaba.cloud.integration.order.service.OrderServiceDetail
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
org.aspectj.weaver.ast.Or
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -136,6 +137,17 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
return
Result
.
success
(
res
);
}
@Transactional
@Override
public
Result
<?>
getOrderTeamBlock
(
String
orderId
)
{
List
<
String
>
block
=
new
ArrayList
<>();
OrderTeamBlockResp
res
=
new
OrderTeamBlockResp
();
res
.
setOrderId
(
orderId
);
res
.
setBlock
(
block
);
return
Result
.
success
(
res
);
}
private
OrderRequest
queryOrderDetail
(
String
orderId
)
{
// 获取服务单记录
LambdaQueryWrapper
<
OrderRequest
>
lqw
=
new
LambdaQueryWrapper
<>();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment