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
a5522abd
Commit
a5522abd
authored
Sep 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预估价模板消息3
parent
b5395452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+13
-10
ch-core/src/main/java/com/wwdz/ch/core/impl/SendMsgServiceImpl.java
...c/main/java/com/wwdz/ch/core/impl/SendMsgServiceImpl.java
+0
-1
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
a5522abd
...
@@ -479,18 +479,21 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -479,18 +479,21 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
supplierItem
.
setId
(
dto
.
getId
());
supplierItem
.
setId
(
dto
.
getId
());
supplierItem
.
setOfficialEstimatedPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getOfficialEstimatedPrice
()));
supplierItem
.
setOfficialEstimatedPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getOfficialEstimatedPrice
()));
supplierItemDao
.
update
(
supplierItem
);
supplierItemDao
.
update
(
supplierItem
);
//发送模板消息,通知用户估价完成
//发送模板消息,通知用户估价完成
SupplierItem
item
=
supplierItemDao
.
findById
(
dto
.
getId
());
SupplierItem
item
=
supplierItemDao
.
findById
(
dto
.
getId
());
String
buyerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
item
.
getCreatorId
());
if
(
CommConsts
.
SYSTEM_ACCOUNT
.
longValue
()
!=
item
.
getCreatorId
()
&&
CommConsts
.
SELF_SUPPORT_ACCOUNT
.
longValue
()
!=
item
.
getCreatorId
())
{
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
buyerOpenId
))
{
String
buyerOpenId
=
sendMsgService
.
getOpenIdByUserId
(
item
.
getCreatorId
());
ExchangeNoticeMsg
exchangeNoticeMsg
=
new
ExchangeNoticeMsg
();
if
(
com
.
xxdxxs
.
utils
.
StringUtils
.
hasLength
(
buyerOpenId
))
{
exchangeNoticeMsg
.
setItemId
(
item
.
getId
());
ExchangeNoticeMsg
exchangeNoticeMsg
=
new
ExchangeNoticeMsg
();
exchangeNoticeMsg
.
setItemName
(
item
.
getName
());
exchangeNoticeMsg
.
setItemId
(
item
.
getId
());
exchangeNoticeMsg
.
setOpenId
(
buyerOpenId
);
exchangeNoticeMsg
.
setItemName
(
item
.
getName
());
exchangeNoticeMsg
.
setOfficialEstimatedPrice
(
PriceUtil
.
convertPriceFenToYuan
(
item
.
getOfficialEstimatedPrice
()));
exchangeNoticeMsg
.
setOpenId
(
buyerOpenId
);
sendMsgService
.
sendOfficialEstimatedPriceMsg
(
exchangeNoticeMsg
);
exchangeNoticeMsg
.
setOfficialEstimatedPrice
(
PriceUtil
.
convertPriceFenToYuan
(
item
.
getOfficialEstimatedPrice
()));
}
else
{
sendMsgService
.
sendOfficialEstimatedPriceMsg
(
exchangeNoticeMsg
);
logger
.
info
(
">>>>> 买家openid为空, 发送消息失败 <<<<<"
);
}
else
{
logger
.
info
(
">>>>> 买家openid为空, 发送消息失败 <<<<<"
);
}
}
}
return
Result
.
success
();
return
Result
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
ch-core/src/main/java/com/wwdz/ch/core/impl/SendMsgServiceImpl.java
View file @
a5522abd
...
@@ -545,7 +545,6 @@ public class SendMsgServiceImpl implements SendMsgService {
...
@@ -545,7 +545,6 @@ public class SendMsgServiceImpl implements SendMsgService {
@Override
@Override
public
String
getOpenIdByUserId
(
long
userId
)
{
public
String
getOpenIdByUserId
(
long
userId
)
{
//先查询寄售单用户信息
User
user
=
userDao
.
queryById
(
userId
);
User
user
=
userDao
.
queryById
(
userId
);
String
unionId
=
user
.
getWeixinUnionid
();
String
unionId
=
user
.
getWeixinUnionid
();
OfficialAccountSubscribeRecord
officialAccountSubscribeRecord
=
officialAccountSubscribeRecordDao
.
findOne
(
unionId
);
OfficialAccountSubscribeRecord
officialAccountSubscribeRecord
=
officialAccountSubscribeRecordDao
.
findOne
(
unionId
);
...
...
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