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
bc66e15e
Commit
bc66e15e
authored
Nov 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑分佣方条件修改
parent
0cb98a0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Finance.php
application/index/controller/Finance.php
+3
-4
No files found.
application/index/controller/Finance.php
View file @
bc66e15e
...
...
@@ -1800,9 +1800,8 @@ class Finance extends Basic
if
(
empty
(
$this
->
params
[
'bargain_id'
]))
{
return
$this
->
response
(
101
,
'成交报告id为空'
);
}
$field
=
'a.id,a.scale,a.agent_id,a.role,a.scale_fee,b.scale as new_scale,b.should_commission,a.create_time'
;
if
(
$this
->
request
->
isGet
())
{
$field
=
'a.id,a.scale,a.agent_id,a.role,a.scale_fee,b.scale as new_scale,b.should_commission'
;
$data
=
$this
->
m_bargain
->
getBargainPartialDetail
(
$field
,
[
'id'
=>
$this
->
params
[
'bargain_id'
]
]);
return
$this
->
response
(
200
,
''
,
$data
);
}
...
...
@@ -1816,7 +1815,7 @@ class Finance extends Basic
}
//检查成交报告是否存在
$data_arr
=
$this
->
m_bargain
->
getBargainPartialDetail
(
'a.id,a.agent_id,a.create_time'
,
[
'id'
=>
$this
->
params
[
'bargain_id'
]
]);
$data_arr
=
$this
->
m_bargain
->
getBargainPartialDetail
(
$field
,
[
'id'
=>
$this
->
params
[
'bargain_id'
]
]);
if
(
empty
(
$data_arr
[
'id'
]))
{
return
$this
->
response
(
101
,
'没有成交报告信息'
);
...
...
@@ -1923,7 +1922,7 @@ class Finance extends Basic
if
(
!
empty
(
$where
))
{
//获取被修改人信息
$m_agent
=
new
AAgents
();
$agent_data
=
$m_agent
->
agentBargainDetail
(
'a.id,a.store_id,a.district_id,b.create_time'
,
[
'b.id'
=>
$bargain_id
]
);
$agent_data
=
$m_agent
->
agentBargainDetail
(
'a.id,a.store_id,a.district_id,b.create_time'
,
$where
);
$this
->
updatePerformanceData
(
$agent_data
[
'id'
],
$agent_data
[
'create_time'
],
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
]);
}
...
...
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