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
4c91fb19
Commit
4c91fb19
authored
May 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台查询1盘方,2客方,3反签,4独家,5合作方
parent
da4cdf3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
Finance.php
application/index/controller/Finance.php
+31
-1
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
4c91fb19
...
...
@@ -180,7 +180,7 @@ class Finance extends Basic
$data
[
'msg'
]
=
'Id is null.'
;
}
else
{
$bargain
=
new
OBargainModel
();
$fields
=
'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.is_open,'
;
$fields
=
'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.is_open,
a.order_id,
'
;
$fields
.=
'a.trade_type,a.house_number,a.commission,a.content,d.shop_type'
;
$where
[
'a.id'
]
=
$this
->
params
[
'id'
];
$data
[
'data'
]
=
$bargain
->
getBargainInfo
(
$fields
,
$where
);
...
...
@@ -612,4 +612,34 @@ class Finance extends Basic
$data
=
$m_fee
->
addFee
(
$this
->
params
[
'tallage'
],
$this
->
params
[
'bargain_id'
],
1
,
$this
->
userId
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
/**
* 成交报告经纪人搜索
*
* @return \think\Response
*/
public
function
searchBargainAgents
()
{
$service_
=
new
OrderLogService
();
$params
=
$this
->
params
;
/* $params = array(
"type" => 1,//1盘方,2客方,3反签,4独家,5合作方
"order_id" => 36,
);*/
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
try
{
$list
=
$service_
->
searchBargainAgents
(
$params
[
"type"
],
$params
[
"order_id"
]);
if
(
count
(
$list
)
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$list
);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
}
catch
(
Exception
$e
)
{
return
$this
->
response
(
"101"
,
"request error,msg:"
.
$e
);
}
}
}
application/route.php
View file @
4c91fb19
...
...
@@ -220,6 +220,7 @@ Route::group('index', [
'addRealIncome'
=>
[
'index/Finance/addRealIncome'
,
[
'method'
=>
'POST'
]
],
//增加和编辑实收佣金
'getTallAge'
=>
[
'index/Finance/getTallAge'
,
[
'method'
=>
'GET'
]
],
//开票税费查询
'addTallAge'
=>
[
'index/Finance/addTallAge'
,
[
'method'
=>
'POST'
]
],
//新增和编辑开票税费
'searchBargainAgents'
=>
[
'index/Finance/searchBargainAgents'
,
[
'method'
=>
'GET'
]
],
//新增和编辑开票税费
'test123'
=>
[
'index/WatchShop/test123'
,
[
'method'
=>
'get|post'
]
],
//时间轴
'agent_zhuan_aagent'
=>
[
'index/agent/agent_zhuan_aagent'
,
[
'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