Commit 9f81246e by danmo

fix

1 parent 41a46831
......@@ -70,5 +70,5 @@ public interface IWeCorpAccountService
/**
* 客户流失通知开关查询
*/
public Boolean getCustomerChurnNoticeSwitch();
public String getCustomerChurnNoticeSwitch();
}
......@@ -105,22 +105,11 @@ public class WeCorpAccountServiceImpl implements IWeCorpAccountService {
}
@Override
public Boolean getCustomerChurnNoticeSwitch() {
boolean flag = false;
public String getCustomerChurnNoticeSwitch() {
WeCorpAccount validWeCorpAccount = weCorpAccountMapper.findValidWeCorpAccount();
String noticeSwitch = Optional.ofNullable(validWeCorpAccount).map(WeCorpAccount::getCustomerChurnNoticeSwitch)
.orElse(WeConstans.DEL_FOLLOW_USER_SWITCH_CLOSE);
switch (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;
return noticeSwitch;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!