代碼如下:
public boolean checkSGDLookPre(String sgdBrId, Ce_sysuser cuser) {
if (cuser.getSu_RoleId() == 6) {
return true;
}
String[] strArray = cuser.getUserViewBranchs().split(",");
Set<String> strSet = new HashSet<String>();
CollectionUtils.addAll(strSet, strArray);
return strSet.contains(sgdBrId);
}