Commit c7308b50 by fengshuonan

修复bug

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