Commit 28e8826e authored by 吴泽佳's avatar 吴泽佳

早报 优化

parent 37f2daac
...@@ -87,8 +87,7 @@ public class DaySubJob { ...@@ -87,8 +87,7 @@ public class DaySubJob {
// 查询 机构配置信息 // 查询 机构配置信息
OrgExtEntity orgExtEntity = orgExtMapper.selectOne(new LambdaQueryWrapper<OrgExtEntity>() OrgExtEntity orgExtEntity = orgExtMapper.selectOne(new LambdaQueryWrapper<OrgExtEntity>()
.eq(OrgExtEntity::getOrgId, orgId) .eq(OrgExtEntity::getOrgId, orgId)
.eq(OrgExtEntity::getDeleteTag, BizStatus.DeleteTag.tag_init_str) .eq(OrgExtEntity::getDeleteTag, BizStatus.DeleteTag.tag_init_str));
.last("limit 1"));
String jsonKey = ObjectUtil.isNotNull(orgExtEntity) ? orgExtEntity.getJsonWxcpKey() : null; String jsonKey = ObjectUtil.isNotNull(orgExtEntity) ? orgExtEntity.getJsonWxcpKey() : null;
if (StrUtil.isNotBlank(jsonKey)) { if (StrUtil.isNotBlank(jsonKey)) {
//在orgExt 表中有查到 jsonKey 执行消息推送任务 //在orgExt 表中有查到 jsonKey 执行消息推送任务
...@@ -109,6 +108,7 @@ public class DaySubJob { ...@@ -109,6 +108,7 @@ public class DaySubJob {
parmMap.put("type", "text"); parmMap.put("type", "text");
String wxOpenId = userInfoEntity.getUiOpenid(); String wxOpenId = userInfoEntity.getUiOpenid();
String wxcpUId = userInfoEntity.getWxcpUid(); String wxcpUId = userInfoEntity.getWxcpUid();
// if (StringUtils.isNotBlank(wxcpUId)) {
if (StringUtils.isNotBlank(wxcpUId)) { if (StringUtils.isNotBlank(wxcpUId)) {
// 1 企业微信 推送 // 1 企业微信 推送
String agentId = jsonKeyInfo.getStr("agentId"); String agentId = jsonKeyInfo.getStr("agentId");
...@@ -126,8 +126,7 @@ public class DaySubJob { ...@@ -126,8 +126,7 @@ public class DaySubJob {
if (StrUtil.isNotBlank(agentId) && StrUtil.isNotBlank(corpId) && StrUtil.isNotBlank(wxcpUId) && StrUtil.isNotBlank(JSONUtil.toJsonStr(parmMap))) { if (StrUtil.isNotBlank(agentId) && StrUtil.isNotBlank(corpId) && StrUtil.isNotBlank(wxcpUId) && StrUtil.isNotBlank(JSONUtil.toJsonStr(parmMap))) {
feignClientForWxCp.sendMessage(agentId, corpId, wxcpUId, JSONUtil.toJsonStr(parmMap)); feignClientForWxCp.sendMessage(agentId, corpId, wxcpUId, JSONUtil.toJsonStr(parmMap));
} }
} }else if (StringUtils.isNotBlank(wxOpenId)) {
if (StringUtils.isNotBlank(wxOpenId)) {
// 2 公众号推送 // 2 公众号推送
String wxAppID = jsonKeyInfo.getStr("sendMessageAppId"); String wxAppID = jsonKeyInfo.getStr("sendMessageAppId");
// ww=wxAppID&orgCode=orgCode // ww=wxAppID&orgCode=orgCode
......
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