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
92284a89
Commit
92284a89
authored
Mar 12, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发消息
parent
1644951c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+22
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
92284a89
...
...
@@ -315,6 +315,28 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
DateUtils
.
toString
(
payEndTime
)
+
"前完成付款,请前往\"换藏小程序\"查看。"
;
aliSmsSender
.
sendAuctionWithTemplate
(
auctionRecord
.
getUserId
(),
msg
);
}
//给中拍用户对应分销商发消息
String
lastOpenId
=
sendMsgService
.
getOpenIdByUserId
(
distributionOrder
.
getSellerId
());
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
lastOpenId
))
{
AuctionOfferNoticeMsg
auctionOfferNoticeMsg
=
new
AuctionOfferNoticeMsg
();
auctionOfferNoticeMsg
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionRecord
.
getPrice
()));
auctionOfferNoticeMsg
.
setOpenId
(
lastOpenId
);
auctionOfferNoticeMsg
.
setItemId
(
supplierItem
.
getId
());
auctionOfferNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
auctionOfferNoticeMsg
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
()));
auctionOfferNoticeMsg
.
setAuctionEndTime
(
auctionConfig
.
getRealEndTime
());
Result
result
=
sendMsgService
.
auctionSuccessForDistributorsMsg
(
auctionOfferNoticeMsg
);
if
(!
result
.
getSuccess
())
{
String
msg
=
"您分销的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
"元,您预计获得利润"
+
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
profit
))
+
"元。请前往\"换藏小程序\"查看"
;
aliSmsSender
.
sendAuctionWithTemplate
(
distributionOrder
.
getSellerId
(),
msg
);
}
}
else
{
String
msg
=
"您分销的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
"元,您预计获得利润"
+
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
profit
))
+
"元。请前往\"换藏小程序\"查看"
;
aliSmsSender
.
sendAuctionWithTemplate
(
distributionOrder
.
getSellerId
(),
msg
);
}
return
Result
.
success
(
map
);
}
else
{
return
Result
.
failed
(
"稍后再试"
);
...
...
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