From 5f0170df9787c6f3ff17cc168b3f2e3f511453f6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 31 十月 2023 20:04:16 +0800
Subject: [PATCH] 支持职级降级的情况
---
model/business.go | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/model/business.go b/model/business.go
index c26f7ee..2e6b9aa 100644
--- a/model/business.go
+++ b/model/business.go
@@ -1,19 +1,17 @@
package model
-import "time"
-
type (
Business struct {
- Representative string `json:"representative" gorm:"column:representative;type:varchar(255);comment:娉曚汉浠h〃"`
- RegistrationTime *time.Time `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:娉ㄥ唽璧勯噾"`
+ 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);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:varchar(255);comment:缁忚惀鑼冨洿"`
+ BusinessScope string `json:"business_scope" gorm:"column:business_scope;type:text;comment:缁忚惀鑼冨洿"`
}
)
--
Gitblit v1.8.0