From c4c7d2598d2eeb10aa6f4c8c82144846160e321f Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 21 八月 2023 10:16:48 +0800
Subject: [PATCH] fix

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

diff --git a/api/v1/serviceCollectionPlan.go b/api/v1/serviceCollectionPlan.go
index 346aec8..46525a4 100644
--- a/api/v1/serviceCollectionPlan.go
+++ b/api/v1/serviceCollectionPlan.go
@@ -31,13 +31,14 @@
 		if plan.SourceType == 0 ||
 			plan.SourceId == 0 ||
 			plan.CollectionType == 0 ||
-			plan.CollectionDate.IsZero() ||
+			plan.CollectionDate == "" ||
 			plan.Amount.IsZero() ||
 			plan.Percent.IsZero() ||
 			plan.PrincipalId == 0 {
 			ctx.Fail(ecode.ParamsErr)
 			return
 		}
+		plan.AmountTotal = plan.AmountReceivable
 		plan.Status = constvar.CollectionStatusUnCollected
 	}
 

--
Gitblit v1.8.0