Преглед изворни кода

[租赁合同][修改][添加override注解]

release_toaliyun_real
gongbiao пре 7 година
родитељ
комит
4e1a90c9a6
1 измењених фајлова са 4 додато и 2 уклоњено
  1. +4
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 4
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Прегледај датотеку

@@ -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) {


Loading…
Откажи
Сачувај