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
52dc96ea
Commit
52dc96ea
authored
Mar 11, 2022
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d9dbf4c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
ydygl.ts
src/biz/ydygl.ts
+2
-2
xsxxfxData.ts
src/data/xsxxfxData.ts
+2
-2
serverConfig.ts
src/serverConfig.ts
+6
-2
No files found.
src/biz/ydygl.ts
View file @
52dc96ea
...
@@ -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"
]
=
特化右上数据
;
...
...
src/data/xsxxfxData.ts
View file @
52dc96ea
...
@@ -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
.
get
Month
();
let
day
=
date
.
get
Date
();
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
}
`
;
...
...
src/serverConfig.ts
View file @
52dc96ea
...
@@ -29,6 +29,9 @@ export const mySqlConfig = {
...
@@ -29,6 +29,9 @@ export const mySqlConfig = {
//orcale数据库连接对象
//orcale数据库连接对象
//49152 55944 55407 1522
//49152 55944 55407 1522
export
const
orcaleConfig
=
{
export
const
orcaleConfig
=
{
// user:'user_ylxk',
// password:'rkld(34Gl',
// connectString : "10.10.200.186:1521/orcl"
user
:
'root'
,
user
:
'root'
,
password
:
'root'
,
password
:
'root'
,
connectString
:
"127.0.0.1:1521/orcl"
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
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