Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TCM
tcm-system
Commits
b873014e
Commit
b873014e
authored
Jun 16, 2021
by
tangf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存资金流水和商户余额MQ拆分
parent
cfa37e6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
CompanyMsgServiceImpl.java
...ing/web/authority/service/impl/CompanyMsgServiceImpl.java
+20
-14
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+3
-5
No files found.
src/main/java/com/pangding/web/authority/service/impl/CompanyMsgServiceImpl.java
View file @
b873014e
...
...
@@ -13,14 +13,18 @@ import com.pangding.web.vo.order.tl.SoundContentReqVo;
import
com.pangding.web.vo.order.tl.SoundReqVo
;
import
com.pangding.web.vo.system.req.CompanyMsgReqVo
;
import
com.pangding.web.vo.system.req.DeviceReqVo
;
import
com.pangding.web.vo.system.req.authority.UserReqVo
;
import
com.pangding.web.vo.system.res.CompanyMsgResVo
;
import
com.pangding.web.vo.system.res.DeviceResVo
;
import
com.pangding.web.vo.system.res.authority.UserResVo
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CompanyMsgServiceImpl
implements
CompanyMsgService
{
...
...
@@ -47,20 +51,6 @@ public class CompanyMsgServiceImpl implements CompanyMsgService {
companyMsgDao
.
create
(
reqVo
);
SoundContentVo
soundContentVo
=
new
SoundContentVo
();
soundContentVo
.
setTipContent
(
reqVo
.
getMsgContent
());
soundContentVo
.
setTipSound
(
reqVo
.
getMsgSound
());
soundContentVo
.
setTipUrl
(
"http://frapp.pangdly.com?msg="
+
soundContentVo
.
getTipContent
());
// UserReqVo userReqVo = new UserReqVo();
// userReqVo.setCompanyId(reqVo.getCompanyId());
// List<UserResVo> userResList = userDao.loadList(userReqVo, UserResVo.class);
// for (int i = 0; i < userResList.size(); i++) {
// if (1 == userResList.get(i).getReceiveFlag()) {
// partnerProcedure.sendSoundContent(userResList.get(i).getId(), soundContentVo);
// }
// }
DeviceReqVo
deviceReqVo
=
new
DeviceReqVo
();
deviceReqVo
.
setCompanyId
(
reqVo
.
getCompanyId
());
deviceReqVo
.
setDeviceType
(
CompanyConstant
.
DEVICE_SOUND
);
...
...
@@ -82,6 +72,22 @@ public class CompanyMsgServiceImpl implements CompanyMsgService {
soundReqVo
.
setTopicName
(
"/"
+
deviceCode
+
"/"
+
deviceName
+
"/user/report"
);
companyConsumer
.
sendSound
(
soundReqVo
);
}
SoundContentVo
soundContentVo
=
new
SoundContentVo
();
soundContentVo
.
setTipContent
(
reqVo
.
getMsgContent
());
soundContentVo
.
setTipSound
(
reqVo
.
getMsgSound
());
soundContentVo
.
setTipUrl
(
"http://frapp.pangdly.com?msg="
+
soundContentVo
.
getTipContent
());
UserReqVo
userReqVo
=
new
UserReqVo
();
userReqVo
.
setCompanyId
(
reqVo
.
getCompanyId
());
List
<
UserResVo
>
userResList
=
userDao
.
loadList
(
userReqVo
,
UserResVo
.
class
);
for
(
int
i
=
0
;
i
<
userResList
.
size
();
i
++)
{
if
(
1
==
userResList
.
get
(
i
).
getReceiveFlag
())
{
partnerProcedure
.
sendSoundContent
(
userResList
.
get
(
i
).
getId
(),
soundContentVo
);
}
}
return
ResponseResult
.
result
(
"处理成功"
);
}
...
...
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
b873014e
...
...
@@ -421,15 +421,13 @@ public class RegisterServiceImpl implements RegisterService {
companyScenicInfoReqVo
.
setReqId
(
StringHelper
.
getNewID
());
companyScenicInfoReqVo
.
setCompanyId
(
companyVo
.
getId
());
companyScenicInfoReqVo
.
setProductOrInterface
(
0
);
ResponseResult
result
=
new
ResponseResult
();
try
{
result
=
storeFeign
.
getCompanyScenicInfo
(
companyScenicInfoReqVo
);
ResponseResult
result
=
storeFeign
.
getCompanyScenicInfo
(
companyScenicInfoReqVo
);
MerchantVo
merchant
=
(
MerchantVo
)
result
.
getData
();
resVo
.
setMerchant
(
merchant
);
}
catch
(
Exception
e
)
{
resVo
.
setMerchant
(
null
);
}
MerchantVo
merchant
=
(
MerchantVo
)
result
.
getData
();
resVo
.
setMerchant
(
merchant
);
/*获取用户权限列表*/
RoleAuthorityGetReqVo
roleAuthorityGetReqVo
=
new
RoleAuthorityGetReqVo
();
...
...
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