|
|
@@ -1193,24 +1193,25 @@ public class AccountUtils {
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 根据imId获取用户userUU(没有则返回null)
|
|
|
-// */
|
|
|
-// public static User getUserByImId (Long imId) throws Exception {
|
|
|
-// String url = AccountConfig.getUserSaveUrl();
|
|
|
-// User result = null;
|
|
|
-// if (!StringUtils.isEmpty(url)) {
|
|
|
-// ResponseWrap res = HttpUtil.doGet(url,
|
|
|
-// new ModelMap("_operate", "getUserByImId")
|
|
|
-// .addAttribute("imId", imId));
|
|
|
-// if (!res.isSuccess())
|
|
|
-// throw new Exception(res.getContent());
|
|
|
-// else
|
|
|
-// result = JSON.parseObject(res.getContent(), User.class);
|
|
|
-// }
|
|
|
-// return result;
|
|
|
-// }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据imId获取用户userUU(没有则返回null)
|
|
|
+ */
|
|
|
+ public static UserView getUserByImId (Long imId) throws Exception {
|
|
|
+ String url = AccountConfig.getUserSaveUrl();
|
|
|
+ UserView result = null;
|
|
|
+ if (!StringUtils.isEmpty(url)) {
|
|
|
+ HttpUtil.ResponseWrap res = HttpUtil.doGet(url,
|
|
|
+ new ModelMap("_operate", "getUserByImId")
|
|
|
+ .addAttribute("imId", imId));
|
|
|
+ if (!res.isSuccess()) {
|
|
|
+ throw new Exception(res.getContent());
|
|
|
+ } else {
|
|
|
+ result = JSON.parseObject(res.getContent(), UserView.class);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 根据营业执照号分页查找该企业的用户
|