Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
75d7fcd0
Commit
75d7fcd0
authored
Apr 11, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩模块
parent
db00b150
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
Performance.php
application/api_broker/controller/Performance.php
+4
-4
Basic.php
application/api_broker/extend/Basic.php
+1
-1
PerformanceService.php
application/api_broker/service/PerformanceService.php
+7
-1
AAgents.php
application/model/AAgents.php
+1
-1
TAgentTotalModel.php
application/model/TAgentTotalModel.php
+1
-1
No files found.
application/api_broker/controller/Performance.php
View file @
75d7fcd0
...
...
@@ -101,10 +101,10 @@ class Performance extends Basic
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/*
$params = array(
"agent_id" =>
8882
,
"start_time" => "2018-04-
04
",
"end_time" => "2018-04-
04
",
/*
$params = array(
"agent_id" =>
10014
,
"start_time" => "2018-04-
11
",
"end_time" => "2018-04-
11
",
);*/
try
{
...
...
application/api_broker/extend/Basic.php
View file @
75d7fcd0
...
...
@@ -79,7 +79,7 @@ class Basic extends Controller
$requestPath
=
$this
->
request
->
routeInfo
()[
"rule"
][
0
]
.
"/"
.
$this
->
request
->
routeInfo
()[
"rule"
][
1
];
//过滤掉不需要验证token的接口
if
(
!
in_array
(
trim
(
$requestPath
),
$this
->
filterVerify
))
{
$this
->
tokenVerify
();
//
$this->tokenVerify();
// $this->userAuth(trim($requestPath));
}
unset
(
$this
->
params
[
"AuthToken"
]);
...
...
application/api_broker/service/PerformanceService.php
View file @
75d7fcd0
...
...
@@ -306,7 +306,7 @@ class PerformanceService
public
function
storePerformance
(
$agent_id
,
$start_time
,
$end_time
)
{
$result
=
$this
->
agentModel
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
[
"id"
=>
$agent_id
]);
// dump($result);
if
(
count
(
$result
)
<=
0
)
{
return
null
;
}
...
...
@@ -323,10 +323,16 @@ class PerformanceService
$list
=
[];
$now_date
=
date
(
"Y-m-d"
,
time
());
if
(
$start_time
==
$now_date
&&
$end_time
==
$now_date
)
{
$verify
=
new
VerifyService
();
$agent_ids
=
$verify
->
getAgentsByAgentId
(
$agent_id
);
$params
[
"agent_id"
]
=
array
(
"in"
,
$agent_ids
);
$params
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
.
" 00:00:00"
,
$end_time
.
" 23:59:59"
)
);
$list
=
$this
->
sumDistrictPerformance
(
$params
);
// dump($list);exit;
}
else
{
$field
=
"sum(add_house_num) as add_house_num,sum(add_user_num) as add_user_num,
sum(performance) as performance,sum(official_receipts) as official_receipts,sum(look_at_num) as look_at_num,
...
...
application/model/AAgents.php
View file @
75d7fcd0
...
...
@@ -366,7 +366,7 @@ class AAgents extends BaseModel
public
function
getAgentsListByTask
(
$pageNo
=
1
,
$pageSize
=
15
,
$field
=
"id"
)
{
return
Db
::
table
(
$this
->
table
)
->
field
(
"id"
)
->
field
(
$field
)
->
select
();
}
...
...
application/model/TAgentTotalModel.php
View file @
75d7fcd0
...
...
@@ -87,7 +87,7 @@ class TAgentTotalModel extends Model
->
group
(
$group_
)
->
order
(
$order
)
->
select
();
//
echo $this->db_->getLastSql();
echo
$this
->
db_
->
getLastSql
();
return
$result
;
}
...
...
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