Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
acaf374f
Commit
acaf374f
authored
Mar 21, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:代码优化
parent
ccd01156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
NoticeMessageApiServiceImpl.java
...rvice/service/notify/out/NoticeMessageApiServiceImpl.java
+6
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/NoticeMessageApiServiceImpl.java
View file @
acaf374f
...
...
@@ -78,6 +78,10 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
logger
.
info
(
"通知消息:{}"
,
json
);
NoticeMessageQDTO
messageQDTO
=
JSONObject
.
parseObject
(
json
,
NoticeMessageQDTO
.
class
);
NoticeMessageTypeEnum
messageTypeEnum
=
NoticeMessageTypeEnum
.
getByType
(
messageQDTO
.
getMessageType
());
if
(
messageTypeEnum
==
null
)
{
logger
.
error
(
"无消息模板:{}"
,
json
);
return
;
}
messageQDTO
.
setTemplateCode
(
messageTypeEnum
.
getTemplateCode
());
//企业微信模板
List
<
TemplateContentBO
>
contentList
=
getDescriotion
(
messageQDTO
);
...
...
@@ -132,7 +136,7 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
@Override
public
ServiceResponse
<
Page
<
NoticeMessageInfoDTO
>>
pageNoticeMessage
(
String
enterpriseId
,
String
storeId
,
String
clerkId
,
int
categoryType
,
BasePageInfo
pageInfo
)
{
if
(
StringUtils
.
isAnyBlank
(
enterpriseId
,
storeId
))
{
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_0001
.
getCode
(),
HaoBanErrCode
.
ERR_0001
.
getMsg
());
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_0001
.
getCode
(),
HaoBanErrCode
.
ERR_0001
.
getMsg
());
}
Page
<
NoticeMessageBO
>
retPage
=
noticeMessageService
.
pageNoticeMessage
(
enterpriseId
,
storeId
,
clerkId
,
categoryType
,
pageInfo
);
Page
<
NoticeMessageInfoDTO
>
tPage
=
PageHelperUtils
.
changePageToCurrentPage
(
retPage
,
NoticeMessageInfoDTO
.
class
);
...
...
@@ -238,7 +242,7 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
TabHaobanStaff
tabHaobanStaff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
tabHaobanStaff
==
null
)
{
logger
.
error
(
"未查询到员工:wxUserId:{}"
,
wxUserId
);
logger
.
error
(
"未查询到员工:wxUserId:{}"
,
wxUserId
);
return
;
}
...
...
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