提交 06fa9287 编写于 作者: zhouweidong's avatar zhouweidong

消息集成

上级 be7e5e62
...@@ -12,7 +12,7 @@ TARGET=PSSYSTEM ...@@ -12,7 +12,7 @@ TARGET=PSSYSTEM
[ [
<#list sys.getAllPSSysMsgTempls() as msgTempl> <#list sys.getAllPSSysMsgTempls() as msgTempl>
{ {
"tid":"${msgTempl.getCodeName()}", "tid":"${sys.codeName?lower_case}-${msgTempl.getCodeName()?lower_case}",
"template_name":"${msgTempl.getName()}", "template_name":"${msgTempl.getName()}",
"content":"${msgTempl.getContent()}" "content":"${msgTempl.getContent()}"
} }
......
...@@ -208,7 +208,7 @@ TARGET=PSWFVERSION ...@@ -208,7 +208,7 @@ TARGET=PSWFVERSION
<#if WFProcess.isSendInform()> <#if WFProcess.isSendInform()>
<#assign msgTempl=WFProcess.getPSSysMsgTempl()> <#assign msgTempl=WFProcess.getPSSysMsgTempl()>
<extensionElements> <extensionElements>
<flowable:formProperty id="${msgTempl.getCodeName()}" name="${msgTempl.getName()}" variable="${assignGroupCond}" type="${WFProcess.getMsgType()}" /> <flowable:formProperty id="${sys.codeName?lower_case}-${msgTempl.getCodeName()?lower_case}" name="${msgTempl.getName()}" variable="${assignGroupCond}" type="${WFProcess.getMsgType()}" />
</extensionElements> </extensionElements>
</#if> </#if>
<#--<#if assignGroupCond!="">--> <#--<#if assignGroupCond!="">-->
......
...@@ -65,7 +65,7 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -65,7 +65,7 @@ public class PermissionSyncJob implements ApplicationRunner {
<#if hasMsgTemplate> <#if hasMsgTemplate>
@Autowired @Autowired
@Lazy @Lazy
private ${pub.getPKGCodeName()}.util.client.IBZNotifyFeignClient noticeFeignClient; private ${pub.getPKGCodeName()}.util.client.IBZNotifyFeignClient notifyFeignClient;
</#if> </#if>
@Override @Override
...@@ -114,12 +114,10 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -114,12 +114,10 @@ public class PermissionSyncJob implements ApplicationRunner {
InputStream msgTemplate= this.getClass().getResourceAsStream("/msgtempl/systemMsgTempl.json"); //获取当前系统所有实体资源能力 InputStream msgTemplate= this.getClass().getResourceAsStream("/msgtempl/systemMsgTempl.json"); //获取当前系统所有实体资源能力
String strMsgTemplate = IOUtils.toString(msgTemplate,"UTF-8"); String strMsgTemplate = IOUtils.toString(msgTemplate,"UTF-8");
JSONObject template= new JSONObject(); JSONObject template= new JSONObject();
template.put("system",systemId);
template.put("template",JSONArray.parseArray(strMsgTemplate)); template.put("template",JSONArray.parseArray(strMsgTemplate));
//数值代码表:email(2)sms(4)wechat(32)dingtalk(64) //数值代码表:email(2)sms(4)wechat(32)dingtalk(64)
template.put("templtypes", 102); template.put("templtypes", 102);
// template.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes())); if(notifyFeignClient.createMsgTemplate(template)){
if(noticeFeignClient.createMsgTemplate(template)){
log.info("推送消息模板成功"); log.info("推送消息模板成功");
}else{ }else{
log.error("推送消息模板失败"); log.error("推送消息模板失败");
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册