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 ++++----
 model/client.go   |    2 +-
 2 files changed, 5 insertions(+), 5 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:缁忚惀鑼冨洿"`
 	}
diff --git a/model/client.go b/model/client.go
index ffa5cc8..fcd3023 100644
--- a/model/client.go
+++ b/model/client.go
@@ -13,7 +13,7 @@
 		Name              string         `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;type:varchar(255);comment:瀹㈡埛鍚嶇О"`
 		IsDeleted         bool           `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:鏄惁鍒犻櫎"`
 		Number            string         `json:"number" gorm:"column:number;type:varchar(255);comment:瀹㈡埛缂栧彿"`
-		ClientStatusId    int            `json:"client_status_id" gorm:"column:client_status_id;type:int(11);comment:瀹㈡埛鐘舵�両D"`
+		ClientStatusId    int            `json:"client_status_id" gorm:"column:client_status_id;type:int(11);default:1;comment:瀹㈡埛鐘舵�両D"`
 		ClientStatus      ClientStatus   `json:"client_status" gorm:"foreignKey:ClientStatusId"`
 		ClientTypeId      int            `json:"client_type_id" gorm:"column:client_type_id;type:int(11);default:1;comment:瀹㈡埛绫诲瀷ID"`
 		ClientType        ClientType     `json:"client_type" gorm:"foreignKey:ClientTypeId"`

--
Gitblit v1.8.0