From d5f3e27b2384fc7efc4cae7f6f315d91f8ade7e0 Mon Sep 17 00:00:00 2001 From: xiaohanzi Date: Wed, 26 Aug 2020 11:04:31 +0800 Subject: [PATCH] fix contract --- .../com/iformall/domain/po/WxRentContract.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java b/mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java index 9b06f769b..6cb0b7a43 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java @@ -278,13 +278,15 @@ public class WxRentContract extends TenantEntity { public List shopIdsByRentInfo() { List shopList = Lists.newArrayList(); String rentInfo = this.getRentInfo(); - JSONArray rentInfoArray = JSONArray.parseArray(rentInfo); - int size = rentInfoArray.size(); - for (int i = 0; i < size; i++) { - JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); - Long shopId = rentInfoObject.getLong("id"); - shopList.add(shopId); - } + if (!StringUtils.isBlank(rentInfo)) { + JSONArray rentInfoArray = JSONArray.parseArray(rentInfo); + int size = rentInfoArray.size(); + for (int i = 0; i < size; i++) { + JSONObject rentInfoObject = rentInfoArray.getJSONObject(i); + Long shopId = rentInfoObject.getLong("id"); + shopList.add(shopId); + } + } return shopList; } }