This commit is contained in:
dinggang 2022-08-10 14:02:19 +08:00
parent 201a092ed0
commit 65dc6fae91
1 changed files with 4 additions and 4 deletions

View File

@ -250,7 +250,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (StringUtils.isNotBlank(attrEntity.getAttrValue())) { if (StringUtils.isNotBlank(attrEntity.getAttrValue())) {
String[] ids = attrEntity.getAttrValue().split(","); String[] ids = attrEntity.getAttrValue().split(",");
if (ids.length != 0) { if (ids.length != 0) {
List<TbDataResourceRelEntity> resourceRels = new ArrayList<>();
for (String keyid : ids) { for (String keyid : ids) {
TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity(); TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity();
resourceRel.setKeyId(Long.valueOf(keyid)); resourceRel.setKeyId(Long.valueOf(keyid));
@ -264,7 +264,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (StringUtils.isNotBlank(attrEntity.getAttrValue())) { if (StringUtils.isNotBlank(attrEntity.getAttrValue())) {
String[] ids = attrEntity.getAttrValue().split(","); String[] ids = attrEntity.getAttrValue().split(",");
if (ids.length != 0) { if (ids.length != 0) {
List<TbDataResourceRelEntity> resourceRels = new ArrayList<>();
for (String keyid : ids) { for (String keyid : ids) {
TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity(); TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity();
resourceRel.setKeyId(resourceID); resourceRel.setKeyId(resourceID);
@ -311,7 +311,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (StringUtils.isNotBlank(attrEntity.getAttrValue())) { if (StringUtils.isNotBlank(attrEntity.getAttrValue())) {
String[] ids = attrEntity.getAttrValue().split(","); String[] ids = attrEntity.getAttrValue().split(",");
if (ids.length != 0) { if (ids.length != 0) {
List<TbDataResourceRelEntity> resourceRels = new ArrayList<>();
for (String keyid : ids) { for (String keyid : ids) {
TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity(); TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity();
resourceRel.setKeyId(Long.valueOf(keyid)); resourceRel.setKeyId(Long.valueOf(keyid));
@ -408,7 +408,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (response.isSuccessful()) { if (response.isSuccessful()) {
String body = response.body().string(); String body = response.body().string();
JSONObject jsonObject_ = JSON.parseObject(body); JSONObject jsonObject_ = JSON.parseObject(body);
logger.info("西海岸接口返回:{}" + body, url); logger.info("西海岸接口{}返回:{}" , url, body);
if (jsonObject_.containsKey("data")) { if (jsonObject_.containsKey("data")) {
if (jsonObject_.getJSONObject("data").containsKey("list")) { if (jsonObject_.getJSONObject("data").containsKey("list")) {
resultPage.setTotal(jsonObject_.getJSONObject("data").getLongValue("total")); resultPage.setTotal(jsonObject_.getJSONObject("data").getLongValue("total"));