Commit d3406d0d by xugaojun

鸿星尔克定制需求匹配条件修改、企业列表判断条件修改

parent d73a9950
...@@ -150,11 +150,13 @@ public class EnterpriseController extends WebBaseController { ...@@ -150,11 +150,13 @@ public class EnterpriseController extends WebBaseController {
return; return;
} }
list.forEach(one -> { list.forEach(one -> {
String wxEnterpriseId = one.getWxEnterpriseId(); if (one.getOpenMassFlag()) {
String key = String.format(MEMBER_RELATE_ENT_OPE_KEY, wxEnterpriseId); String wxEnterpriseId = one.getWxEnterpriseId();
Object cache = RedisUtil.getCache(key); String key = String.format(MEMBER_RELATE_ENT_OPE_KEY, wxEnterpriseId);
if (Objects.nonNull(cache)) { Object cache = RedisUtil.getCache(key);
one.setOpenMassFlag(Boolean.FALSE); if (Objects.nonNull(cache)) {
one.setOpenMassFlag(Boolean.FALSE);
}
} }
}); });
} }
......
...@@ -189,10 +189,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -189,10 +189,7 @@ public class MessageApiServiceImpl implements MessageApiService {
return false; return false;
} }
String userid = dto.getUserid(); String userid = dto.getUserid();
// 当前规则 userId是12位并且以5开头 // 只处理5开头的-不是5开头不同步
if (userid.length() != 12) {
return false;
}
return userid.startsWith("5"); return userid.startsWith("5");
} }
......
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