Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
0c0cbfb4
Commit
0c0cbfb4
authored
Jan 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解除楼盘和经纪人关系
parent
1617f180
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Broker.php
application/index/controller/Broker.php
+4
-4
GHousesToAgents.php
application/model/GHousesToAgents.php
+2
-2
No files found.
application/index/controller/Broker.php
View file @
0c0cbfb4
...
...
@@ -134,12 +134,12 @@ class Broker extends Basic
$data
[
'msg'
]
=
''
;
$params
=
$this
->
request
->
param
();
if
(
$params
[
'id'
])
{
if
(
$params
[
'id'
]
&&
$params
[
'houses_id'
]
)
{
$hg
=
new
GHousesToAgents
();
$hg
->
del
(
$params
[
'id'
]);
$hg
->
del
(
$params
[
'id'
]
,
$params
[
'houses_id'
]
);
}
else
{
$data
[
'status'
]
=
101
;
$data
[
'msg'
]
=
'id is null'
;
$data
[
'msg'
]
=
'id
or houses_id
is null'
;
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
...
...
@@ -158,7 +158,7 @@ class Broker extends Basic
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
10
:
$params
[
'pageSize'
];
$hg
=
new
GHousesToAgents
();
$fields
=
'
a
.id,b.name,b.phone'
;
$fields
=
'
b
.id,b.name,b.phone'
;
$where
[
'a.is_del'
]
=
[
'='
,
0
];
$where
[
'b.status'
]
=
[
'='
,
0
];
$where
[
'a.type'
]
=
$params
[
'type'
];
...
...
application/model/GHousesToAgents.php
View file @
0c0cbfb4
...
...
@@ -56,9 +56,9 @@ class GHousesToAgents extends BaseModel
* @param $id
* @return bool|false|int
*/
public
function
del
(
$id
)
{
public
function
del
(
$id
,
$houses_id
)
{
if
(
$id
)
{
$res
=
$this
->
save
([
'is_del'
=>
1
],[
'
id'
=>
$
id
]);
$res
=
$this
->
save
([
'is_del'
=>
1
],[
'
agents_id'
=>
$id
,
'houses_id'
=>
$houses_
id
]);
}
else
{
$res
=
false
;
}
...
...
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