|
|
|
@ -77,8 +77,8 @@ public class LinkInterfaceUtil { |
|
|
|
} |
|
|
|
Integer total = ObjectFormatUtil.toInteger(data.get("total")); |
|
|
|
List<AdministrationP> administrationPList = new ArrayList<>(); |
|
|
|
for (int i = 0; i < list.size(); i++) { |
|
|
|
Administration administration = JSONObject.toJavaObject((JSONObject) list.get(i), Administration.class); |
|
|
|
for (Object o : list) { |
|
|
|
Administration administration = JSONObject.toJavaObject((JSONObject) o, Administration.class); |
|
|
|
AdministrationP administrationP = new AdministrationP(administration); |
|
|
|
administrationPList.add(administrationP); |
|
|
|
} |
|
|
|
@ -107,7 +107,11 @@ public class LinkInterfaceUtil { |
|
|
|
} |
|
|
|
JSONObject jsonObject = JSONObject.parseObject(post); |
|
|
|
JSONObject data = (JSONObject) jsonObject.get("data"); |
|
|
|
return JSONObject.toJavaObject(data, UserByPort.class); |
|
|
|
UserByPort userByPort = JSONObject.toJavaObject(data, UserByPort.class); |
|
|
|
if("302299".equals(userByPort.getNumber())){ |
|
|
|
userByPort.setMaindeparment(280); |
|
|
|
} |
|
|
|
return userByPort; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|