| @@ -131,8 +131,8 @@ public class WxBillDailyServiceImpl implements WxBillDailyService { | |||||
| record.setId(id); | record.setId(id); | ||||
| WxBillDaily wxBillDaily = wxBillDailyMapper.queryBillDailyList(record).get(0); | WxBillDaily wxBillDaily = wxBillDailyMapper.queryBillDailyList(record).get(0); | ||||
| WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillDaily.getTenantId()); | WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillDaily.getTenantId()); | ||||
| computeTotalMoney(wxPayAccountBill, record); | |||||
| record.setOwe(record.getRealReceivePay() - record.getPay()); | |||||
| computeTotalMoney(wxPayAccountBill, wxBillDaily); | |||||
| wxBillDaily.setOwe(wxBillDaily.getRealReceivePay() - wxBillDaily.getPay()); | |||||
| if (wxBillDaily.getShopId() != null) { | if (wxBillDaily.getShopId() != null) { | ||||
| WxShop shop = new WxShop(); | WxShop shop = new WxShop(); | ||||
| shop.setId(wxBillDaily.getShopId()); | shop.setId(wxBillDaily.getShopId()); | ||||
| @@ -126,8 +126,8 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService | |||||
| record.setId(id); | record.setId(id); | ||||
| WxBillOtherDeposit wxBillOther = wxBillOtherDepositMapper.queryBillList(record).get(0); | WxBillOtherDeposit wxBillOther = wxBillOtherDepositMapper.queryBillList(record).get(0); | ||||
| WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillOther.getTenantId()); | WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillOther.getTenantId()); | ||||
| computeTotalMoney(wxPayAccountBill, record); | |||||
| record.setOwe(record.getRealReceivePay() - record.getPay()); | |||||
| computeTotalMoney(wxPayAccountBill, wxBillOther); | |||||
| wxBillOther.setOwe(wxBillOther.getRealReceivePay() - wxBillOther.getPay()); | |||||
| if (wxBillOther.getShopId() != null) { | if (wxBillOther.getShopId() != null) { | ||||
| WxShop shop = new WxShop(); | WxShop shop = new WxShop(); | ||||
| shop.setId(wxBillOther.getShopId()); | shop.setId(wxBillOther.getShopId()); | ||||
| @@ -126,8 +126,8 @@ public class WxBillOtherServiceImpl implements WxBillOtherService { | |||||
| record.setId(id); | record.setId(id); | ||||
| WxBillOther wxBillOther = wxBillOtherMapper.queryBillList(record).get(0); | WxBillOther wxBillOther = wxBillOtherMapper.queryBillList(record).get(0); | ||||
| WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillOther.getTenantId()); | WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillOther.getTenantId()); | ||||
| computeTotalMoney(wxPayAccountBill, record); | |||||
| record.setOwe(record.getRealReceivePay() - record.getPay()); | |||||
| computeTotalMoney(wxPayAccountBill, wxBillOther); | |||||
| wxBillOther.setOwe(wxBillOther.getRealReceivePay() - wxBillOther.getPay()); | |||||
| if (wxBillOther.getShopId() != null) { | if (wxBillOther.getShopId() != null) { | ||||
| WxShop shop = new WxShop(); | WxShop shop = new WxShop(); | ||||
| shop.setId(wxBillOther.getShopId()); | shop.setId(wxBillOther.getShopId()); | ||||