提交 d309571f 编写于 作者: ibizdev's avatar ibizdev

lab_gzf 部署微服务应用

上级 42ef0569
{ {
"systemid":"iBizAssetManagement", "systemid":"iBizAssetManagement",
"systemname":"iBiz资产管理",
"unires":[ "unires":[
], ],
"entities":[ "entities":[
......
...@@ -4,9 +4,9 @@ public class DTOClient extends DTOBase { ...@@ -4,9 +4,9 @@ public class DTOClient extends DTOBase {
@Override @Override
public void modify(String field,Object val) { public void modify(String field,Object val) {
getExtensionparams().put("dirtyflagenable",true);
if(val==null){ if(val==null){
this.getFocusNull().add(field.toLowerCase()); this.getFocusNull().add(field.toLowerCase());
getExtensionparams().put("dirtyflagenable",true);
getExtensionparams().put(field.toLowerCase()+"dirtyflag",true); getExtensionparams().put(field.toLowerCase()+"dirtyflag",true);
} }
else{ else{
......
...@@ -29,6 +29,9 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -29,6 +29,9 @@ public class PermissionSyncJob implements ApplicationRunner {
@Value("${ibiz.systemid:iBizAssetManagement}") @Value("${ibiz.systemid:iBizAssetManagement}")
private String systemId; private String systemId;
@Value("${ibiz.systemid:iBiz资产管理}")
private String systemName;
@Override @Override
...@@ -39,7 +42,7 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -39,7 +42,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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册