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
ff8c366d
Commit
ff8c366d
authored
Oct 25, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3a7f3506
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
18 deletions
+29
-18
User.php
application/api_broker/controller/User.php
+5
-5
PerformanceService.php
application/api_broker/service/PerformanceService.php
+2
-0
Member.php
application/index/controller/Member.php
+22
-13
No files found.
application/api_broker/controller/User.php
View file @
ff8c366d
...
...
@@ -161,18 +161,18 @@ class User extends Basic
if
(
$app_request_source_type
==
1
){
//'全部客户列表' 需要排除排除纯房东客户
$conditions
[
'user_label'
]
=
array
(
"neq"
,
2
);
if
(
!
isset
(
$conditions
[
'create_time'
])){
//不存在$conditions['create_time']说明非精确搜索
if
(
!
$is_search
){
//1.全部客户列表、非精确搜索 需要排除排除保护期内的客户
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
//protect_time 将截止日期大于当前时间的数据排除掉
$conditions
[
'protect_time'
]
=
array
(
'lt'
,
$time_now
);
if
(
!
$is_search
){
$conditions
[
'site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
//默认显示经纪人所在站点的客户
}
$conditions
[
'site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
//默认显示经纪人所在站点的客户
}
}
}
/*if (!$is_search) {
$conditions['user_label'] = array( "neq", 2 );
}*/
...
...
application/api_broker/service/PerformanceService.php
View file @
ff8c366d
...
...
@@ -14,6 +14,7 @@ use app\model\OReportModel;
use
app\model\TAgentTotalModel
;
use
app\model\UPhoneFollowPp
;
use
app\model\Users
;
use
think\Log
;
/**
* Created by PhpStorm.
...
...
@@ -710,6 +711,7 @@ class PerformanceService
$params
=
$this
->
getAgentIdPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
);
//dump($params);
Log
::
write
(
$params
,
'marchInListPcInfo'
);
//记录日志
if
(
!
$params
)
return
[
"code"
=>
101
,
"date"
=>
"传入的参数错误"
];
$field
=
"a.id,c.user_name,c.user_phone,c.predict_see_time,c.report_agent_name,b.house_title,b.create_time,e.store_name,b.id as order_id"
;
...
...
application/index/controller/Member.php
View file @
ff8c366d
...
...
@@ -61,6 +61,13 @@ class Member extends Basic{
$type
=
0
;
$if_search_user
=
false
;
//客方ID
$can_vip
=
true
;
if
(
!
empty
(
$params
[
'agent_id'
]))
{
$where
[
'a.agent_id'
]
=
$params
[
'agent_id'
];
$can_vip
=
false
;
}
//APP状态
if
(
!
empty
(
$params
[
'activate'
])
&&
$params
[
'activate'
]
!=
-
1
)
{
if
(
$params
[
'activate'
]
==
1
)
{
...
...
@@ -105,14 +112,17 @@ class Member extends Basic{
$where
[
'a.create_time'
]
=
[
'between time'
,
[
$params
[
'start_date'
]
.
' 00:00:00'
,
$params
[
'end_date'
]
.
' 23:59:59'
]];
}
else
{
if
(
empty
(
$params
[
'id'
])
&&
empty
(
$params
[
'phone'
]))
{
//$time_ = date('Y-m-d H:i:s', strtotime("-1 day"));//根据create_time排除保护期客户-废弃
//$where['a.create_time'] = array( 'lt', $time_ );//根据create_time排除保护期客户-废弃
//排除排除保护期内的客户
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
//protect_time 将截止日期大于当前时间的数据排除掉
$where
[
'a.protect_time'
]
=
array
(
'lt'
,
$time_now
);
$where
[
'a.site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
//默认显示经纪人所在站点的客户
if
(
$can_vip
)
{
//$time_ = date('Y-m-d H:i:s', strtotime("-1 day"));//根据create_time排除保护期客户-废弃
//$where['a.create_time'] = array( 'lt', $time_ );//根据create_time排除保护期客户-废弃
//排除排除保护期内的客户
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
//protect_time 将截止日期大于当前时间的数据排除掉
$where
[
'a.protect_time'
]
=
array
(
'lt'
,
$time_now
);
$where
[
'a.site_ids'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
];
//默认显示经纪人所在站点的客户
}
}
}
//是否登录过
...
...
@@ -234,10 +244,7 @@ class Member extends Basic{
}
//客方ID
if
(
!
empty
(
$params
[
'agent_id'
]))
{
$where
[
'a.agent_id'
]
=
$params
[
'agent_id'
];
}
if
(
!
empty
(
$params
[
'first_login_start'
]))
{
$where
[
'a.first_login_time'
]
=
$params
[
'first_login_start'
]
.
' 00:00:00'
;
...
...
@@ -255,7 +262,9 @@ class Member extends Basic{
if
(
$params
[
'vip'
]
==
1
)
{
$where
[
'a.vip'
]
=
1
;
}
else
{
$where
[
'a.vip'
]
=
0
;
if
(
$can_vip
){
$where
[
'a.vip'
]
=
0
;
}
}
}
...
...
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