Commit 9f81246e by danmo

fix

1 parent 41a46831
...@@ -70,5 +70,5 @@ public interface IWeCorpAccountService ...@@ -70,5 +70,5 @@ public interface IWeCorpAccountService
/** /**
* 客户流失通知开关查询 * 客户流失通知开关查询
*/ */
public Boolean getCustomerChurnNoticeSwitch(); public String getCustomerChurnNoticeSwitch();
} }
...@@ -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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!