|
|
|
@@ -1076,6 +1076,7 @@ public class WxAgileContractServiceImpl implements WxAgileContractService { |
|
|
|
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) |
|
|
|
@Override |
|
|
|
public void copyContractConfig(Long destId,WxRentContract orgContract,MallUserInfo user,boolean isReBuildUnDeposit) { |
|
|
|
1111 |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
WxContractShop csq = new WxContractShop(); |
|
|
|
csq.updateTenantInfo(user); |
|
|
|
@@ -1408,6 +1409,48 @@ public class WxAgileContractServiceImpl implements WxAgileContractService { |
|
|
|
@Override |
|
|
|
public void deleteContract(Long id, TenantEntity tenantEntity) { |
|
|
|
wxRentContractMapper.deleteById(id); |
|
|
|
|
|
|
|
//删除其他相关设置 |
|
|
|
WxContractShop csq = new WxContractShop(); |
|
|
|
csq.updateTenantInfo(tenantEntity); |
|
|
|
csq.setContractId(id); |
|
|
|
wxContractShopMapper.deleteByCondition(csq); |
|
|
|
|
|
|
|
WxRentContractAgileDeposit cadq = new WxRentContractAgileDeposit(); |
|
|
|
cadq.updateTenantInfo(tenantEntity); |
|
|
|
cadq.setRentContractId(id); |
|
|
|
wxRentContractAgileDepositMapper.deleteByContractId(cadq); |
|
|
|
|
|
|
|
WxRentContractAgileUnDeposit raudq = new WxRentContractAgileUnDeposit(); |
|
|
|
raudq.updateTenantInfo(tenantEntity); |
|
|
|
raudq.setRentContractId(id); |
|
|
|
wxRentContractAgileUnDepositMapper.deleteByContract(raudq); |
|
|
|
|
|
|
|
WxRentContractAgileUnDepositItem udiq = new WxRentContractAgileUnDepositItem(); |
|
|
|
udiq.updateTenantInfo(tenantEntity); |
|
|
|
udiq.setRentContractId(id); |
|
|
|
wxRentContractAgileUnDepositItemMapper.deleteByUnDeposit(udiq); |
|
|
|
|
|
|
|
WxRentContractAgileRenevue rq = new WxRentContractAgileRenevue(); |
|
|
|
rq.updateTenantInfo(tenantEntity); |
|
|
|
rq.setRentContractId(id); |
|
|
|
wxRentContractAgileRenevueMapper.deleteRenevue(rq); |
|
|
|
|
|
|
|
WxRentContractAgileRenevueItem riq = new WxRentContractAgileRenevueItem(); |
|
|
|
riq.updateTenantInfo(tenantEntity); |
|
|
|
riq.setRentContractId(id); |
|
|
|
wxRentContractAgileRenevueItemMapper.deleteByRenevue(riq); |
|
|
|
|
|
|
|
WxRentContractAgileRenevueFees fq = new WxRentContractAgileRenevueFees(); |
|
|
|
fq.updateTenantInfo(tenantEntity); |
|
|
|
fq.setRentContractId(id); |
|
|
|
wxRentContractAgileRenevueFeesMapper.deleteByRenevue(fq); |
|
|
|
|
|
|
|
WxRentContractRevenueJump crjq = new WxRentContractRevenueJump(); |
|
|
|
crjq.updateTenantInfo(tenantEntity); |
|
|
|
crjq.setRentContractId(id); |
|
|
|
wxRentContractRevenueJumpMapper.deleteByContract(crjq); |
|
|
|
|
|
|
|
//删除草稿状态的账单 |
|
|
|
WxAllBill brDel = new WxAllBill(); |
|
|
|
brDel.setRentContractId(id); |
|
|
|
|