|
@@ -236,6 +236,33 @@ public class InvoiceManageService implements BaseService<InvoiceManage, InvoiceM
|
|
|
return new PageInfo<>(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 正式发票管理 全部数据
|
|
|
+ * @param model
|
|
|
+ * @param dt
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<InvoiceManageDto> formalInvoiceListAll(InvoiceManageDto model, DateTrans dt) {
|
|
|
+ model.setType("2");
|
|
|
+ List<InvoiceManageDto> list = extendMapper.listByModel(model);
|
|
|
+ for (InvoiceManageDto invoiceManage : list) {
|
|
|
+ String money = "";
|
|
|
+ // 房款
|
|
|
+ if (invoiceManage.getPaymentType().equals("1")) {
|
|
|
+ money = payLogService.getMoneyByContractId(invoiceManage.getContractId(), 1);
|
|
|
+ invoiceManage.setReceivableMoney(invoiceManage.getBuyerMoney());
|
|
|
+ }
|
|
|
+ // 专项维修资金
|
|
|
+ if (invoiceManage.getPaymentType().equals("2")) {
|
|
|
+ money = payLogService.getMoneyByContractId(invoiceManage.getContractId(), 2);
|
|
|
+ invoiceManage.setReceivableMoney(invoiceManage.getMaintenanceTotalPrice());
|
|
|
+ }
|
|
|
+ invoiceManage.setReceivedMoney(new BigDecimal(money));
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 根据合同id查询
|
|
|
*
|