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
b6cb1167
Commit
b6cb1167
authored
Mar 14, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板消息
parent
6ae65e01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+2
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SendMsgServiceImpl.java
.../com/wwdz/ch/wx/impl/distribution/SendMsgServiceImpl.java
+4
-4
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
b6cb1167
...
...
@@ -278,6 +278,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
auctionOfferNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
auctionOfferNoticeMsg
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
()));
auctionOfferNoticeMsg
.
setAuctionEndTime
(
auctionConfig
.
getRealEndTime
());
auctionOfferNoticeMsg
.
setProfit
(
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
averageProfit
)));
Result
result
=
sendMsgService
.
auctionSuccessForDistributorsMsg
(
auctionOfferNoticeMsg
);
if
(!
result
.
getSuccess
())
{
String
msg
=
"您分销的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
...
...
@@ -325,6 +326,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
auctionOfferNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
auctionOfferNoticeMsg
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
()));
auctionOfferNoticeMsg
.
setAuctionEndTime
(
auctionConfig
.
getRealEndTime
());
auctionOfferNoticeMsg
.
setProfit
(
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
profit
)));
Result
result
=
sendMsgService
.
auctionSuccessForDistributorsMsg
(
auctionOfferNoticeMsg
);
if
(!
result
.
getSuccess
())
{
String
msg
=
"您分销的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SendMsgServiceImpl.java
View file @
b6cb1167
...
...
@@ -184,7 +184,7 @@ public class SendMsgServiceImpl implements SendMsgService {
}
}});
paramMap
.
put
(
"amount5"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
());
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
map
.
put
(
"data"
,
paramMap
);
logger
.
info
(
"============ 拍卖出价被超越通知模板消息内容 : {}"
,
JsonUtils
.
fromMap
(
map
));
...
...
@@ -235,7 +235,7 @@ public class SendMsgServiceImpl implements SendMsgService {
}
}});
paramMap
.
put
(
"amount6"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
());
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
paramMap
.
put
(
"character_string5"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getDistributionOrderId
());
...
...
@@ -402,7 +402,7 @@ public class SendMsgServiceImpl implements SendMsgService {
}
}});
paramMap
.
put
(
"amount2"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
());
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
String
content
=
DateUtils
.
toString
(
auctionOfferNoticeMsg
.
getAuctionEndTime
());
paramMap
.
put
(
"time3"
,
new
HashMap
()
{{
...
...
@@ -457,7 +457,7 @@ public class SendMsgServiceImpl implements SendMsgService {
}
}});
paramMap
.
put
(
"amount2"
,
new
HashMap
()
{{
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
());
put
(
"value"
,
auctionOfferNoticeMsg
.
getCurrentPrice
()
+
"元"
);
}});
paramMap
.
put
(
"time3"
,
new
HashMap
()
{{
put
(
"value"
,
DateUtils
.
toString
(
auctionOfferNoticeMsg
.
getAuctionEndTime
()));
...
...
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