| @@ -268,6 +268,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| @Transactional(rollbackFor = {Exception.class}) | @Transactional(rollbackFor = {Exception.class}) | ||||
| @Override | |||||
| public void buildDeposit(WxMerchant wxMerchant, Long userId) { | public void buildDeposit(WxMerchant wxMerchant, Long userId) { | ||||
| WxRentContract wxRentContract = new WxRentContract(); | WxRentContract wxRentContract = new WxRentContract(); | ||||
| wxRentContract.setMerchantId(wxMerchant.getId()); | wxRentContract.setMerchantId(wxMerchant.getId()); | ||||
| @@ -324,7 +325,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| wxBillDeposit.setCreatetime(date); | wxBillDeposit.setCreatetime(date); | ||||
| wxBillDeposit.setUpdatetime(date); | wxBillDeposit.setUpdatetime(date); | ||||
| wxBillDeposit.setIsDel(EnumDelStatus.NOT_DEL.getCode()); | wxBillDeposit.setIsDel(EnumDelStatus.NOT_DEL.getCode()); | ||||
| wxBillDeposit.setRentShopType(wxRentContract.getRentShopType()); | |||||
| try { | try { | ||||
| wxBillDepositMapper.insertSelective(wxBillDeposit); | wxBillDepositMapper.insertSelective(wxBillDeposit); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| @@ -334,6 +335,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| } | } | ||||
| } | } | ||||
| @Override | |||||
| @Transactional(rollbackFor = {Exception.class}) | @Transactional(rollbackFor = {Exception.class}) | ||||
| public void buildRent(WxMerchant wxMerchant, Long userId) { | public void buildRent(WxMerchant wxMerchant, Long userId) { | ||||
| @@ -468,7 +470,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| wxBillRent.setCreatetime(date); | wxBillRent.setCreatetime(date); | ||||
| wxBillRent.setUpdatetime(date); | wxBillRent.setUpdatetime(date); | ||||
| wxBillRent.setIsDel(EnumDelStatus.NOT_DEL.getCode()); | wxBillRent.setIsDel(EnumDelStatus.NOT_DEL.getCode()); | ||||
| wxBillRent.setRentShopType(wxRentContract.getRentShopType()); | |||||
| try { | try { | ||||
| wxBillRentMapper.insertSelective(wxBillRent); | wxBillRentMapper.insertSelective(wxBillRent); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||