Browse Source

fix contract

release_toaliyun_real
xiaohanzi 5 years ago
parent
commit
d5f3e27b23
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java

+ 9
- 7
mallinkService/src/main/java/com/iformall/domain/po/WxRentContract.java View File

@@ -278,13 +278,15 @@ public class WxRentContract extends TenantEntity {
public List<Long> shopIdsByRentInfo() { public List<Long> shopIdsByRentInfo() {
List<Long> shopList = Lists.newArrayList(); List<Long> shopList = Lists.newArrayList();
String rentInfo = this.getRentInfo(); 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; return shopList;
} }
} }


Loading…
Cancel
Save