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
8e377ccb
Commit
8e377ccb
authored
Jul 09, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改客方
parent
548e8e53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
Member.php
application/index/controller/Member.php
+1
-5
No files found.
application/index/controller/Member.php
View file @
8e377ccb
...
@@ -560,16 +560,12 @@ class Member extends Basic{
...
@@ -560,16 +560,12 @@ class Member extends Basic{
$m_user_agent
->
startTrans
();
$m_user_agent
->
startTrans
();
$m_user_agent
->
lock
(
true
);
$m_user_agent
->
lock
(
true
);
// $user_data = $user->getUserByWhere(['agent_id' => $this->params['old_agents_id']], 'id');
// $user_data = $user->getUserByWhere(['agent_id' => $this->params['old_agents_id']], 'id');
$user_data
=
$m_user_agent
->
getAllData
([
'agent_id'
=>
$this
->
params
[
'old_agents_id'
]],
'id'
);
$user_data
=
$m_user_agent
->
getAllData
(
'id'
,
[
'agent_id'
=>
$this
->
params
[
'old_agents_id'
]]);
$user_data_arr
=
[];
$total
=
0
;
$total
=
0
;
$records
=
new
GOperatingRecords
();
$records
=
new
GOperatingRecords
();
$agent
=
new
AAgents
();
$agent
=
new
AAgents
();
$redis_service
=
new
RedisCacheService
();
$redis_service
=
new
RedisCacheService
();
foreach
(
$user_data
as
$k
=>
$v
)
{
foreach
(
$user_data
as
$k
=>
$v
)
{
$user_data_arr
[
$k
][
'id'
]
=
$v
[
'id'
];
$user_data_arr
[
$k
][
'agent_id'
]
=
$this
->
params
[
'agents_id'
];
$m_user_agent
->
updateUserAgent
([
'id'
=>
$v
[
'id'
]],[
'agent_id'
=>
$this
->
params
[
'agents_id'
]]);
$m_user_agent
->
updateUserAgent
([
'id'
=>
$v
[
'id'
]],[
'agent_id'
=>
$this
->
params
[
'agents_id'
]]);
$agent_data
=
$agent
->
getAgentInfo
(
'name,phone'
,
$this
->
params
[
'agents_id'
]);
$agent_data
=
$agent
->
getAgentInfo
(
'name,phone'
,
$this
->
params
[
'agents_id'
]);
...
...
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