|
@@ -83,10 +83,8 @@ public class QYWxServiceImpl extends ServiceImpl<CorpUserInfoMapper, CorpUserInf
|
|
public void queryUserInfo(String token) throws Exception {
|
|
public void queryUserInfo(String token) throws Exception {
|
|
JSONObject resultJson = DepartUserProvider.getUserDetailInfoByDepartId(1,token);
|
|
JSONObject resultJson = DepartUserProvider.getUserDetailInfoByDepartId(1,token);
|
|
Integer errcode = resultJson.getInteger("errcode");
|
|
Integer errcode = resultJson.getInteger("errcode");
|
|
-
|
|
|
|
if(errcode == 0){
|
|
if(errcode == 0){
|
|
JSONArray userArray = resultJson.getJSONArray("userlist");
|
|
JSONArray userArray = resultJson.getJSONArray("userlist");
|
|
-
|
|
|
|
if(userArray == null){
|
|
if(userArray == null){
|
|
throw new Exception("获取员工明细失败,返回值:" + JSON.toJSONString(resultJson));
|
|
throw new Exception("获取员工明细失败,返回值:" + JSON.toJSONString(resultJson));
|
|
}
|
|
}
|
|
@@ -96,7 +94,6 @@ public class QYWxServiceImpl extends ServiceImpl<CorpUserInfoMapper, CorpUserInf
|
|
JSONObject json = userArray.getJSONObject(j);
|
|
JSONObject json = userArray.getJSONObject(j);
|
|
QYWxUserInfo userInfo = new QYWxUserInfo();
|
|
QYWxUserInfo userInfo = new QYWxUserInfo();
|
|
String userid = json.getString("userid");
|
|
String userid = json.getString("userid");
|
|
-
|
|
|
|
userInfo.setMobile(json.getString("mobile"));
|
|
userInfo.setMobile(json.getString("mobile"));
|
|
userInfo.setAvatar(json.getString("avatar"));
|
|
userInfo.setAvatar(json.getString("avatar"));
|
|
userInfo.setMainDepartment(json.getLong("main_department"));
|
|
userInfo.setMainDepartment(json.getLong("main_department"));
|