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
d3d11ad8
Commit
d3d11ad8
authored
Jan 16, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
d244f731
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
HouseService.php
application/index/service/HouseService.php
+4
-4
No files found.
application/index/service/HouseService.php
View file @
d3d11ad8
...
...
@@ -136,7 +136,7 @@ class HouseService
$m_operating
->
record
(
$agent_id
,
6
,
$remark
,
$data
[
'id'
]);
if
(
empty
(
$data
[
'is_exclusive_type'
]))
{
$this
->
delAgentHouse
(
3
,
$data
[
'id'
]);
$this
->
delAgentHouse
(
3
,
$data
[
'id'
]
,
0
);
}
}
...
...
@@ -945,10 +945,10 @@ class HouseService
*
* @param $type
* @param $house_id
* @param $
agent_id
* @param $
id_edit
* @return GHousesToAgents|bool
*/
public
function
delAgentHouse
(
$type
,
$house_id
)
{
public
function
delAgentHouse
(
$type
,
$house_id
,
$id_edit
=
1
)
{
if
(
empty
(
$type
)
||
empty
(
$house_id
))
{
return
false
;
}
...
...
@@ -961,7 +961,7 @@ class HouseService
$where
[
'houses_id'
]
=
$house_id
;
$where
[
'type'
]
=
$type
;
$is_ok
=
$this
->
agent_house
->
updateData
(
$where
,
[
'is_del'
=>
1
]);
if
(
$type
==
3
)
{
if
(
$
id_edit
&&
$
type
==
3
)
{
$this
->
m_house
->
editData
([
'is_exclusive_type'
=>
0
],
$house_id
);
}
return
$is_ok
;
...
...
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