feat:完善项目信息
This commit is contained in:
@ -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