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
6161cb52
Commit
6161cb52
authored
Jun 14, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
9c4fadd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
report.php
html/application/controllers/admin/report.php
+2
-2
customer_building_model.php
html/application/models/customer_building_model.php
+2
-2
No files found.
html/application/controllers/admin/report.php
View file @
6161cb52
...
@@ -557,9 +557,9 @@ class Report extends CI_Controller
...
@@ -557,9 +557,9 @@ class Report extends CI_Controller
if
(
$customerId
){
if
(
$customerId
){
foreach
(
$customerId
as
$value
)
{
foreach
(
$customerId
as
$value
)
{
$results
=
$api
->
newgetCustomerPurchase
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
$results
=
$api
->
newgetCustomerPurchase
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]
,
$value
[
'rongchuang_id'
]
);
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
//记录客户跟进信息
//记录客户跟进信息
$customerBuilding
=
$this
->
customer_building
->
get
(
array
(
'id'
=>
$entity_id
[
'id'
]));
$customerBuilding
=
$this
->
customer_building
->
get
(
array
(
'id'
=>
$entity_id
[
'id'
]));
if
(
$customerBuilding
[
'recommend_status'
]
<
3
){
if
(
$customerBuilding
[
'recommend_status'
]
<
3
){
...
...
html/application/models/customer_building_model.php
View file @
6161cb52
...
@@ -663,10 +663,10 @@ class Customer_building_model extends MY_Model{
...
@@ -663,10 +663,10 @@ class Customer_building_model extends MY_Model{
}
}
//获取‘tb_customer_building’里的id
//获取‘tb_customer_building’里的id
public
function
get_building_id
(
$Id
,
$rcId
){
public
function
get_building_id
(
$Id
){
$this
->
db
->
select
(
'CB.id'
);
$this
->
db
->
select
(
'CB.id'
);
$this
->
db
->
from
(
'tb_customer_building CB'
);
$this
->
db
->
from
(
'tb_customer_building CB'
);
$this
->
db
->
where
(
'CB.customer_id
= '
.
$Id
.
' and CB.rongchuang_id = .$rcId'
);
$this
->
db
->
where
(
'CB.customer_id
'
,
$Id
);
$query
=
$this
->
db
->
get
();
$query
=
$this
->
db
->
get
();
if
(
$query
->
num_rows
()
>
0
)
if
(
$query
->
num_rows
()
>
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