Merge branch 'master' of http://121.40.234.130:8899/root/nl-sso-server
This commit is contained in:
@@ -42,6 +42,7 @@ import org.nl.modules.tools.MapOf;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.ResultBean;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.springframework.cache.annotation.CacheConfig;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
@@ -98,7 +99,7 @@ public class UserServiceImpl implements UserService {
|
||||
map.put("deptIds","('"+collectSql+"')");
|
||||
}
|
||||
map.put("flag","1");
|
||||
JSONObject jsonObject = WQL.getWO("SYS_USER").addParamMap(map).pageQuery(pageable.getPageNumber(), pageable.getPageSize(), "user_id");
|
||||
JSONObject jsonObject = WQL.getWO("SYS_USER").addParamMap(map).pageQuery(WqlUtil.getHttpContext(pageable),"user_id desc");
|
||||
return jsonObject;
|
||||
}
|
||||
|
||||
@@ -220,7 +221,7 @@ public class UserServiceImpl implements UserService {
|
||||
delCaches(user.getUser_id(), user.getUsername());
|
||||
}
|
||||
String collectSql = ids.stream().map(a -> String.valueOf(a)).collect(Collectors.joining("','"));
|
||||
WQLObject.getWQLObject("sys_user").delete("user_id in ('"+collectSql+"'");
|
||||
WQLObject.getWQLObject("sys_user").delete("user_id in ('"+collectSql+"')");
|
||||
//删除用户部门,角色关系表
|
||||
userRelateService.deleteDeptRelate(ids);
|
||||
userRelateService.deleteRoleRelate(ids);
|
||||
|
||||
Reference in New Issue
Block a user