Commit dc1b8c8e by zhangkb

添加path判空

parent f03609fe
...@@ -702,9 +702,11 @@ public class TagService { ...@@ -702,9 +702,11 @@ public class TagService {
//拼接个人标签查询条件 //拼接个人标签查询条件
private Criteria createPersonalTagCriteria(String userName, List<String> orgIds, private Criteria createPersonalTagCriteria(String userName, List<String> orgIds,
List<String> companyOrgIdList, String path,String keyword) throws TagNotExistException{ List<String> companyOrgIdList, String path,String keyword) throws TagNotExistException{
if(path.contains("\\")) { if(StringUtils.isNotBlank(path)) {
String[] paths = path.split("\\\\"); if(path.contains("\\")) {
path = paths[0]+"\\\\"+paths[1]; String[] paths = path.split("\\\\");
path = paths[0]+"\\\\"+paths[1];
}
} }
Criteria criteria = Criteria.where("tagType").is(Constants.TAG_PERSONAL_TYPE); Criteria criteria = Criteria.where("tagType").is(Constants.TAG_PERSONAL_TYPE);
Criteria criteriaOr = new Criteria(); Criteria criteriaOr = new Criteria();
......
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