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
addba98e
Commit
addba98e
authored
Jun 28, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改:分销商绑定时,过滤掉已经绑定的楼盘
parent
3e01f604
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
report.php
html/application/controllers/admin/report.php
+1
-1
building_distributor_model.php
html/application/models/building_distributor_model.php
+2
-2
No files found.
html/application/controllers/admin/report.php
View file @
addba98e
...
...
@@ -1064,7 +1064,7 @@ class Report extends CI_Controller
$where
.=
' and b.id in('
.
$info
[
'building_id'
]
.
')'
;
//echo $where;die;
$all_result
=
$this
->
relate
->
get_unbind_list
(
trim
(
$where
));
//查询所有的笛卡尔积(项目*分销商)
$has_result
=
$this
->
relate
->
get_bind_list
(
$
uid
);
//查询已经绑定此销管的分销商
$has_result
=
$this
->
relate
->
get_bind_list
(
$
info
[
'building_id'
]
);
//查询已经绑定此销管的分销商
if
(
$all_result
)
{
foreach
(
$all_result
as
$key
=>
$all
)
{
...
...
html/application/models/building_distributor_model.php
View file @
addba98e
...
...
@@ -174,9 +174,9 @@ class Building_distributor_model extends MY_Model{
}
//查询已经绑定此销管的分销商
public
function
get_bind_list
(
$
manager
_id
=
''
)
public
function
get_bind_list
(
$
building
_id
=
''
)
{
$query
=
$this
->
db
->
query
(
'SELECT distributor_id,building_id from tb_building_distributor_relate WHERE
user_id ='
.
$manager_id
);
$query
=
$this
->
db
->
query
(
'SELECT distributor_id,building_id from tb_building_distributor_relate WHERE
building_id in ('
.
$building_id
.
')'
);
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