文档
测试

行业及分类数据核算接口

GET
http://localhost:8011/requestRecordInfo/api/prediction/tradeCompute

请求参数

参数名
类型
描述
必填
year
int
年度,传入需计算的年份信息
必填
emissions_total
int
全市碳排放总量
必填
emissions_enterprise
json
企业碳排放量,Json形式,例: {"lhhg":"","ftrd":"","szcyjd":""}。 且如果企业真实数据不断增加,需不断拼接参数
必填
lhhg
Sting
必填
ftrd
Sting
必填
szcyjd
Sting
必填
type
int
0|1 ,模拟预测类型,初始页面传0,全市碳排放量 调节为1
必填
gdp
int
必填
area_type
0:盘锦市类型;1:双台子区类型
必填
enterprise_count
json
企业数量,Json形式,如下: {"oil_gas":"","electric_heat":"","mining":"","fuel":"","industrial":"", "rubber_plastic":"","anon_metallic":"","general_equipment":"","paper_making":"", "agricultural_food":"","others":"","construction_business":"","Road_transport":""} 按照顺序 分别对应:石油天然气开采、电力热力生产、开采及辅助性活动、石油煤炭等燃料加工、化学燃 料及化学品制造、橡胶和苏联制品、非金属矿物制品、通用金属制造、纸制品、农副食品加工、 其他、建筑业、交通运输业
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
data
String
数据字典
必填
msg
String
示例:操作成功
必填

说明 / 示例

{ "code": 0, "data": { "msg": "ok", "errno": "0", "data": { "results": { "traffic_transportation": [ { "total": "3.89", "business_type": [ { "Road_transport": "3.89", "enterprise_avg": "", "addValue": "" } ], "addValue": "30.8" } ], "urban_construction": [ { "total": ".89", "business_type": [ { "construction_business": ".89", "enterprise_avg": ".89", "addValue": "" } ], "addValue": "73.99" } ], "emissions_total": "222.0", "trade": [ { "total": "76.29", "business_type": [ { "oil_gas": "26.93", "enterprise_avg": "26.93", "addValue": "" }, { "electric_heat": "49.36", "enterprise_avg": "-19.18", "addValue": "" } ], "addValue": "116.82" } ], "gdp_total": "222222.0", "carbon_Data": { "real_value": [ "2021.87", "2155.70", "2306.93", "2456.54", "2631.63", "3161.05" ], "target_value": [ "3161.05", "3253.79", "3344.03", "3430.96", "3513.68", "3591.16", "3498.56", "3375.40", "3217.86", "3021.72", "2782.35" ], "simulation_value": [ "3161.05", "2761.05", "2932.34", "3021.78", "3114.74", "3211.38", "3311.90", "3416.49", "3495.80", "3524.53", "3553.47" ], "current_forecast_value": [ "3161.05", "3164.76", "3327.76", "3494.81", "3667.71", "3846.79", "4032.40", "4224.91", "4371.97", "4428.55", "4485.15" ] }, "industry": [ { "total": "388.11", "business_type": [ { "mining": "7.60", "enterprise_avg": "2.53", "addValue": "" }, { "fuel": "41.76", "enterprise_avg": "8.35", "addValue": "" }, { "industrial": "75.87", "enterprise_avg": "-2.07", "addValue": "" }, { "rubber_plastic": "11.40", "enterprise_avg": "5.70", "addValue": "" }, { "anon_metallic": "57.62", "enterprise_avg": "28.81", "addValue": "" }, { "enterprise_avg": "37.96", "general_equipment": "37.96", "addValue": "" }, { "enterprise_avg": "7.60", "paper_making": "7.60", "addValue": "" }, { "agricultural_food": "3.80", "enterprise_avg": ".54", "addValue": "" }, { "enterprise_avg": "", "others": "144.51", "addValue": "" } ], "addValue": "594.24" } ], "carbon_sink": [ { "total": -247.18, "sink_type": [ { "forest_sink": -17.06 }, { "glass_sink": -2.7 }, { "wetland_sink": -227.43 } ] } ] } } }, "msg": "操作成功" }