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
9c4fadd5
Commit
9c4fadd5
authored
Jun 14, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改无法到到访看房状态bug
parent
34604368
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
report.php
html/application/controllers/admin/report.php
+1
-1
customer_building_model.php
html/application/models/customer_building_model.php
+2
-2
customer_model.php
html/application/models/customer_model.php
+1
-1
No files found.
html/application/controllers/admin/report.php
View file @
9c4fadd5
...
...
@@ -559,7 +559,7 @@ class Report extends CI_Controller
$results
=
$api
->
newgetCustomerPurchase
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]
,
$value
[
'rongchuang_id'
]
);
//记录客户跟进信息
$customerBuilding
=
$this
->
customer_building
->
get
(
array
(
'id'
=>
$entity_id
[
'id'
]));
if
(
$customerBuilding
[
'recommend_status'
]
<
3
){
...
...
html/application/models/customer_building_model.php
View file @
9c4fadd5
...
...
@@ -663,10 +663,10 @@ class Customer_building_model extends MY_Model{
}
//获取‘tb_customer_building’里的id
public
function
get_building_id
(
$Id
){
public
function
get_building_id
(
$Id
,
$rcId
){
$this
->
db
->
select
(
'CB.id'
);
$this
->
db
->
from
(
'tb_customer_building CB'
);
$this
->
db
->
where
(
'CB.customer_id
'
,
$Id
);
$this
->
db
->
where
(
'CB.customer_id
= '
.
$Id
.
' and CB.rongchuang_id = .$rcId'
);
$query
=
$this
->
db
->
get
();
if
(
$query
->
num_rows
()
>
0
)
{
...
...
html/application/models/customer_model.php
View file @
9c4fadd5
...
...
@@ -931,7 +931,7 @@ class Customer_model extends MY_Model{
}
//得到'tb_customer'表中的'rongchuang_id'
public
function
search_rongchuang_id
(){
$this
->
db
->
select
(
'C.rongchuang_id,C.id'
);
$this
->
db
->
select
(
'C.rongchuang_id,C.id
,C.customer_mobile
'
);
$this
->
db
->
from
(
'tb_customer C'
);
$this
->
db
->
where
(
'C.rongchuang_id <> " "'
);
$query
=
$this
->
db
->
get
();
...
...
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