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
214eefe8
Commit
214eefe8
authored
Aug 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改盘方记录
parent
ff76a8ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Houses.php
application/index/controller/Houses.php
+11
-1
No files found.
application/index/controller/Houses.php
View file @
214eefe8
...
...
@@ -15,6 +15,7 @@ use app\model\AAgents;
use
app\model\GHouses
;
use
app\model\GHousesImgs
;
use
app\model\GHousesToAgents
;
use
app\model\GOperatingRecords
;
use
app\model\SubletModel
;
use
think\Request
;
...
...
@@ -404,7 +405,7 @@ class Houses extends Basic
$agent
->
lock
(
true
);
$where
[
'type'
]
=
2
;
$where
[
'b.id'
]
=
$this
->
params
[
'old_agents_id'
];
$agent_house
=
$agent
->
getHouseAgent
(
'a.id'
,
$where
);
$agent_house
=
$agent
->
getHouseAgent
(
'a.id
,a.houses_id
'
,
$where
);
$agent_data_arr
=
[];
...
...
@@ -417,6 +418,15 @@ class Houses extends Basic
}
$total
=
$agent
->
updateUserAll
(
$agent_data_arr
);
$records
=
new
GOperatingRecords
();
$agent
=
new
AAgents
();
foreach
(
$agent_house
as
$k
=>
$v
)
{
$agent_data
=
$agent
->
getAgentInfo
(
'name,phone'
,
$this
->
params
[
'agents_id'
]);
$remark
=
'批量修改客方为'
.
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
$records
->
record
(
$this
->
userId
,
2
,
$remark
,
$v
[
'houses_id'
],
$v
[
'id'
]);
}
$agent
->
commit
();
return
$this
->
response
(
200
,
''
,
[
'total'
=>
count
(
$total
)
]);
}
...
...
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