Commit 7366d78d by lixinming
parents d512a19a 29a3f5c2
...@@ -24,8 +24,8 @@ export async function getData(req, res) { ...@@ -24,8 +24,8 @@ export async function getData(req, res) {
let 特化右上数据 = []; let 特化右上数据 = [];
特化右上数据.push({key:"比赛场次", number:parseInt(dataInfo.右上数据["比赛场次"]), rate:parseInt(dataInfo.右上数据["比赛场次增幅"]), unit:"" }); 特化右上数据.push({key:"比赛场次", number:parseInt(dataInfo.右上数据["比赛场次"]), rate:parseInt(dataInfo.右上数据["比赛场次增幅"]), unit:"%" });
特化右上数据.push({key:"参赛覆盖人员", number:parseInt(dataInfo.右上数据["参赛覆盖人员"]), rate:parseInt(dataInfo.右上数据["参赛覆盖人员增幅"]) , unit:"" }); 特化右上数据.push({key:"参赛覆盖人员", number:parseInt(dataInfo.右上数据["参赛覆盖人员"]), rate:parseInt(dataInfo.右上数据["参赛覆盖人员增幅"]) , unit:"%" });
// let 右上数据DataAndUnit = objKeyReplace(dataInfo.右上数据); // let 右上数据DataAndUnit = objKeyReplace(dataInfo.右上数据);
// ret["api9"] = getKeyValue("右上数据", 右上数据DataAndUnit.dataMap, 右上数据DataAndUnit.unitMap, false, false ); // ret["api9"] = getKeyValue("右上数据", 右上数据DataAndUnit.dataMap, 右上数据DataAndUnit.unitMap, false, false );
ret["api9"] = 特化右上数据; ret["api9"] = 特化右上数据;
......
...@@ -89,7 +89,7 @@ export async function get近期比赛概览(PID, checkDate) { ...@@ -89,7 +89,7 @@ export async function get近期比赛概览(PID, checkDate) {
} }
export async function get全部比赛日期() { export async function get全部比赛日期() {
let sql = "select to_char(m_date,'yyyy-mm-dd') m_time from recent_match group by m_date"; let sql = "select to_char(m_date,'yyyy-mm-dd') m_time from recent_match group by m_date order by m_date ";
let selectResult = await selectData(sql); // [{to_char:'日期'},...] let selectResult = await selectData(sql); // [{to_char:'日期'},...]
let result = []; let result = [];
selectResult.forEach(info => { selectResult.forEach(info => {
...@@ -103,7 +103,7 @@ function dataFormat(time) { ...@@ -103,7 +103,7 @@ function dataFormat(time) {
let date = new Date(time); let date = new Date(time);
let match = date.getMonth() + 1; let match = date.getMonth() + 1;
let matchStr = match > 9 ? `${match}` : `0${match}`; let matchStr = match > 9 ? `${match}` : `0${match}`;
let day = date.getMonth(); let day = date.getDate();
let dayStr = day > 9 ? `${day}` : `0${day}`; let dayStr = day > 9 ? `${day}` : `0${day}`;
let hours = date.getHours(); let hours = date.getHours();
let hoursStr = hours > 9 ? `${hours}` : `0${hours}`; let hoursStr = hours > 9 ? `${hours}` : `0${hours}`;
......
...@@ -29,9 +29,12 @@ export const mySqlConfig = { ...@@ -29,9 +29,12 @@ export const mySqlConfig = {
//orcale数据库连接对象 //orcale数据库连接对象
//49152 55944 55407 1522 //49152 55944 55407 1522
export const orcaleConfig = { export const orcaleConfig = {
user:'user_ylxk', // user:'user_ylxk',
password:'rkld(34Gl', // password:'rkld(34Gl',
connectString : "10.10.200.186:1521/orcl" // connectString : "10.10.200.186:1521/orcl"
user:'root',
password:'root',
connectString : "127.0.0.1:1521/orcl"
} }
...@@ -40,4 +43,6 @@ export const interfaceConfig = { ...@@ -40,4 +43,6 @@ export const interfaceConfig = {
企业信息数据列表: '/openapi/company/list', 企业信息数据列表: '/openapi/company/list',
创投机构数据列表: '/openapi/investorg/list', 创投机构数据列表: '/openapi/investorg/list',
科技金融产品: '/openapi/product/list' 科技金融产品: '/openapi/product/list'
} }
\ No newline at end of file
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