Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
6ec33db6
Commit
6ec33db6
authored
Aug 27, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用购物车的customerCode和productCode
parent
3477b74b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+0
-8
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
6ec33db6
...
@@ -405,16 +405,12 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -405,16 +405,12 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
for
(
CreateOrderProductRequest
productDto
:
createOrderDto
.
getProducts
())
{
for
(
CreateOrderProductRequest
productDto
:
createOrderDto
.
getProducts
())
{
String
skuId
=
productDto
.
getSpecification
();
String
skuId
=
productDto
.
getSpecification
();
if
(
products
.
get
(
skuId
)
!=
null
)
{
if
(
products
.
get
(
skuId
)
!=
null
)
{
productDto
.
setCustomerCode
(
products
.
get
(
skuId
).
getCustomerCode
());
productDto
.
setProductCode
(
products
.
get
(
skuId
).
getProductCode
());
productDto
.
setThirdProductSpecId
(
products
.
get
(
productDto
.
getSpecification
()).
getThirdProductSpecId
());
productDto
.
setThirdProductSpecId
(
products
.
get
(
productDto
.
getSpecification
()).
getThirdProductSpecId
());
productDto
.
setThirdProductPropertyId
(
getThirdPropertyId
(
products
.
get
(
productDto
.
getSpecification
()).
getProductAttributeGroupList
(),
productDto
.
getAddInfo
()));
productDto
.
setThirdProductPropertyId
(
getThirdPropertyId
(
products
.
get
(
productDto
.
getSpecification
()).
getProductAttributeGroupList
(),
productDto
.
getAddInfo
()));
// todo 商品组信息
// todo 商品组信息
setProductGroupInfo
(
products
.
get
(
skuId
).
getProductGroupList
(),
productDto
);
setProductGroupInfo
(
products
.
get
(
skuId
).
getProductGroupList
(),
productDto
);
}
else
{
}
else
{
productDto
.
setCustomerCode
(
""
);
productDto
.
setProductCode
(
""
);
LogUtil
.
error
(
"getProducts_exception"
,
JSONObject
.
toJSONString
(
skuId
),
JSONObject
.
toJSONString
(
products
),
null
);
LogUtil
.
error
(
"getProducts_exception"
,
JSONObject
.
toJSONString
(
skuId
),
JSONObject
.
toJSONString
(
products
),
null
);
}
}
//套餐子商品
//套餐子商品
...
@@ -423,16 +419,12 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -423,16 +419,12 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
String
comboSkuId
=
comboProduct
.
getSpecification
();
String
comboSkuId
=
comboProduct
.
getSpecification
();
System
.
out
.
println
(
comboSkuId
);
System
.
out
.
println
(
comboSkuId
);
if
(
products
.
get
(
comboSkuId
)
!=
null
)
{
if
(
products
.
get
(
comboSkuId
)
!=
null
)
{
comboProduct
.
setCustomerCode
(
products
.
get
(
comboSkuId
).
getCustomerCode
());
comboProduct
.
setProductCode
(
products
.
get
(
comboSkuId
).
getProductCode
());
comboProduct
.
setThirdProductSpecId
(
products
.
get
(
comboSkuId
).
getThirdProductSpecId
());
comboProduct
.
setThirdProductSpecId
(
products
.
get
(
comboSkuId
).
getThirdProductSpecId
());
comboProduct
.
setThirdProductPropertyId
(
getThirdPropertyId
(
products
.
get
(
comboSkuId
).
getProductAttributeGroupList
(),
comboProduct
.
getAddInfo
()));
comboProduct
.
setThirdProductPropertyId
(
getThirdPropertyId
(
products
.
get
(
comboSkuId
).
getProductAttributeGroupList
(),
comboProduct
.
getAddInfo
()));
comboProduct
.
setStapleFood
(
products
.
get
(
comboSkuId
).
getStapleFood
());
comboProduct
.
setStapleFood
(
products
.
get
(
comboSkuId
).
getStapleFood
());
// todo 套餐商品的商品组信息
// todo 套餐商品的商品组信息
setProductGroupInfo
(
products
.
get
(
comboSkuId
).
getProductGroupList
(),
comboProduct
);
setProductGroupInfo
(
products
.
get
(
comboSkuId
).
getProductGroupList
(),
comboProduct
);
}
else
{
}
else
{
comboProduct
.
setCustomerCode
(
""
);
comboProduct
.
setProductCode
(
""
);
LogUtil
.
error
(
"getProducts_exception"
,
JSONObject
.
toJSONString
(
skuId
),
JSONObject
.
toJSONString
(
products
),
null
);
LogUtil
.
error
(
"getProducts_exception"
,
JSONObject
.
toJSONString
(
skuId
),
JSONObject
.
toJSONString
(
products
),
null
);
}
}
}
}
...
...
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