|
|
@@ -1694,14 +1694,15 @@ public class WxFinanceServiceImpl implements WxFinanceService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Integer getAdvanceUsedBillCount(TenantEntity tenantEntity,Long receiveId) { |
|
|
public Integer getAdvanceUsedBillCount(TenantEntity tenantEntity,Long receiveId) { |
|
|
WxFinanceReceiveSetoff aidq = new WxFinanceReceiveSetoff(); |
|
|
|
|
|
|
|
|
//查询这个收款单里面包含的单据 |
|
|
|
|
|
WxFinanceReceiveBill aidq = new WxFinanceReceiveBill(); |
|
|
aidq.updateTenantInfo(tenantEntity); |
|
|
aidq.updateTenantInfo(tenantEntity); |
|
|
aidq.setReceiveId(receiveId); |
|
|
aidq.setReceiveId(receiveId); |
|
|
List<Long> advanceIdList = wxFinanceReceiveSetoffMapper.findAdvanceIdList(aidq); |
|
|
|
|
|
|
|
|
List<Long> advanceIdList = wxFinanceReceiveBillMapper.findBillIdList(aidq); |
|
|
if (null == advanceIdList || advanceIdList.size() <= 0 ) { |
|
|
if (null == advanceIdList || advanceIdList.size() <= 0 ) { |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
; |
|
|
|
|
|
|
|
|
//查询这些账单是否被别的冲抵过 |
|
|
WxFinanceReceiveSetoff rsq = new WxFinanceReceiveSetoff(); |
|
|
WxFinanceReceiveSetoff rsq = new WxFinanceReceiveSetoff(); |
|
|
rsq.updateTenantInfo(tenantEntity); |
|
|
rsq.updateTenantInfo(tenantEntity); |
|
|
rsq.setAdvanceIdList(advanceIdList); |
|
|
rsq.setAdvanceIdList(advanceIdList); |
|
|
|