From 03d7e5f4d6fd5cc5d3b6ec3265261222f968d176 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 25 八月 2023 10:47:40 +0800
Subject: [PATCH] fix

---
 model/business.go |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/model/business.go b/model/business.go
index b7a11a7..2e6b9aa 100644
--- a/model/business.go
+++ b/model/business.go
@@ -4,13 +4,13 @@
 	Business struct {
 		Representative      string      `json:"representative" gorm:"column:representative;type:varchar(255);comment:娉曚汉浠h〃"`
 		RegistrationTime    *CustomTime `json:"registration_time" gorm:"column:registration_time;type:datetime;default:1970-01-01 08:00:00;comment:娉ㄥ唽鏃堕棿"`
-		RegisteredCapitalId int         `json:"registered_capital_id" gorm:"column:registered_capital_id;type:int(11);comment:娉ㄥ唽璧勯噾"`
+		RegisteredCapitalId int         `json:"registered_capital_id" gorm:"column:registered_capital_id;type:int(11);default:1;comment:娉ㄥ唽璧勯噾"`
 		RegisteredCapital   RegisteredCapital
-		IndustryId          int `json:"industry_id" gorm:"column:industry_id;type:int(11);comment:鎵�灞炶涓�"`
+		IndustryId          int `json:"industry_id" gorm:"column:industry_id;type:int(11);default:1;comment:鎵�灞炶涓�"`
 		Industry            Industry
-		EnterpriseNatureId  int `json:"enterprise_nature_id" gorm:"column:enterprise_nature_id;type:int(11);comment:浼佷笟鎬ц川"`
+		EnterpriseNatureId  int `json:"enterprise_nature_id" gorm:"column:enterprise_nature_id;type:int(11);default:1;comment:浼佷笟鎬ц川"`
 		EnterpriseNature    EnterpriseNature
-		EnterpriseScaleId   int `json:"enterprise_scale_id" gorm:"column:enterprise_scale_id;type:int(11);comment:浼佷笟瑙勬ā"`
+		EnterpriseScaleId   int `json:"enterprise_scale_id" gorm:"column:enterprise_scale_id;type:int(11);default:1;comment:浼佷笟瑙勬ā"`
 		EnterpriseScale     EnterpriseScale
 		BusinessScope       string `json:"business_scope" gorm:"column:business_scope;type:text;comment:缁忚惀鑼冨洿"`
 	}

--
Gitblit v1.8.0