Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
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
HTML5-李恒逸
sunac-quanmin
Commits
a63c6cb9
Commit
a63c6cb9
authored
Jun 15, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报备客户重复bug
parent
b0f63adb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
report.php
html/application/controllers/admin/report.php
+5
-4
customer_building_model.php
html/application/models/customer_building_model.php
+2
-1
No files found.
html/application/controllers/admin/report.php
View file @
a63c6cb9
...
...
@@ -119,7 +119,8 @@ class Report extends CI_Controller
$this
->
data
[
'count'
]
=
$count
;
$customers
=
$this
->
customer_building
->
get_report_list
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
// echo '<pre>';
// print_r($customers);die;
if
(
$customers
)
{
//查找楼盘的经理和销售员关系
...
...
@@ -488,7 +489,7 @@ class Report extends CI_Controller
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerVisit
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
...
...
@@ -558,7 +559,7 @@ class Report extends CI_Controller
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerPurchase
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
//记录客户跟进信息
...
...
@@ -626,7 +627,7 @@ class Report extends CI_Controller
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerSign
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
//记录客户跟进信息
...
...
html/application/models/customer_building_model.php
View file @
a63c6cb9
...
...
@@ -137,7 +137,8 @@ class Customer_building_model extends MY_Model{
//客户报备列表
public
function
get_report_list
(
$where
=
''
,
$page
=
1
,
$page_size
=
10
,
$order
=
NULL
)
{
$this
->
db
->
select
(
'D.company_name,CB.customer_id,C.customer_user,C.customer_mobile,C.customer_idcard,CB.create_time,CB.is_valid,CB.remark,CB.id,CB.assign_time,CB.building_id,C.customer_type,CB.recommend_status,UP.user_name sale_name,UP.true_name Strue_name,TU.true_name Mtrue_name,TU.user_name manager_name,B.building_title,U.user_name agent_name,CB.report_status,CB.report_time,TM.manager_name channel_name'
)
$this
->
db
->
distinct
()
->
select
(
'D.company_name,CB.customer_id,C.customer_user,C.customer_mobile,C.customer_idcard,CB.create_time,CB.is_valid,CB.remark,CB.id,CB.assign_time,CB.building_id,C.customer_type,CB.recommend_status,UP.user_name sale_name,UP.true_name Strue_name,TU.true_name Mtrue_name,TU.user_name manager_name,B.building_title,U.user_name agent_name,CB.report_status,CB.report_time,TM.manager_name channel_name'
)
->
from
(
'tb_customer_building CB'
)
->
join
(
'tb_building B'
,
'B.id = CB.building_id '
,
'left'
)
->
join
(
'tb_customer C'
,
'C.id = CB.customer_id '
,
'left'
)
...
...
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