从jsh远程仓库更新,解决登录后用户权限加载的问题

This commit is contained in:
cjl
2019-01-17 16:50:41 +08:00
6 changed files with 132 additions and 5 deletions

View File

@@ -172,6 +172,24 @@ public class StringUtil {
return idList;
}
/**
* String字符串转成List<String>数据格式
* String str = "1,2,3,4,5,6" -> List<Long> listLong [1,2,3,4,5,6];
*
* @param strArr
* @return
*/
public static List<String> strToStringList(String strArr) {
List<String> idList=new ArrayList<String>();
String[] d=strArr.split(",");
for (int i = 0, size = d.length; i < size; i++) {
if(d[i]!=null) {
idList.add(d[i].toString());
}
}
return idList;
}
public static List<String> searchCondition(String search) {
if (isEmpty(search)) {
return new ArrayList<String>();