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
cf4fc3e3
Commit
cf4fc3e3
authored
Aug 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步转银行卡和身份证信息
parent
85ab3d97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
BrokerService.php
application/index/service/BrokerService.php
+10
-2
No files found.
application/index/service/BrokerService.php
View file @
cf4fc3e3
...
...
@@ -378,6 +378,7 @@ class BrokerService
$id
=
$transfer_agent
[
'id'
];
}
$this
->
editBank
([
'agent_id'
=>
$id
],
$agent_old
[
'id'
],
1
);
//同步转银行卡和身份证信息
//todo 管理员对经纪人状态操作记录
$this
->
rootDOLog
(
$id
,
3
);
...
...
@@ -561,16 +562,23 @@ class BrokerService
* 工资卡
*
* @param $data
* @param $agent_id
* @param $agent_id 原始数据
* @param $is_transfer 0正常 1转勤
* @return $this|int|string
*/
public
function
editBank
(
$data
,
$agent_id
)
public
function
editBank
(
$data
,
$agent_id
,
$is_transfer
=
0
)
{
$result
[
'status'
]
=
'fail'
;
$validate
=
new
AAgentBankValidate
();
$m_bank
=
new
AAgentsBank
();
if
(
$is_transfer
)
{
$bank_id
=
$m_bank
->
getFieldOneValue
(
'id'
,
[
'agent_id'
=>
$agent_id
,
'is_del'
=>
0
]);
}
else
{
$bank_id
=
$m_bank
->
getFieldOneValue
(
'id'
,
[
'agent_id'
=>
$agent_id
,
'is_del'
=>
0
]);
$data
[
'agent_id'
]
=
$agent_id
;
}
if
(
$bank_id
)
{
$check
=
$validate
->
scene
(
'edit'
)
->
check
(
$data
);
if
(
!
$check
)
{
...
...
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