Commit eeb78f7a by chenjinjing

no message

parent db31d0de
...@@ -23,6 +23,7 @@ export async function getData(req, res) { ...@@ -23,6 +23,7 @@ export async function getData(req, res) {
} }
let 当期绿电指数DataAndUnit = objKeyReplace(特化数据); let 当期绿电指数DataAndUnit = objKeyReplace(特化数据);
ret["api1"] = getKeyValue("当期绿电指数", 当期绿电指数DataAndUnit.dataMap, 当期绿电指数DataAndUnit.unitMap, false, false ); ret["api1"] = getKeyValue("当期绿电指数", 当期绿电指数DataAndUnit.dataMap, 当期绿电指数DataAndUnit.unitMap, false, false );
ret["api1"].time = "2022年12月";
ret["api2"] = getMoreYChartData("同比趋势分析", checkNumber(excelData.同比趋势分析), false, {"绿电指数":"","同比增长":"%"}) ret["api2"] = getMoreYChartData("同比趋势分析", checkNumber(excelData.同比趋势分析), false, {"绿电指数":"","同比增长":"%"})
...@@ -32,9 +33,9 @@ export async function getData(req, res) { ...@@ -32,9 +33,9 @@ export async function getData(req, res) {
ret["api5"] = getChartData("绿电指数折线图", 绿电指数折线图保留小数数据, false, false ); ret["api5"] = getChartData("绿电指数折线图", 绿电指数折线图保留小数数据, false, false );
ret["api5"].yMinValue = 100; ret["api5"].yMinValue = 100;
ret["api14"] = getDropMoreData(excelData.绿电指数与经济指数相关分析_2017_2020_, "绿电指数与经济指数相关分析(2017-2020)", "绿电指数与经济指数相关分析(2017-2020)"); ret["api14"] = getDropMoreData(excelData.绿电指数与经济指数相关分析_2017_2022_, "绿电指数与经济指数相关分析(2017-2022)", "绿电指数与经济指数相关分析(2017-2022)");
ret["api15"] = getDropMoreData(excelData.上海市空气质量AQI优良率, "绿电指数与环境指数相关分析(2017-2020)", "上海市空气质量AQI优良率"); ret["api15"] = getDropMoreData(excelData.上海市空气质量AQI优良率, "绿电指数与环境指数相关分析(2017-2022)", "上海市空气质量AQI优良率");
ret["api16"] = getDropMoreData(excelData.青浦区PM2_5月均浓度, "绿电指数与环境指数相关分析(2017-2020)", "青浦区PM2.5月均浓度"); ret["api16"] = getDropMoreData(excelData.青浦区PM2_5月均浓度, "绿电指数与环境指数相关分析(2017-2022)", "青浦区PM2.5月均浓度");
ret["api17"] = getDropMoreData(excelData.绿电指数与经济指数相关分析均值, "绿电指数与经济指数相关分析均值", "绿电指数与经济指数相关分析均值"); ret["api17"] = getDropMoreData(excelData.绿电指数与经济指数相关分析均值, "绿电指数与经济指数相关分析均值", "绿电指数与经济指数相关分析均值");
ret["api18"] = getDropMoreData(excelData.上海市空气质量AQI优良率均值, "上海市空气质量AQI优良率均值", "上海市空气质量AQI优良率均值"); ret["api18"] = getDropMoreData(excelData.上海市空气质量AQI优良率均值, "上海市空气质量AQI优良率均值", "上海市空气质量AQI优良率均值");
......
...@@ -32,6 +32,7 @@ export async function getData(req, res) { ...@@ -32,6 +32,7 @@ export async function getData(req, res) {
} }
let 当期绿电指数DataAndUnit = objKeyReplace(特化数据); let 当期绿电指数DataAndUnit = objKeyReplace(特化数据);
ret["api1"] = getKeyValue("当期绿电指数", 当期绿电指数DataAndUnit.dataMap, 当期绿电指数DataAndUnit.unitMap, false, false ); ret["api1"] = getKeyValue("当期绿电指数", 当期绿电指数DataAndUnit.dataMap, 当期绿电指数DataAndUnit.unitMap, false, false );
ret["api1"].time = "2022年12月";
ret["api6"] = getChartData("绿电指数折线图", excelData.绿电指数折线图, false, false ); ret["api6"] = getChartData("绿电指数折线图", excelData.绿电指数折线图, false, false );
......
...@@ -23,7 +23,10 @@ export async function getData(req, res) { ...@@ -23,7 +23,10 @@ export async function getData(req, res) {
ret["api4"].yMaxValue = 160; ret["api4"].yMaxValue = 160;
ret["api4"].yStepValue = 40; ret["api4"].yStepValue = 40;
ret["api5"] = interfaceData.enterpriseTop10;
ret["apiarea"] = getKeyStringValue("范围数据", interfaceData.rangeInfo); ret["apiarea"] = getKeyStringValue("范围数据", interfaceData.rangeInfo);
res.send(ret); res.send(ret);
} }
\ No newline at end of file
...@@ -11,6 +11,7 @@ export async function getData(req, res) { ...@@ -11,6 +11,7 @@ export async function getData(req, res) {
ret["api1"] = getKeyValue("各信用等级企业分布情况", 各信用等级企业分布情况DataAndUnit.dataMap, 各信用等级企业分布情况DataAndUnit.unitMap, true, false ); ret["api1"] = getKeyValue("各信用等级企业分布情况", 各信用等级企业分布情况DataAndUnit.dataMap, 各信用等级企业分布情况DataAndUnit.unitMap, true, false );
ret["api2"] = getSingleYAndMoreData("每月企业信用变化趋势", interfaceData.monthlyBusinessInfo, false, '户'); ret["api2"] = getSingleYAndMoreData("每月企业信用变化趋势", interfaceData.monthlyBusinessInfo, false, '户');
ret["api2"].yStepValue = 500;
let 行业信用分布对比Interface = await getindustryCredit(); let 行业信用分布对比Interface = await getindustryCredit();
ret["api3"] = getSingleYAndMoreData("行业信用分布对比", 行业信用分布对比Interface.industryCreditInfo, false, '%'); ret["api3"] = getSingleYAndMoreData("行业信用分布对比", 行业信用分布对比Interface.industryCreditInfo, false, '%');
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
} }
let 当期绿电指数DataAndUnit = objKeyReplace(特化数据); let 当期绿电指数DataAndUnit = objKeyReplace(特化数据);
ret["api1"] = getKeyValue("当期绿电指数", 当期绿电指数DataAndUnit.dataMap, 当期绿电指数DataAndUnit.unitMap, false, false ); ret["api1"] = getKeyValue("当期绿电指数", 当期绿电指数DataAndUnit.dataMap, 当期绿电指数DataAndUnit.unitMap, false, false );
ret["api1"].time = "2022年12月";
ret["api2"] = getMoreYChartData("同比趋势分析", checkNumber(excelData.同比趋势分析), false, {"绿电指数":"","同比增长":"%"}) ret["api2"] = getMoreYChartData("同比趋势分析", checkNumber(excelData.同比趋势分析), false, {"绿电指数":"","同比增长":"%"})
...@@ -31,9 +32,9 @@ ...@@ -31,9 +32,9 @@
ret["api8"] = getChartData("每月服务车次", excelData.每月服务车次, '次', false); ret["api8"] = getChartData("每月服务车次", excelData.每月服务车次, '次', false);
ret["api14"] = getDropMoreData(excelData.绿电指数与经济指数相关分析_2017_2020_, "绿电指数与经济指数相关分析(2017-2020)", "绿电指数与经济指数相关分析(2017-2020)"); ret["api14"] = getDropMoreData(excelData.绿电指数与经济指数相关分析_2017_2022_, "绿电指数与经济指数相关分析(2017-2022)", "绿电指数与经济指数相关分析(2017-2022)");
ret["api15"] = getDropMoreData(excelData.上海市空气质量AQI优良率, "绿电指数与环境指数相关分析(2017-2020)", "上海市空气质量AQI优良率"); ret["api15"] = getDropMoreData(excelData.上海市空气质量AQI优良率, "绿电指数与环境指数相关分析(2017-2022)", "上海市空气质量AQI优良率");
ret["api16"] = getDropMoreData(excelData.青浦区PM2_5月均浓度, "绿电指数与环境指数相关分析(2017-2020)", "青浦区PM2.5月均浓度"); ret["api16"] = getDropMoreData(excelData.青浦区PM2_5月均浓度, "绿电指数与环境指数相关分析(2017-2022)", "青浦区PM2.5月均浓度");
ret["api17"] = getDropMoreData(excelData.绿电指数与经济指数相关分析均值, "绿电指数与经济指数相关分析均值", "绿电指数与经济指数相关分析均值"); ret["api17"] = getDropMoreData(excelData.绿电指数与经济指数相关分析均值, "绿电指数与经济指数相关分析均值", "绿电指数与经济指数相关分析均值");
ret["api18"] = getDropMoreData(excelData.上海市空气质量AQI优良率均值, "上海市空气质量AQI优良率均值", "上海市空气质量AQI优良率均值"); ret["api18"] = getDropMoreData(excelData.上海市空气质量AQI优良率均值, "上海市空气质量AQI优良率均值", "上海市空气质量AQI优良率均值");
......
import { getChartData, getKeyValue, getListData, getSingleYAndMoreData, getMoreYChartData, objKeyReplace, getStringMoreData }from "../util/tools"; import { getChartData, getKeyValue, getListData, getSingleYAndMoreData, getMoreYChartData, objKeyReplace, getStringMoreData }from "../util/tools";
import { get平台基础能力 } from "../data/analysisExcelData"; import { get平台基础能力 } from "../data/analysisExcelData";
export function getData(req, res) { export function getData(req, res) {
let ret:any = {}; let ret:any = {};
let excelData:any = get平台基础能力(); let excelData:any = get平台基础能力();
...@@ -10,7 +10,15 @@ ...@@ -10,7 +10,15 @@
let 虚拟机资源管理DataAndUnit = objKeyReplace(excelData.虚拟机资源管理); let 虚拟机资源管理DataAndUnit = objKeyReplace(excelData.虚拟机资源管理);
ret["api1"] = getKeyValue("虚拟机资源管理", 虚拟机资源管理DataAndUnit.dataMap, 虚拟机资源管理DataAndUnit.unitMap, false, false ); ret["api1"] = getKeyValue("虚拟机资源管理", 虚拟机资源管理DataAndUnit.dataMap, 虚拟机资源管理DataAndUnit.unitMap, false, false );
let IT资源管理DataAndUnit = objKeyReplace(excelData.IT资源管理); // let IT资源管理DataAndUnit = objKeyReplace(excelData.IT资源管理);
// CPU控制在5%-25%以内的变化,内存控制在40%-60%的变化,磁盘使用率控制在0-15%以内的变化
let 磁盘使用率 = getRandomNum(0, 15);
let 内存使用率 = getRandomNum(40, 60);
let CPU使用率 = getRandomNum(5, 25);
let IT资源管理DataAndUnit = {
dataMap: {磁盘使用率, 内存使用率, CPU使用率},
unitMap: {"磁盘使用率":"%", "内存使用率":"%", "CPU使用率":"%"}
}
ret["api2"] = getKeyValue("IT资源管理", IT资源管理DataAndUnit.dataMap, IT资源管理DataAndUnit.unitMap, false, false ); ret["api2"] = getKeyValue("IT资源管理", IT资源管理DataAndUnit.dataMap, IT资源管理DataAndUnit.unitMap, false, false );
ret["api3"] = getChartData("CPU使用情况", excelData.CPU使用情况, '%', false ); ret["api3"] = getChartData("CPU使用情况", excelData.CPU使用情况, '%', false );
...@@ -20,5 +28,11 @@ ...@@ -20,5 +28,11 @@
ret["api6"] = getStringMoreData("数据业务能力图片", excelData.数据业务能力图片); ret["api6"] = getStringMoreData("数据业务能力图片", excelData.数据业务能力图片);
res.send(ret); res.send(ret);
} }
\ No newline at end of file function getRandomNum(min, max) {
let range = max - min;
let rand = Math.random();
let num = (min + Math.round(rand * range));
return num;
}
...@@ -7,7 +7,7 @@ export function get绿色电力_充电设施发展监控() { ...@@ -7,7 +7,7 @@ export function get绿色电力_充电设施发展监控() {
let ofMoreObjList = ["同比趋势分析","环比趋势分析","各指数成分趋势分析","同比趋势分析","环比趋势分析"]; let ofMoreObjList = ["同比趋势分析","环比趋势分析","各指数成分趋势分析","同比趋势分析","环比趋势分析"];
let ofObjList = ["每月服务车次","当期绿电指数","绿电指数折线图","充电设施发展监控","服务车次","设施安全服务","设施安全服务充电桩使用率"]; let ofObjList = ["每月服务车次","当期绿电指数","绿电指数折线图","充电设施发展监控","服务车次","设施安全服务","设施安全服务充电桩使用率"];
let listDataAnalysisInfo = { let listDataAnalysisInfo = {
"绿电指数与经济指数相关分析_2017_2020_":{"titleList":["指数","金额(亿元)"], "keyValueObj":{"指数":'x',"金额(亿元)":'y'} }, "绿电指数与经济指数相关分析_2017_2022_":{"titleList":["指数","金额(亿元)"], "keyValueObj":{"指数":'x',"金额(亿元)":'y'} },
"上海市空气质量AQI优良率":{"titleList":["绿电指数","优良率"], "keyValueObj":{"绿电指数":'x',"优良率":'y'} }, "上海市空气质量AQI优良率":{"titleList":["绿电指数","优良率"], "keyValueObj":{"绿电指数":'x',"优良率":'y'} },
"青浦区PM2.5月均浓度":{"titleList":["绿电指数","PM2.5浓度"], "keyValueObj":{"绿电指数":'x',"PM2.5浓度":'y'} }, "青浦区PM2.5月均浓度":{"titleList":["绿电指数","PM2.5浓度"], "keyValueObj":{"绿电指数":'x',"PM2.5浓度":'y'} },
"绿电指数与经济指数相关分析均值":{"titleList":["指数","金额(亿元)"], "keyValueObj":{"指数":'x',"金额(亿元)":'y'} }, "绿电指数与经济指数相关分析均值":{"titleList":["指数","金额(亿元)"], "keyValueObj":{"指数":'x',"金额(亿元)":'y'} },
...@@ -78,7 +78,8 @@ export function get示范区总体概况() { ...@@ -78,7 +78,8 @@ export function get示范区总体概况() {
let result = {}; let result = {};
let ofMoreObjList = []; let ofMoreObjList = [];
let ofObjList = ["范围数据","常住人口_万人_","地区生产总值_亿元_","示范区面积_平方公里_","基础数据", "先行启动区", "电力客户数", "装接容量", "全社会用电量", "分布式电源发电量", "最大负荷", "电网基建投资", "碳排放"]; let ofObjList = ["范围数据","常住人口_万人_","地区生产总值_亿元_","示范区面积_平方公里_","基础数据", "先行启动区", "电力客户数", "装接容量", "全社会用电量", "分布式电源发电量", "最大负荷", "电网基建投资", "碳排放"];
let listDataAnalysisInfo = {"电力先行成果":{"titleList":["时间","内容"],"keyValueObj":{"时间":"time","内容":"info"}},"一体化大事件":{"titleList":["时间","内容"],"keyValueObj":{"时间":"time","内容":"info"}},"变电站数量":{"titleList":["电站标准","青浦区","吴江区","嘉善县"],"keyValueObj":{"电站标准":"standard","青浦区":"qpq","吴江区":"wjq","嘉善县":"jsq"}}}; let listDataAnalysisInfo = {"电力先行成果":{"titleList":["时间","内容"],"keyValueObj":{"时间":"time","内容":"info"}},"一体化大事件":{"titleList":["时间","内容"],"keyValueObj":{"时间":"time","内容":"info"}},
"变电站数量":{"titleList":["电站标准","青浦区","吴江区","嘉善县"],"keyValueObj":{"电站标准":"standard","青浦区":"qpq","吴江区":"wjq","嘉善县":"jsq"}}};
for (let i = 0; i < bolckDataList.length; i++) { for (let i = 0; i < bolckDataList.length; i++) {
let {blockData, blockTitle} = bolckDataList[i]; let {blockData, blockTitle} = bolckDataList[i];
......
...@@ -3,12 +3,12 @@ import { getInterfaceByInterfaceName } from "./cronJob"; ...@@ -3,12 +3,12 @@ import { getInterfaceByInterfaceName } from "./cronJob";
export async function getCdssfzjk() { export async function getCdssfzjk() {
let interfaceName = "绿色电力充电设施发展监控"; let interfaceName = "绿色电力充电设施发展监控";
// let {chargingFacilities, realTimeMonitoring, monthlyService} = await getInterfaceByInterfaceName(interfaceName); let {chargingFacilities, realTimeMonitoring, monthlyService} = await getInterfaceByInterfaceName(interfaceName);
// --------------test--------------------- // --------------test---------------------
let chargingFacilities:any = {}; // let chargingFacilities:any = {};
let realTimeMonitoring:any = {}; // let realTimeMonitoring:any = {};
let monthlyService = [{"dateTime":"202202", "frequency":11081}, {"dateTime":"202203", "frequency":9480}, {"dateTime":"202204", "frequency":2833}, {"dateTime":"202205", "frequency":4830}, {"dateTime":"202206", "frequency":16926}]; // let monthlyService = [{"dateTime":"202202", "frequency":11081}, {"dateTime":"202203", "frequency":9480}, {"dateTime":"202204", "frequency":2833}, {"dateTime":"202205", "frequency":4830}, {"dateTime":"202206", "frequency":16926}];
if (JSON.stringify(chargingFacilities) === '{}') chargingFacilities = {chargingStationNumber:0, chargingPileNumber:0, prioritiesInTheSite:0}; if (JSON.stringify(chargingFacilities) === '{}') chargingFacilities = {chargingStationNumber:0, chargingPileNumber:0, prioritiesInTheSite:0};
if (JSON.stringify(realTimeMonitoring) === '{}') realTimeMonitoring = {theTotalChargeOn:0, totalCharge:0, chargeAmount:0}; if (JSON.stringify(realTimeMonitoring) === '{}') realTimeMonitoring = {theTotalChargeOn:0, totalCharge:0, chargeAmount:0};
......
...@@ -5,6 +5,12 @@ export async function getCsqxtfz() { ...@@ -5,6 +5,12 @@ export async function getCsqxtfz() {
let interfaceName = "城市群协同发展"; let interfaceName = "城市群协同发展";
let {basicData, demonstrationAreaIndexTrend, rangeData} = await getInterfaceByInterfaceName(interfaceName); let {basicData, demonstrationAreaIndexTrend, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// ------------test----------
// let basicData:any = {"regionalIndex":116.6800,"economic":114.4600,"nonAgriculturalIndustries":114.3100,"resourcesEndowment":120.0800};
// let demonstrationAreaIndexTrend = [{"month":"202101","value":113.2200},{"month":"202102","value":114.2700},{"month":"202103","value":110.6700},{"month":"202104","value":109.2500},{"month":"202105","value":113.6700},{"month":"202106","value":110.4300},{"month":"202107","value":108.5300},{"month":"202108","value":107.8500},{"month":"202109","value":107.6900},{"month":"202110","value":106.2300},{"month":"202111","value":104.5900},{"month":"202112","value":103.7000},{"month":"202201","value":127.1400},{"month":"202202","value":134.9100},{"month":"202203","value":122.9900},{"month":"202204","value":116.6800}];
// let rangeData = {"regionalScope":"青浦区", "timeRange": "2022年1月-2023年1月"}
// ------------end------------
if (JSON.stringify(basicData) === '{}') basicData = {regionalIndex:0, economic:0, nonAgriculturalIndustries:0, resourcesEndowment:0}; if (JSON.stringify(basicData) === '{}') basicData = {regionalIndex:0, economic:0, nonAgriculturalIndustries:0, resourcesEndowment:0};
if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""}; if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""};
...@@ -41,6 +47,12 @@ export async function getArea(area) { ...@@ -41,6 +47,12 @@ export async function getArea(area) {
let interfaceName = "城市群协同发展"; let interfaceName = "城市群协同发展";
let {wujiangDistriceData, qinpuDistriceData, jiashanDistriceData} = await getInterfaceByInterfaceName(interfaceName); let {wujiangDistriceData, qinpuDistriceData, jiashanDistriceData} = await getInterfaceByInterfaceName(interfaceName);
// ------------test----------
// let wujiangDistriceData:any = {"deJurePopulation":0.0000,"ardeJurePopulationea":0.0000,"GDP":0.0000,"totalElectricityConsumption":0.0000,"cumulativeInstallationCapacity":0.0000,"maximumSociallload":0.0000};
// let qinpuDistriceData:any = {"deJurePopulation":0.0000,"ardeJurePopulationea":0.0000,"GDP":0.0000,"totalElectricityConsumption":0.0000,"cumulativeInstallationCapacity":0.0000,"maximumSociallload":0.0000};
// let jiashanDistriceData:any = {"deJurePopulation":0.0000,"ardeJurePopulationea":0.0000,"GDP":0.0000,"totalElectricityConsumption":0.0000,"cumulativeInstallationCapacity":0.0000,"maximumSociallload":0.0000};
// ------------end------------
if (JSON.stringify(wujiangDistriceData) === '{}') wujiangDistriceData = {deJurePopulation:0, ardeJurePopulationea:0, GDP:0, totalElectricityConsumption:0, cumulativeInstallationCapacity:0, maximumSociallload:0}; if (JSON.stringify(wujiangDistriceData) === '{}') wujiangDistriceData = {deJurePopulation:0, ardeJurePopulationea:0, GDP:0, totalElectricityConsumption:0, cumulativeInstallationCapacity:0, maximumSociallload:0};
if (JSON.stringify(qinpuDistriceData) === '{}') qinpuDistriceData = {deJurePopulation:0, ardeJurePopulationea:0, GDP:0, totalElectricityConsumption:0, cumulativeInstallationCapacity:0, maximumSociallload:0}; if (JSON.stringify(qinpuDistriceData) === '{}') qinpuDistriceData = {deJurePopulation:0, ardeJurePopulationea:0, GDP:0, totalElectricityConsumption:0, cumulativeInstallationCapacity:0, maximumSociallload:0};
if (JSON.stringify(jiashanDistriceData) === '{}') jiashanDistriceData = {deJurePopulation:0, ardeJurePopulationea:0, GDP:0, totalElectricityConsumption:0, cumulativeInstallationCapacity:0, maximumSociallload:0}; if (JSON.stringify(jiashanDistriceData) === '{}') jiashanDistriceData = {deJurePopulation:0, ardeJurePopulationea:0, GDP:0, totalElectricityConsumption:0, cumulativeInstallationCapacity:0, maximumSociallload:0};
......
...@@ -3,7 +3,18 @@ import { getInterfaceByInterfaceName } from "./cronJob"; ...@@ -3,7 +3,18 @@ import { getInterfaceByInterfaceName } from "./cronJob";
export async function getGsqyscyx() { export async function getGsqyscyx() {
let interfaceName = "规上企业生产运行状况"; let interfaceName = "规上企业生产运行状况";
let {basicData, productionIndexTrend, rangeData} = await getInterfaceByInterfaceName(interfaceName); let {basicData, productionIndexTrend, rangeData, enterpriseTop10} = await getInterfaceByInterfaceName(interfaceName);
// ------------------test------------
// let basicData:any = {productionIndex:"111"};
// let productionIndexTrend = [{"year":"2020","productionIndices":102.59},{"year":"2021","productionIndices":119.69},{"year":"2022","productionIndices":103.65}];
// let rangeData = {"regionalScope":"青浦区", "timeRange": "2021年1月-2022年1月"}
// let enterpriseTop10:any = [
// {sort:1, enterprise:"上海金发科技发展有限公司", longitude:"121.48054", latitude:"31.23593"},
// {sort:2, enterprise:"上海协和氨基酸有限公司", longitude:"121.16401", latitude:"31.18687"},
// {sort:3, enterprise:"尤妮佳生活用品(中国)有限公司", longitude:"121.09938", latitude:"31.19114"},
// ]
// ------------------end------------
if (JSON.stringify(basicData) === '{}') basicData = {productionIndex:0}; if (JSON.stringify(basicData) === '{}') basicData = {productionIndex:0};
if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""}; if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""};
...@@ -11,6 +22,7 @@ export async function getGsqyscyx() { ...@@ -11,6 +22,7 @@ export async function getGsqyscyx() {
if(!basicData) throw new BizError(`${interfaceName} 缺少参数 basicData`); if(!basicData) throw new BizError(`${interfaceName} 缺少参数 basicData`);
if(!productionIndexTrend) throw new BizError(`${interfaceName} 缺少参数 demonstrationAreaIndexTrend`); if(!productionIndexTrend) throw new BizError(`${interfaceName} 缺少参数 demonstrationAreaIndexTrend`);
if(!rangeData) throw new BizError(`${interfaceName} 缺少参数 rangeData`); if(!rangeData) throw new BizError(`${interfaceName} 缺少参数 rangeData`);
if(!enterpriseTop10) throw new BizError(`${interfaceName} 缺少参数 enterpriseTop10`);
let {productionIndex} = basicData; let {productionIndex} = basicData;
let basicInfo = {青浦区生产指数: productionIndex}; let basicInfo = {青浦区生产指数: productionIndex};
...@@ -29,13 +41,18 @@ export async function getGsqyscyx() { ...@@ -29,13 +41,18 @@ export async function getGsqyscyx() {
"时间范围": timeRange "时间范围": timeRange
}; };
return {basicInfo, productionInfo, rangeInfo} return {basicInfo, productionInfo, rangeInfo, enterpriseTop10}
} }
export async function getIndustrial(name) { export async function getIndustrial(name) {
let interfaceName = "规上企业生产运行状况"; let interfaceName = "规上企业生产运行状况";
let {industryProductionIndex, industrialDistribution} = await getInterfaceByInterfaceName(interfaceName); let {industryProductionIndex, industrialDistribution} = await getInterfaceByInterfaceName(interfaceName);
// ----------------test------------
// let industryProductionIndex:any = {"industrial":0.00,"transportationAndWarehousingAndPostalServices":0.00,"wholesaleAndRetail":0.00,"leasingAndBusinessService":0.00,"publicServiceAndManagementOrganization":0.00};
// let industrialDistribution:any = {"industrial":0,"transportationAndWarehousingAndPostalServices":0,"wholesaleAndRetail":0,"leasingAndBusinessService":0,"publicServiceAndManagementOrganization":0};
// ----------------end-------------
if (JSON.stringify(industryProductionIndex) === '{}') industryProductionIndex= {industrial:0, wholesaleAndRetail:0, leasingAndBusinessService:0, transportationAndWarehousingAndPostalServices:0, publicServiceAndManagementOrganization:0}; if (JSON.stringify(industryProductionIndex) === '{}') industryProductionIndex= {industrial:0, wholesaleAndRetail:0, leasingAndBusinessService:0, transportationAndWarehousingAndPostalServices:0, publicServiceAndManagementOrganization:0};
if (JSON.stringify(industrialDistribution) === '{}') industrialDistribution = {industrial:0, wholesaleAndRetail:0, leasingAndBusinessService:0, transportationAndWarehousingAndPostalServices:0, publicServiceAndManagementOrganization:0}; if (JSON.stringify(industrialDistribution) === '{}') industrialDistribution = {industrial:0, wholesaleAndRetail:0, leasingAndBusinessService:0, transportationAndWarehousingAndPostalServices:0, publicServiceAndManagementOrganization:0};
......
...@@ -5,6 +5,13 @@ export async function getHyydfb() { ...@@ -5,6 +5,13 @@ export async function getHyydfb() {
let interfaceName = "行业用电分布"; let interfaceName = "行业用电分布";
let {basicData, concentrationAnalysisOfKeyIndustries, electricityConsumptionByIndustry, rangeData} = await getInterfaceByInterfaceName(interfaceName); let {basicData, concentrationAnalysisOfKeyIndustries, electricityConsumptionByIndustry, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// ------------------test------------
// let basicData:any = {"demonstrationAreaIndustryElectricity":65.90};
// let concentrationAnalysisOfKeyIndustries = [{"month":"202201","travel":66.0100,"informationTechnology":94.0600,"modernLogistics":77.4900},{"month":"202202","travel":69.3700,"informationTechnology":94.2400,"modernLogistics":78.0700},{"month":"202203","travel":67.8000,"informationTechnology":94.9300,"modernLogistics":78.2200},{"month":"202204","travel":68.3100,"informationTechnology":96.2600,"modernLogistics":74.8400},{"month":"202205","travel":72.2800,"informationTechnology":95.9300,"modernLogistics":76.2200},{"month":"202206","travel":72.1100,"informationTechnology":94.5100,"modernLogistics":77.8800},{"month":"202207","travel":74.3800,"informationTechnology":93.1900,"modernLogistics":77.5700},{"month":"202208","travel":71.9300,"informationTechnology":92.9700,"modernLogistics":77.3200},{"month":"202209","travel":72.5400,"informationTechnology":93.8800,"modernLogistics":79.2300},{"month":"202210","travel":69.5500,"informationTechnology":94.4300,"modernLogistics":80.3100},{"month":"202211","travel":69.7900,"informationTechnology":94.1900,"modernLogistics":80.5200},{"month":"202212","travel":72.1200,"informationTechnology":93.0200,"modernLogistics":78.4200},{"month":"202301","travel":72.7000,"informationTechnology":92.5100,"modernLogistics":80.3500},{"month":"202302","travel":68.7300,"informationTechnology":91.7800,"modernLogistics":78.3600}];
// let electricityConsumptionByIndustry:any = {"qingPuArea":{"住宿和餐饮业":456.14,"金融业":104.73,"租赁和商务服务业":577.36,"建筑业":1035.59,"房地产业":6230.37,"交通运输,仓储和邮政业":1668.69,"批发和零售业":3793.74,"信息传输,软件和信息技术服务业":3035.08,"农,林,牧,渔业":347.70,"公共服务及管理组织":4010.78,"工业":24512.83},"wuJiangArea":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00},"jiaShanCounty":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00}};
// let rangeData = {"regionalScope":"长三角示范区", "timeRange": "2023年1-2月"}
// ------------------end------------
if (JSON.stringify(basicData) === '{}') basicData = {demonstrationAreaIndustryElectricity:0}; if (JSON.stringify(basicData) === '{}') basicData = {demonstrationAreaIndustryElectricity:0};
if (JSON.stringify(electricityConsumptionByIndustry) === '{}') electricityConsumptionByIndustry = {"qingPuArea":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00},"wuJiangArea":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00},"jiaShanCounty":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00}}; if (JSON.stringify(electricityConsumptionByIndustry) === '{}') electricityConsumptionByIndustry = {"qingPuArea":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00},"wuJiangArea":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00},"jiaShanCounty":{"农,林,牧,渔业":0.00,"工业":0.00,"建筑业":0.00,"交通运输,仓储和邮政业":0.00,"信息传输,软件和信息技术服务业":0.00,"批发和零售业":0.00,"住宿和餐饮业":0.00,"金融业":0.00,"房地产业":0.00,"租赁和商务服务业":0.00,"公共服务及管理组织":0.00}};
if (JSON.stringify(rangeData) === '{}') rangeData = rangeData = {regionalScope:"", timeRange:""}; if (JSON.stringify(rangeData) === '{}') rangeData = rangeData = {regionalScope:"", timeRange:""};
...@@ -48,6 +55,10 @@ export async function getElectricity() { ...@@ -48,6 +55,10 @@ export async function getElectricity() {
let interfaceName = "行业用电分布"; let interfaceName = "行业用电分布";
let {demonstrationAreaIndustryElectricity} = await getInterfaceByInterfaceName(interfaceName); let {demonstrationAreaIndustryElectricity} = await getInterfaceByInterfaceName(interfaceName);
// -----------------test---------------------
// let demonstrationAreaIndustryElectricity:any = {"fisheries":0.07,"industrial":4.41,"constructionIndustry":0.17,"transportationAndWarehousingAndPostalServices":0.33,"informationTechnologyServices":0.63,"wholesaleAndRetail":0.71,"accommodationAndCatering":0.09,"financialIndustry":0.02,"realEstate":1.23,"leasingAndBusinessService":0.11,"publicServiceAndManagementOrganization":0.78};
// ------------------end--------------------
if (JSON.stringify(demonstrationAreaIndustryElectricity) === '{}') demonstrationAreaIndustryElectricity = {industrial:0, publicServiceAndManagementOrganization:0, realEstate:0, wholesaleAndRetail:0, informationTechnologyServices:0, transportationAndWarehousingAndPostalServices:0, constructionIndustry:0, accommodationAndCatering:0, fisheries:0, leasingAndBusinessService:0, financialIndustry:0}; if (JSON.stringify(demonstrationAreaIndustryElectricity) === '{}') demonstrationAreaIndustryElectricity = {industrial:0, publicServiceAndManagementOrganization:0, realEstate:0, wholesaleAndRetail:0, informationTechnologyServices:0, transportationAndWarehousingAndPostalServices:0, constructionIndustry:0, accommodationAndCatering:0, fisheries:0, leasingAndBusinessService:0, financialIndustry:0};
//示范区行业用电分布 //示范区行业用电分布
......
...@@ -5,6 +5,14 @@ export async function getJjjqd() { ...@@ -5,6 +5,14 @@ export async function getJjjqd() {
let interfaceName = "经济景气度"; let interfaceName = "经济景气度";
let {basicData, prosperityIndexOfKeyRegions, industrialDistribution, economicSentimentIndex, rangeData} = await getInterfaceByInterfaceName(interfaceName); let {basicData, prosperityIndexOfKeyRegions, industrialDistribution, economicSentimentIndex, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// -----------------test-----------------
// let basicData:any = {demonstrationAreaEconomicProsperity:89.0300, wuJiangDistrict:0.0000, qingPuDistrict:103.6485, jiaShanCounty:0.0000};
// let prosperityIndexOfKeyRegions:any = {"xiHongQiao":143.8673,"xianXingQiDongArea":149.3286,"qingPuNewTown":112.9732};
// let industrialDistribution:any = {"constructionIndustry":113.4870,"leasingAndBusinessService":149.7152,"wholesaleAndRetail":108.2574,"financialIndustry":82.8192,"realEstate":113.0102,"informationTechnologyServices":157.9385,"transportationAndWarehousingAndPostalServices":90.0323,"fisheries":121.9266,"industrial":101.3097,"accommodationAndCatering":109.9809,"publicServiceAndManagementOrganization":83.5883};
// let economicSentimentIndex = [{"year":"2020","trend":102.5900},{"year":"2021","trend":119.6900},{"year":"2022","trend":103.6485}];
// let rangeData = {"regionalScope":"青浦区", "timeRange": "2022年1月-2023年1月"}
// -----------------end-----------------
if (JSON.stringify(basicData) === '{}') basicData = {demonstrationAreaEconomicProsperity:0, wuJiangDistrict:0, qingPuDistrict:0, jiaShanCounty:0} if (JSON.stringify(basicData) === '{}') basicData = {demonstrationAreaEconomicProsperity:0, wuJiangDistrict:0, qingPuDistrict:0, jiaShanCounty:0}
if (JSON.stringify(prosperityIndexOfKeyRegions) === '{}') prosperityIndexOfKeyRegions = {xiHongQiao:0, xianXingQiDongArea:0, qingPuNewTown:0}; if (JSON.stringify(prosperityIndexOfKeyRegions) === '{}') prosperityIndexOfKeyRegions = {xiHongQiao:0, xianXingQiDongArea:0, qingPuNewTown:0};
if (JSON.stringify(industrialDistribution) === '{}') industrialDistribution = {constructionIndustry:0, leasingAndBusinessService:0, wholesaleAndRetail:0, financialIndustry:0, realEstate:0, informationTechnologyServices:0, transportationAndWarehousingAndPostalServices:0, fisheries:0, industrial:0, accommodationAndCatering:0, publicServiceAndManagementOrganization:0}; if (JSON.stringify(industrialDistribution) === '{}') industrialDistribution = {constructionIndustry:0, leasingAndBusinessService:0, wholesaleAndRetail:0, financialIndustry:0, realEstate:0, informationTechnologyServices:0, transportationAndWarehousingAndPostalServices:0, fisheries:0, industrial:0, accommodationAndCatering:0, publicServiceAndManagementOrganization:0};
......
...@@ -5,6 +5,14 @@ export async function getQjnygfjr() { ...@@ -5,6 +5,14 @@ export async function getQjnygfjr() {
let interfaceName = "绿色电力清洁能源光伏接入"; let interfaceName = "绿色电力清洁能源光伏接入";
let {totalCustomer, realTimeMonitoring, distributedPvCustomerTrends, distributedPhotovoltaicCustomer, powerAnalysis} = await getInterfaceByInterfaceName(interfaceName); let {totalCustomer, realTimeMonitoring, distributedPvCustomerTrends, distributedPhotovoltaicCustomer, powerAnalysis} = await getInterfaceByInterfaceName(interfaceName);
// -----------------test---------------
// let totalCustomer:any = {"nonResidentCustomer":144,"residentCustomer":2156};
// let realTimeMonitoring:any = {"NO2":136.0100,"SO2":272.0100,"CO2":9039.8100};
// let distributedPvCustomerTrends = [{"year":"2013","value":52},{"year":"2014","value":38},{"year":"2015","value":103},{"year":"2016","value":230},{"year":"2017","value":647},{"year":"2018","value":551},{"year":"2019","value":208},{"year":"2020","value":216},{"year":"2021","value":222}];
// let distributedPhotovoltaicCustomer:any = {"distributedPvCustomer":2300,"proportionOfNonResidents":6.26};
// let powerAnalysis = [{"month":"202109","powerGeneration":678.26,"theInternetCharge":283.06},{"month":"202110","powerGeneration":545.48,"theInternetCharge":261.63},{"month":"202111","powerGeneration":817.33,"theInternetCharge":391.54},{"month":"202112","powerGeneration":565.76,"theInternetCharge":221.11},{"month":"202201","powerGeneration":499.96,"theInternetCharge":171.82},{"month":"202202","powerGeneration":586.67,"theInternetCharge":241.58},{"month":"202203","powerGeneration":676.75,"theInternetCharge":306.13},{"month":"202204","powerGeneration":767.72,"theInternetCharge":520.13},{"month":"202205","powerGeneration":806.03,"theInternetCharge":451.83},{"month":"202206","powerGeneration":906.70,"theInternetCharge":331.05}];
// ----------------end------------------
if (JSON.stringify(totalCustomer) === '{}') totalCustomer = {residentCustomer:0, nonResidentCustomer:0}; if (JSON.stringify(totalCustomer) === '{}') totalCustomer = {residentCustomer:0, nonResidentCustomer:0};
if (JSON.stringify(realTimeMonitoring) === '{}') realTimeMonitoring = {NO2:0, SO2:0, CO2:0}; if (JSON.stringify(realTimeMonitoring) === '{}') realTimeMonitoring = {NO2:0, SO2:0, CO2:0};
if (JSON.stringify(distributedPhotovoltaicCustomer) === '{}') distributedPhotovoltaicCustomer = {distributedPvCustomer:0, proportionOfNonResidents:0}; if (JSON.stringify(distributedPhotovoltaicCustomer) === '{}') distributedPhotovoltaicCustomer = {distributedPvCustomer:0, proportionOfNonResidents:0};
...@@ -62,6 +70,10 @@ export async function getPowerGeneration() { ...@@ -62,6 +70,10 @@ export async function getPowerGeneration() {
let interfaceName = "绿色电力清洁能源光伏接入"; let interfaceName = "绿色电力清洁能源光伏接入";
let {totalGeneratingCapacity} = await getInterfaceByInterfaceName(interfaceName); let {totalGeneratingCapacity} = await getInterfaceByInterfaceName(interfaceName);
// -------------------test---------------------
// let totalGeneratingCapacity:any = {"grossGeneration":0.09,"proportionOfNonResidents":0.00};
// -------------------end----------------------
if (JSON.stringify(totalGeneratingCapacity) === '{}') totalGeneratingCapacity = {grossGeneration:0, proportionOfNonResidents:0}; if (JSON.stringify(totalGeneratingCapacity) === '{}') totalGeneratingCapacity = {grossGeneration:0, proportionOfNonResidents:0};
if (!totalGeneratingCapacity) throw new BizError(`${interfaceName} 缺少参数 totalGeneratingCapacity` ); if (!totalGeneratingCapacity) throw new BizError(`${interfaceName} 缺少参数 totalGeneratingCapacity` );
...@@ -80,6 +92,10 @@ export async function getInstalledCapacity() { ...@@ -80,6 +92,10 @@ export async function getInstalledCapacity() {
let interfaceName = "绿色电力清洁能源光伏接入"; let interfaceName = "绿色电力清洁能源光伏接入";
let {theInstalledCapacity} = await getInterfaceByInterfaceName(interfaceName); let {theInstalledCapacity} = await getInterfaceByInterfaceName(interfaceName);
// ------------------test--------------
// let theInstalledCapacity:any = {"installedCapacity":123, "proportionOfNonResidents":4589};
// ------------------end---------------
if (JSON.stringify(theInstalledCapacity) === '{}') theInstalledCapacity = {installedCapacity:0, proportionOfNonResidents:0}; if (JSON.stringify(theInstalledCapacity) === '{}') theInstalledCapacity = {installedCapacity:0, proportionOfNonResidents:0};
if (!theInstalledCapacity) throw new BizError(`${interfaceName} 缺少参数 theInstalledCapacity` ); if (!theInstalledCapacity) throw new BizError(`${interfaceName} 缺少参数 theInstalledCapacity` );
......
...@@ -3,7 +3,15 @@ import { getInterfaceByInterfaceName } from "./cronJob"; ...@@ -3,7 +3,15 @@ import { getInterfaceByInterfaceName } from "./cronJob";
export async function getQydzxypg() { export async function getQydzxypg() {
let interfaceName = "企业贷中信用评估"; let interfaceName = "企业贷中信用评估";
let {distributionOfEachCreditRating, highQualityCreditEnterprise, ventureEnterprise, monthlyBusinessCreditChanges, industryCreditDistribution, rangeData} = await getInterfaceByInterfaceName(interfaceName); // let {distributionOfEachCreditRating, highQualityCreditEnterprise, ventureEnterprise, monthlyBusinessCreditChanges, industryCreditDistribution, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// -----------------test-----------------
let distributionOfEachCreditRating:any = {"excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000};
let highQualityCreditEnterprise = [{"companyName":"上海幼儿园","value":100}];
let ventureEnterprise = [{"companyName":"深圳市花样年国际物业服务有限公司上海分公司","value":65.000},{"companyName":"融信世欧物业服务集团有限公司上海分公司","value":65.000},{"companyName":"地下1层防火分区二车库排烟风机(常备用)","value":65.000},{"companyName":"上海伯爵厨房设备有限公司","value":63.330},{"companyName":"上海甫多电气有限公司","value":54.390}];
let monthlyBusinessCreditChanges = [{"month":"202109","excellentCredit":2535.0000,"goodCredit":876.0000,"generalCredit":607.0000,"poorCredit":405.0000},{"month":"202110","excellentCredit":2684.0000,"goodCredit":767.0000,"generalCredit":569.0000,"poorCredit":393.0000},{"month":"202111","excellentCredit":2342.0000,"goodCredit":894.0000,"generalCredit":695.0000,"poorCredit":475.0000},{"month":"202112","excellentCredit":2474.0000,"goodCredit":868.0000,"generalCredit":602.0000,"poorCredit":483.0000},{"month":"202201","excellentCredit":2203.0000,"goodCredit":1064.0000,"generalCredit":637.0000,"poorCredit":550.0000},{"month":"202202","excellentCredit":2096.0000,"goodCredit":1001.0000,"generalCredit":624.0000,"poorCredit":699.0000},{"month":"202203","excellentCredit":2014.0000,"goodCredit":1129.0000,"generalCredit":638.0000,"poorCredit":714.0000},{"month":"202204","excellentCredit":2026.0000,"goodCredit":1150.0000,"generalCredit":678.0000,"poorCredit":657.0000},{"month":"202205","excellentCredit":1595.0000,"goodCredit":1279.0000,"generalCredit":851.0000,"poorCredit":788.0000},{"month":"202206","excellentCredit":1459.0000,"goodCredit":1313.0000,"generalCredit":984.0000,"poorCredit":757.0000}];
let rangeData = {"regionalScope":"青浦区","timeRange":"2022年7月"};
// ------------------end-----------------
if (JSON.stringify(distributionOfEachCreditRating) === '{}') distributionOfEachCreditRating = {excellentCredit:0, goodCredit:0, generalCredit:0, poorCredit:0}; if (JSON.stringify(distributionOfEachCreditRating) === '{}') distributionOfEachCreditRating = {excellentCredit:0, goodCredit:0, generalCredit:0, poorCredit:0};
if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""}; if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""};
...@@ -71,7 +79,8 @@ export async function getQydzxypg() { ...@@ -71,7 +79,8 @@ export async function getQydzxypg() {
export async function getindustryCredit() { export async function getindustryCredit() {
let interfaceName = "企业贷中信用评估"; let interfaceName = "企业贷中信用评估";
let {industryCreditDistribution} = await getInterfaceByInterfaceName(interfaceName); // let {industryCreditDistribution} = await getInterfaceByInterfaceName(interfaceName);
let industryCreditDistribution = [{"industryName":"农,林,牧,渔业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"工业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"建筑业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"交通运输,仓储和邮政业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"信息传输,软件和信息技术服务业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"批发和零售业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"住宿和餐饮业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"金融业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"房地产业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"租赁和商务服务业","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000},{"industryName":"公共服务及管理组织","excellentCredit":0.0000,"goodCredit":0.0000,"generalCredit":0.0000,"poorCredit":0.0000}];
if (!industryCreditDistribution) throw new BizError(`${interfaceName} 缺少参数 industryCreditDistribution` ); if (!industryCreditDistribution) throw new BizError(`${interfaceName} 缺少参数 industryCreditDistribution` );
......
...@@ -6,6 +6,20 @@ export async function getQyrh() { ...@@ -6,6 +6,20 @@ export async function getQyrh() {
let {dutyManagement, realTimeMonitoring, monitoringResults, businessDefecation, businessTimeliness, businessInteractivity, schedulingLogOverhaulSchedule, let {dutyManagement, realTimeMonitoring, monitoringResults, businessDefecation, businessTimeliness, businessInteractivity, schedulingLogOverhaulSchedule,
schedulingLogTroubleshooting, schedulingLogPowerOutage, schedulingLogDeviceDefect, schedulingLogAccidentException} = await getInterfaceByInterfaceName(interfaceName); schedulingLogTroubleshooting, schedulingLogPowerOutage, schedulingLogDeviceDefect, schedulingLogAccidentException} = await getInterfaceByInterfaceName(interfaceName);
// ------------------------test--------------------------
// let dutyManagement = [{"name":"青浦-周佳佳","required":"是"},{"name":"青浦-赵璐璐","required":"否"}];
// let realTimeMonitoring = {"redCode":"1797","blackCode":"5990","blueCode":"0","redBlueCode":"0"};
// let monitoringResults = {"uneconomicalElectricity":"276","electricalTestAre":"688","excessCapacity":"1367","reactiveCompensation":"1307"};
// let businessDefecation = {"businessLineApplication":"1757","onlinePayment":"42.09","doElectricityCut":"2","reductionOfApplicationMaterials":"3"};
// let businessTimeliness = {"highElectricityAverageLength":"63.15","LowElectricityAverageLength":"2.79"};
// let businessInteractivity = {"value":"无","ItsChineseOnline":"无","FreeNetPhoneDo":"无","BusinessHall":"无"};
// let schedulingLogOverhaulSchedule = [{"serialNumber":"01","area":"青浦","jobContent":"35千伏干俞8199线路迁改工程......","dateTime":"2021/9/24"},{"serialNumber":"02","area":"青浦","jobContent":"练5泗联03843四农12队配变220v低压电压过低......","dateTime":"2021/9/18"}];
// let schedulingLogTroubleshooting = [{"serialNumber":"01","area":"嘉善","jobContent":"【客户内部故障】下发为低压故障......","dateTime":"2021/8/29"},{"serialNumber":"02","area":"嘉善","jobContent":"【客户内部故障】下发为低压故障......","dateTime":"2021/8/25"}];
// let schedulingLogPowerOutage = [{"serialNumber":"01","area":"青浦","jobContent":"35千伏干俞8199线路迁改工程......","dateTime":"2021/8/29"},{"serialNumber":"02","area":"青浦","jobContent":"练5泗联03843四农12队配变220v低压电压过低......","dateTime":"2021/8/25"}];
// let schedulingLogDeviceDefect = [{"serialNumber":"01","area":"嘉善","jobContent":"保测装置通信中断......","dateTime":"2020/10/19"},{"serialNumber":"02","area":"嘉善","jobContent":"练5泗联18-6#位于村水泥路中间......","dateTime":"2020/8/1"}];
// let schedulingLogAccidentException = [{"serialNumber":"01","area":"嘉善","jobContent":"嘉善地区 110kV云寺变......","dateTime":"2021/9/20"},{"serialNumber":"02","area":"嘉善","jobContent":"嘉善地区 110kV陶庄变......","dateTime":"2021/9/16"}];
// ------------------------end--------------------------
if (JSON.stringify(realTimeMonitoring) === '{}') realTimeMonitoring = {redCode:"0", blackCode:"0", blueCode:"0", redBlueCode:"0"}; if (JSON.stringify(realTimeMonitoring) === '{}') realTimeMonitoring = {redCode:"0", blackCode:"0", blueCode:"0", redBlueCode:"0"};
if (JSON.stringify(monitoringResults) === '{}') monitoringResults = {uneconomicalElectricity:"0", electricalTestAre:"0", excessCapacity:"0", reactiveCompensation:"0"}; if (JSON.stringify(monitoringResults) === '{}') monitoringResults = {uneconomicalElectricity:"0", electricalTestAre:"0", excessCapacity:"0", reactiveCompensation:"0"};
if (JSON.stringify(businessDefecation) === '{}') businessDefecation = {businessLineApplication:"0", onlinePayment:"0", doElectricityCut:"0", reductionOfApplicationMaterials:"0"}; if (JSON.stringify(businessDefecation) === '{}') businessDefecation = {businessLineApplication:"0", onlinePayment:"0", doElectricityCut:"0", reductionOfApplicationMaterials:"0"};
......
...@@ -4,6 +4,7 @@ import { getInterfaceByInterfaceName } from "./cronJob"; ...@@ -4,6 +4,7 @@ import { getInterfaceByInterfaceName } from "./cronJob";
export async function getSfqztgk() { export async function getSfqztgk() {
let interfaceName = "示范区总体概况"; let interfaceName = "示范区总体概况";
let {rangeData} = await getInterfaceByInterfaceName(interfaceName); let {rangeData} = await getInterfaceByInterfaceName(interfaceName);
// let rangeData = {"regionalScope":"青浦区", "timeRange": "2022年1月-2023年1月"}
if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""}; if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""};
......
...@@ -3,9 +3,24 @@ import { getInterfaceByInterfaceName } from "./cronJob"; ...@@ -3,9 +3,24 @@ import { getInterfaceByInterfaceName } from "./cronJob";
export async function getSqjjhl() { export async function getSqjjhl() {
let interfaceName = "商圈经济活力"; let interfaceName = "商圈经济活力";
let {basicData, CIIEHolidayVitalityIndex, zhaoXiangDistrictHolidayVitalityIndex, qingPuNewTownHolidayVitalityIndex, zhuJiaJiaoHolidayVitalityIndex, // let {basicData, CIIEHolidayVitalityIndex, zhaoXiangDistrictHolidayVitalityIndex, qingPuNewTownHolidayVitalityIndex, zhuJiaJiaoHolidayVitalityIndex,
qingPuKeyBusinessDistrictIndex, CIIEConsumptionTypeAnalysis, zhaoXiangConsumptionTypeAnalysis, zhuJiaJiaoConsumptionTypeAnalysis, // qingPuKeyBusinessDistrictIndex, CIIEConsumptionTypeAnalysis, zhaoXiangConsumptionTypeAnalysis, zhuJiaJiaoConsumptionTypeAnalysis,
qingPuNewTownConsumptionTypeAnalysis, qingPuEconomicVitalityTrend, rangeData} = await getInterfaceByInterfaceName(interfaceName); // qingPuNewTownConsumptionTypeAnalysis, qingPuEconomicVitalityTrend, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// ----------------test-------------------
let basicData:any = {"overallEconomicVitalityIndex":90.5100};
let CIIEHolidayVitalityIndex = [{"holidayName":"22春节","eat":0.0000,"live":186.4200,"game":104.6200,"entertainment":0.0000,"shopping":102.4300},{"holidayName":"22中秋节","eat":66.1800,"live":52.6300,"game":61.9200,"entertainment":0.0000,"shopping":58.0600},{"holidayName":"22国庆节","eat":46.5400,"live":37.6100,"game":52.9100,"entertainment":0.0000,"shopping":45.5600},{"holidayName":"23春节","eat":135.1100,"live":223.5300,"game":125.1500,"entertainment":0.0000,"shopping":229.3300}];
let zhaoXiangDistrictHolidayVitalityIndex = [{"holidayName":"22春节","eat":0.0000,"live":0.0000,"game":99.0600,"entertainment":0.0000,"shopping":180.5600},{"holidayName":"22中秋节","eat":0.0000,"live":0.0000,"game":64.0300,"entertainment":0.0000,"shopping":44.0400},{"holidayName":"22国庆节","eat":0.0000,"live":95.7200,"game":59.3900,"entertainment":0.0000,"shopping":32.2000},{"holidayName":"23春节","eat":0.0000,"live":0.0000,"game":151.8000,"entertainment":0.0000,"shopping":107.6800}];
let qingPuNewTownHolidayVitalityIndex = [{"holidayName":"22春节","eat":107.0100,"live":117.4700,"game":109.8000,"entertainment":127.9600,"shopping":100.3200},{"holidayName":"22中秋节","eat":58.9300,"live":48.2000,"game":57.5800,"entertainment":67.4600,"shopping":62.9100},{"holidayName":"22国庆节","eat":48.1500,"live":46.6000,"game":64.4600,"entertainment":55.7900,"shopping":54.1000},{"holidayName":"23春节","eat":108.2700,"live":114.2900,"game":200.0000,"entertainment":148.4100,"shopping":200.0000}];
let zhuJiaJiaoHolidayVitalityIndex = [{"holidayName":"22春节","eat":182.1800,"live":103.8200,"game":90.8900,"entertainment":110.1000,"shopping":177.8700},{"holidayName":"22中秋节","eat":71.6600,"live":56.6200,"game":59.5600,"entertainment":52.8800,"shopping":63.1300},{"holidayName":"22国庆节","eat":59.9900,"live":45.2800,"game":52.3800,"entertainment":0.0000,"shopping":51.8100},{"holidayName":"23春节","eat":136.6800,"live":85.7100,"game":188.8600,"entertainment":74.6600,"shopping":105.5700}];
let qingPuKeyBusinessDistrictIndex = [{"businessName":"青浦新城","currYear":81.70,"lastYear":95.65,"yoyGrowth":-14.58},{"businessName":"进博会核心区","currYear":76.94,"lastYear":102.19,"yoyGrowth":-24.71},{"businessName":"赵巷商业商务区","currYear":80.63,"lastYear":73.71,"yoyGrowth":9.39},{"businessName":"朱家角古镇","currYear":75.37,"lastYear":90.78,"yoyGrowth":-16.98}];
let CIIEConsumptionTypeAnalysis = [{"month":"202201","eat":0.0000,"live":131.7000,"game":78.7600,"entertainment":90.0000,"shopping":88.1600},{"month":"202202","eat":0.0000,"live":132.5400,"game":87.1900,"entertainment":126.8000,"shopping":82.3000},{"month":"202203","eat":0.0000,"live":151.5800,"game":93.8200,"entertainment":71.3300,"shopping":124.7600},{"month":"202204","eat":0.0000,"live":18.5500,"game":69.8300,"entertainment":18.5500,"shopping":31.5800},{"month":"202205","eat":0.0000,"live":112.5900,"game":76.5900,"entertainment":20.7800,"shopping":40.8400},{"month":"202206","eat":0.0000,"live":103.4612,"game":44.4928,"entertainment":0.0000,"shopping":88.2199},{"month":"202207","eat":0.0000,"live":120.5700,"game":48.9200,"entertainment":0.0000,"shopping":98.8300},{"month":"202208","eat":0.0000,"live":107.8500,"game":49.2600,"entertainment":0.0000,"shopping":86.6200},{"month":"202209","eat":0.0000,"live":93.3300,"game":85.1900,"entertainment":0.0000,"shopping":60.8600},{"month":"202210","eat":0.0000,"live":54.5100,"game":83.8600,"entertainment":0.0000,"shopping":49.1400},{"month":"202211","eat":0.0000,"live":63.1600,"game":73.4000,"entertainment":0.0000,"shopping":67.4400},{"month":"202212","eat":0.0000,"live":120.9700,"game":81.1300,"entertainment":0.0000,"shopping":79.6500},{"month":"202301","eat":0.0000,"live":51.6000,"game":85.3900,"entertainment":0.0000,"shopping":54.8800},{"month":"202302","eat":0.0000,"live":97.8500,"game":86.6900,"entertainment":0.0000,"shopping":83.3300}];
let zhaoXiangConsumptionTypeAnalysis = [{"month":"202201","eat":0.0000,"live":87.5000,"game":68.9100,"entertainment":0.0000,"shopping":94.2500},{"month":"202202","eat":0.0000,"live":5.1700,"game":92.1000,"entertainment":0.0000,"shopping":94.3000},{"month":"202203","eat":0.0000,"live":100.0000,"game":89.8300,"entertainment":0.0000,"shopping":80.4600},{"month":"202204","eat":0.0000,"live":87.5000,"game":82.8700,"entertainment":0.0000,"shopping":10.9500},{"month":"202205","eat":0.0000,"live":100.0000,"game":77.7900,"entertainment":0.0000,"shopping":40.2400},{"month":"202206","eat":0.0000,"live":71.6700,"game":124.0882,"entertainment":0.0000,"shopping":71.6589},{"month":"202207","eat":0.0000,"live":172.0000,"game":90.2700,"entertainment":0.0000,"shopping":81.5800},{"month":"202208","eat":0.0000,"live":200.0000,"game":124.7300,"entertainment":0.0000,"shopping":99.6000},{"month":"202209","eat":0.0000,"live":200.0000,"game":89.4700,"entertainment":0.0000,"shopping":49.0500},{"month":"202210","eat":0.0000,"live":200.0000,"game":91.8400,"entertainment":0.0000,"shopping":49.1200},{"month":"202211","eat":0.0000,"live":200.0000,"game":89.4400,"entertainment":0.0000,"shopping":39.8700},{"month":"202212","eat":0.0000,"live":200.0000,"game":129.9500,"entertainment":0.0000,"shopping":86.9300},{"month":"202301","eat":0.0000,"live":200.0000,"game":133.3100,"entertainment":0.0000,"shopping":72.9600},{"month":"202302","eat":0.0000,"live":200.0000,"game":130.1600,"entertainment":0.0000,"shopping":78.2500}];
let zhuJiaJiaoConsumptionTypeAnalysis = [{"month":"202201","eat":88.8500,"live":86.3100,"game":90.2000,"entertainment":0.0000,"shopping":87.6500},{"month":"202202","eat":86.6200,"live":98.9200,"game":92.5800,"entertainment":0.0000,"shopping":95.1300},{"month":"202203","eat":47.8300,"live":83.0100,"game":63.5100,"entertainment":0.0000,"shopping":59.0500},{"month":"202204","eat":20.9300,"live":45.8100,"game":33.6700,"entertainment":0.0000,"shopping":26.6200},{"month":"202205","eat":29.4300,"live":73.9400,"game":59.2700,"entertainment":0.0000,"shopping":18.7100},{"month":"202206","eat":38.1160,"live":96.7222,"game":64.3525,"entertainment":82.2432,"shopping":53.0803},{"month":"202207","eat":85.8900,"live":107.0400,"game":76.6800,"entertainment":122.4600,"shopping":105.5200},{"month":"202208","eat":86.2900,"live":100.9700,"game":72.4400,"entertainment":98.3700,"shopping":94.9800},{"month":"202209","eat":69.6400,"live":40.5700,"game":73.0200,"entertainment":37.5400,"shopping":62.3800},{"month":"202210","eat":61.0300,"live":76.6200,"game":93.6800,"entertainment":59.2400,"shopping":71.5500},{"month":"202211","eat":59.7900,"live":66.6800,"game":81.0500,"entertainment":49.6500,"shopping":60.1200},{"month":"202212","eat":62.5200,"live":105.0900,"game":80.1000,"entertainment":69.3200,"shopping":75.8300},{"month":"202301","eat":78.3000,"live":74.9400,"game":86.1900,"entertainment":75.0800,"shopping":79.0200},{"month":"202302","eat":85.5500,"live":65.6500,"game":76.4400,"entertainment":64.1200,"shopping":80.9100}];
let qingPuNewTownConsumptionTypeAnalysis = [{"month":"202201","eat":110.7000,"live":101.2100,"game":88.3200,"entertainment":108.0600,"shopping":93.2900},{"month":"202202","eat":91.6600,"live":109.8600,"game":85.3200,"entertainment":92.8300,"shopping":75.1600},{"month":"202203","eat":110.2900,"live":108.6000,"game":106.3600,"entertainment":106.9000,"shopping":110.3100},{"month":"202204","eat":28.0100,"live":39.2900,"game":77.9800,"entertainment":82.8900,"shopping":30.6200},{"month":"202205","eat":52.1500,"live":76.0500,"game":80.6100,"entertainment":92.2400,"shopping":43.9900},{"month":"202206","eat":80.4087,"live":60.1710,"game":87.2616,"entertainment":77.6029,"shopping":91.0826},{"month":"202207","eat":109.8600,"live":88.8400,"game":94.6300,"entertainment":89.8100,"shopping":103.9600},{"month":"202208","eat":103.1800,"live":89.8900,"game":94.0100,"entertainment":95.0200,"shopping":96.5300},{"month":"202209","eat":70.2600,"live":56.1000,"game":80.7300,"entertainment":70.3700,"shopping":60.4700},{"month":"202210","eat":67.7000,"live":49.1900,"game":85.8800,"entertainment":64.9800,"shopping":61.8100},{"month":"202211","eat":73.0800,"live":58.0300,"game":80.7400,"entertainment":67.3000,"shopping":76.8800},{"month":"202212","eat":78.0700,"live":96.8300,"game":91.8300,"entertainment":89.1000,"shopping":86.9600},{"month":"202301","eat":62.8400,"live":81.7200,"game":91.7800,"entertainment":76.3900,"shopping":65.6200},{"month":"202302","eat":87.9700,"live":83.6000,"game":92.1000,"entertainment":85.8200,"shopping":91.2400}];
let qingPuEconomicVitalityTrend = [{"month":"202201","qingPuNewTown":100.3200,"CIIECoreArea":97.1600,"zhaoXiangCommercialBusiness":83.5500,"zhuJiaJiaoAncientTown":88.2500},{"month":"202202","qingPuNewTown":90.9700,"CIIECoreArea":107.2100,"zhaoXiangCommercialBusiness":63.8600,"zhuJiaJiaoAncientTown":93.3100},{"month":"202203","qingPuNewTown":108.4900,"CIIECoreArea":110.3700,"zhaoXiangCommercialBusiness":90.1000,"zhuJiaJiaoAncientTown":63.3500},{"month":"202204","qingPuNewTown":51.7600,"CIIECoreArea":34.6300,"zhaoXiangCommercialBusiness":60.4400,"zhuJiaJiaoAncientTown":31.7600},{"month":"202205","qingPuNewTown":69.0100,"CIIECoreArea":62.7000,"zhaoXiangCommercialBusiness":72.6800,"zhuJiaJiaoAncientTown":45.3400},{"month":"202206","qingPuNewTown":94.7885,"CIIECoreArea":81.0056,"zhaoXiangCommercialBusiness":85.8034,"zhuJiaJiaoAncientTown":71.8553},{"month":"202207","qingPuNewTown":102.9600,"CIIECoreArea":88.1600,"zhaoXiangCommercialBusiness":95.4100,"zhuJiaJiaoAncientTown":102.6200},{"month":"202208","qingPuNewTown":98.5100,"CIIECoreArea":91.9700,"zhaoXiangCommercialBusiness":98.2300,"zhuJiaJiaoAncientTown":92.6000},{"month":"202209","qingPuNewTown":57.4500,"CIIECoreArea":72.2900,"zhaoXiangCommercialBusiness":62.7600,"zhuJiaJiaoAncientTown":58.8100},{"month":"202210","qingPuNewTown":72.1100,"CIIECoreArea":62.5600,"zhaoXiangCommercialBusiness":67.0500,"zhuJiaJiaoAncientTown":67.8700},{"month":"202211","qingPuNewTown":76.4300,"CIIECoreArea":65.6100,"zhaoXiangCommercialBusiness":70.9500,"zhuJiaJiaoAncientTown":66.1300},{"month":"202212","qingPuNewTown":90.9800,"CIIECoreArea":79.2300,"zhaoXiangCommercialBusiness":92.7200,"zhuJiaJiaoAncientTown":79.7200},{"month":"202301","qingPuNewTown":76.1100,"CIIECoreArea":68.1200,"zhaoXiangCommercialBusiness":74.9300,"zhuJiaJiaoAncientTown":72.4000},{"month":"202302","qingPuNewTown":87.2800,"CIIECoreArea":85.7500,"zhaoXiangCommercialBusiness":86.3300,"zhuJiaJiaoAncientTown":78.3400}];
let rangeData = {"regionalScope":"青浦区","timeRange":"2023年2月"};
// ---------------end------------------------
if (JSON.stringify(basicData) === '{}') basicData = {overallEconomicVitalityIndex:"0"}; if (JSON.stringify(basicData) === '{}') basicData = {overallEconomicVitalityIndex:"0"};
if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""}; if (JSON.stringify(rangeData) === '{}') rangeData = {regionalScope:"", timeRange:""};
......
...@@ -3,7 +3,28 @@ import { getInterfaceByInterfaceName } from "./cronJob"; ...@@ -3,7 +3,28 @@ import { getInterfaceByInterfaceName } from "./cronJob";
export async function getYskkqyjc() { export async function getYskkqyjc() {
let interfaceName = "疑似空壳企业监测"; let interfaceName = "疑似空壳企业监测";
let {basicData, enterpriseDistributionDifferentCapacities, industrialDistribution, changesNumberShellCompanies, changesTrendShellCompanies, rangeData} = await getInterfaceByInterfaceName(interfaceName); // let {basicData, enterpriseDistributionDifferentCapacities, industrialDistribution, changesNumberShellCompanies, changesTrendShellCompanies, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// ----------------test----------------
let basicData:any = {"numberOfShellEnterprises":454,"suspectedShellRate":10.09};
let enterpriseDistributionDifferentCapacities:any = {"within100":21,"mithin315":377,"more315":56};
let industrialDistribution:any = {
"fisheries":11,
"industrial":59,
"transportationAndWarehousingAndPostalServices":1,
"informationTechnologyServices":1,
"wholesaleAndRetail":14,
"realEstate":341,
"leasingAndBusinessService":6,
"publicServiceAndManagementOrganization":20,
"constructionIndustry":0,
"accommodationAndCatering":3,
"financialIndustry":1
};
let changesNumberShellCompanies = [{"year":"2018","numberOfShellCompanies":308},{"year":"2019","numberOfShellCompanies":351},{"year":"2020","numberOfShellCompanies":394},{"year":"2021","numberOfShellCompanies":432},{"year":"2022","numberOfShellCompanies":454}];
let changesTrendShellCompanies = [{"year":"2018","changeTrend":8.87},{"year":"2019","changeTrend":8.89},{"year":"2020","changeTrend":9.76},{"year":"2021","changeTrend":9.80},{"year":"2022","changeTrend":10.09}];
let rangeData = {"regionalScope":"青浦区", "timeRange": "2022年1月-2023年1月"}
// ---------------end-------------------
if (JSON.stringify(basicData) === '{}') basicData = {numberOfShellEnterprises:0, suspectedShellRate:0}; if (JSON.stringify(basicData) === '{}') basicData = {numberOfShellEnterprises:0, suspectedShellRate:0};
if (JSON.stringify(enterpriseDistributionDifferentCapacities) === '{}') enterpriseDistributionDifferentCapacities = {within100:0, mithin315:0, more315:0}; if (JSON.stringify(enterpriseDistributionDifferentCapacities) === '{}') enterpriseDistributionDifferentCapacities = {within100:0, mithin315:0, more315:0};
...@@ -33,9 +54,9 @@ export async function getYskkqyjc() { ...@@ -33,9 +54,9 @@ export async function getYskkqyjc() {
//行业疑似空壳企业分布 //行业疑似空壳企业分布
let {fisheries, industrial, transportationAndWarehousingAndPostalServices, informationTechnologyServices, wholesaleAndRetail, realEstate, let {fisheries, industrial, transportationAndWarehousingAndPostalServices, informationTechnologyServices, wholesaleAndRetail, realEstate,
leasingAndBusinessService, publicServiceAndManagementOrganization, constructionIndustry} = industrialDistribution; leasingAndBusinessService, publicServiceAndManagementOrganization, constructionIndustry, accommodationAndCatering, financialIndustry} = industrialDistribution;
let industrialInfo = { let industrialData = {
'农、林、牧、渔业': fisheries, '农、林、牧、渔业': fisheries,
'工业': industrial, '工业': industrial,
'交通运输、仓储和邮政服务': transportationAndWarehousingAndPostalServices, '交通运输、仓储和邮政服务': transportationAndWarehousingAndPostalServices,
...@@ -44,9 +65,18 @@ export async function getYskkqyjc() { ...@@ -44,9 +65,18 @@ export async function getYskkqyjc() {
'房地产业': realEstate, '房地产业': realEstate,
'租赁和商务服务业': leasingAndBusinessService, '租赁和商务服务业': leasingAndBusinessService,
'公共服务及管理组织': publicServiceAndManagementOrganization, '公共服务及管理组织': publicServiceAndManagementOrganization,
'金融业': constructionIndustry '建筑业': constructionIndustry,
'住宿和餐饮业': accommodationAndCatering,
'金融业': financialIndustry
}; };
let industrialInfo = {}
for (let key in industrialData) {
if (industrialData[key] != 0) {
industrialInfo[key] = industrialData[key]
}
}
//疑似空壳企业数变化趋势 //疑似空壳企业数变化趋势
let changesNumberInfo = {}; let changesNumberInfo = {};
changesNumberShellCompanies.forEach( info => { changesNumberShellCompanies.forEach( info => {
......
...@@ -5,6 +5,139 @@ export async function getZdwrqysc() { ...@@ -5,6 +5,139 @@ export async function getZdwrqysc() {
let interfaceName = "重点污染企业生产"; let interfaceName = "重点污染企业生产";
let {pollutingEnterprises, productionByPollutingEnterprises, pollutingType, pollutingEnterprisesTOP10, comparisonOfPollutionTypesIndex, industryTypePollutantEnterprise, pollutingCompaniesScatter, rangeData} = await getInterfaceByInterfaceName(interfaceName); let {pollutingEnterprises, productionByPollutingEnterprises, pollutingType, pollutingEnterprisesTOP10, comparisonOfPollutionTypesIndex, industryTypePollutantEnterprise, pollutingCompaniesScatter, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// ------------------test----------------
// let pollutingEnterprises:any = {"numPollutingEnterprises":48};
// let productionByPollutingEnterprises:any = {};
// let pollutingType:any = {};
// let pollutingCompaniesScatter = [
// {
// "townName":"白鹤镇",
// "latitudeAndLongitude":[
// {"latitude":"31.266657","longitude":"121.086069","elevation":1.6424},
// {"latitude":"31.270797","longitude":"121.166599","elevation":1.24}
// ],
// "details":"白鹤镇, 重点污染企业2家,污染企业生产指数均值1.44。"
// },
// {
// "townName":"香花桥街道",
// "latitudeAndLongitude":[
// {"latitude":"31.211543","longitude":"121.139467","elevation":0.94},
// {"latitude":"31.173637","longitude":"121.182737","elevation":0.46124},
// {"latitude":"31.180212","longitude":"121.144456","elevation":1.04},
// {"latitude":"31.173885","longitude":"121.131135","elevation":0.924},
// {"latitude":"31.191047","longitude":"121.115028","elevation":1.13},
// {"latitude":"31.197253","longitude":"121.104266","elevation":1.15},
// {"latitude":"31.183733","longitude":"121.089807","elevation":1.13},
// {"latitude":"31.174851","longitude":"121.145911","elevation":0.974},
// {"latitude":"31.179632","longitude":"121.141999","elevation":1.15},
// {"latitude":"31.179104","longitude":"121.157998","elevation":1.16},
// {"latitude":"31.184298","longitude":"121.163384","elevation":1.00},
// {"latitude":"31.189716","longitude":"121.185462","elevation":1.67},
// {"latitude":"31.192941","longitude":"121.113608","elevation":1.01},
// {"latitude":"31.183428","longitude":"121.140802","elevation":1.46},
// {"latitude":"31.197085","longitude":"121.115385","elevation":1.35},
// {"latitude":"31.179563","longitude":"121.147635","elevation":1.14},
// {"latitude":"31.182979","longitude":"121.15726","elevation":1.29},
// {"latitude":"31.205627","longitude":"121.089477","elevation":0.94},
// {"latitude":"31.186274","longitude":"121.129743","elevation":0.9714},
// {"latitude":"31.196613","longitude":"121.097515","elevation":1.12},
// {"latitude":"31.185022","longitude":"121.166639","elevation":1.89},
// {"latitude":"31.192167","longitude":"121.162839","elevation":1.25},
// {"latitude":"31.186868","longitude":"121.164013","elevation":0.87},
// {"latitude":"31.184528","longitude":"121.160732","elevation":1.57},
// {"latitude":"31.194652","longitude":"121.100861","elevation":0.99},
// {"latitude":"31.167901","longitude":"121.180506","elevation":1.43},
// {"latitude":"31.202596","longitude":"121.136397","elevation":2.00},
// {"latitude":"31.183916","longitude":"121.130074","elevation":1.28},
// {"latitude":"31.192021","longitude":"121.127636","elevation":1.05},
// {"latitude":"31.203943","longitude":"121.162891","elevation":1.12},
// {"latitude":"31.206186","longitude":"121.10512","elevation":1.07}
// ],
// "details":"香花桥街道, 重点污染企业31家,污染企业生产指数均值1.1780645161290322。"
// },
// {
// "townName":"重固镇",
// "latitudeAndLongitude":[
// {"latitude":"31.188501","longitude":"121.147085","elevation":0.794},
// {"latitude":"31.197256","longitude":"121.207261","elevation":0.96}
// ],
// "details":"重固镇, 重点污染企业2家,污染企业生产指数均值0.875。"
// },
// {
// "townName":"华新镇",
// "latitudeAndLongitude":[
// {"latitude":"31.248519","longitude":"121.211189","elevation":2.457},
// {"latitude":"31.226913","longitude":"121.222196","elevation":0.964},
// {"latitude":"31.260512","longitude":"121.216928","elevation":1.662},
// {"latitude":"31.221565","longitude":"121.224518","elevation":1.19},
// {"latitude":"31.252542","longitude":"121.228505","elevation":0.97},
// {"latitude":"31.206301","longitude":"121.241209","elevation":1.01}
// ],
// "details":"华新镇, 重点污染企业6家,污染企业生产指数均值1.3733333333333333。"},
// {
// "townName":"赵巷镇 ",
// "latitudeAndLongitude":[
// {"latitude":"31.169266","longitude":"121.17625","elevation":1.16}
// ],
// "details":"赵巷镇 , 重点污染企业1家,污染企业生产指数均值1.16。"
// },
// {
// "townName":"途径镇",
// "latitudeAndLongitude":[
// {"latitude":"31.201733","longitude":"121.266035","elevation":1.04},
// {"latitude":"31.188779","longitude":"121.273566","elevation":0.94},
// {"latitude":"31.161304","longitude":"121.266217","elevation":0.98}
// ],
// "details":"途径镇, 重点污染企业3家,污染企业生产指数均值0.9866666666666667。"
// },
// {
// "townName":"盈浦街道",
// "latitudeAndLongitude":[],
// "details":"盈浦街道, 重点污染企业0家。"
// },
// {
// "townName":"夏阳街道",
// "latitudeAndLongitude":[],
// "details":"夏阳街道, 重点污染企业0家。"
// },
// {
// "townName":"朱家角镇",
// "latitudeAndLongitude":[
// {"latitude":"31.108307","longitude":"121.065882","elevation":1.58}
// ],
// "details":"朱家角镇, 重点污染企业1家,污染企业生产指数均值1.58。"
// },
// {
// "townName":"金泽镇",
// "latitudeAndLongitude":[],
// "details":"金泽镇, 重点污染企业0家。"
// },
// {
// "townName":"练塘镇",
// "latitudeAndLongitude":[
// {"latitude":"31.001108","longitude":"121.073762","elevation":1.02},
// {"latitude":"31.009611","longitude":"121.04397","elevation":1.12}
// ],
// "details":"练塘镇, 重点污染企业2家,污染企业生产指数均值1.07。"
// }
// ];
// let pollutingEnterprisesTOP10 = [
// {companyName:"上海山崎电路板有限公司", value:"2.24"},
// {companyName:"上海山崎电路板上海朱家角污水处理工程建设有限公司", value:"1.52"},
// {companyName:"有限公司1", value:"2.24"},
// {companyName:"有限公司2", value:"1.52"},
// {companyName:"有限公司3", value:"2.24"},
// {companyName:"有限公司4", value:"1.52"},
// {companyName:"有限公司5", value:"2.24"},
// {companyName:"有限公司6", value:"1.52"},
// {companyName:"有限公司7", value:"2.24"},
// {companyName:"有限公司8", value:"1.52"},
// ];
// let comparisonOfPollutionTypesIndex = [{"pollutionType":"大气污染","numberOfPollutingCompanies":0,"productionIndex":0.00},{"pollutionType":"土壤污染","numberOfPollutingCompanies":0,"productionIndex":0.00},{"pollutionType":"水污染","numberOfPollutingCompanies":0,"productionIndex":0.00},{"pollutionType":"危险废物","numberOfPollutingCompanies":0,"productionIndex":0.00},{"pollutionType":"其他","numberOfPollutingCompanies":0,"productionIndex":0.00}];
// let industryTypePollutantEnterprise = [{"industryType":"电力行业","numberOfPollutingCompanies":3,"productionIndex":1.00},{"industryType":"电子行业","numberOfPollutingCompanies":4,"productionIndex":1.30},{"industryType":"纺织行业","numberOfPollutingCompanies":1,"productionIndex":0.60},{"industryType":"机械行业","numberOfPollutingCompanies":5,"productionIndex":0.90},{"industryType":"批发和零售业","numberOfPollutingCompanies":14,"productionIndex":1.30},{"industryType":"汽车行业","numberOfPollutingCompanies":9,"productionIndex":0.30},{"industryType":"轻工行业","numberOfPollutingCompanies":10,"productionIndex":2.00},{"industryType":"石化行业","numberOfPollutingCompanies":11,"productionIndex":0.70},{"industryType":"水煤燃气","numberOfPollutingCompanies":3,"productionIndex":0.7},{"industryType":"医药行业","numberOfPollutingCompanies":6,"productionIndex":0.35},{"industryType":"有色行业","numberOfPollutingCompanies":15,"productionIndex":1.00}];
// let rangeData = {regionalScope:"", timeRange:""};
// -----------------end-------------------
if (JSON.stringify(pollutingEnterprises) === '{}') pollutingEnterprises = {numPollutingEnterprises:0}; if (JSON.stringify(pollutingEnterprises) === '{}') pollutingEnterprises = {numPollutingEnterprises:0};
if (JSON.stringify(productionByPollutingEnterprises) === '{}') productionByPollutingEnterprises = {pollutingEnterprisesIndex:0}; if (JSON.stringify(productionByPollutingEnterprises) === '{}') productionByPollutingEnterprises = {pollutingEnterprisesIndex:0};
if (JSON.stringify(pollutingType) === '{}') pollutingType = {waterPollution:0, hazardousWaste:0, airPollution:0, soilPollution:0, otherHighlights:0}; if (JSON.stringify(pollutingType) === '{}') pollutingType = {waterPollution:0, hazardousWaste:0, airPollution:0, soilPollution:0, otherHighlights:0};
......
...@@ -5,6 +5,10 @@ export async function getZhdy() { ...@@ -5,6 +5,10 @@ export async function getZhdy() {
let interfaceName = "智慧电眼首页"; let interfaceName = "智慧电眼首页";
let {basicData} = await getInterfaceByInterfaceName(interfaceName); let {basicData} = await getInterfaceByInterfaceName(interfaceName);
// --------------test-------------
// let basicData:any = {"economicSentimentIndex":103.6485,"suspectedShellCompanyRate":0.0000,"coordinatedDevelopmentOfCityClusters":0.0000,"pollutingEnterpriseProductionIndex":0.0000};
// --------------end--------------
if (JSON.stringify(basicData) === '{}') basicData = {economicSentimentIndex:0, suspectedShellCompanyRate:0, coordinatedDevelopmentOfCityClusters:0, pollutingEnterpriseProductionIndex:0}; if (JSON.stringify(basicData) === '{}') basicData = {economicSentimentIndex:0, suspectedShellCompanyRate:0, coordinatedDevelopmentOfCityClusters:0, pollutingEnterpriseProductionIndex:0};
if (!basicData) throw new BizError(`${interfaceName} 缺少参数 basicData` ); if (!basicData) throw new BizError(`${interfaceName} 缺少参数 basicData` );
......
...@@ -6,6 +6,18 @@ export async function getZzkzl() { ...@@ -6,6 +6,18 @@ export async function getZzkzl() {
let {vacantHouseholdData, housingVacancyRateData, IdleUserPowerData, qingPuDistrictHousingVacancyRateTrend, housingVacancyRateInKeyAreas, let {vacantHouseholdData, housingVacancyRateData, IdleUserPowerData, qingPuDistrictHousingVacancyRateTrend, housingVacancyRateInKeyAreas,
typicalResidentialVacancyRate, vacantHouseholdsInKeyAreas, typicalResidentialVacancyTrends, rangeData} = await getInterfaceByInterfaceName(interfaceName); typicalResidentialVacancyRate, vacantHouseholdsInKeyAreas, typicalResidentialVacancyTrends, rangeData} = await getInterfaceByInterfaceName(interfaceName);
// ----------------test---------------------
// let vacantHouseholdData:any = {"numberOfVacantHouseholds":31924,"yoy":-2.77,"chainRatio":0.13,"statCycle":"202206"};
// let housingVacancyRateData:any = {"housingVacancyRate":7.76,"yoy":-6.27,"chainRatio":-0.11};
// let IdleUserPowerData:any = {"averagePowerConsumptionOfVacantUsers":0.47,"yoy":4.44,"chainRatio":58.33};
// let qingPuDistrictHousingVacancyRateTrend = [{"month":"202109","quantity":7.73},{"month":"202110","quantity":7.52},{"month":"202111","quantity":7.43},{"month":"202112","quantity":7.10},{"month":"202201","quantity":7.28},{"month":"202202","quantity":7.29},{"month":"202203","quantity":7.20},{"month":"202204","quantity":7.32},{"month":"202205","quantity":7.77},{"month":"202206","quantity":7.76}];
// let housingVacancyRateInKeyAreas = [{"keyAreaName":"青浦新城","userNum":7025,"vacancyRate":6.76},{"keyAreaName":"西虹桥","userNum":1195,"vacancyRate":6.87},{"keyAreaName":"先行启动区","userNum":6812,"vacancyRate":13.07}];
// let typicalResidentialVacancyRate = [{"keyAreaName":"界泾港新村","userNum":0,"vacancyRate":0.00},{"keyAreaName":"桂花园","userNum":0,"vacancyRate":0.00},{"keyAreaName":"观湖御景","userNum":0,"vacancyRate":0.00},{"keyAreaName":"恒大御澜庭","userNum":0,"vacancyRate":0.00},{"keyAreaName":"崧泽华城","userNum":0,"vacancyRate":0.00},{"keyAreaName":"首创禧悦晴朗","userNum":0,"vacancyRate":0.00}];
// let vacantHouseholdsInKeyAreas = [{"month":"202101","quantity":10.50},{"month":"202102","quantity":10.30},{"month":"202103","quantity":10.70},{"month":"202104","quantity":10.60},{"month":"202105","quantity":10.30},{"month":"202106","quantity":10.00},{"month":"202107","quantity":9.80},{"month":"202108","quantity":9.30},{"month":"202109","quantity":8.80},{"month":"202110","quantity":7.97},{"month":"202111","quantity":7.77},{"month":"202112","quantity":7.41},{"month":"202201","quantity":8.00},{"month":"202202","quantity":8.13},{"month":"202203","quantity":8.23},{"month":"202204","quantity":8.31},{"month":"202205","quantity":8.74},{"month":"202206","quantity":8.66}];
// let typicalResidentialVacancyTrends = [];
// let rangeData = {"regionalScope":"青浦区","timeRange":"2022年7月"};
// ----------------test---------------------
if (JSON.stringify(vacantHouseholdData) === '{}') vacantHouseholdData = {numberOfVacantHouseholds:0, chainRatio:0, yoy:0}; if (JSON.stringify(vacantHouseholdData) === '{}') vacantHouseholdData = {numberOfVacantHouseholds:0, chainRatio:0, yoy:0};
if (JSON.stringify(housingVacancyRateData) === '{}') housingVacancyRateData = {housingVacancyRate:0, chainRatio:0, yoy:0}; if (JSON.stringify(housingVacancyRateData) === '{}') housingVacancyRateData = {housingVacancyRate:0, chainRatio:0, yoy:0};
if (JSON.stringify(IdleUserPowerData) === '{}') IdleUserPowerData = {averagePowerConsumptionOfVacantUsers:0, chainRatio:0, yoy:0}; if (JSON.stringify(IdleUserPowerData) === '{}') IdleUserPowerData = {averagePowerConsumptionOfVacantUsers:0, chainRatio:0, yoy:0};
...@@ -61,6 +73,10 @@ export async function getZzkzl() { ...@@ -61,6 +73,10 @@ export async function getZzkzl() {
export async function getHousingVacancyRate() { export async function getHousingVacancyRate() {
let interfaceName = "住宅空置率"; let interfaceName = "住宅空置率";
let zzkzlData = await getInterfaceByInterfaceName(interfaceName); let zzkzlData = await getInterfaceByInterfaceName(interfaceName);
// -------------------test------------------------
// let zzkzlData:any = {housingVacancyRateData:{"housingVacancyRate":7.76,"yoy":-6.27,"chainRatio":-0.11}};
if (JSON.stringify(zzkzlData.housingVacancyRateData) === '{}') zzkzlData.housingVacancyRateData = {housingVacancyRate:0, chainRatio:0, yoy:0}; if (JSON.stringify(zzkzlData.housingVacancyRateData) === '{}') zzkzlData.housingVacancyRateData = {housingVacancyRate:0, chainRatio:0, yoy:0};
if (!zzkzlData.housingVacancyRateData) throw new BizError(`${interfaceName} 缺少参数 housingVacancyRateData` ); if (!zzkzlData.housingVacancyRateData) throw new BizError(`${interfaceName} 缺少参数 housingVacancyRateData` );
...@@ -79,6 +95,10 @@ export async function getHousingVacancyRate() { ...@@ -79,6 +95,10 @@ export async function getHousingVacancyRate() {
export async function getIdleUserPower() { export async function getIdleUserPower() {
let interfaceName = "住宅空置率"; let interfaceName = "住宅空置率";
let zzkzlData = await getInterfaceByInterfaceName(interfaceName); let zzkzlData = await getInterfaceByInterfaceName(interfaceName);
// -------------------test------------------------
// let zzkzlData:any = {IdleUserPowerData:{"averagePowerConsumptionOfVacantUsers":0.47,"yoy":4.44,"chainRatio":58.33}};
if (JSON.stringify(zzkzlData.IdleUserPowerData) === '{}') zzkzlData.IdleUserPowerData = {averagePowerConsumptionOfVacantUsers:0, chainRatio:0, yoy:0}; if (JSON.stringify(zzkzlData.IdleUserPowerData) === '{}') zzkzlData.IdleUserPowerData = {averagePowerConsumptionOfVacantUsers:0, chainRatio:0, yoy:0};
if (!zzkzlData.IdleUserPowerData) throw new BizError(`${interfaceName} 缺少参数 IdleUserPowerData` ); if (!zzkzlData.IdleUserPowerData) throw new BizError(`${interfaceName} 缺少参数 IdleUserPowerData` );
...@@ -97,6 +117,10 @@ export async function getIdleUserPower() { ...@@ -97,6 +117,10 @@ export async function getIdleUserPower() {
export async function getResidentialVacancyRate() { export async function getResidentialVacancyRate() {
let interfaceName = "住宅空置率"; let interfaceName = "住宅空置率";
let zzkzlData = await getInterfaceByInterfaceName(interfaceName); let zzkzlData = await getInterfaceByInterfaceName(interfaceName);
// -------------------test------------------------
// let zzkzlData = {typicalResidentialVacancyRate:[{"keyAreaName":"界泾港新村","userNum":83,"vacancyRate":3.25},{"keyAreaName":"桂花园","userNum":18,"vacancyRate":2.41},{"keyAreaName":"观湖御景","userNum":66,"vacancyRate":37.71},{"keyAreaName":"恒大御澜庭","userNum":154,"vacancyRate":10.93},{"keyAreaName":"崧泽华城","userNum":1060,"vacancyRate":13.20},{"keyAreaName":"首创禧悦晴朗","userNum":422,"vacancyRate":13.89}]};
if (!zzkzlData.typicalResidentialVacancyRate) throw new BizError(`${interfaceName} 缺少参数 typicalResidentialVacancyRate` ); if (!zzkzlData.typicalResidentialVacancyRate) throw new BizError(`${interfaceName} 缺少参数 typicalResidentialVacancyRate` );
//典型小区住房空置率 //典型小区住房空置率
...@@ -118,6 +142,9 @@ export async function getResidentialVacancyRate() { ...@@ -118,6 +142,9 @@ export async function getResidentialVacancyRate() {
export async function getVacantHouseholdsInKeyAreas() { export async function getVacantHouseholdsInKeyAreas() {
let interfaceName = "住宅空置率"; let interfaceName = "住宅空置率";
let zzkzlData = await getInterfaceByInterfaceName(interfaceName); let zzkzlData = await getInterfaceByInterfaceName(interfaceName);
// let zzkzlData = {vacantHouseholdsInKeyAreas:[{"month":"202101","quantity":10.50},{"month":"202102","quantity":10.30},{"month":"202103","quantity":10.70},{"month":"202104","quantity":10.60},{"month":"202105","quantity":10.30},{"month":"202106","quantity":10.00},{"month":"202107","quantity":9.80},{"month":"202108","quantity":9.30},{"month":"202109","quantity":8.80},{"month":"202110","quantity":7.97},{"month":"202111","quantity":7.77},{"month":"202112","quantity":7.41},{"month":"202201","quantity":8.00},{"month":"202202","quantity":8.13},{"month":"202203","quantity":8.23},{"month":"202204","quantity":8.31},{"month":"202205","quantity":8.74},{"month":"202206","quantity":8.66}]};
if (!zzkzlData.vacantHouseholdsInKeyAreas) throw new BizError(`${interfaceName} 缺少参数 vacantHouseholdsInKeyAreas` ); if (!zzkzlData.vacantHouseholdsInKeyAreas) throw new BizError(`${interfaceName} 缺少参数 vacantHouseholdsInKeyAreas` );
//重点区域空置户趋势 //重点区域空置户趋势
...@@ -134,6 +161,9 @@ export async function getVacantHouseholdsInKeyAreas() { ...@@ -134,6 +161,9 @@ export async function getVacantHouseholdsInKeyAreas() {
export async function getTypicalResidentialVacancyTrends() { export async function getTypicalResidentialVacancyTrends() {
let interfaceName = "住宅空置率"; let interfaceName = "住宅空置率";
let zzkzlData = await getInterfaceByInterfaceName(interfaceName); let zzkzlData = await getInterfaceByInterfaceName(interfaceName);
// let zzkzlData = {typicalResidentialVacancyTrends:[{"month":"202101","quantity":13.80},{"month":"202102","quantity":14.00},{"month":"202103","quantity":14.50},{"month":"202104","quantity":17.60},{"month":"202105","quantity":17.00},{"month":"202106","quantity":17.40},{"month":"202107","quantity":16.90},{"month":"202108","quantity":15.10},{"month":"202109","quantity":14.30},{"month":"202110","quantity":18.49},{"month":"202111","quantity":18.23},{"month":"202112","quantity":17.00},{"month":"202201","quantity":11.23},{"month":"202202","quantity":10.56},{"month":"202203","quantity":10.98},{"month":"202204","quantity":11.13},{"month":"202205","quantity":11.62},{"month":"202206","quantity":11.30}]};
if (!zzkzlData.typicalResidentialVacancyTrends) throw new BizError(`${interfaceName} 缺少参数 typicalResidentialVacancyTrends` ); if (!zzkzlData.typicalResidentialVacancyTrends) throw new BizError(`${interfaceName} 缺少参数 typicalResidentialVacancyTrends` );
//典型小区空置户趋势 //典型小区空置户趋势
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment