Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shouzhouServer
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
chenjinjing
shouzhouServer
Commits
dab713b8
Commit
dab713b8
authored
Jul 15, 2024
by
Leo Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取全天游客数量策略
parent
4738ff88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
totalVisitorFlowStrategy.ts
src/biz/strategies/left/totalVisitorFlowStrategy.ts
+4
-0
abstractDataStrategyRight.ts
src/biz/strategies/right/abstractDataStrategyRight.ts
+1
-1
main.ts
src/main.ts
+1
-1
No files found.
src/biz/strategies/left/totalVisitorFlowStrategy.ts
View file @
dab713b8
...
...
@@ -34,6 +34,10 @@ export class totalVisitorFlowStrategy extends abstractDataStrategyLeft {
private
getTotalVisitorByDay
(
data
:
any
,
date
:
string
)
{
const
visitorCount
:
Map
<
string
,
number
>
=
new
Map
();
visitorCount
.
set
(
'total'
,
0
);
visitorCount
.
set
(
'老人'
,
0
);
visitorCount
.
set
(
'儿童'
,
0
);
visitorCount
.
set
(
'学生'
,
0
);
visitorCount
.
set
(
'其他'
,
0
);
data
.
forEach
(
row
=>
{
const
rowDate
=
excelSerialToJSDate
(
row
[
'游玩时间'
]);
...
...
src/biz/strategies/right/abstractDataStrategyRight.ts
View file @
dab713b8
...
...
@@ -76,7 +76,7 @@ export abstract class abstractDataStrategyRight implements dataStrategy {
const
rowDate
=
excelSerialToJSDate
(
row
[
'创建时间'
]);
const
rowYear
=
rowDate
.
getFullYear
();
if
(
rowYear
==
=
year
)
{
if
(
rowYear
==
year
)
{
count
.
set
(
row
[
target
],
count
.
get
(
row
[
target
])
+
1
);
}
});
...
...
src/main.ts
View file @
dab713b8
...
...
@@ -6,7 +6,7 @@ let fs = require('fs');
async
function
lanuch
()
{
/**初始化xml文件配置 */
await
initConfig
();
httpServer
.
createServer
(
systemConfig
.
port
);
httpServer
.
createServer
(
systemConfig
.
port
,
systemConfig
.
host
);
console
.
log
(
'This indicates that the server is started successfully.'
);
}
...
...
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