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
322e5ac5
Commit
322e5ac5
authored
Mar 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告分页
parent
d0fe90e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Finance.php
application/index/controller/Finance.php
+2
-2
OBargainModel.php
application/model/OBargainModel.php
+2
-5
No files found.
application/index/controller/Finance.php
View file @
322e5ac5
...
@@ -50,8 +50,8 @@ class Finance extends Basic
...
@@ -50,8 +50,8 @@ class Finance extends Basic
}
}
$bargain
=
new
OBargainModel
();
$bargain
=
new
OBargainModel
();
$data
[
'data'
]
=
$bargain
->
getBargain
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'data'
]
[
'list'
]
=
$bargain
->
getBargain
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'data'
]
=
$bargain
->
getBargainTotal
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'data'
]
[
'total'
]
=
$bargain
->
getBargainTotal
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
}
}
$result
=
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
$result
=
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
else
{
}
else
{
...
...
application/model/OBargainModel.php
View file @
322e5ac5
...
@@ -194,10 +194,7 @@ class OBargainModel extends Model
...
@@ -194,10 +194,7 @@ class OBargainModel extends Model
* 成交报告总数
* 成交报告总数
*
*
* @param string $params
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
* @return int|string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
getBargainTotal
(
$params
=
''
)
{
public
function
getBargainTotal
(
$params
=
''
)
{
return
$this
->
alias
(
'a'
)
return
$this
->
alias
(
'a'
)
...
@@ -205,7 +202,7 @@ class OBargainModel extends Model
...
@@ -205,7 +202,7 @@ class OBargainModel extends Model
->
join
(
'o_order c'
,
'a.order_id = c.id'
,
'left'
)
->
join
(
'o_order c'
,
'a.order_id = c.id'
,
'left'
)
->
join
(
'g_houses d'
,
'c.house_id = d.id'
,
'left'
)
->
join
(
'g_houses d'
,
'c.house_id = d.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
selec
t
();
->
coun
t
();
}
}
/**
/**
...
...
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