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
03771b02
Commit
03771b02
authored
Jul 05, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6dabe42b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
21 deletions
+34
-21
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+22
-15
OfficeHomePageLog.php
application/api_broker/controller/OfficeHomePageLog.php
+12
-6
No files found.
application/api_broker/controller/HomePageLog.php
View file @
03771b02
...
...
@@ -14,6 +14,7 @@ use app\model\GHouses;
use
app\model\GHousesFollowUp
;
use
app\model\ULabels
;
use
app\model\UPhoneFollowUp
;
use
app\model\UPhoneFollowUpImg
;
use
app\model\UPhoneFollowUpTemporary
;
use
app\search\service\SearchService
;
use
app\task\controller\FollowUpTask
;
...
...
@@ -52,15 +53,15 @@ class HomePageLog extends Basic
public
function
userFollowUpList
()
{
$params
=
$this
->
params
;
/* $params = array(
"start_time" => strtotime('2019-04-01 15:47:36'), //开始时间
"end_time" => strtotime('2019-04-07 15:47:36'), //结束时间
"name_or_phone" => "黄莉",//用户姓名或电话 经纪人
"search_content" => "奶茶",// 搜索跟进内容
"pageNo" => 1,
"pageSize" => 15
);
$this->siteId = 10001;*/
/* $params = array(
"start_time" => strtotime('2019-04-01 15:47:36'), //开始时间
"end_time" => strtotime('2019-04-07 15:47:36'), //结束时间
"name_or_phone" => "黄莉",//用户姓名或电话 经纪人
"search_content" => "奶茶",// 搜索跟进内容
"pageNo" => 1,
"pageSize" => 15
);
$this->siteId = 10001;*/
$vrs
=
new
VerifyRepetitionService
();
$is_check
=
$vrs
->
followUpClick
(
$this
->
agentId
);
if
(
$params
[
"pageNo"
]
==
1
&&
!
$is_check
)
{
...
...
@@ -134,13 +135,13 @@ class HomePageLog extends Basic
// $m_label = new ULabels();
$redis_service
=
new
RedisCacheService
();
// $label_data = $m_label->getColumn('id,name', ['type' => 1]); //获取标签
$label_data
=
$redis_service
->
userCallLabelCache
();
$label_data
=
$redis_service
->
userCallLabelCache
();
$user_service
=
new
UserService
();
foreach
(
$result
as
$key
=>
$value
)
{
if
(
$value
[
'agent_id'
])
{
$res_a
=
$redis_service
->
getRedisCache
(
2
,
$value
[
'agent_id'
]);
$res_a
=
$redis_service
->
getRedisCache
(
2
,
$value
[
'agent_id'
]);
$result
[
$key
][
'name'
]
=
$res_a
[
'name'
];
$result
[
$key
][
'img'
]
=
$res_a
[
'img'
];
$result
[
$key
][
'store_name'
]
=
$res_a
[
'store_name'
];
...
...
@@ -149,9 +150,15 @@ class HomePageLog extends Basic
$result
[
$key
][
'img'
]
=
''
;
$result
[
$key
][
'store_name'
]
=
''
;
}
//查询跟进图片
$imgModel
=
new
UPhoneFollowUpImg
();
$img_param
[
"img_id"
]
=
$value
[
"id"
];
$img_param
[
"img_type"
]
=
1
;
$img_arr
=
$imgModel
->
getImgList
(
$img_param
,
"id,img_name"
);
$result
[
$key
][
'follow_up_img_arr'
]
=
$img_arr
;
if
(
$if_search
)
$result
[
$key
][
'create_time'
]
=
date
(
"Y-m-d H:i:s"
,
$value
[
"create_time"
]
/
1000
);
$result
[
$key
][
'create_time'
]
=
date
(
"Y-m-d H:i:s"
,
$value
[
"create_time"
]
/
1000
);
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
// $ser = new UserExpiredTimeService();
...
...
@@ -288,8 +295,8 @@ class HomePageLog extends Basic
}
}
$redis_service
=
new
RedisCacheService
();
$order
=
"f.id desc"
;
$result
=
$this
->
gHouseFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$where_
,
""
);
$order
=
"f.id desc"
;
$result
=
$this
->
gHouseFollowUpModel
->
getSearch
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$where_
,
""
);
foreach
(
$result
as
$key
=>
$value
)
{
// $agent_params = [];
// $agent_params["a.id"] = $value['agent_id'];
...
...
@@ -300,7 +307,7 @@ class HomePageLog extends Basic
// $result[$key]['img'] = $res_a[0]['img'];
// $result[$key]['store_name'] = $res_a[0]['store_name'];
if
(
$value
[
'agent_id'
])
{
$agent_data
=
$redis_service
->
getRedisCache
(
2
,
$value
[
'agent_id'
]);
$agent_data
=
$redis_service
->
getRedisCache
(
2
,
$value
[
'agent_id'
]);
$result
[
$key
][
'name'
]
=
$agent_data
[
'name'
];
$result
[
$key
][
'img'
]
=
$agent_data
[
'img'
];
$result
[
$key
][
'store_name'
]
=
$agent_data
[
'store_name'
];
...
...
application/api_broker/controller/OfficeHomePageLog.php
View file @
03771b02
...
...
@@ -15,6 +15,7 @@ use app\model\GHousesFollowUp;
use
app\model\OfficeGHousesFollowUp
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeUPhoneFollowUp
;
use
app\model\OfficeUPhoneFollowUpImg
;
use
app\model\ULabels
;
use
app\model\UPhoneFollowUp
;
use
app\model\UPhoneFollowUpTemporary
;
...
...
@@ -128,7 +129,12 @@ class OfficeHomePageLog extends Basic
$result
[
$key
][
'img'
]
=
''
;
$result
[
$key
][
'store_name'
]
=
''
;
}
//查询跟进图片
$imgModel
=
new
OfficeUPhoneFollowUpImg
();
$img_param
[
"img_id"
]
=
$value
[
"id"
];
$img_param
[
"img_type"
]
=
1
;
$img_arr
=
$imgModel
->
getImgList
(
$img_param
,
"id,img_name"
);
$result
[
$key
][
'follow_up_img_arr'
]
=
$img_arr
;
#保护期(0:保护器内 1:超过保护期)
$result
[
$key
][
'is_outstrip_twenty_four_hours'
]
=
$user_service
->
isUserProtect
(
$value
[
'user_id'
]);
...
...
@@ -180,8 +186,8 @@ class OfficeHomePageLog extends Basic
// $params = array(
// "start_time" => strtotime('2019-06-01 11:02:36'), //开始时间
// "end_time" => strtotime('2019-06-26 12:07:10'), //结束时间
//"name_or_phone" => "18112347151",//用户姓名或电话
// "search_content" => "1",// 搜索跟进内容
//"name_or_phone" => "18112347151",//用户姓名或电话
// "search_content" => "1",// 搜索跟进内容
// "pageNo" => 1,
// "pageSize" => 15
// );
...
...
@@ -272,9 +278,9 @@ class OfficeHomePageLog extends Basic
$result
[
$key
][
'img'
]
=
[];
$result
[
$key
][
'store_name'
]
=
[];
}
$roomModel
=
new
OfficeGRoom
();
$house_params
[
"a.id"
]
=
$value
[
'house_id'
];
$res_a
=
$roomModel
->
getHouseInfo
(
"a.id,CONCAT(b.address,a.room_number) internal_address"
,
$house_params
);
$roomModel
=
new
OfficeGRoom
();
$house_params
[
"a.id"
]
=
$value
[
'house_id'
];
$res_a
=
$roomModel
->
getHouseInfo
(
"a.id,CONCAT(b.address,a.room_number) internal_address"
,
$house_params
);
$result
[
$key
][
'internal_title'
]
=
$res_a
[
0
][
'internal_address'
];
}
...
...
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