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
bff4778f
Commit
bff4778f
authored
Jun 20, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实收列表
parent
e815cbb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
20 deletions
+21
-20
Performance.php
application/api_broker/controller/Performance.php
+18
-18
PerformanceService.php
application/api_broker/service/PerformanceService.php
+1
-1
OBargainModel.php
application/model/OBargainModel.php
+2
-1
No files found.
application/api_broker/controller/Performance.php
View file @
bff4778f
...
...
@@ -361,14 +361,14 @@ class Performance extends Basic
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/* $params = array(
"type" => 1, //1个人,2经纪人
"agent_id" => 80,
"start_time" => "2018-06-12",
"end_time" => "2018-06-19",
"page_no" => 1,
"page_size" => 15
);*/
/* $params = array(
"type" => 1, //1个人,2经纪人
"agent_id" => 80,
"start_time" => "2018-06-12",
"end_time" => "2018-06-19",
"page_no" => 1,
"page_size" => 15
);*/
$checkResult
=
$this
->
validate
(
$params
,
"PerformanceValidate.verify"
);
if
(
true
!==
$checkResult
)
{
...
...
@@ -381,7 +381,7 @@ class Performance extends Basic
$page_no
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$page_size
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
service_
->
performanceList
(
$params
[
"type"
],
$params
[
"agent_id"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
$result
=
$this
->
service_
->
performanceList
(
$params
[
"type"
],
$params
[
"agent_id"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"date"
]);
}
else
{
...
...
@@ -432,14 +432,14 @@ class Performance extends Basic
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/*
$params = array(
"type" => 1, //1个人,2经纪人
"agent_id" => 80,
"start_time" => "2018-06-12",
"end_time" => "2018-06-19",
"page_no" => 1,
"page_size" => 15
);*/
/* $params = array(
"type" => 1, //1个人,2经纪人
"agent_id" => 80,
"start_time" => "2018-06-12",
"end_time" => "2018-06-19",
"page_no" => 1,
"page_size" => 15
);*/
$checkResult
=
$this
->
validate
(
$params
,
"PerformanceValidate.verify"
);
if
(
true
!==
$checkResult
)
{
...
...
@@ -452,7 +452,7 @@ class Performance extends Basic
$page_no
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$page_size
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
service_
->
officialReceipts
(
$params
[
"type"
],
$params
[
"agent_id"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
$result
=
$this
->
service_
->
officialReceipts
(
$params
[
"type"
],
$params
[
"agent_id"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"date"
]);
}
else
{
...
...
application/api_broker/service/PerformanceService.php
View file @
bff4778f
...
...
@@ -741,7 +741,7 @@ class PerformanceService
$params
=
$this
->
getAgentId
(
$agent_id
,
$type
,
$start_time
,
$end_time
);
if
(
!
$params
)
return
[
"code"
=>
101
,
"date"
=>
"传入的参数错误"
];
$field
=
"a.id,c.name,d.store_name,e.district_name,
a.practical_fee,a
.create_time"
;
$field
=
"a.id,c.name,d.store_name,e.district_name,
b.practical_fee,b
.create_time"
;
$where_
[
"a.agent_id"
]
=
$params
[
"agent_id"
];
$where_
[
"a.create_time"
]
=
$params
[
"create_time"
];
...
...
application/model/OBargainModel.php
View file @
bff4778f
...
...
@@ -683,11 +683,12 @@ class OBargainModel extends Model
->
join
(
"o_partial_commission b"
,
"a.id=b.bargain_id"
,
"right"
)
->
join
(
"a_agents c"
,
"a.agent_id=c.id"
,
"left"
)
->
join
(
"a_store d"
,
"c.store_id=d.id"
,
"left"
)
->
join
(
"a_district e"
,
"c.district_id=
c
.id"
,
"left"
)
->
join
(
"a_district e"
,
"c.district_id=
e
.id"
,
"left"
)
->
where
(
$where_
)
->
page
(
$page_no
)
->
limit
(
$page_size
)
->
select
();
// echo $this->getLastSql();
return
$date
;
}
...
...
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