Commit c7308b50 by fengshuonan

修复bug

parent cd6bd15d
......@@ -53,7 +53,7 @@ public class SwaggerConfig{
return new ApiInfoBuilder()
.title("Guns Doc")
.description("Guns Api文档")
.termsOfServiceUrl("http://git.oschina.net/naan1993/guns")
.termsOfServiceUrl("https://gitee.com/stylefeng/guns")
.contact("stylefeng")
.version("2.0")
.build();
......
......@@ -94,6 +94,9 @@ public class ConstantFactory implements IConstantFactory {
@Override
@Cacheable(value = Cache.CONSTANT, key = "'" + CacheKey.ROLES_NAME + "'+#roleIds")
public String getRoleName(String roleIds) {
if (ToolUtil.isEmpty(roleIds)) {
return "";
}
Integer[] roles = Convert.toIntArray(roleIds);
StringBuilder sb = new StringBuilder();
for (int role : roles) {
......@@ -320,7 +323,7 @@ public class ConstantFactory implements IConstantFactory {
ArrayList<Integer> deptids = new ArrayList<>();
if(depts != null && depts.size() > 0){
if (depts != null && depts.size() > 0) {
for (Dept dept : depts) {
deptids.add(dept.getId());
}
......
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