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
30143f6a
Commit
30143f6a
authored
Mar 09, 2018
by
zfc
Committed by
zw
Mar 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test数据库端口修改,角色列表正序排列
parent
2062f09d
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 @
30143f6a
...
@@ -24,7 +24,7 @@ return [
...
@@ -24,7 +24,7 @@ return [
'password'
=>
'Fujuhaofang123022818root'
,
'password'
=>
'Fujuhaofang123022818root'
,
// 'password' => '123456',
// 'password' => '123456',
// 端口
// 端口
'hostport'
=>
'330
7
'
,
'hostport'
=>
'330
8
'
,
// 'hostport' => '',
// 'hostport' => '',
// 连接dsn
// 连接dsn
'dsn'
=>
''
,
'dsn'
=>
''
,
...
...
application/index/controller/Agent.php
View file @
30143f6a
...
@@ -55,7 +55,7 @@ class Agent extends Basic
...
@@ -55,7 +55,7 @@ class Agent extends Basic
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
AgentList
(){
public
function
AgentList
(){
$table
=
new
Agents
();
$table
=
new
A
A
gents
();
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
//获取当前模块可操作按钮start********************************
//获取当前模块可操作按钮start********************************
...
...
application/index/controller/Auth.php
View file @
30143f6a
...
@@ -68,7 +68,7 @@ class Auth extends Basic
...
@@ -68,7 +68,7 @@ class Auth extends Basic
$data
[
'search'
]
=
$search
;
$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
);
$data
[
'total'
]
=
$auth_group
->
getTotal
(
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
return
$this
->
response
(
200
,
''
,
$data
);
}
}
...
...
application/model/Agents.php
View file @
30143f6a
...
@@ -49,6 +49,51 @@ class Agents extends Model
...
@@ -49,6 +49,51 @@ class Agents extends Model
return
$data
;
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
* @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