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
26f2bee3
Commit
26f2bee3
authored
Mar 24, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告搜索
parent
7181ad3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
OrderLog.php
application/api_broker/controller/OrderLog.php
+5
-2
OrderLogService.php
application/api_broker/service/OrderLogService.php
+0
-1
OBargainModel.php
application/model/OBargainModel.php
+19
-1
No files found.
application/api_broker/controller/OrderLog.php
View file @
26f2bee3
...
...
@@ -657,14 +657,17 @@ class OrderLog extends Basic
/* $params = array(
"submit_agent_id" => 1,
"keyword" => "17717536291",
"type" => 1,//1商铺id 2商铺地址 3成交报告id 4带看id 5客户id
"page_no" => 1,
"page_size" => 15
);*/
if
(
!
isset
(
$params
[
"submit_agent_id"
])
||
!
isset
(
$params
[
"keyword"
]))
{
if
(
!
isset
(
$params
[
"submit_agent_id"
])
||
!
isset
(
$params
[
"keyword"
])
||
!
isset
(
$params
[
"type"
])
)
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
if
((
$params
[
"type"
]
==
1
||
$params
[
"type"
]
==
3
||
$params
[
"type"
]
==
4
||
$params
[
"type"
]
==
7
)
&&
!
preg_match
(
"/^\d*$/"
,
$params
[
"search_keyword"
])){
return
$this
->
response
(
"101"
,
"输入的搜索内容错误"
);
}
try
{
$result
=
$this
->
service_
->
getBargainList
(
$params
);
if
(
count
(
$result
)
>
0
)
{
...
...
application/api_broker/service/OrderLogService.php
View file @
26f2bee3
...
...
@@ -1369,7 +1369,6 @@ class OrderLogService
$ids
=
$aService
->
getAgentsByAgentId
(
$agent_id
);
$params
[
"ids"
]
=
$ids
;
$bargainModel
=
new
OBargainModel
();
$filed
=
"a.id,a.father_id,a.house_number,a.commission,a.agent_id,a.create_time,b.user_phone,b.user_name,b.user_id,c.id as order_id,
d.id as house_id,d.internal_title,d.internal_address"
;
...
...
application/model/OBargainModel.php
View file @
26f2bee3
...
...
@@ -257,10 +257,28 @@ class OBargainModel extends Model
$where_
[
"a.father_id"
]
=
$params
[
"father_id"
];
}
if
(
isset
(
$params
[
"keyword"
]))
{
if
(
!
isset
(
$params
[
"type"
])
&&
isset
(
$params
[
"keyword"
]))
{
$where_
[
"b.user_phone|b.user_name|d.internal_address"
]
=
array
(
"like"
,
"%"
.
$params
[
"keyword"
]
.
"%"
);
}
switch
((
int
)
$params
[
"type"
]){
//1商铺id 2商铺地址 3成交报告id 4带看id 5客户id
case
1
:
$where
[
"d.id"
]
=
$params
[
"keyword"
];
break
;
case
2
:
$where
[
"d.internal_address"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'keyword'
])
.
"%"
);
break
;
case
3
:
$where
[
"a.id"
]
=
$params
[
"keyword"
];
break
;
case
4
:
$where
[
"c.id"
]
=
$params
[
"keyword"
];
break
;
case
5
:
$where
[
"b.user_id"
]
=
$params
[
"keyword"
];
break
;
}
if
(
isset
(
$params
[
"id"
]))
{
$where_
[
"a.id"
]
=
$params
[
"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