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
a6b694b8
Commit
a6b694b8
authored
Jun 25, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约看铺总数
parent
ba4c35c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
SubletModel.php
application/model/SubletModel.php
+7
-2
No files found.
application/model/SubletModel.php
View file @
a6b694b8
...
@@ -64,14 +64,19 @@ class SubletModel extends BaseModel
...
@@ -64,14 +64,19 @@ class SubletModel extends BaseModel
*/
*/
public
function
getSubletTotal
(
$params
)
public
function
getSubletTotal
(
$params
)
{
{
$result
=
$this
->
where
(
$params
)
->
count
();
return
$this
->
alias
(
"a"
)
return
$result
;
->
join
(
"g_houses b"
,
"a.house_id=b.id"
,
"left"
)
->
where
(
$params
)
->
count
();
}
}
/**
/**
* 根据用户id和楼盘id获取用户是否转租
* 根据用户id和楼盘id获取用户是否转租
*
* @param $params
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getSubletByHoseId
(
$params
)
public
function
getSubletByHoseId
(
$params
)
{
{
...
...
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