From d3eb84db487d7fe5c990385b367f91ab06f4a226 Mon Sep 17 00:00:00 2001 From: winter <664946893@qq.com> Date: Tue, 10 Dec 2024 20:47:54 +0800 Subject: [PATCH] fix --- .../domain/po/WxPropertyContract.java | 19 +++++++++++++++++++ .../impl/WxPropertyContractServiceImpl.java | 1 + 2 files changed, 20 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxPropertyContract.java b/mallinkService/src/main/java/com/iformall/domain/po/WxPropertyContract.java index 389a0a462..9e1e1f7c6 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxPropertyContract.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxPropertyContract.java @@ -321,6 +321,23 @@ public class WxPropertyContract extends TenantEntity { } return null; } + + public String getRentInfoShopNumber() { + StringBuffer sb = new StringBuffer(""); + String rentInfo = this.getRentInfo(); + 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); + String shopNumber = rentInfoObject.getString("shopNumber"); + if (StringUtils.isNotBlank(shopNumber)) { + sb.append(shopNumber).append(","); + } + } + } + return sb.toString(); + } public List getFeesStardarsList() { if (StringUtils.isNotBlank(feesStandardsInfo)) { @@ -360,5 +377,7 @@ public class WxPropertyContract extends TenantEntity { private String queryShopIdStr; @TableField(exist = false) private List customersIdList; + @TableField(exist = false) + private String shopNumbers; } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java index 338f11274..9956907d8 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java @@ -173,6 +173,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService } } contract.setMerchantName(merchantName); + contract.setShopNumbers(contract.getRentInfoShopNumber()); } } return pageInfo;