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
c903c19c
Commit
c903c19c
authored
Nov 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理员对经纪人状态操作记录
parent
e729c128
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
BrokerService.php
application/index/service/BrokerService.php
+8
-0
No files found.
application/index/service/BrokerService.php
View file @
c903c19c
...
@@ -19,6 +19,7 @@ use app\model\AOperatingRecords;
...
@@ -19,6 +19,7 @@ use app\model\AOperatingRecords;
use
app\model\ASite
;
use
app\model\ASite
;
use
app\model\AuthGroupSite
;
use
app\model\AuthGroupSite
;
use
app\model\GHousesToAgents
;
use
app\model\GHousesToAgents
;
use
app\model\GOperatingRecords
;
use
app\model\OMarchInModel
;
use
app\model\OMarchInModel
;
use
app\model\Users
;
use
app\model\Users
;
...
@@ -183,6 +184,11 @@ class BrokerService
...
@@ -183,6 +184,11 @@ class BrokerService
$save_data
[
'id'
]
=
$data
[
'id'
];
$save_data
[
'id'
]
=
$data
[
'id'
];
$id
=
$this
->
m_agent
->
saveAgent
(
$save_data
);
$id
=
$this
->
m_agent
->
saveAgent
(
$save_data
);
//todo 管理员对经纪人状态操作记录
$agent_status
=
[
0
=>
'正常'
,
1
=>
'长假'
,
2
=>
'离职'
,
3
=>
'转勤'
];
$records
=
new
GOperatingRecords
();
$remark
=
'修改为 '
.
$agent_status
[
$data
[
'status'
]];
$result
=
$records
->
record
(
0
,
7
,
$remark
,
''
,
$id
);
//同时修改设备绑定表
//同时修改设备绑定表
try
{
try
{
...
@@ -300,6 +306,8 @@ class BrokerService
...
@@ -300,6 +306,8 @@ class BrokerService
$this
->
transferUserHouse
(
$transfer_agent
,
$agent_old
[
0
][
'id'
],
$operation_id
);
$this
->
transferUserHouse
(
$transfer_agent
,
$agent_old
[
0
][
'id'
],
$operation_id
);
$id
=
$transfer_agent
;
$id
=
$transfer_agent
;
}
}
//todo 1
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$id
=
0
;
$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