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
223ed239
Commit
223ed239
authored
Jul 25, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
01f97435
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
FStoreCostExt.php
application/model/FStoreCostExt.php
+7
-2
No files found.
application/model/FStoreCostExt.php
View file @
223ed239
...
...
@@ -34,9 +34,12 @@ class FStoreCostExt extends BaseModel
* 查询数据
* @param $field
* @param $params
* @param $pageNo
* @param $pageSize
* @param string $order
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getStoreCostExt
(
$field
,
$params
,
$pageNo
,
$pageSize
)
public
function
getStoreCostExt
(
$field
,
$params
,
$pageNo
,
$pageSize
,
$order
=
'a.id desc'
)
{
$params
[
"b.status"
]
=
0
;
$result
=
$this
->
db_
...
...
@@ -47,6 +50,7 @@ class FStoreCostExt extends BaseModel
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
order
(
$order
)
->
select
();
// echo $this->getLastSql();
return
$result
;
...
...
@@ -66,7 +70,7 @@ class FStoreCostExt extends BaseModel
return
$result
;
}
public
function
getStoreCostExtExcel
(
$field
,
$params
)
public
function
getStoreCostExtExcel
(
$field
,
$params
,
$order
=
'a.id desc'
)
{
$params
[
"b.status"
]
=
0
;
$result
=
$this
->
db_
...
...
@@ -74,6 +78,7 @@ class FStoreCostExt extends BaseModel
->
alias
(
'a'
)
->
join
(
'f_store_cost b'
,
'a.cost_id = b.id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order
)
->
select
();
return
$result
;
}
...
...
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