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
f1c9571f
Commit
f1c9571f
authored
Jul 20, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转勤
parent
1c62df0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
BrokerService.php
application/index/service/BrokerService.php
+8
-7
No files found.
application/index/service/BrokerService.php
View file @
f1c9571f
...
@@ -340,11 +340,12 @@ class BrokerService
...
@@ -340,11 +340,12 @@ class BrokerService
{
{
try
{
try
{
$new_where
[
'phone'
]
=
$data
[
'phone'
];
$new_where
[
'phone'
]
=
$data
[
'phone'
];
$new_where
[
'status'
]
=
3
;
//
$new_where['status'] = 3;
$new_where
[
'site_id'
]
=
$data
[
'site_id'
];
$new_where
[
'site_id'
]
=
$data
[
'site_id'
];
$transfer_agent
=
$this
->
m_agent
->
getAgentsByWhere
(
$new_where
,
'id'
);
// $transfer_agent = $this->m_agent->getAgentsByWhere($new_where, 'id');
$transfer_agent
=
$this
->
m_agent
->
getAgentInfo
(
'id,status'
,
''
,
$new_where
);
if
(
empty
(
$transfer_agent
))
{
if
(
empty
(
$transfer_agent
[
'id'
]
))
{
if
(
$is_new_id
)
{
if
(
$is_new_id
)
{
$this
->
m_agent
->
saveAgent
([
'id'
=>
$agent_old
[
'id'
],
'status'
=>
3
]);
//将原来的设置为转勤状态
$this
->
m_agent
->
saveAgent
([
'id'
=>
$agent_old
[
'id'
],
'status'
=>
3
]);
//将原来的设置为转勤状态
...
@@ -365,10 +366,10 @@ class BrokerService
...
@@ -365,10 +366,10 @@ class BrokerService
}
}
}
else
{
}
else
{
$this
->
m_agent
->
saveAgent
([
'id'
=>
$agent_old
[
'id'
],
'status'
=>
3
]);
//将原来的设置为转勤状态
$this
->
m_agent
->
saveAgent
([
'id'
=>
$agent_old
[
'id'
],
'status'
=>
3
]);
//将原来的设置为转勤状态
$this
->
m_agent
->
saveAgent
([
'id'
=>
$transfer_agent
,
'status'
=>
0
,
'img'
=>
$agent_old
[
'img'
]]);
//将原来转勤状态处理为正常
$this
->
m_agent
->
saveAgent
([
'id'
=>
$transfer_agent
[
'id'
]
,
'status'
=>
0
,
'img'
=>
$agent_old
[
'img'
]]);
//将原来转勤状态处理为正常
$this
->
transferUserHouse
(
$transfer_agent
,
$agent_old
[
'id'
],
$operation_id
,
$data
);
$this
->
transferUserHouse
(
$transfer_agent
[
'id'
]
,
$agent_old
[
'id'
],
$operation_id
,
$data
);
$this
->
transferEvaluate
(
$transfer_agent
,
$agent_old
[
'id'
]);
$this
->
transferEvaluate
(
$transfer_agent
[
'id'
]
,
$agent_old
[
'id'
]);
$id
=
$transfer_agent
;
$id
=
$transfer_agent
[
'id'
]
;
}
}
//todo 管理员对经纪人状态操作记录
//todo 管理员对经纪人状态操作记录
...
...
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