提交 1ac8cc8d 编写于 作者: zhouweidong's avatar zhouweidong

uaa资源Md5

上级 7ec069c0
......@@ -25,6 +25,7 @@ import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import org.springframework.util.DigestUtils;
import java.io.InputStream;
import java.util.*;
......@@ -59,6 +60,7 @@ public class PermissionSyncJob implements ApplicationRunner {
system.put("pssystemid",systemId);
system.put("pssystemname",systemId);
system.put("sysstructure",JSONObject.parseObject(permissionResult));
system.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes()));
if(client.syncSysAuthority(system)){
log.info("向[UAA]同步系统资源成功");
}else{
......@@ -79,7 +81,11 @@ public class PermissionSyncJob implements ApplicationRunner {
</#list>
</#if>
</#list>
client2.deployBpmnFile(bpmnfiles);
if(client2.deployBpmnFile(bpmnfiles)){
log.info("部署流程成功");
}else{
log.error("部署流程失败");
}
}catch(Exception ex){
log.error(String.format("部署流程失败,请检查[WF]服务是否正常! [%s]",ex));
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册