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
b65d828c
Commit
b65d828c
authored
Jun 14, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改到访状态不改变bug
parent
6161cb52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
report.php
html/application/controllers/admin/report.php
+3
-1
customer_model.php
html/application/models/customer_model.php
+14
-0
No files found.
html/application/controllers/admin/report.php
View file @
b65d828c
...
...
@@ -488,6 +488,7 @@ class Report extends CI_Controller
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerVisit
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
$value
[
'id'
]
=
$this
->
customer
->
get_customer_id
(
$value
[
'rongchuang_id'
]);
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
...
...
@@ -557,7 +558,7 @@ class Report extends CI_Controller
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerPurchase
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
$value
[
'id'
]
=
$this
->
customer
->
get_customer_id
(
$value
[
'rongchuang_id'
]);
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
//记录客户跟进信息
...
...
@@ -625,6 +626,7 @@ class Report extends CI_Controller
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerSign
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
$value
[
'id'
]
=
$this
->
customer
->
get_customer_id
(
$value
[
'rongchuang_id'
]);
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
//记录客户跟进信息
...
...
html/application/models/customer_model.php
View file @
b65d828c
...
...
@@ -943,4 +943,17 @@ class Customer_model extends MY_Model{
}
return
0
;
}
public
function
get_customer_id
(
$rcId
){
$this
->
db
->
select
(
'C.id'
);
$this
->
db
->
from
(
'tb_customer C'
);
$this
->
db
->
where
(
'C.rongchuang_id'
,
$rcId
);
$query
=
$this
->
db
->
get
();
if
(
$query
->
num_rows
()
>
0
)
{
$return
=
$query
->
result_array
();
return
$return
;
}
return
0
;
}
}
\ No newline at end of file
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