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
d2822e56
Commit
d2822e56
authored
Mar 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询经纪人修改
parent
7dfad02c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
33 deletions
+1
-33
Broker.php
application/api_broker/controller/Broker.php
+1
-2
AAgents.php
application/model/AAgents.php
+0
-31
No files found.
application/api_broker/controller/Broker.php
View file @
d2822e56
...
...
@@ -104,9 +104,8 @@ class Broker extends Basic
}
if
(
$where
)
{
$agent
=
new
AAgents
();
$field
=
'id,name,phone'
;
$data
[
'data'
]
=
$
agent
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
$data
[
'data'
]
=
$
this
->
a_agents
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$where
);
}
else
{
$data
[
'msg'
]
=
'没有经纪人信息'
;
}
...
...
application/model/AAgents.php
View file @
d2822e56
...
...
@@ -293,37 +293,6 @@ class AAgents extends BaseModel
return
$result
;
}
public
function
saveList
()
{
}
/**
* 分页列表
* @param int $p
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $join
* @param string $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getList
(
$p
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$join
=
''
,
$where
=
''
)
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
$join
)
->
where
(
$where
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$p
)
->
select
();
return
$data
;
}
/**
* 批量获取经纪人
*
...
...
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