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
6c52e954
Commit
6c52e954
authored
Nov 26, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
9d5fd537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
Report.php
application/api_broker/controller/Report.php
+3
-0
OReportModel.php
application/model/OReportModel.php
+12
-3
No files found.
application/api_broker/controller/Report.php
View file @
6c52e954
...
...
@@ -165,6 +165,9 @@ class Report extends Basic
$field
=
"a.id,a.user_id,a.report_agent_name,a.report_agent_phone,a.user_phone,a.user_name,a.predict_see_time,a.create_time,b.id as order_id,b.order_no,b.house_id,b.house_title"
;
if
(
isset
(
$params
[
"report_id"
]))
{
$params
[
"a.id"
]
=
$params
[
"report_id"
];
}
$params
[
"report_agent_id"
]
=
$params
[
"agent_id"
];
$result
=
$this
->
service_
->
orderListForPc
(
$field
,
$params
,
$pageNo
,
$pageSize
);
...
...
application/model/OReportModel.php
View file @
6c52e954
...
...
@@ -204,6 +204,11 @@ class OReportModel extends Model
$conditions
[]
=
"aaa.user_phone LIKE '%"
.
$params
[
'user_phone'
]
.
"%'"
;
}
if
(
!
empty
(
$params
[
'report_id'
]))
{
$conditions
[]
=
"aaa.order_id ="
.
$params
[
'report_id'
];
}
#组装搜索where条件
if
(
$conditions
)
{
$where_params
=
'WHERE '
.
implode
(
" AND "
,
$conditions
);
...
...
@@ -361,7 +366,7 @@ class OReportModel extends Model
$house_ids
=
$params
[
"house_ids"
];
}
//
todo
约带看时间 开始 结束
// 约带看时间 开始 结束
if
(
!
empty
(
$params
[
'create_time_start'
])
&&
!
empty
(
$params
[
'create_time_end'
]))
{
$conditions
[]
=
"aaa.create_time BETWEEN '"
.
$params
[
'create_time_start'
]
.
" 00:00:00' AND '"
.
$params
[
'create_time_end'
]
.
" 23:59:59'"
;
}
...
...
@@ -375,15 +380,19 @@ class OReportModel extends Model
if
(
!
empty
(
$params
[
'report_agent_phone'
]))
{
$conditions
[]
=
"aaa.report_agent_phone LIKE '%"
.
$params
[
'report_agent_phone'
]
.
"%'"
;
}
//
todo
商铺名
// 商铺名
if
(
!
empty
(
$params
[
'house_title'
]))
{
$conditions
[]
=
"aaa.house_title LIKE '%"
.
$params
[
'house_title'
]
.
"%'"
;
}
//
todo
客户手机号
// 客户手机号
if
(
!
empty
(
$params
[
'user_phone'
]))
{
$conditions
[]
=
"aaa.user_phone LIKE '%"
.
$params
[
'user_phone'
]
.
"%'"
;
}
if
(
!
empty
(
$params
[
'report_id'
]))
{
$conditions
[]
=
"aaa.order_id ="
.
$params
[
'report_id'
];
}
#组装搜索where条件
if
(
$conditions
)
{
$where_params
=
'WHERE '
.
implode
(
" AND "
,
$conditions
);
...
...
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