|
|
@@ -407,7 +407,7 @@ public class AccountUtils {
|
|
|
public static UserSpaceView findBySpaceUU(Long spaceUU) throws Exception {
|
|
|
String url = AccountConfig.getUserSaveUrl();
|
|
|
if (!StringUtils.isEmpty(url)) {
|
|
|
- url = url + "/checkBusinessCode";
|
|
|
+ url = url + "/info/spaceUU";
|
|
|
ModelMap data = new ModelMap();
|
|
|
data.put("spaceUU", spaceUU);
|
|
|
HttpUtil.ResponseWrap res = HttpUtil.doGet(url, data);
|
|
|
@@ -680,27 +680,28 @@ public class AccountUtils {
|
|
|
String enterUrl = AccountConfig.getContactPageUrl();
|
|
|
return enterUrl;
|
|
|
}
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 通过关键词搜索企业信息
|
|
|
-// *
|
|
|
-// * @param keyword
|
|
|
-// * @return
|
|
|
-// * @throws Exception
|
|
|
-// */
|
|
|
-// public static Page<UserSpaceDetail> getUserSpacesByKeyword(String keyword, int pageNumber, int pageSize) throws Exception {
|
|
|
-// String Url = AccountConfig.getEnPartnersUrl();
|
|
|
-// if (!StringUtils.isEmpty(Url)) {
|
|
|
-// ResponseWrap res = HttpUtil.doGet(Url,
|
|
|
-// new ModelMap("_operate", "getUserSpaces").addAttribute("keyword", keyword).addAttribute("pageNumber", pageNumber)
|
|
|
-// .addAttribute("pageSize", pageSize));
|
|
|
-// if (!res.isSuccess())
|
|
|
-// throw new Exception(res.getContent());
|
|
|
-// return JSON.parseObject(res.getContent(), new TypeReference<Page<UserSpaceDetail>>() {
|
|
|
-// });
|
|
|
-// }
|
|
|
-// return null;
|
|
|
-// }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通过关键词搜索企业信息
|
|
|
+ *
|
|
|
+ * @param keyword
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public static Page<UserSpaceView> getUserSpacesByKeyword(String keyword, int pageNumber, int pageSize) throws Exception {
|
|
|
+ String Url = AccountConfig.getSpaceSaveUrl();
|
|
|
+ if (!StringUtils.isEmpty(Url)) {
|
|
|
+ HttpUtil.ResponseWrap res = HttpUtil.doGet(Url,
|
|
|
+ new ModelMap("_operate", "getUserSpaces").addAttribute("keyword", keyword).addAttribute("pageNumber", pageNumber)
|
|
|
+ .addAttribute("pageSize", pageSize));
|
|
|
+ if (!res.isSuccess()) {
|
|
|
+ throw new Exception(res.getContent());
|
|
|
+ }
|
|
|
+ return JSON.parseObject(res.getContent(), new TypeReference<Page<UserSpaceView>>() {
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
//
|
|
|
// /**
|
|
|
// * 通过手机号搜索用户账号信息
|