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
18d78ac3
Commit
18d78ac3
authored
Mar 09, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test数据库端口修改,角色列表正序排列
parent
7e0ac9cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
3 deletions
+48
-3
database.php
application/database.php
+1
-1
Agent.php
application/index/controller/Agent.php
+1
-1
Auth.php
application/index/controller/Auth.php
+1
-1
Agents.php
application/model/Agents.php
+45
-0
No files found.
application/database.php
View file @
18d78ac3
...
...
@@ -24,7 +24,7 @@ return [
'password'
=>
'Fujuhaofang123022818root'
,
// 'password' => '123456',
// 端口
'hostport'
=>
'330
7
'
,
'hostport'
=>
'330
8
'
,
// 'hostport' => '',
// 连接dsn
'dsn'
=>
''
,
...
...
application/index/controller/Agent.php
View file @
18d78ac3
...
...
@@ -55,7 +55,7 @@ class Agent extends Basic
* @throws \think\exception\DbException
*/
public
function
AgentList
(){
$table
=
new
Agents
();
$table
=
new
A
A
gents
();
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
//获取当前模块可操作按钮start********************************
...
...
application/index/controller/Auth.php
View file @
18d78ac3
...
...
@@ -68,7 +68,7 @@ class Auth extends Basic
$data
[
'search'
]
=
$search
;
}
$data
[
'list'
]
=
$auth_group
->
getList
(
$pageNo
,
$pageSize
,
'id
de
sc'
,
'*'
,
$where
);
$data
[
'list'
]
=
$auth_group
->
getList
(
$pageNo
,
$pageSize
,
'id
a
sc'
,
'*'
,
$where
);
$data
[
'total'
]
=
$auth_group
->
getTotal
(
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
}
...
...
application/model/Agents.php
View file @
18d78ac3
...
...
@@ -49,6 +49,51 @@ class Agents extends Model
return
$data
;
}
/**
* 记录总数
*
* @param $params
* @return int|string
*/
public
function
getTotal2
(
$join
,
$params
)
{
return
$this
->
alias
(
'a'
)
->
join
(
$join
)
->
where
(
$params
)
->
count
();
}
/**分页列表
* @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
getListJoin
(
$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
();
//echo $this->getLastSql();
return
$data
;
}
/**
* 经纪人详情
* @param $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