zwxi 1 year ago
parent
commit
6635de4a33
1 changed files with 8 additions and 8 deletions
  1. 8 8
      controller/census/seller.go

+ 8 - 8
controller/census/seller.go

@@ -878,10 +878,10 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
 	sort.Sort(respList)
 
 	// 是否导出
-	//if req.IsExport == 1 {
-	//	ExportIncomeList(c, incomeList.DataList)
-	//	return
-	//}
+	if req.IsExport == 1 {
+		ExportInvoiceList(c, respList, req)
+		return
+	}
 	page.SetTotal(int64(len(list)))
 	baseData := new(base.BaseData)
 	baseData.SetPage(page)
@@ -1313,9 +1313,9 @@ func (this *SellerController) GroupInvoiceListV2(c *gin.Context) {
 	sort.Sort(respList)
 
 	// 是否导出
-	//if req.IsExport == 1 {
-	//	ExportIncomeList(c, incomeList.DataList)
-	//	return
-	//}
+	if req.IsExport == 1 {
+		ExportGroupInvoiceList(c, respList, req)
+		return
+	}
 	resp.OkData("获取成功", respList, c)
 }