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 2fec9c72d..38151f4d0 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -979,7 +979,9 @@ public class WxRentContractServiceImpl implements WxRentContractService { wxBillDeposit.updateTenantInfo(wxRentContract); wxBillDeposit.setIsDel(0); wxBillDeposit.setMerchantId(wxRentContract.getMerchantId()); - wxBillDeposit.setUserId(user.getId()); + if (null != user) { + wxBillDeposit.setUserId(user.getId()); + } if (wxRentContract.shopIdsByRentInfo().size()==1) { wxBillDeposit.setShopId(wxRentContract.shopIdsByRentInfo().get(0)); }