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 e042519d4..2bbcd18ec 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java @@ -472,7 +472,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService public void buildDeposit(WxPropertyContract record) { Long propertyContractId = record.getId(); WxPropertyContract wxPropertyContract = wxPropertyContractMapper.selectByPrimaryKey(propertyContractId); - if (wxPropertyContract != null) { + if (wxPropertyContract != null && wxPropertyContract.getDeposit() > 0) { //找到计租方式 int dayType = wxPropertyContract.getAdjustPeriod().equals(EnumRentContractAdjustPeriod.ADJUST_PERIOD_DAY.getCode()) ? Calendar.DAY_OF_MONTH : Calendar.MONTH; final IdWorker idWorker = IdWorker.get(); 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 a9201fa2e..3794ccce8 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -591,7 +591,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { @Override public void buildDeposit(WxMerchant wxMerchant, Long userId,Long rentContractId) { WxRentContract wxRentContract = wxRentContractMapper.selectByPrimaryKey(rentContractId); - if (wxRentContract != null) { + if (wxRentContract != null && wxRentContract.getDeposit() > 0) { final IdWorker idWorker = IdWorker.get(); WxBillDeposit wxBillDeposit = new WxBillDeposit(); wxBillDeposit.setId(idWorker.nextId());