hotime/example/admin/tt.go
2022-02-24 06:26:36 +08:00

143 lines
2.9 KiB
Go

package admin
import (
. "../../common"
)
var Org = map[int]OrgInterface{
3: &Org3{},
}
type OrgInterface interface {
analyse(data Map) Map
ctgAnalyse(datas []Map, totalAnalyse Map) Map
totalAnalyse(datas []Map) (Map, Map, Map, Map)
analyseSort(datas []Map) []Map
}
type Companys []Map
var analyseSortType = ""
var analyseTypeName = "analyse"
func (s Companys) Len() int {
return len(s)
}
func (s Companys) Swap(i, j int) {
s[i], s[j] = s[j], s[i]
}
func (s Companys) Less(i, j int) bool {
return s[i].GetMap(analyseTypeName).GetFloat64(analyseSortType) > s[j].GetMap(analyseTypeName).GetFloat64(analyseSortType)
}
var ADataType = Map{
"PJ": "评级",
"ZDF": "总得分",
"NZDF": "N项总得分",
"JGTZDF": "技改投资得分",
"JGTZ": "技改投资金额",
"ZJTXQLDF": "专精特新潜力得分",
"JBZJTXQYJCYQDF": "具备专精特新企业基础要求得分",
"JBZJTXQYYQCPDF": "具备专精特新企业要求产品得分",
"JBZJTXHJJTJDF": "具备专精特新环境及条件得分",
"JBZJTXZSCQYQDF": "具备专精特新知识产权要求得分",
"YFZBDF": "2年研发占比得分",
"KYRYZBDF": "科研人员占比得分",
"ZCFZLDF": "资产负债率得分",
"CYRCDF": "产业人才得分",
"SXZBDF": "3项指标",
"XZFZZBDF": "协作发展指标得分",
"FHDQZDCYDF": "符合地区重点产业得分",
"QYZDQYDF": "区域重点企业",
"SJ100HZDQYDF": "市级100户重点企业得分",
"CYL30HDF": "产业链30户得分",
"LSAQZBDF": "绿色安全指标",
"AQSCGLDF": "安全生产管理得分",
"QYAQSCDBDF": "企业安全生产是否达标得分",
"QYFXYHSKTXJSDF": "企业风险隐患双预控体系建设得分",
"AQSGDF": "安全事故得分",
"AQJCDF": "安全检查得分",
"LSSCGYDF": "绿色生产工艺得分",
"JPJSSJDF": "减排技术升级改造得分",
"HBJCDF": "环保检查得分",
"FZZLZBZDF": "发展质量指标总分",
"QYYLNLZDF": "企业盈利能力总得分",
"KSDF": "企业连续3年亏损得分",
"QYLRL": "企业利润率",
"DNLRZEDF": "当年利润总额得分",
"LXSNYLDF": "连续3年盈利得分",
"ZSCQDF": "知识产权总得分",
"TGMLDF": "推广目录得分",
"ZLDF": "专利得分",
"STTDF": "首台(套)、首批次、首版次企业得分",
"MJSR": "亩均收入",
"MJSRDF": "亩均收入得分",
"MJSS": "亩均税收",
"MJSSDF": "亩均税收得分",
"RJSR": "人均收入",
"RJSRDF": "人均收入得分",
"YFJFTRQD": "研发经费投入强度",
"YFJFTRQDDF": "研发经费投入强度得分",
"DWNHSS": "单位能耗税收",
"DWNHSSDF": "单位能耗税收得分",
"ZYWRWSS": "主要污染物税收",
"ZYWRWSSDF": "主要污染物税收得分",
"NXZBDF": "6项指标得分",
"DJSDLQYDF": "独角兽、瞪羚企业得分",
"JSZXDF": "企业获得技术中心得分",
"YFFYDF": "研发费用得分",
"GXJSQYDF": "高新技术企业得分",
"FZQLDF": "发展潜力总分",
}