Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9f81246e
authored
Dec 13, 2020
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
41a46831
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/IWeCorpAccountService.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCorpAccountServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/IWeCorpAccountService.java
View file @
9f81246
...
@@ -70,5 +70,5 @@ public interface IWeCorpAccountService
...
@@ -70,5 +70,5 @@ public interface IWeCorpAccountService
/**
/**
* 客户流失通知开关查询
* 客户流失通知开关查询
*/
*/
public
Boolean
getCustomerChurnNoticeSwitch
();
public
String
getCustomerChurnNoticeSwitch
();
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCorpAccountServiceImpl.java
View file @
9f81246
...
@@ -105,22 +105,11 @@ public class WeCorpAccountServiceImpl implements IWeCorpAccountService {
...
@@ -105,22 +105,11 @@ public class WeCorpAccountServiceImpl implements IWeCorpAccountService {
}
}
@Override
@Override
public
Boolean
getCustomerChurnNoticeSwitch
()
{
public
String
getCustomerChurnNoticeSwitch
()
{
boolean
flag
=
false
;
WeCorpAccount
validWeCorpAccount
=
weCorpAccountMapper
.
findValidWeCorpAccount
();
WeCorpAccount
validWeCorpAccount
=
weCorpAccountMapper
.
findValidWeCorpAccount
();
String
noticeSwitch
=
Optional
.
ofNullable
(
validWeCorpAccount
).
map
(
WeCorpAccount:
:
getCustomerChurnNoticeSwitch
)
String
noticeSwitch
=
Optional
.
ofNullable
(
validWeCorpAccount
).
map
(
WeCorpAccount:
:
getCustomerChurnNoticeSwitch
)
.
orElse
(
WeConstans
.
DEL_FOLLOW_USER_SWITCH_CLOSE
);
.
orElse
(
WeConstans
.
DEL_FOLLOW_USER_SWITCH_CLOSE
);
switch
(
noticeSwitch
){
return
noticeSwitch
;
case
WeConstans
.
DEL_FOLLOW_USER_SWITCH_CLOSE
:
flag
=
false
;
break
;
case
WeConstans
.
DEL_FOLLOW_USER_SWITCH_OPEN
:
flag
=
true
;
break
;
default
:
break
;
}
return
flag
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment