|
@@ -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)
|
|
|
}
|