mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
fix: 修复 StpUtil.searchSessionId 等会话查询 API 在填写 null 参数时无法正确拼接字符串的问题
This commit is contained in:
parent
4d2eb4e94b
commit
c6e1be58c5
@ -2388,7 +2388,7 @@ public class StpLogic {
|
|||||||
* @return token集合
|
* @return token集合
|
||||||
*/
|
*/
|
||||||
public List<String> searchTokenValue(String keyword, int start, int size, boolean sortType) {
|
public List<String> searchTokenValue(String keyword, int start, int size, boolean sortType) {
|
||||||
return getSaTokenDao().searchData(splicingKeyTokenValue(""), keyword, start, size, sortType);
|
return getSaTokenDao().searchData(splicingKeyTokenValue(""), (keyword == null ? "" : keyword), start, size, sortType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2402,7 +2402,7 @@ public class StpLogic {
|
|||||||
* @return sessionId集合
|
* @return sessionId集合
|
||||||
*/
|
*/
|
||||||
public List<String> searchSessionId(String keyword, int start, int size, boolean sortType) {
|
public List<String> searchSessionId(String keyword, int start, int size, boolean sortType) {
|
||||||
return getSaTokenDao().searchData(splicingKeySession(""), keyword, start, size, sortType);
|
return getSaTokenDao().searchData(splicingKeySession(""), (keyword == null ? "" : keyword), start, size, sortType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2416,7 +2416,7 @@ public class StpLogic {
|
|||||||
* @return sessionId集合
|
* @return sessionId集合
|
||||||
*/
|
*/
|
||||||
public List<String> searchTokenSessionId(String keyword, int start, int size, boolean sortType) {
|
public List<String> searchTokenSessionId(String keyword, int start, int size, boolean sortType) {
|
||||||
return getSaTokenDao().searchData(splicingKeyTokenSession(""), keyword, start, size, sortType);
|
return getSaTokenDao().searchData(splicingKeyTokenSession(""), (keyword == null ? "" : keyword), start, size, sortType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user