From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

---
 api/v1/serviceCollectionPlan.go |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/api/v1/serviceCollectionPlan.go b/api/v1/serviceCollectionPlan.go
index 2a7b060..3a32ccf 100644
--- a/api/v1/serviceCollectionPlan.go
+++ b/api/v1/serviceCollectionPlan.go
@@ -38,6 +38,7 @@
 			ctx.Fail(ecode.ParamsErr)
 			return
 		}
+		plan.AmountTotal = plan.AmountReceivable
 		plan.Status = constvar.CollectionStatusUnCollected
 	}
 
@@ -104,9 +105,9 @@
 // @Tags		鏀舵璁″垝绠$悊
 // @Summary	鑾峰彇鏀舵璁″垝鍒楄〃
 // @Produce	application/json
-// @Param		object	query		request.GetServiceCollectionPlanList	true	"鍙傛暟"
+// @Param		object	body		request.GetServiceCollectionPlanList	true	"鍙傛暟"
 // @Success	200	{object}	response.ListResponse{data=[]model.ServiceCollectionPlan}
-// @Router		/api/serviceCollectionPlan/list [get]
+// @Router		/api/serviceCollectionPlan/list [post]
 func (s *ServiceCollectionPlanApi) List(c *gin.Context) {
 	var params request.GetServiceCollectionPlanList
 	ctx, ok := contextx.NewContext(c, &params)
@@ -114,7 +115,7 @@
 		return
 	}
 
-	serviceCollectionPlan, total, errCode := service.NewServiceCollectionPlanService().GetServiceCollectionPlanList(params.ServiceContractId)
+	serviceCollectionPlan, total, errCode := service.NewServiceCollectionPlanService().GetServiceCollectionPlanList(params.SourceType, params.SourceId)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)
 		return

--
Gitblit v1.8.0