|
|
@@ -12,6 +12,7 @@ import com.uas.sso.support.Page;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -834,25 +835,26 @@ public class AccountUtils {
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
-// /**
|
|
|
-// * 搜索词通过id返回数据
|
|
|
-// *
|
|
|
-// * @param ids
|
|
|
-// * @return
|
|
|
-// * @throws Exception
|
|
|
-// */
|
|
|
-// public static List<UserSpaceDetail> findAll(String ids) throws Exception {
|
|
|
-// String url = AccountConfig.getEnPartnersUrl();
|
|
|
-// List<UserSpaceDetail> details = new ArrayList<UserSpaceDetail>();
|
|
|
-// if (!StringUtils.isEmpty(url)) {
|
|
|
-// ResponseWrap res = HttpUtil.doGet(url, new ModelMap("_operate", "findAll").addAttribute("ids", ids));
|
|
|
-// if(!res.isSuccess())
|
|
|
-// throw new Exception(res.getContent());
|
|
|
-// else
|
|
|
-// details = JSONObject.parseArray(res.getContent(), UserSpaceDetail.class);
|
|
|
-// }
|
|
|
-// return details;
|
|
|
-// }
|
|
|
+ /**
|
|
|
+ * 搜索词通过id返回数据
|
|
|
+ *
|
|
|
+ * @param ids
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public static List<UserSpaceView> findAll(String ids) throws Exception {
|
|
|
+ String url = AccountConfig.getSpaceSaveUrl();
|
|
|
+ List<UserSpaceView> details = new ArrayList<UserSpaceView>();
|
|
|
+ if (!StringUtils.isEmpty(url)) {
|
|
|
+ HttpUtil.ResponseWrap res = HttpUtil.doGet(url, new ModelMap("_operate", "findAll").addAttribute("ids", ids));
|
|
|
+ if(!res.isSuccess()) {
|
|
|
+ throw new Exception(res.getContent());
|
|
|
+ } else {
|
|
|
+ details = JSONObject.parseArray(res.getContent(), UserSpaceView.class);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return details;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 通过企业营业执照查询收到的待处理的请求
|