Commit 0bc7f546 by lixinming

no message

parent d9dbf4c2
......@@ -34,7 +34,7 @@ export async function getData(req, res) {
ret["jqbsgl"] = jqbsglInfo;
let mid = 1;
if (jqbsglInfo.list[0] && jqbsglInfo.list[0].mid ) mid = jqbsglInfo.list[0].mid;
if (jqbsglInfo.list[0] && jqbsglInfo.list[0].mid ) mid = parseInt(`${jqbsglInfo.list[0].mid}`);
let bsjbxxInfo = await 比赛信息(mid);
ret["bsjbxx"] = bsjbxxInfo["基本信息"];
ret["videourl"] = bsjbxxInfo["url"];
......@@ -113,7 +113,8 @@ export async function get图表数据(req, res) {
async function 近期比赛概览(pid, inTime) {
let time = inTime || new Date();
let today = new Date();
let time = inTime || `${today.getFullYear()}-${today.getMonth()+1}-${today.getDate()}`;
let {dataList, firstDate} = await get近期比赛概览(pid, time);
return {
title:"近期比赛概览",
......
......@@ -164,7 +164,13 @@ export function getScatterFigureOutData(title, data) {
return { title, xMax:xMaxMinInfo.maxNumber, xMin:xMaxMinInfo.minNumber, yMax:yMaxMinInfo.maxNumber, yMin:yMaxMinInfo.minNumber, dataList };
}
/**
*
* @param title 标题
* @param data 数据 格式 => {key:[str1,str2...,strN] }
*/
export function getKeyValueListData(title, data) {
}
......@@ -63,7 +63,7 @@ function checkUnit(checkString, data, allUnit?) {
export async function get近期比赛概览(PID, checkDate) {
let sql = "select * from recent_match where self_pid = Placeholder1 and m_date <= Placeholder2";
let sql = "select * from recent_match where self_pid = Placeholder1 and m_date <= to_date(Placeholder2,'yyyy-MM-dd')";
let selectResult = await selectData(sql, PID, checkDate);
let result = [];
let firstDate = "";
......
......@@ -29,9 +29,9 @@ export const mySqlConfig = {
//orcale数据库连接对象
//49152 55944 55407 1522
export const orcaleConfig = {
user:'root',
password:'root',
connectString : "127.0.0.1:1521/orcl"
user:'user_ylxk',
password:'rkld(34Gl',
connectString : "10.10.200.186:1521/orcl"
}
......
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