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
bf185ecb
Commit
bf185ecb
authored
Jul 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
约带看分页bug
parent
42cc00c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
OReportModel.php
application/model/OReportModel.php
+11
-11
No files found.
application/model/OReportModel.php
View file @
bf185ecb
...
...
@@ -178,25 +178,25 @@ 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'"
;
}
//
todo
约带看人姓名
// 约带看人姓名
if
(
!
empty
(
$params
[
'report_agent_name'
]))
{
$conditions
[]
=
"aaa.report_agent_name LIKE '%"
.
$params
[
'report_agent_name'
]
.
"%'"
;
}
//
todo
约带看人手机号
// 约带看人手机号
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'
]
.
"%'"
;
}
...
...
@@ -332,7 +332,7 @@ class OReportModel extends Model
AND `a`.`status` = 0
AND `b`.`is_del` = 0
) ) as aaa
$where_params
ORDER BY `create_time` DESC limit
$start_index
,
$pageSize
"
;
//var_
dump($sql);
dump
(
$sql
);
$result
=
$this
->
db
->
query
(
$sql
);
...
...
@@ -364,14 +364,14 @@ class OReportModel extends Model
$conditions
[]
=
"aaa.create_time BETWEEN '"
.
$params
[
'create_time_start'
]
.
" 00:00:00' AND '"
.
$params
[
'create_time_end'
]
.
" 23:59:59'"
;
}
//
todo
约带看人姓名
// 约带看人姓名
if
(
!
empty
(
$params
[
'report_agent_name'
]))
{
$conditions
[]
=
"aaa.report_agent_name LIKE '%"
.
$params
[
'name'
]
.
"%'"
;
$conditions
[]
=
"aaa.report_agent_name LIKE '%"
.
$params
[
'
report_agent_
name'
]
.
"%'"
;
}
//
todo
约带看人手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
$conditions
[]
=
"aaa.
phone LIKE '%"
.
$params
[
'
phone'
]
.
"%'"
;
// 约带看人手机号
if
(
!
empty
(
$params
[
'
report_agent_
phone'
]))
{
$conditions
[]
=
"aaa.
report_agent_phone LIKE '%"
.
$params
[
'report_agent_
phone'
]
.
"%'"
;
}
//todo 商铺名
if
(
!
empty
(
$params
[
'house_title'
]))
{
...
...
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