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
0751e26a
Commit
0751e26a
authored
May 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加实收佣金
parent
fb8dff29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
Finance.php
application/index/controller/Finance.php
+15
-0
OPartialCommission.php
application/model/OPartialCommission.php
+20
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
0751e26a
...
@@ -586,4 +586,19 @@ class Finance extends Basic
...
@@ -586,4 +586,19 @@ class Finance extends Basic
$export
->
exportTable
(
'分佣提成明细'
,
$data
,
8
);
$export
->
exportTable
(
'分佣提成明细'
,
$data
,
8
);
return
;
return
;
}
}
/**
* 增加实收佣金
*
* @return \think\Response
*/
public
function
addRealIncome
()
{
if
(
empty
(
$this
->
params
[
'bargain_id'
]))
{
return
$this
->
response
(
101
,
'新增实收参数错误'
);
}
$m_partial
=
new
OPartialCommission
();
$data
=
$m_partial
->
addCommission
(
$this
->
params
,
$this
->
userId
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
}
application/model/OPartialCommission.php
View file @
0751e26a
...
@@ -111,4 +111,23 @@ class OPartialCommission extends BaseModel
...
@@ -111,4 +111,23 @@ class OPartialCommission extends BaseModel
->
where
(
$where
)
->
where
(
$where
)
->
count
();
->
count
();
}
}
/**
* 增加实收佣金
*
* @param $data
* @param $agent_id
* @return int|string
*/
public
function
addCommission
(
$data
,
$agent_id
)
{
$insert_data
[
'bargain_id'
]
=
$data
[
'bargain_id'
];
$insert_data
[
'practical_fee'
]
=
$data
[
'practical_fee'
];
$insert_data
[
'cash'
]
=
$data
[
'cash'
];
$insert_data
[
'service_charge'
]
=
$data
[
'service_charge'
];
$insert_data
[
'tallage'
]
=
$data
[
'tallage'
];
$insert_data
[
'charity_fund'
]
=
$data
[
'charity_fund'
];
$insert_data
[
'real_fee'
]
=
$data
[
'real_fee'
];
$insert_data
[
'agent_id'
]
=
$agent_id
;
return
$this
->
insert
(
$insert_data
);
}
}
}
\ No newline at end of file
application/route.php
View file @
0751e26a
...
@@ -217,6 +217,7 @@ Route::group('index', [
...
@@ -217,6 +217,7 @@ Route::group('index', [
'phone_up_list'
=>
[
'index/remark/phone_up_list'
,
[
'method'
=>
'get|post'
]
],
//电话跟进列表
'phone_up_list'
=>
[
'index/remark/phone_up_list'
,
[
'method'
=>
'get|post'
]
],
//电话跟进列表
'selectReportAll'
=>
[
'index/Finance/selectReportAll'
,
[
'method'
=>
'get|post'
]
],
//时间轴
'selectReportAll'
=>
[
'index/Finance/selectReportAll'
,
[
'method'
=>
'get|post'
]
],
//时间轴
'partialCommissionList'
=>
[
'index/Finance/partialCommissionList'
,
[
'method'
=>
'get'
]
],
//分佣提成明细表
'partialCommissionList'
=>
[
'index/Finance/partialCommissionList'
,
[
'method'
=>
'get'
]
],
//分佣提成明细表
'addRealIncome'
=>
[
'index/Finance/addRealIncome'
,
[
'method'
=>
'POST'
]
],
//增加实收佣金
'test123'
=>
[
'index/WatchShop/test123'
,
[
'method'
=>
'get|post'
]
],
//时间轴
'test123'
=>
[
'index/WatchShop/test123'
,
[
'method'
=>
'get|post'
]
],
//时间轴
'agent_zhuan_aagent'
=>
[
'index/agent/agent_zhuan_aagent'
,
[
'method'
=>
'post|get'
]
],
//经纪人
'agent_zhuan_aagent'
=>
[
'index/agent/agent_zhuan_aagent'
,
[
'method'
=>
'post|get'
]
],
//经纪人
'shop_a_store'
=>
[
'index/agent/shop_a_store'
,
[
'method'
=>
'post|get'
]
],
//经纪人
'shop_a_store'
=>
[
'index/agent/shop_a_store'
,
[
'method'
=>
'post|get'
]
],
//经纪人
...
...
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