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
15fa5a2c
Commit
15fa5a2c
authored
Oct 10, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺跟进列表-搜索
parent
af229bc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+12
-1
GHousesFollowUp.php
application/model/GHousesFollowUp.php
+1
-0
No files found.
application/api_broker/controller/HomePageLog.php
View file @
15fa5a2c
...
@@ -180,7 +180,18 @@ class HomePageLog extends Basic
...
@@ -180,7 +180,18 @@ class HomePageLog extends Basic
if
(
!
empty
(
$params
[
"province"
])
&&
!
empty
(
$params
[
"province"
]))
{
if
(
!
empty
(
$params
[
"province"
])
&&
!
empty
(
$params
[
"province"
]))
{
$where_
[
"f.province"
]
=
$params
[
"province"
];
$where_
[
"f.province"
]
=
$params
[
"province"
];
}
}
//商铺ID搜索
if
(
!
empty
(
$params
[
"house_id"
])
&&
!
empty
(
$params
[
"house_id"
]))
{
$where_
[
"f.house_id"
]
=
$params
[
"house_id"
];
}
//部门搜索
if
(
!
empty
(
$params
[
"district_id"
])
&&
!
empty
(
$params
[
"district_id"
]))
{
$where_
[
"a.district_id"
]
=
$params
[
"district_id"
];
}
//门店搜索
if
(
!
empty
(
$params
[
"store_id"
])
&&
!
empty
(
$params
[
"store_id"
]))
{
$where_
[
"a.store_id"
]
=
$params
[
"store_id"
];
}
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
if
((
preg_match
(
"/^1\d
{
10
}
$/"
,
$params
[
'name_or_phone'
])
==
1
))
{
if
((
preg_match
(
"/^1\d
{
10
}
$/"
,
$params
[
'name_or_phone'
])
==
1
))
{
...
...
application/model/GHousesFollowUp.php
View file @
15fa5a2c
...
@@ -119,6 +119,7 @@ class GHousesFollowUp extends BaseModel
...
@@ -119,6 +119,7 @@ class GHousesFollowUp extends BaseModel
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
'f'
)
->
alias
(
'f'
)
->
join
(
$join
)
->
join
(
$join
)
->
join
(
'a_agents a'
,
'f.agent_id = a.id'
,
'left'
)
->
where
(
$where
)
->
where
(
$where
)
->
group
(
$group
)
->
group
(
$group
)
->
order
(
$order_
)
->
order
(
$order_
)
...
...
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