From 7f589e6514eb4074d9a558bf4ff7efef3143b9db Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 11 八月 2023 10:32:04 +0800
Subject: [PATCH] 新增,删除,和修改发票时修改销售明细未开票金额和已开票金额

---
 api/v1/plan.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/v1/plan.go b/api/v1/plan.go
index 8c49160..f09f7d9 100644
--- a/api/v1/plan.go
+++ b/api/v1/plan.go
@@ -148,7 +148,7 @@
 		return
 	}
 
-	plans, errCode := planService.GetPlanList(params.Page, params.PageSize, params.Keyword)
+	plans, total, errCode := planService.GetPlanList(params.Page, params.PageSize, params.Keyword)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)
 		return
@@ -156,6 +156,6 @@
 
 	ctx.OkWithDetailed(response.PlanResponse{
 		List: plans,
-		Count: len(plans),
+		Count: int(total),
 	})
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0