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
5c097a4a
Commit
5c097a4a
authored
Oct 18, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人转勤2
parent
2b304c21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
BrokerService.php
application/index/service/BrokerService.php
+7
-4
AOperatingRecords.php
application/model/AOperatingRecords.php
+2
-1
No files found.
application/index/service/BrokerService.php
View file @
5c097a4a
...
...
@@ -35,6 +35,9 @@ class BrokerService
* @param array $data
* @param int $operation_id
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
saveAgentData
(
array
$data
,
int
$operation_id
)
{
...
...
@@ -67,14 +70,14 @@ class BrokerService
$agent_old
=
$this
->
m_agent
->
getAgentById
(
'id'
,
[
'phone'
=>
$data
[
'phone'
],
'status'
=>
0
]);
if
(
empty
(
$data
[
'confirm_old'
]))
{
if
(
!
empty
(
$agent_old
))
{
if
(
!
empty
(
$agent_old
[
0
][
'id'
]
))
{
$result
[
'msg'
]
=
'转勤'
;
return
$result
;
}
}
else
{
$num
=
$this
->
m_agent
->
updateData
(
$agent_old
[
'id'
],
[
'status'
=>
3
]);
//更新原始账号状态
$num
=
$this
->
m_agent
->
updateData
(
$agent_old
[
0
][
'id'
],
[
'status'
=>
3
]);
//更新原始账号状态
if
(
$num
>
0
)
{
$change_old_id
=
$agent_old
[
'id'
];
$change_old_id
=
$agent_old
[
0
][
'id'
];
}
}
...
...
@@ -136,7 +139,7 @@ class BrokerService
$record_data
[
'type'
]
=
0
;
$record_data
[
'operation_id'
]
=
$operation_id
;
$record_data
[
'agent_id'
]
=
$id
;
$m_records
->
insertData
(
$data
);
$m_records
->
insertData
(
$
record_
data
);
if
(
!
empty
(
$update_user
))
{
$m_user
->
updateUserAll
(
$update_user
);
...
...
application/model/AOperatingRecords.php
View file @
5c097a4a
...
...
@@ -33,6 +33,6 @@ class AOperatingRecords extends BaseModel
$save_data
[
'user_id'
]
=
$data
[
'user_id'
];
$save_data
[
'type'
]
=
$data
[
'type'
];
$save_data
[
'operation_id'
]
=
$data
[
'operation_id'
];
return
$this
->
inset
(
$save_data
);
return
$this
->
inse
r
t
(
$save_data
);
}
}
\ 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