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
23b6bfd5
Commit
23b6bfd5
authored
Apr 16, 2021
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin add .package-lock.json
parent
b49dc714
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
109 deletions
+121
-109
center-manage/app/base/controller/impl/qifutong/statisticsCtl.js
+118
-109
center-manage/app/base/service/impl/qifutong/statisticsSve.js
+3
-0
center-manage/app/base/utils/qifutong/baseClient.js
+0
-0
center-manage/package-lock.json
+0
-0
No files found.
center-manage/app/base/controller/impl/qifutong/statisticsCtl.js
View file @
23b6bfd5
const
CtlBase
=
require
(
"../../ctl.base"
);
const
CtlBase
=
require
(
"../../ctl.base"
);
var
system
=
require
(
"../../../system"
);
var
system
=
require
(
"../../../system"
);
class
StatisticsCtl
extends
CtlBase
{
class
StatisticsCtl
extends
CtlBase
{
constructor
()
{
constructor
()
{
super
(
"qifutong"
,
CtlBase
.
getServiceName
(
StatisticsCtl
));
super
(
"qifutong"
,
CtlBase
.
getServiceName
(
StatisticsCtl
));
}
// 获取 渠道信息
async
getAllChannels
(
pobj
,
qobj
,
req
)
{
try
{
const
rs
=
await
this
.
service
.
getAllChannels
(
pobj
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
// 获取 渠道信息
}
async
getAllChannels
(
pobj
,
qobj
,
req
)
{
// 获取 渠道信息
try
{
async
getAllService
(
pobj
,
qobj
,
req
)
{
const
rs
=
await
this
.
service
.
getAllChannels
(
pobj
);
try
{
return
system
.
getResult
(
rs
);
const
rs
=
await
this
.
service
.
getAllService
(
pobj
);
}
catch
(
err
)
{
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
null
,
err
.
message
)
}
catch
(
err
)
{
}
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
// 获取 产品信息
// 获取 产品信息
async
getAllProducts
(
pobj
,
qobj
,
req
)
{
async
getAllProducts
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getAllProducts
(
pobj
);
const
rs
=
await
this
.
service
.
getAllProducts
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
// 获取 pathName
// 获取 pathName
async
getPathName
(
pobj
,
qobj
,
req
)
{
async
getPathName
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getPathName
(
pobj
);
const
rs
=
await
this
.
service
.
getPathName
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
// 需求渠道分析
}
async
getStatisticsByUappId
(
pobj
,
qobj
,
req
)
{
// 需求渠道分析
try
{
async
getStatisticsByUappId
(
pobj
,
qobj
,
req
)
{
const
rs
=
await
this
.
service
.
getStatisticsByUappId
(
pobj
);
try
{
return
system
.
getResult
(
rs
);
const
rs
=
await
this
.
service
.
getStatisticsByUappId
(
pobj
);
}
catch
(
err
)
{
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
null
,
err
.
message
)
}
catch
(
err
)
{
}
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
// 订单渠道分析
// 订单渠道分析
async
getOrderStatisticsByUappId
(
pobj
,
qobj
,
req
)
{
async
getOrderStatisticsByUappId
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getOrderStatisticsByUappId
(
pobj
);
const
rs
=
await
this
.
service
.
getOrderStatisticsByUappId
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
// 需求漏斗图
// 需求漏斗图
async
getNeedFunnelStatistics
(
pobj
,
qobj
,
req
)
{
async
getNeedFunnelStatistics
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getNeedFunnelStatistics
(
pobj
);
const
rs
=
await
this
.
service
.
getNeedFunnelStatistics
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
// 需求产品分析
// 需求产品分析
async
getStatisticsByProduct
(
pobj
,
qobj
,
req
)
{
async
getStatisticsByProduct
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getStatisticsByProduct
(
pobj
);
const
rs
=
await
this
.
service
.
getStatisticsByProduct
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
// 订单产品分析
// 订单产品分析
async
getOrderStatisticsByProduct
(
pobj
,
qobj
,
req
)
{
async
getOrderStatisticsByProduct
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getOrderStatisticsByProduct
(
pobj
);
const
rs
=
await
this
.
service
.
getOrderStatisticsByProduct
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
// 需求地区分析
// 需求地区分析
async
getStatisticsByArea
(
pobj
,
qobj
,
req
)
{
async
getStatisticsByArea
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getStatisticsByArea
(
pobj
);
const
rs
=
await
this
.
service
.
getStatisticsByArea
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
async
getNeedComparison
(
pobj
,
qobj
,
req
)
{
async
getNeedComparison
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getNeedComparison
(
pobj
);
const
rs
=
await
this
.
service
.
getNeedComparison
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
async
getOrdersComparison
(
pobj
,
qobj
,
req
)
{
}
try
{
async
getOrdersComparison
(
pobj
,
qobj
,
req
)
{
const
rs
=
await
this
.
service
.
getOrdersComparison
(
pobj
);
try
{
return
system
.
getResult
(
rs
);
const
rs
=
await
this
.
service
.
getOrdersComparison
(
pobj
);
}
catch
(
err
)
{
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
null
,
err
.
message
)
}
catch
(
err
)
{
}
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
async
getStatisticsList
(
pobj
,
qobj
,
req
)
{
async
getStatisticsList
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getStatisticsList
(
pobj
);
const
rs
=
await
this
.
service
.
getStatisticsList
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
async
importTxNeeds
(
pobj
,
qobj
,
req
)
{
async
importTxNeeds
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
importTxNeeds
(
pobj
);
const
rs
=
await
this
.
service
.
importTxNeeds
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
async
getNeedProductType
(
pobj
,
qobj
,
req
)
{
async
getNeedProductType
(
pobj
,
qobj
,
req
)
{
try
{
try
{
const
rs
=
await
this
.
service
.
getNeedProductType
(
pobj
);
const
rs
=
await
this
.
service
.
getNeedProductType
(
pobj
);
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
}
}
...
...
center-manage/app/base/service/impl/qifutong/statisticsSve.js
View file @
23b6bfd5
...
@@ -4,6 +4,9 @@ class StatisticsService {
...
@@ -4,6 +4,9 @@ class StatisticsService {
async
getAllChannels
(
pobj
)
{
async
getAllChannels
(
pobj
)
{
return
ToQiFuTong
.
getAllChannels
();
return
ToQiFuTong
.
getAllChannels
();
}
}
async
getAllService
(
pobj
)
{
return
ToQiFuTong
.
getAllService
();
}
async
getAllProducts
(
pobj
)
{
async
getAllProducts
(
pobj
)
{
return
ToQiFuTong
.
getAllProducts
();
return
ToQiFuTong
.
getAllProducts
();
}
}
...
...
center-manage/app/base/utils/qifutong/baseClient.js
View file @
23b6bfd5
This diff is collapsed.
Click to expand it.
center-manage/package-lock.json
View file @
23b6bfd5
This diff is collapsed.
Click to expand it.
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