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
d63768b1
Commit
d63768b1
authored
May 23, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员更进
parent
54f3162a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+13
-8
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+0
-1
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/HomePageLog.php
View file @
d63768b1
<?php
namespace
app\ap
p
_broker\controller
;
namespace
app\ap
i
_broker\controller
;
use
app\api_broker\extend\Basic
;
use
app\model\UPhoneFollowPp
;
...
...
@@ -34,14 +34,14 @@ class HomePageLog extends Basic
public
function
userFollowUpList
()
{
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
"start_time" => time(),
"end_time" => time() . " 23:59:59",
"name_or_phone" => "li",
"search_content" => "111",
"pageNo" => 1,
"pageSize" => 15
);
);
*/
if
(
empty
(
$params
[
'start_time'
])
||
empty
(
$params
[
'end_time'
]))
{
return
$this
->
response
(
"101"
,
'请选择时间'
);
...
...
@@ -56,10 +56,10 @@ class HomePageLog extends Basic
$where_
[
"f.content"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'search_content'
])
.
"%"
);
}
if
(
!
empty
(
$params
[
"start_time"
])
&&
!
empty
(
$params
[
"end_time"
]))
{
$where_
[
"f.create_time"
]
=
array
(
'between'
,
array
(
$params
[
"start_time"
],
$params
[
"end_time"
]
)
);
$where_
[
"f.create_time"
]
=
array
(
'between'
,
array
(
$params
[
"start_time"
],
$params
[
"end_time"
]
)
);
}
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
$where_
[
"u.user_phone|u.user_name"
]
=
array
(
"like"
,
'%name_or_phone%'
);
$where_
[
"u.user_phone|u.user_name"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
"name_or_phone"
])
.
"%"
);
}
$join
=
[
...
...
@@ -68,9 +68,15 @@ class HomePageLog extends Basic
[
'a_store b'
,
'b.id=a.store_id'
,
'left'
],
];
$order
=
"f.id desc"
;
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$join
,
$where_
,
""
);
$result
=
$this
->
uPhoneFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$join
,
$where_
,
""
);
if
(
count
(
$result
)
>
0
)
{
$list
[
"result"
]
=
$result
;
$list
[
"img_path"
]
=
AGENTHEADERIMGURL
;
return
$this
->
response
(
"200"
,
"request success"
,
$list
);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
}
\ No newline at end of file
application/model/UPhoneFollowPp.php
View file @
d63768b1
...
...
@@ -52,7 +52,6 @@ class UPhoneFollowPp extends BaseModel
->
page
(
$p
)
->
select
();
$data
=
array
();
foreach
(
$r
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
;
if
(
$v
[
'agent_id'
])
{
...
...
application/route.php
View file @
d63768b1
...
...
@@ -443,7 +443,7 @@ Route::group('broker', [
'setAgentLookNum'
=>
[
'api_broker/LookShop/setAgentLookNum'
,
[
'method'
=>
'post'
]
],
//设置经纪人的看铺数量
//首页跟进记录
'userFollowUpList'
=>
[
'api_broker/HomePageLog/userFollowUpList'
,
[
'method'
=>
'
post|get'
]
],
//设置经纪人的看铺数量
'userFollowUpList'
=>
[
'api_broker/HomePageLog/userFollowUpList'
,
[
'method'
=>
'
get'
]
],
...
...
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