feat:完善项目信息
This commit is contained in:
@ -131,6 +131,8 @@ func (this *Instance) Handle() {
|
||||
&synchronized{iModel: model.NewUserCompany()}, &synchronized{iModel: model.NewUserExpert()},
|
||||
&synchronized{iModel: model.NewUserLaboratory()}, &synchronized{iModel: model.NewUserResearch()},
|
||||
&synchronized{iModel: model.NewUserAgent()},
|
||||
&synchronized{iModel: model.NewUserVisit()},
|
||||
&synchronized{iModel: model.NewUserCollect()},
|
||||
// 数据管理
|
||||
&synchronized{iModel: model.NewManageCompany()}, &synchronized{iModel: model.NewManageExpert()},
|
||||
&synchronized{iModel: model.NewManageLaboratory()}, &synchronized{iModel: model.NewManageResearch()},
|
||||
|
||||
@ -50,6 +50,18 @@ func (m *ManageCompany) TableName() string {
|
||||
return "manage_company"
|
||||
}
|
||||
|
||||
func (m *ManageCompany) KindTitle() string {
|
||||
switch m.Kind {
|
||||
case ManageCompanyKindForListedEnterprise:
|
||||
return "上市企业"
|
||||
case ManageCompanyKindForHighQuality:
|
||||
return "优质企业"
|
||||
case ManageCompanyKindForOrdinary:
|
||||
return "普通企业"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ManageCompany) GetIndustryAttribute() []string {
|
||||
out := make([]string, 0)
|
||||
_ = utils.FromJSON(m.Industry, &out)
|
||||
|
||||
@ -69,6 +69,20 @@ func (m *TechnologyProduct) TableName() string {
|
||||
return "technology_product"
|
||||
}
|
||||
|
||||
func (m *TechnologyProduct) GetLeadStandardTitle() string {
|
||||
switch m.LeadStandard {
|
||||
case TechnologyProductLeadStandardForDomesticXJ:
|
||||
return "国内先进"
|
||||
case TechnologyProductLeadStandardForDomesticLX:
|
||||
return "国内领先"
|
||||
case TechnologyProductLeadStandardForInternationalXJ:
|
||||
return "国际先进"
|
||||
case TechnologyProductLeadStandardForInternationalLX:
|
||||
return "国际领先"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TechnologyProduct) GetIndustryAttribute() []string {
|
||||
out := make([]string, 0)
|
||||
_ = json.Unmarshal([]byte(m.Industry), &out)
|
||||
|
||||
Reference in New Issue
Block a user