From 1ac6fde51fd266f6f8fc174031a93b7ff3dc08d3 Mon Sep 17 00:00:00 2001 From: xhxu Date: Sat, 21 Aug 2021 18:51:22 +0800 Subject: [PATCH] rent --- .../iformall/service/impl/WxRentContractServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java index bfeae45cc..73c1730b3 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -1170,9 +1170,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { public List buildRentJinmao(Long userId, WxRentContract wxRentContract, int receivePeriod, Integer lease, Date rentalStartDate, Long price, Integer isPreview, boolean saveDb) { int size = 0; long[] priceArrs = null; - List> shopInfos = new ArrayList<>(); - if (wxRentContract.getRentShopType().equals(EnumRentShopType.SHOP.getCode()) - && wxRentContract.getType().equals(EnumRentContractType.RENT_BY_AREA.getCode())){ + if (wxRentContract.getType().equals(EnumRentContractType.RENT_BY_AREA.getCode())){ String adjustRatio = wxRentContract.getAdjustRatio(); JSONArray array = JSONArray.parseArray(adjustRatio); @@ -1198,6 +1196,8 @@ public class WxRentContractServiceImpl implements WxRentContractService { priceArrs[i] = priceD.setScale(0, RoundingMode.HALF_EVEN).longValue(); } } + }else{ + return new ArrayList<>(); } int month = 12;