From 550363bc49307093bac9f148a3526fede50f7662 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 20 Nov 2023 18:30:13 +0800 Subject: [PATCH] 1 --- app/admin/hdl/enterprise_manage/hdl_factory_identity.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/admin/hdl/enterprise_manage/hdl_factory_identity.go b/app/admin/hdl/enterprise_manage/hdl_factory_identity.go index 661d77f..c31fd42 100644 --- a/app/admin/hdl/enterprise_manage/hdl_factory_identity.go +++ b/app/admin/hdl/enterprise_manage/hdl_factory_identity.go @@ -102,6 +102,12 @@ func AddFactoryIdentity(c *gin.Context) { factoryIdentityDb := db.FactoryIdentityDb{} factoryIdentityDb.Set(0) now := time.Now() + if req.SubsidyAmount == "" { + req.SubsidyAmount = "0.00" + } + if req.LeastPayAmount == "" { + req.LeastPayAmount = "0.00" + } _, err = factoryIdentityDb.FactoryIdentityInsert(&model.FactoryIdentity{ Name: req.Name, EnterpriseId: enterpriseId,