Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sportsschoolserver
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
sportsschoolserver
Commits
0bc7f546
Commit
0bc7f546
authored
Jan 20, 2022
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d9dbf4c2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
xsxxfx.ts
src/biz/xsxxfx.ts
+3
-2
out.ts
src/cal/out.ts
+7
-1
xsxxfxData.ts
src/data/xsxxfxData.ts
+1
-1
ydyglData.ts
src/data/ydyglData.ts
+0
-0
serverConfig.ts
src/serverConfig.ts
+3
-3
No files found.
src/biz/xsxxfx.ts
View file @
0bc7f546
...
@@ -34,7 +34,7 @@ export async function getData(req, res) {
...
@@ -34,7 +34,7 @@ export async function getData(req, res) {
ret
[
"jqbsgl"
]
=
jqbsglInfo
;
ret
[
"jqbsgl"
]
=
jqbsglInfo
;
let
mid
=
1
;
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
);
let
bsjbxxInfo
=
await
比赛信息
(
mid
);
ret
[
"bsjbxx"
]
=
bsjbxxInfo
[
"基本信息"
];
ret
[
"bsjbxx"
]
=
bsjbxxInfo
[
"基本信息"
];
ret
[
"videourl"
]
=
bsjbxxInfo
[
"url"
];
ret
[
"videourl"
]
=
bsjbxxInfo
[
"url"
];
...
@@ -113,7 +113,8 @@ export async function get图表数据(req, res) {
...
@@ -113,7 +113,8 @@ export async function get图表数据(req, res) {
async
function
近期比赛概览
(
pid
,
inTime
)
{
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
);
let
{
dataList
,
firstDate
}
=
await
get
近期比赛概览
(
pid
,
time
);
return
{
return
{
title
:
"近期比赛概览"
,
title
:
"近期比赛概览"
,
...
...
src/cal/out.ts
View file @
0bc7f546
...
@@ -164,7 +164,13 @@ export function getScatterFigureOutData(title, data) {
...
@@ -164,7 +164,13 @@ export function getScatterFigureOutData(title, data) {
return
{
title
,
xMax
:
xMaxMinInfo
.
maxNumber
,
xMin
:
xMaxMinInfo
.
minNumber
,
yMax
:
yMaxMinInfo
.
maxNumber
,
yMin
:
yMaxMinInfo
.
minNumber
,
dataList
};
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
)
{
}
src/data/xsxxfxData.ts
View file @
0bc7f546
...
@@ -63,7 +63,7 @@ function checkUnit(checkString, data, allUnit?) {
...
@@ -63,7 +63,7 @@ function checkUnit(checkString, data, allUnit?) {
export
async
function
get
近期比赛概览
(
PID
,
checkDate
)
{
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
selectResult
=
await
selectData
(
sql
,
PID
,
checkDate
);
let
result
=
[];
let
result
=
[];
let
firstDate
=
""
;
let
firstDate
=
""
;
...
...
src/data/ydyglData.ts
View file @
0bc7f546
src/serverConfig.ts
View file @
0bc7f546
...
@@ -29,9 +29,9 @@ export const mySqlConfig = {
...
@@ -29,9 +29,9 @@ export const mySqlConfig = {
//orcale数据库连接对象
//orcale数据库连接对象
//49152 55944 55407 1522
//49152 55944 55407 1522
export
const
orcaleConfig
=
{
export
const
orcaleConfig
=
{
user
:
'
root
'
,
user
:
'
user_ylxk
'
,
password
:
'r
oot
'
,
password
:
'r
kld(34Gl
'
,
connectString
:
"1
27.0.0.1
:1521/orcl"
connectString
:
"1
0.10.200.186
:1521/orcl"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment