|
@@ -18,13 +18,13 @@ import com.boman.domain.SysUser;
|
|
|
import com.boman.system.api.model.LoginUser;
|
|
|
import com.boman.domain.dto.FormDataDto;
|
|
|
import com.boman.web.core.service.common.ICommonService;
|
|
|
+import com.google.common.base.Joiner;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
import static com.boman.common.core.utils.obj.ObjectUtils.*;
|
|
|
-import static com.boman.web.core.utils.ColumnUtils.joinList;
|
|
|
import static com.boman.web.core.utils.ColumnUtils.joinList1;
|
|
|
|
|
|
/**
|
|
@@ -199,7 +199,7 @@ public class AuthUtils {
|
|
|
public static void checkRoleDataAuth(String tableName, String pkName, Long id) {
|
|
|
List<Long> roleIdList = getLoginUserRoleIdList();
|
|
|
RemoteRoleDataService remoteRoleDataService = SpringUtils.getBean(RemoteRoleDataService.class);
|
|
|
- List<SysRoleData> roleDataList = remoteRoleDataService.listByRoleIdListTableName(joinList(roleIdList), tableName);
|
|
|
+ List<SysRoleData> roleDataList = remoteRoleDataService.listByRoleIdListTableName(Joiner.on(",").join(roleIdList), tableName);
|
|
|
if (isEmpty(roleDataList)) {
|
|
|
//没有配,证明有此表的全部权限
|
|
|
return;
|