提交 8891a890 编写于 作者: xignzi006's avatar xignzi006 🇨🇳

更新系统逻辑名称

上级 4be06275
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
TARGET=PSSYSTEM TARGET=PSSYSTEM
</#ibiztemplate> </#ibiztemplate>
<#assign sid = sys.getName()/> <#assign sid = sys.getName()/>
<#assign sname = sys.getLogicName()/>
<#assign hasWF=false> <#assign hasWF=false>
<#if sys.getAllPSWorkflows()??> <#if sys.getAllPSWorkflows()??>
<#list sys.getAllPSWorkflows() as wf> <#list sys.getAllPSWorkflows() as wf>
...@@ -43,6 +44,9 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -43,6 +44,9 @@ public class PermissionSyncJob implements ApplicationRunner {
@Value("${r'$'}{ibiz.systemid:${sid}}") @Value("${r'$'}{ibiz.systemid:${sid}}")
private String systemId; private String systemId;
@Value("${r'$'}{ibiz.systemid:${sname}}")
private String systemName;
<#if hasWF> <#if hasWF>
@Autowired @Autowired
...@@ -58,7 +62,7 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -58,7 +62,7 @@ public class PermissionSyncJob implements ApplicationRunner {
String permissionResult = IOUtils.toString(permission,"UTF-8"); String permissionResult = IOUtils.toString(permission,"UTF-8");
JSONObject system= new JSONObject(); JSONObject system= new JSONObject();
system.put("pssystemid",systemId); system.put("pssystemid",systemId);
system.put("pssystemname",systemId); system.put("pssystemname",systemName);
system.put("sysstructure",JSONObject.parseObject(permissionResult)); system.put("sysstructure",JSONObject.parseObject(permissionResult));
system.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes())); system.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes()));
if(client.syncSysAuthority(system)){ if(client.syncSysAuthority(system)){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册