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
8778836e
Commit
8778836e
authored
Apr 19, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整 搜索成交报告id
parent
9cc6a1e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
4 deletions
+49
-4
Bargain.php
application/api_broker/controller/Bargain.php
+44
-0
route.php
application/route.php
+5
-4
No files found.
application/api_broker/controller/Bargain.php
View file @
8778836e
...
...
@@ -107,4 +107,47 @@ class Bargain extends Basic
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
/**
* 调整 搜索成交报告id
* @return \think\Response
*/
public
function
bargainListSearchBargainId
()
{
$params
=
$this
->
params
;
/* $params = array(
"submit_agent_id" => 93,
"status" => 1,//0全部 1未结单 2已结单 3 撤销审核 4已撤销
"is_my_correlation" => 1, //是否与我相关 0全部 1与我相关
"keyword" => "17717536291",
"page_no" => 1,
"page_size" => 10,
"bargain_id" =>10
);*/
$checkResult
=
$this
->
validate
(
$params
,
"BargainValidate.bargainList"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"10111"
,
$checkResult
);
}
$pageNo
=
empty
(
$params
[
"page_no"
])
?
1
:
$params
[
"page_no"
];
$pageSize
=
empty
(
$params
[
"page_size"
])
?
15
:
$params
[
"page_size"
];
$submit_agent_id
=
$params
[
"submit_agent_id"
];
$status
=
$params
[
"status"
];
$is_my_correlation
=
$params
[
"is_my_correlation"
];
$keyword
=
empty
(
$params
[
"keyword"
])
?
""
:
$params
[
"keyword"
];
$bargain_id
=
empty
(
$params
[
'bargain_id'
])
?
''
:
$params
[
'bargain_id'
];
/*业务员不允许点击查看全部成交报告 start*/
$agent_field
=
"a.level"
;
$agent_res
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$agent_field
,
[
"agent_id"
=>
$submit_agent_id
]);
if
((
$agent_res
[
0
][
'level'
]
==
10
)
&&
(
$is_my_correlation
==
0
)){
return
$this
->
response
(
"101"
,
"暂无权限!"
);
}
/*业务员不允许点击查看全部成交报告 end*/
$result
=
$this
->
service_
->
getBargainList
(
$pageNo
,
$pageSize
,
$submit_agent_id
,
$status
,
$is_my_correlation
,
$keyword
,
$bargain_id
);
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
}
\ No newline at end of file
application/route.php
View file @
8778836e
...
...
@@ -812,10 +812,11 @@ Route::group('broker', [
'getCollectHouseList'
=>
[
'api_broker/CollectHouse/getCollectHouseList'
,
[
'method'
=>
'POST|GET'
]],
//查询收藏数据
'saveSiteCity'
=>
[
'api_broker/Location/saveSiteCity'
,
[
'method'
=>
'POST|GET'
]],
//保存默认城市选择
'bargainMain'
=>
[
'api_broker/Bargain/bargainList'
,
[
'method'
=>
'POST|GET'
]],
'bargainMainV2'
=>
[
'api_broker/Bargain/bargainListV2'
,
[
'method'
=>
'POST|GET'
]],
'addUserCallAgent'
=>
[
'api_broker/CallAgent/addUserCallAgent'
,
[
'method'
=>
'POST|GET'
]],
//客户来电记录
'saveSiteCity'
=>
[
'api_broker/Location/saveSiteCity'
,
[
'method'
=>
'POST|GET'
]
],
//保存默认城市选择
'bargainMain'
=>
[
'api_broker/Bargain/bargainList'
,
[
'method'
=>
'POST|GET'
]
],
'bargainMainV2'
=>
[
'api_broker/Bargain/bargainListV2'
,
[
'method'
=>
'POST|GET'
]
],
'bargainListSearchBargainId'
=>
[
'api_broker/Bargain/bargainListSearchBargainId'
,
[
'method'
=>
'POST|GET'
]
],
'addUserCallAgent'
=>
[
'api_broker/CallAgent/addUserCallAgent'
,
[
'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