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
5337f19f
Commit
5337f19f
authored
Mar 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0ac97d1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
Report.php
application/index/controller/Report.php
+19
-0
OReportModel.php
application/model/OReportModel.php
+2
-2
No files found.
application/index/controller/Report.php
View file @
5337f19f
...
...
@@ -81,6 +81,25 @@ class Report extends Basic
$where
[
'b.id'
]
=
$this
->
params
[
'order_id'
];
}
//城市
if
(
!
empty
(
$this
->
params
[
'city'
]))
{
$where
[
'c.city'
]
=
$this
->
params
[
'city'
];
}
//商铺地址
if
(
!
empty
(
$this
->
params
[
'internal_address'
]))
{
$where
[
'c.internal_address'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'internal_address'
]
.
'%'
];
}
//商铺ID
if
(
!
empty
(
$this
->
params
[
'house_id'
]))
{
$where
[
'c.house_id'
]
=
$this
->
params
[
'house_id'
]
;
}
//客户ID
if
(
!
empty
(
$this
->
params
[
'user_id'
]))
{
$where
[
'a.user_id'
]
=
$this
->
params
[
'user_id'
]
;
}
$field
=
'b.id as order_id,a.user_name,a.user_phone,a.create_time,a.report_agent_name,c.internal_title as house_title,a.predict_see_time'
;
$field
.=
',a.id,b.order_no'
;
...
...
application/model/OReportModel.php
View file @
5337f19f
...
...
@@ -307,7 +307,7 @@ class OReportModel extends Model
//商铺ID
if
(
!
empty
(
$params
[
'house_id'
]))
{
$conditions
[]
=
"aaa.
user
_id =
{
$params
[
'house_id'
]
}
"
;
$conditions
[]
=
"aaa.
house
_id =
{
$params
[
'house_id'
]
}
"
;
}
//客户ID
...
...
@@ -763,7 +763,7 @@ class OReportModel extends Model
}
/**
* @param int $pageNo
* @param int $pageNo
7151
* @param int $pageSize
* @param string $order_
* @param string $field
...
...
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