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
6c576b56
Commit
6c576b56
authored
Jun 30, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复:渠道看不到对应楼盘
parent
14799930
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
channel_building_model.php
html/application/models/channel_building_model.php
+8
-11
No files found.
html/application/models/channel_building_model.php
View file @
6c576b56
<?php
<?php
/**
/**
*渠道与项目关系表
*渠道与项目关系表
*
*
* @package application/model
* @package application/model
* @version 2016-12-15
* @version 2016-12-15
* @author libin
* @author libin
...
@@ -12,7 +12,7 @@ class Channel_building_model extends My_Model{
...
@@ -12,7 +12,7 @@ class Channel_building_model extends My_Model{
* 使用到的表
* 使用到的表
*/
*/
public
$table
=
'tb_channel_building'
;
public
$table
=
'tb_channel_building'
;
/**
/**
* 构造器
* 构造器
*/
*/
...
@@ -23,19 +23,17 @@ class Channel_building_model extends My_Model{
...
@@ -23,19 +23,17 @@ class Channel_building_model extends My_Model{
$this
->
db
=
$this
->
load
->
database
(
'default'
,
true
);
$this
->
db
=
$this
->
load
->
database
(
'default'
,
true
);
}
}
/**
/**
*
*
* 查询本人及下属所有楼盘
* 查询本人及下属所有楼盘
* @param int $where
* @param int $where
* @return array 包含统计起止时间的数组
* @return array 包含统计起止时间的数组
* @throws Exception
* @throws Exception
* @author lihengyi
* @author lihengyi
* @version 2016-12-28
* @version 2016-12-28
*/
*/
public
function
get_all_building
(
$where
=
''
){
public
function
get_all_building
(
$where
=
''
){
$this
->
db
->
select
(
'B.id,B.building_id,B.building_title'
)
$this
->
db
->
select
(
'B.id,B.building_id,B.building_title'
)
->
from
(
'tb_building B'
)
->
from
(
'tb_building B'
);
->
join
(
'tb_channel_building CB'
,
'B.id=CB.building_id'
,
'left'
)
->
join
(
'tb_channel E'
,
'E.id=CB.channel_id'
);
if
(
$where
!=
''
){
if
(
$where
!=
''
){
$this
->
db
->
where
(
$where
);
$this
->
db
->
where
(
$where
);
}
}
...
@@ -45,11 +43,11 @@ class Channel_building_model extends My_Model{
...
@@ -45,11 +43,11 @@ class Channel_building_model extends My_Model{
return
$result_array
;
return
$result_array
;
}
}
/**
/**
*
*
* 查询本人及下属所有分销商
* 查询本人及下属所有分销商
* @param int $where
* @param int $where
* @return array 包含统计起止时间的数组
* @return array 包含统计起止时间的数组
* @throws Exception
* @throws Exception
* @author lihengyi
* @author lihengyi
* @version 2016-12-28
* @version 2016-12-28
*/
*/
...
@@ -64,4 +62,4 @@ class Channel_building_model extends My_Model{
...
@@ -64,4 +62,4 @@ class Channel_building_model extends My_Model{
$result_array
=
$result
->
result_array
();
$result_array
=
$result
->
result_array
();
return
$result_array
;
return
$result_array
;
}
}
}
}
\ 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