Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
a8d8b55b
Commit
a8d8b55b
authored
Nov 15, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盲袋专区下单
parent
23be5d9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/BlindBoxServiceImpl.java
...com/wwdz/ch/wx/impl/distribution/BlindBoxServiceImpl.java
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+3
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/BlindBoxServiceImpl.java
View file @
a8d8b55b
...
@@ -201,7 +201,7 @@ public class BlindBoxServiceImpl implements BlindBoxService {
...
@@ -201,7 +201,7 @@ public class BlindBoxServiceImpl implements BlindBoxService {
StringBuffer
stringBuffer
=
new
StringBuffer
();
StringBuffer
stringBuffer
=
new
StringBuffer
();
if
(
StringUtils
.
hasLength
(
remark
))
{
if
(
StringUtils
.
hasLength
(
remark
))
{
for
(
String
code
:
remark
.
split
(
","
))
{
for
(
String
code
:
remark
.
split
(
","
))
{
stringBuffer
.
append
(
code
+
"号福袋"
);
stringBuffer
.
append
(
code
);
stringBuffer
.
append
(
"、"
);
stringBuffer
.
append
(
"、"
);
codes
.
add
(
code
);
codes
.
add
(
code
);
}
}
...
@@ -209,7 +209,7 @@ public class BlindBoxServiceImpl implements BlindBoxService {
...
@@ -209,7 +209,7 @@ public class BlindBoxServiceImpl implements BlindBoxService {
if
(
stringBuffer
.
length
()
>
0
)
{
if
(
stringBuffer
.
length
()
>
0
)
{
stringBuffer
.
deleteCharAt
(
stringBuffer
.
length
()
-
1
);
stringBuffer
.
deleteCharAt
(
stringBuffer
.
length
()
-
1
);
}
}
blindBoxBuyRecordVo
.
setBoxCodes
(
stringBuffer
.
toString
());
blindBoxBuyRecordVo
.
setBoxCodes
(
stringBuffer
.
toString
()
+
"号福袋"
);
blindBoxBuyRecordVoList
.
add
(
blindBoxBuyRecordVo
);
blindBoxBuyRecordVoList
.
add
(
blindBoxBuyRecordVo
);
}
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
a8d8b55b
...
@@ -474,6 +474,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
...
@@ -474,6 +474,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
long
orderAmount
=
supplierItem
.
getDistributionPrice
()
*
dto
.
getItemNum
();
long
orderAmount
=
supplierItem
.
getDistributionPrice
()
*
dto
.
getItemNum
();
//盲盒订单存在优惠活动,特殊处理
//盲盒订单存在优惠活动,特殊处理
if
(
dto
.
getType
()
!=
null
&&
DistributionEnum
.
DistributionTypeEnum
.
BLACK_COLLECTION
.
getCode
()
==
dto
.
getType
())
{
if
(
dto
.
getType
()
!=
null
&&
DistributionEnum
.
DistributionTypeEnum
.
BLACK_COLLECTION
.
getCode
()
==
dto
.
getType
())
{
//盲袋订单,盲袋编码在remark字段中
distributionOrder
.
setRemark
(
dto
.
getRemark
());
SellActivityRequestDto
sellActivityRequestDto
=
new
SellActivityRequestDto
();
SellActivityRequestDto
sellActivityRequestDto
=
new
SellActivityRequestDto
();
sellActivityRequestDto
.
setOrderAmount
(
orderAmount
);
sellActivityRequestDto
.
setOrderAmount
(
orderAmount
);
//查询优惠活动后的订单价格
//查询优惠活动后的订单价格
...
...
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