新增地址匹配批量测试
This commit is contained in:
+12
-8
@@ -67,10 +67,12 @@ public class MatchTest {
|
||||
if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) {
|
||||
List<String> addressList = new ArrayList<>();
|
||||
MatchedBuilding matchedBuilding = JSONObject.toJavaObject(apiResponse.getResult(), MatchedBuilding.class);
|
||||
addressList.add(matchedBuilding.getId());
|
||||
addressList.add(matchedBuilding.getCity());
|
||||
addressList.add(matchedBuilding.getDistrict());
|
||||
addressList.add(matchedBuilding.getName());
|
||||
if (matchedBuilding != null) {
|
||||
addressList.add(matchedBuilding.getId());
|
||||
addressList.add(matchedBuilding.getCity());
|
||||
addressList.add(matchedBuilding.getDistrict());
|
||||
addressList.add(matchedBuilding.getName());
|
||||
}
|
||||
dataMap.put(address, addressList);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
@@ -87,10 +89,12 @@ public class MatchTest {
|
||||
if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) {
|
||||
List<String> addressList = new ArrayList<>();
|
||||
MatchedBuilding matchedBuilding = JSONObject.toJavaObject(apiResponse.getResult(), MatchedBuilding.class);
|
||||
addressList.add(matchedBuilding.getId());
|
||||
addressList.add(matchedBuilding.getCity());
|
||||
addressList.add(matchedBuilding.getDistrict());
|
||||
addressList.add(matchedBuilding.getName());
|
||||
if (matchedBuilding != null) {
|
||||
addressList.add(matchedBuilding.getId());
|
||||
addressList.add(matchedBuilding.getCity());
|
||||
addressList.add(matchedBuilding.getDistrict());
|
||||
addressList.add(matchedBuilding.getName());
|
||||
}
|
||||
dataMap.put(address, addressList);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user