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 cb420a07
authored
Jun 13, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
location字段类型修改
1 parent
ae6f7e5e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/LocationDTO.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderCreateServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/LocationDTO.java
View file @
cb420a0
...
@@ -13,7 +13,8 @@ public class LocationDTO {
...
@@ -13,7 +13,8 @@ public class LocationDTO {
private
String
adcode
;
private
String
adcode
;
private
String
street
;
private
String
street
;
private
String
number
;
private
String
number
;
private
String
location
;
private
Float
lat
;
private
Float
lng
;
private
String
level
;
private
String
level
;
}
}
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderCreateServiceImpl.java
View file @
cb420a0
...
@@ -124,7 +124,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -124,7 +124,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
// 根据分单,填写clusterId/branchId/groupId/teamId等
// 根据分单,填写clusterId/branchId/groupId/teamId等
String
layer
=
productCategoryDao
.
getLayerByBrandAndTypeAndSkill
(
req
.
getBrand
(),
req
.
getType
(),
req
.
getSkill
());
String
layer
=
productCategoryDao
.
getLayerByBrandAndTypeAndSkill
(
req
.
getBrand
(),
req
.
getType
(),
req
.
getSkill
());
String
teamId
=
commonService
.
getTeamIdByInput
(
req
.
getLocation
().
getLocation
(),
req
.
getAddress
(),
layer
);
String
loc
=
String
.
format
(
"%f,%f"
,
req
.
getLocation
().
getLng
(),
req
.
getLocation
().
getLat
());
String
teamId
=
commonService
.
getTeamIdByInput
(
loc
,
req
.
getAddress
(),
layer
);
OrgTeamEntity
teamEntity
=
orgTeamDao
.
getByTeamId
(
teamId
);
OrgTeamEntity
teamEntity
=
orgTeamDao
.
getByTeamId
(
teamId
);
entity
.
setOrgClusterId
(
teamEntity
.
getClusterId
());
entity
.
setOrgClusterId
(
teamEntity
.
getClusterId
());
entity
.
setOrgBranchId
(
teamEntity
.
getBranchId
());
entity
.
setOrgBranchId
(
teamEntity
.
getBranchId
());
...
@@ -132,9 +133,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -132,9 +133,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
entity
.
setOrgTeamId
(
teamId
);
entity
.
setOrgTeamId
(
teamId
);
// 根据orderTags, 解析保存到type、skill等字段
// 根据orderTags, 解析保存到type、skill等字段
String
[]
l
=
req
.
getLocation
().
getLocation
().
split
(
","
);
entity
.
setX
(
req
.
getLocation
().
getLng
().
toString
());
entity
.
setX
(
l
[
0
]);
entity
.
setY
(
req
.
getLocation
().
getLat
().
toString
());
entity
.
setY
(
l
[
1
]);
// todo 服务单状态、预约状态等
// todo 服务单状态、预约状态等
entity
.
setStatus
(
"OPEN"
);
entity
.
setStatus
(
"OPEN"
);
entity
.
setAppointmentStatus
(
"NOT_ASSIGNED"
);
entity
.
setAppointmentStatus
(
"NOT_ASSIGNED"
);
...
...
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