Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
0b5ef6eb
Commit
0b5ef6eb
authored
Mar 05, 2021
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 统计优化
parent
a24075a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
center-manage/app/base/controller/impl/qifutong/statisticsCtl.js
+9
-0
center-manage/app/base/service/impl/qifutong/statisticsSve.js
+10
-4
center-manage/app/base/utils/qifutong/baseClient.js
+8
-0
No files found.
center-manage/app/base/controller/impl/qifutong/statisticsCtl.js
View file @
0b5ef6eb
...
...
@@ -119,6 +119,15 @@ class StatisticsCtl extends CtlBase {
}
}
async
getNeedProductType
(
pobj
,
qobj
,
req
)
{
try
{
const
rs
=
await
this
.
service
.
getNeedProductType
(
pobj
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
module
.
exports
=
StatisticsCtl
;
center-manage/app/base/service/impl/qifutong/statisticsSve.js
View file @
0b5ef6eb
...
...
@@ -11,7 +11,7 @@ class StatisticsService {
const
data
=
await
ToQiFuTong
.
getStatisticsByUappId
({
start
:
pobj
.
start
,
end
:
pobj
.
end
,
type_
cod
e
:
pobj
.
type_code
,
type_
nam
e
:
pobj
.
type_code
,
status
:
pobj
.
status
});
const
dates
=
ToQiFuTong
.
getAllDate
(
pobj
.
start
,
pobj
.
end
);
...
...
@@ -102,7 +102,7 @@ class StatisticsService {
return
ToQiFuTong
.
getNeedFunnelStatistics
({
start
:
pobj
.
start
,
end
:
pobj
.
end
,
type_
cod
e
:
pobj
.
type_code
,
type_
nam
e
:
pobj
.
type_code
,
uapp_id
:
pobj
.
uapp_id
});
}
...
...
@@ -111,7 +111,7 @@ class StatisticsService {
const
data
=
await
ToQiFuTong
.
getStatisticsByArea
({
start
:
pobj
.
start
,
end
:
pobj
.
end
,
type_
cod
e
:
pobj
.
type_code
,
type_
nam
e
:
pobj
.
type_code
,
uapp_id
:
pobj
.
uapp_id
});
let
result
=
{};
...
...
@@ -154,7 +154,7 @@ class StatisticsService {
endNow
:
pobj
.
endNow
,
startLast
:
pobj
.
startLast
,
endLast
:
pobj
.
endLast
,
type_
cod
e
:
pobj
.
type_code
,
type_
nam
e
:
pobj
.
type_code
,
uapp_id
:
pobj
.
uapp_id
});
return
{
...
...
@@ -200,6 +200,7 @@ class StatisticsService {
end
:
pobj
.
end
,
uapp_id
:
pobj
.
uapp_id
,
type_code
:
pobj
.
type_code
,
type_name
:
pobj
.
type_code
,
pageIndex
:
pobj
.
pageNum
||
1
,
pageSize
:
pobj
.
pageSize
||
10
,
listType
:
pobj
.
listType
,
...
...
@@ -212,5 +213,9 @@ class StatisticsService {
const
data
=
await
ToQiFuTong
.
importTxNeeds
(
pobj
);
return
data
;
}
async
getNeedProductType
(
pobj
)
{
const
data
=
await
ToQiFuTong
.
getNeedProductType
(
pobj
);
return
data
;
}
}
module
.
exports
=
StatisticsService
;
\ No newline at end of file
center-manage/app/base/utils/qifutong/baseClient.js
View file @
0b5ef6eb
...
...
@@ -98,6 +98,14 @@ class BaseClient {
});
return
data
;
}
async
getNeedProductType
()
{
const
data
=
await
this
.
pushQiFuTong
(
'/web/action/opNeed/springBoard'
,
{
"actionType"
:
"getNeedProductType"
,
"actionBody"
:
{
}
});
return
data
;
}
async
getStatisticsByUappId
(
pobj
)
{
const
data
=
await
this
.
pushQiFuTong
(
'/web/action/opNeed/springBoard'
,
{
"actionType"
:
"getStatisticsByUappId"
,
...
...
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