Commit a8c7e5ef by 王祖波

好办消息通知

parent 77b7430d
...@@ -16,6 +16,8 @@ public class WxEnterpriseQwDTO implements Serializable { ...@@ -16,6 +16,8 @@ public class WxEnterpriseQwDTO implements Serializable {
private String thirdCorpid; private String thirdCorpid;
// 好办小程序应用id // 好办小程序应用id
private String agentId; private String agentId;
// 好办小程序名称
private String agentName;
// 第三方使用的加密的userid // 第三方使用的加密的userid
public boolean needOpenUserId3th() { public boolean needOpenUserId3th() {
...@@ -73,4 +75,12 @@ public class WxEnterpriseQwDTO implements Serializable { ...@@ -73,4 +75,12 @@ public class WxEnterpriseQwDTO implements Serializable {
public void setAgentId(String agentId) { public void setAgentId(String agentId) {
this.agentId = agentId; this.agentId = agentId;
} }
public String getAgentName() {
return agentName;
}
public void setAgentName(String agentName) {
this.agentName = agentName;
}
} }
...@@ -80,6 +80,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService { ...@@ -80,6 +80,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
if(appType==2) { if(appType==2) {
qw.setThirdCorpid(app.getCorpid()); qw.setThirdCorpid(app.getCorpid());
qw.setAgentId(app.getAgentId()); qw.setAgentId(app.getAgentId());
qw.setAgentName(app.getAgentName());
}else if(appType.equals(3)) { }else if(appType.equals(3)) {
qw.setDkCorpid(app.getCorpid()); qw.setDkCorpid(app.getCorpid());
}else if(appType.equals(4)) { }else if(appType.equals(4)) {
......
...@@ -258,6 +258,7 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService { ...@@ -258,6 +258,7 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
appUrl += "&data=" + data; appUrl += "&data=" + data;
messageDTO.setAppid(config.getAppid()); messageDTO.setAppid(config.getAppid());
messageDTO.setAgentId(Integer.parseInt(qwDTO.getAgentId())); messageDTO.setAgentId(Integer.parseInt(qwDTO.getAgentId()));
messageDTO.setAgentName(qwDTO.getAgentName());
messageDTO.setUserIds(wxUserIdList); messageDTO.setUserIds(wxUserIdList);
messageDTO.setPage(appUrl); messageDTO.setPage(appUrl);
messageDTO.setTitle(StringUtils.isNotBlank(title)?title: messageTypeEnum.getName()); messageDTO.setTitle(StringUtils.isNotBlank(title)?title: messageTypeEnum.getName());
......
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