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
f97e516b
Commit
f97e516b
authored
Nov 02, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f6bae3c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
BrokerService.php
application/index/service/BrokerService.php
+5
-4
No files found.
application/index/service/BrokerService.php
View file @
f97e516b
...
@@ -133,10 +133,6 @@ class BrokerService
...
@@ -133,10 +133,6 @@ class BrokerService
$this
->
m_agent
->
saveAgent
([
'id'
=>
$agent_old
[
0
][
'id'
],
'status'
=>
3
]);
$this
->
m_agent
->
saveAgent
([
'id'
=>
$agent_old
[
0
][
'id'
],
'status'
=>
3
]);
}
}
}
else
{
}
else
{
$change_old_id
=
$agent_old
[
0
][
'id'
];
//将原来的id作为新的
$data
[
'id'
]
=
$agent_old
[
0
][
'id'
];
$id
=
$this
->
m_agent
->
saveAgent
(
$data
);
//新增一条转勤状态
//新增一条转勤状态
$new_agent
[
'name'
]
=
$agent_old
[
0
][
'name'
];
$new_agent
[
'name'
]
=
$agent_old
[
0
][
'name'
];
$new_agent
[
'phone'
]
=
$agent_old
[
0
][
'phone'
];
$new_agent
[
'phone'
]
=
$agent_old
[
0
][
'phone'
];
...
@@ -153,6 +149,11 @@ class BrokerService
...
@@ -153,6 +149,11 @@ class BrokerService
$new_agent
[
'auth_group_id'
]
=
$agent_old
[
0
][
'auth_group_id'
];
$new_agent
[
'auth_group_id'
]
=
$agent_old
[
0
][
'auth_group_id'
];
$new_agent
[
'level'
]
=
$agent_old
[
0
][
'level'
];
$new_agent
[
'level'
]
=
$agent_old
[
0
][
'level'
];
$this
->
m_agent
->
saveAgent
(
$new_agent
);
$this
->
m_agent
->
saveAgent
(
$new_agent
);
$change_old_id
=
$agent_old
[
0
][
'id'
];
//将原来的id作为新的
$data
[
'id'
]
=
$agent_old
[
0
][
'id'
];
$id
=
$this
->
m_agent
->
saveAgent
(
$data
);
}
}
if
(
$id
>
0
)
{
if
(
$id
>
0
)
{
...
...
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