|
@@ -508,7 +508,7 @@ func ExportInvoicePaymentCensusList(c *gin.Context, results *fms.InvoicePaymentC
|
|
|
// @Param HasInvoice query string false "是否已开票: 0-否; 1-是; 空-全部"
|
|
|
// @Param HasPayment query string false "是否已到款: 0-否; 1-是; 空-全部"
|
|
|
// @Param IsExport query int false "是否导出: 0-否; 1-是"
|
|
|
-// @Param ListParam query int false "是否导出: 0-全部; 1-ficc; 2-权益"
|
|
|
+// @Param ListParam query int false "套餐类型: 0-全部; 1-ficc; 2-权益"
|
|
|
// @Param SortParam query string false "排序字段参数,用来排序的字段, 枚举值:'invoice_time':开票日 、 'payment_date':到款日"
|
|
|
// @Param SortType query string true "如何排序,是正序还是倒序,枚举值:`asc 正序`,`desc 倒叙`"
|
|
|
// @Success 200 {object} fms.ContractRegisterItem
|
|
@@ -553,6 +553,13 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
|
|
|
cond += ` AND 1 = 2`
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if req.ListParam == 1{
|
|
|
+ cond += ` AND a.service_product_id = 1 `
|
|
|
+ }else if req.ListParam == 2 {
|
|
|
+ cond += ` AND a.service_product_id = 2 `
|
|
|
+ }
|
|
|
+
|
|
|
// 开票到款日期
|
|
|
if req.TimeType != 0 {
|
|
|
if req.TimeType == 1 && req.StartDate != "" && req.EndDate != "" {
|