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
7366d78d
Commit
7366d78d
authored
Mar 11, 2022
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/sportsschoolserver
parents
d512a19a
29a3f5c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
ydygl.ts
src/biz/ydygl.ts
+2
-2
xsxxfxData.ts
src/data/xsxxfxData.ts
+2
-2
serverConfig.ts
src/serverConfig.ts
+9
-5
No files found.
src/biz/ydygl.ts
View file @
7366d78d
...
...
@@ -24,8 +24,8 @@ export async function getData(req, res) {
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.右上数据);
// ret["api9"] = getKeyValue("右上数据", 右上数据DataAndUnit.dataMap, 右上数据DataAndUnit.unitMap, false, false );
ret
[
"api9"
]
=
特化右上数据
;
...
...
src/data/xsxxfxData.ts
View file @
7366d78d
...
...
@@ -89,7 +89,7 @@ export async function get近期比赛概览(PID, checkDate) {
}
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
result
=
[];
selectResult
.
forEach
(
info
=>
{
...
...
@@ -103,7 +103,7 @@ function dataFormat(time) {
let
date
=
new
Date
(
time
);
let
match
=
date
.
getMonth
()
+
1
;
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
hours
=
date
.
getHours
();
let
hoursStr
=
hours
>
9
?
`
${
hours
}
`
:
`0
${
hours
}
`
;
...
...
src/serverConfig.ts
View file @
7366d78d
...
...
@@ -29,9 +29,12 @@ export const mySqlConfig = {
//orcale数据库连接对象
//49152 55944 55407 1522
export
const
orcaleConfig
=
{
user
:
'user_ylxk'
,
password
:
'rkld(34Gl'
,
connectString
:
"10.10.200.186:1521/orcl"
// user:'user_ylxk',
// password:'rkld(34Gl',
// 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 = {
企业信息数据列表
:
'/openapi/company/list'
,
创投机构数据列表
:
'/openapi/investorg/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