Commit 5c242cb4 by fudahua

会员关联提示

parent 11e5ad7d
......@@ -504,10 +504,11 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
TabWelcome tabWelcome = welcomeMapper.selectByWxEnterpriseId(staffClerkRelationDTO.getWxEnterpriseId());
if (tabWelcome != null && tabWelcome.getOpenFlag() == 0) {
if (null == tabWelcome || tabWelcome.getOpenFlag() == 0) {
log.info("不用发送欢迎语:{},{}", dto.getWxEnterpriseId(), JSONObject.toJSONString(tabWelcome));
return;
}
String externalName = dto.getExternalName();
String content = tabWelcome.getWelcomeContent().replaceAll("<微信昵称>", externalName);
QywxWelcomeMsgDTO qywxWelcomeMsgDTO = new QywxWelcomeMsgDTO();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment