|
|
@@ -263,7 +263,7 @@ public class WxAgileContractServiceImpl implements WxAgileContractService { |
|
|
List<Long> shopList = record.shopIdsByRentInfo(); |
|
|
List<Long> shopList = record.shopIdsByRentInfo(); |
|
|
setShops(record,shopList); |
|
|
setShops(record,shopList); |
|
|
//关联客户 |
|
|
//关联客户 |
|
|
setCustomers(record,EnumContractCustomersStatus.TEMP); |
|
|
|
|
|
|
|
|
//setCustomers(record,EnumContractCustomersStatus.TEMP); |
|
|
try { |
|
|
try { |
|
|
record.setApplyStatus(EnumRentContractAppStatus.DEFAULT.getCode()); |
|
|
record.setApplyStatus(EnumRentContractAppStatus.DEFAULT.getCode()); |
|
|
record.setStatus(EnumRentContractStatus.DRAFT.getCode()); |
|
|
record.setStatus(EnumRentContractStatus.DRAFT.getCode()); |
|
|
@@ -1236,17 +1236,18 @@ public class WxAgileContractServiceImpl implements WxAgileContractService { |
|
|
@Transactional(rollbackFor = {Exception.class}) |
|
|
@Transactional(rollbackFor = {Exception.class}) |
|
|
@Override |
|
|
@Override |
|
|
public void transfer(WxRentContract rentContract,MallUserInfo user) { |
|
|
public void transfer(WxRentContract rentContract,MallUserInfo user) { |
|
|
this.setCustomers(rentContract,EnumContractCustomersStatus.TEMP); |
|
|
|
|
|
|
|
|
//this.setCustomers(rentContract,EnumContractCustomersStatus.TEMP); |
|
|
rentContract.setUpdatetime(new Date()); |
|
|
rentContract.setUpdatetime(new Date()); |
|
|
rentContract.setUpdateBy(user.getId()); |
|
|
rentContract.setUpdateBy(user.getId()); |
|
|
rentContract.setUpdateByName(user.getName()); |
|
|
rentContract.setUpdateByName(user.getName()); |
|
|
wxRentContractMapper.updateById(rentContract); |
|
|
wxRentContractMapper.updateById(rentContract); |
|
|
|
|
|
|
|
|
|
|
|
WxContractCustomers customers = wxContractCustomersMapper.selectById(rentContract.getCustomersId(),rentContract.getTenantId()); |
|
|
//更新账单归属 |
|
|
//更新账单归属 |
|
|
WxAllBill bill = new WxAllBill(); |
|
|
WxAllBill bill = new WxAllBill(); |
|
|
bill.updateTenantInfo(rentContract); |
|
|
bill.updateTenantInfo(rentContract); |
|
|
bill.setRentContractId(rentContract.getId()); |
|
|
bill.setRentContractId(rentContract.getId()); |
|
|
bill.setCusName(rentContract.getCustomerName()); |
|
|
|
|
|
|
|
|
bill.setCusName(customers.getName()); |
|
|
wxAllBillMapper.transferCusName(bill); |
|
|
wxAllBillMapper.transferCusName(bill); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|