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 81c429ab
authored
Jun 09, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
59a0c9db
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/controller/OrderServiceDetailController.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/OrderTeamBlockResp.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/DispatchServiceImpl.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 @
81c429a
...
...
@@ -54,7 +54,7 @@ public class OrderServiceDetailController {
return
res
;
}
@GetMapping
(
"/order/
appointment/list
"
)
@GetMapping
(
"/order/
team/block
"
)
public
Result
<?>
getOrderTeamBlock
(
@RequestParam
String
orderId
)
{
// 工单工作队区块
Result
<?>
res
=
null
;
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/OrderTeamBlockResp.java
View file @
81c429a
...
...
@@ -7,5 +7,7 @@ import java.util.List;
@Data
public
class
OrderTeamBlockResp
{
private
String
orderId
;
private
String
location
;
private
String
skill
;
private
List
<
String
>
block
;
}
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/DispatchServiceImpl.java
View file @
81c429a
...
...
@@ -36,6 +36,18 @@ public class DispatchServiceImpl implements DispatchService {
@Override
public
Result
<?>
getDispatchOrderList
(
String
levelType
,
List
<
String
>
levelIds
,
String
date
,
String
groupTagId
)
{
List
<
OrderRequest
>
orders
=
this
.
queryOrderRequests
(
levelType
,
levelIds
,
date
);
for
(
OrderRequest
o:
orders
)
{
String
a
=
String
.
format
(
"%s:%s%s-%s %s:%s"
,
o
.
getOrderId
(),
o
.
getSkill
(),
o
.
getType
(),
o
.
getBrand
(),
o
.
getName
(),
o
.
getAddress
());
String
intentionTime
=
String
.
format
(
""
);
String
duration
=
"1"
;
String
type
=
o
.
getType
();
String
category
=
String
.
format
(
"%s-%s"
,
o
.
getType
(),
o
.
getBrand
());
String
orderId
=
""
;
String
customerName
=
o
.
getName
();
String
remark
=
o
.
getDescription
();
String
groupTag
=
"紧急"
;
int
groupWeight
=
10
;
}
return
null
;
}
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceDetailImpl.java
View file @
81c429a
...
...
@@ -142,9 +142,14 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
public
Result
<?>
getOrderTeamBlock
(
String
orderId
)
{
List
<
String
>
block
=
new
ArrayList
<>();
// 获取订单详情
OrderRequest
order
=
this
.
queryOrderDetail
(
orderId
);
OrderTeamBlockResp
res
=
new
OrderTeamBlockResp
();
res
.
setOrderId
(
orderId
);
res
.
setBlock
(
block
);
res
.
setLocation
(
String
.
format
(
"%s,%s"
,
order
.
getX
(),
order
.
getY
()));
res
.
setSkill
(
order
.
getSkill
());
return
Result
.
success
(
res
);
}
...
...
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