企业信息接口调整
This commit is contained in:
parent
2da64dca74
commit
12f82a463c
|
|
@ -692,7 +692,6 @@ public class EnterprisePoniteScheduleService {
|
||||||
refreshToken();
|
refreshToken();
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.info("危化企业信息查询查询异常:" + e);
|
|
||||||
}
|
}
|
||||||
return flag;
|
return flag;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -176,8 +176,7 @@ public class EnterpriseScheduleService {
|
||||||
if (arrNode.isArray()) {
|
if (arrNode.isArray()) {
|
||||||
long total = data.get("totalCount").asLong();
|
long total = data.get("totalCount").asLong();
|
||||||
int limit = data.get("limit").asInt();
|
int limit = data.get("limit").asInt();
|
||||||
if (total > limit && arrNode.size() >= limit)
|
|
||||||
goon = true;
|
|
||||||
List<Enterprise> enterprises = new ArrayList<>();
|
List<Enterprise> enterprises = new ArrayList<>();
|
||||||
List<EnterpriseInterfaceDto> dtos = objectMapper.readValue(arrNode.toString(), new TypeReference<>() {
|
List<EnterpriseInterfaceDto> dtos = objectMapper.readValue(arrNode.toString(), new TypeReference<>() {
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue