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
ee558fcf
Commit
ee558fcf
authored
Sep 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变量名修改
parent
7d1d8713
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
HouseService.php
application/index/service/HouseService.php
+9
-8
No files found.
application/index/service/HouseService.php
View file @
ee558fcf
...
...
@@ -24,13 +24,14 @@ class HouseService
{
protected
$house
;
protected
$agent
;
protected
$agetn_house
;
protected
$agent_house
;
protected
$push
;
public
function
__construct
()
{
$this
->
house
=
new
GHouses
();
$this
->
agent
=
new
AAgents
();
$this
->
age
tn
_house
=
new
GHousesToAgents
();
$this
->
age
nt
_house
=
new
GHousesToAgents
();
$this
->
push
=
new
PushMessageService
();
}
...
...
@@ -201,7 +202,7 @@ class HouseService
$agent_house_where
[
'houses_id'
]
=
$house_id
;
$agent_house_where
[
'type'
]
=
$type
;
$agent_data_old
=
$this
->
age
tn
_house
->
getAgentHouseAll
(
'id,agents_id,houses_id'
,
$agent_house_where
);
$agent_data_old
=
$this
->
age
nt
_house
->
getAgentHouseAll
(
'id,agents_id,houses_id'
,
$agent_house_where
);
foreach
(
$agent_data_old
[
'data'
]
as
$k
=>
$v
)
{
$agent_id_old
[]
=
$v
[
'agents_id'
];
...
...
@@ -228,15 +229,15 @@ class HouseService
}
}
$this
->
age
tn
_house
->
startTrans
();
$this
->
age
nt
_house
->
startTrans
();
try
{
//伪删除关系
if
(
!
empty
(
$update_data
))
{
$this
->
age
tn
_house
->
updateUserAll
(
$update_data
);
$this
->
age
nt
_house
->
updateUserAll
(
$update_data
);
}
if
(
!
empty
(
$insert_data
))
{
$this
->
age
tn
_house
->
insertAll
(
$insert_data
);
$this
->
age
nt
_house
->
insertAll
(
$insert_data
);
}
//处理盘方
...
...
@@ -275,11 +276,11 @@ class HouseService
}
}
}
$this
->
age
tn
_house
->
commit
();
$this
->
age
nt
_house
->
commit
();
$result
[
'status'
]
=
'successful'
;
}
catch
(
\Exception
$e
)
{
$this
->
age
tn
_house
->
rollback
();
$this
->
age
nt
_house
->
rollback
();
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
$e
->
getMessage
();
}
...
...
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