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
79a72e9f
Commit
79a72e9f
authored
Sep 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
估价发送短信
parent
65b3c2dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+8
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+2
-1
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
79a72e9f
...
...
@@ -485,13 +485,19 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
if
(
CommConsts
.
SYSTEM_ACCOUNT
.
longValue
()
!=
item
.
getCreatorId
()
&&
CommConsts
.
SELF_SUPPORT_ACCOUNT
.
longValue
()
!=
item
.
getCreatorId
())
{
String
buyerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
item
.
getCreatorId
());
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
buyerOpenId
))
{
String
officialEstimatedPrice
=
PriceUtil
.
convertPriceFenToYuan
(
item
.
getOfficialEstimatedPrice
());
ExchangeNoticeMsg
exchangeNoticeMsg
=
new
ExchangeNoticeMsg
();
exchangeNoticeMsg
.
setItemId
(
item
.
getId
());
exchangeNoticeMsg
.
setItemName
(
item
.
getName
());
exchangeNoticeMsg
.
setOpenId
(
buyerOpenId
);
exchangeNoticeMsg
.
setOfficialEstimatedPrice
(
PriceUtil
.
convertPriceFenToYuan
(
item
.
getOfficialEstimatedPrice
())
);
exchangeNoticeMsg
.
setOfficialEstimatedPrice
(
officialEstimatedPrice
);
logger
.
info
(
"ExchangeNoticeMsg :{}"
,
JsonUtils
.
from
(
exchangeNoticeMsg
));
sendMsgService
.
sendOfficialEstimatedPriceMsg
(
exchangeNoticeMsg
);
Result
result
=
sendMsgService
.
sendOfficialEstimatedPriceMsg
(
exchangeNoticeMsg
);
if
(!
result
.
getSuccess
())
{
String
url
=
wxAppletApi
.
getUrlLink
(
"/pages/detail/index"
,
"itemId="
+
dto
.
getId
());
String
msg
=
"您上传的商品"
+
item
.
getName
()
+
"已完成估价,估价金额为"
+
officialEstimatedPrice
+
"元, 请前往"
+
url
+
"查看"
;
aliSmsSender
.
sendSms
(
item
.
getCreatorId
(),
msg
);
}
}
else
{
logger
.
info
(
">>>>> 买家openid为空, 发送消息失败 <<<<<"
);
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
79a72e9f
...
...
@@ -48,7 +48,8 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/specialPerformance/sendMsg"
,
"/wx/specialPerformance/sendMsgTest"
,
"/wx/groupPurchase/systemAddRecord"
,
"/wx/officialAccount/**"
,
"/wx/supplierItem/**"
,
"/wx/specialPerformance/**"
,
"/wx/groupPurchase/**"
,
"/wx/disposableSubscribeRecord/**"
,
"/wx/auctionRecord/findList"
,
"/wx/selfPage/countIntroduceAmount"
,
"/wx/exchange/findExchangeItem"
"/wx/exchange/findExchangeItem"
,
"/wx/specialPerformance/findInfos"
,
"/wx/specialPerformance/findItemList"
,
"/wx/groupPurchase/findList"
,
"/wx/groupPurchase/findItemDetail"
//下列路径上线注释
/* ,"/wx/specialPerformance/**"
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
...
...
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