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 b19f6155
authored
Nov 20, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:一家多单逻辑
1 parent
0dff24f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
View file @
b19f615
...
@@ -290,6 +290,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -290,6 +290,8 @@ public class OrderCreateServiceImpl implements OrderCreateService {
entity
.
setExpectTimeEnd
(
DateUtil
.
fromDate
(
req
.
getExpectEnd
()));
entity
.
setExpectTimeEnd
(
DateUtil
.
fromDate
(
req
.
getExpectEnd
()));
entity
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
entity
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
entity
.
setAppointmentMethod
(
AppointmentMethodEnum
.
AUTO_BATCH
.
name
());
entity
.
setAppointmentMethod
(
AppointmentMethodEnum
.
AUTO_BATCH
.
name
());
entity
.
setDt
(
entity
.
getExpectTimeBegin
().
toLocalDate
());
entity
.
setOrderId
(
orderId
);
//获取省市区
//获取省市区
AdministrativeDistrictReq
administrativeDistrictReq
=
new
AdministrativeDistrictReq
();
AdministrativeDistrictReq
administrativeDistrictReq
=
new
AdministrativeDistrictReq
();
administrativeDistrictReq
.
setPoints
(
location
.
getLongitude
()
+
","
+
location
.
getLatitude
());
administrativeDistrictReq
.
setPoints
(
location
.
getLongitude
()
+
","
+
location
.
getLatitude
());
...
@@ -400,7 +402,6 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -400,7 +402,6 @@ public class OrderCreateServiceImpl implements OrderCreateService {
// 字段转换
// 字段转换
entity
.
setSource
(
req
.
getSource
());
entity
.
setSource
(
req
.
getSource
());
entity
.
setOrderId
(
orderId
);
entity
.
setName
(
req
.
getName
());
entity
.
setName
(
req
.
getName
());
entity
.
setPhone
(
req
.
getPhone
());
entity
.
setPhone
(
req
.
getPhone
());
entity
.
setBeanBrand
(
req
.
getBrand
());
entity
.
setBeanBrand
(
req
.
getBrand
());
...
@@ -414,7 +415,6 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -414,7 +415,6 @@ public class OrderCreateServiceImpl implements OrderCreateService {
entity
.
setPlanEndTime
(
entity
.
getExpectTimeEnd
());
entity
.
setPlanEndTime
(
entity
.
getExpectTimeEnd
());
// order_request的description字段,仅仅用于内部备注,不对外
// order_request的description字段,仅仅用于内部备注,不对外
entity
.
setApplyNote
(
req
.
getDescription
());
entity
.
setApplyNote
(
req
.
getDescription
());
entity
.
setDt
(
entity
.
getExpectTimeBegin
().
toLocalDate
());
entity
.
setSubId
(
newSubId
(
entity
.
getOrderId
(),
entity
.
getDt
()));
entity
.
setSubId
(
newSubId
(
entity
.
getOrderId
(),
entity
.
getDt
()));
entity
.
setX
(
req
.
getLocation
().
getLongitude
().
toString
());
entity
.
setX
(
req
.
getLocation
().
getLongitude
().
toString
());
entity
.
setY
(
req
.
getLocation
().
getLatitude
().
toString
());
entity
.
setY
(
req
.
getLocation
().
getLatitude
().
toString
());
...
...
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