|
@@ -245,8 +245,8 @@ type InvoicePaymentCensusListReq struct {
|
|
|
StartDate string `json:"start_date" form:"start_date" binding:"omitempty,datetime=2006-01-02" description:"开始日期"`
|
|
|
EndDate string `json:"end_date" form:"end_date" binding:"omitempty,datetime=2006-01-02" description:"结束日期"`
|
|
|
TimeType int `json:"time_type" form:"time_type" description:"时间类型: 1-开票时间; 2-到款时间"`
|
|
|
- HasInvoice int `json:"has_invoice" form:"has_invoice" description:"已开票"`
|
|
|
- HasPayment int `json:"has_payment" form:"has_payment" description:"已到款"`
|
|
|
+ HasInvoice int `json:"has_invoice" form:"has_invoice" description:"是否已开票: 0-否; 1-是"`
|
|
|
+ HasPayment int `json:"has_payment" form:"has_payment" description:"是否已到款: 0-否; 1-是"`
|
|
|
IsExport int `json:"is_export" form:"is_export" description:"是否导出: 0-否; 1-是"`
|
|
|
base.PageReq
|
|
|
}
|
|
@@ -259,6 +259,7 @@ func GetInvoicePaymentCensusPageList(page base.IPage, condition string, pars []i
|
|
|
Where("a.is_deleted = 0 AND b.is_deleted = 0").
|
|
|
Where(condition, pars...).
|
|
|
Group("b.contract_register_id")
|
|
|
+
|
|
|
if len(page.GetOrderItemsString()) > 0 {
|
|
|
query = query.Order(page.GetOrderItemsString())
|
|
|
}
|
|
@@ -268,6 +269,7 @@ func GetInvoicePaymentCensusPageList(page base.IPage, condition string, pars []i
|
|
|
}
|
|
|
|
|
|
queryCount := global.DEFAULT_MYSQL.Table("contract_invoice AS a").
|
|
|
+ Select("b.contract_register_id").
|
|
|
Joins("JOIN contract_register AS b ON a.contract_register_id = b.contract_register_id").
|
|
|
Where("a.is_deleted = 0 AND b.is_deleted = 0").
|
|
|
Where(condition, pars...).
|