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
055a66a6
Commit
055a66a6
authored
Nov 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录操作日志
parent
50b56d8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
BrokerService.php
application/index/service/BrokerService.php
+18
-5
No files found.
application/index/service/BrokerService.php
View file @
055a66a6
...
@@ -185,10 +185,7 @@ class BrokerService
...
@@ -185,10 +185,7 @@ class BrokerService
$id
=
$this
->
m_agent
->
saveAgent
(
$save_data
);
$id
=
$this
->
m_agent
->
saveAgent
(
$save_data
);
//todo 管理员对经纪人状态操作记录
//todo 管理员对经纪人状态操作记录
$agent_status
=
[
0
=>
'正常'
,
1
=>
'长假'
,
2
=>
'离职'
,
3
=>
'转勤'
];
$this
->
rootDOLog
(
$id
,
$data
[
'status'
]);
$records
=
new
GOperatingRecords
();
$remark
=
'修改为 '
.
$agent_status
[
$data
[
'status'
]];
$result
=
$records
->
record
(
0
,
7
,
$remark
,
''
,
$id
);
//同时修改设备绑定表
//同时修改设备绑定表
try
{
try
{
...
@@ -306,7 +303,9 @@ class BrokerService
...
@@ -306,7 +303,9 @@ 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
//todo 管理员对经纪人状态操作记录
$this
->
rootDOLog
(
$id
,
3
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$id
=
0
;
$id
=
0
;
...
@@ -364,4 +363,17 @@ class BrokerService
...
@@ -364,4 +363,17 @@ class BrokerService
$record_data
[
'agent_id'
]
=
$id
;
$record_data
[
'agent_id'
]
=
$id
;
$m_records
->
insertData
(
$record_data
);
$m_records
->
insertData
(
$record_data
);
}
}
/**
* 记录操作日志
* @param $id
* @param $status
*/
private
function
rootDOLog
(
$id
,
$status
)
{
$agent_status
=
[
0
=>
'正常'
,
1
=>
'长假'
,
2
=>
'离职'
,
3
=>
'转勤'
];
$records
=
new
GOperatingRecords
();
$remark
=
'修改为 '
.
$agent_status
[
$status
];
$result
=
$records
->
record
(
0
,
7
,
$remark
,
''
,
$id
);
}
}
}
\ No newline at end of file
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