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
d5594252
Commit
d5594252
authored
Nov 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一次愉快的搬家
parent
055a66a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
Houses.php
application/index/controller/Houses.php
+1
-1
AAgents.php
application/model/AAgents.php
+1
-24
GOperatingRecords.php
application/model/GOperatingRecords.php
+23
-0
No files found.
application/index/controller/Houses.php
View file @
d5594252
...
@@ -617,7 +617,7 @@ class Houses extends Basic
...
@@ -617,7 +617,7 @@ class Houses extends Basic
$field
=
'id,name,remark,create_time'
;
$field
=
'id,name,remark,create_time'
;
$params
[
'houses_id'
]
=
$this
->
params
[
'houses_id'
];
$params
[
'houses_id'
]
=
$this
->
params
[
'houses_id'
];
$params
[
'type'
]
=
2
;
$params
[
'type'
]
=
2
;
$agents
=
new
AAgent
s
();
$agents
=
new
GOperatingRecord
s
();
$this
->
data
=
$agents
->
getRecords
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$params
);
$this
->
data
=
$agents
->
getRecords
(
$pageNo
,
$pageSize
,
'id DESC'
,
$field
,
$params
);
}
else
{
}
else
{
$this
->
code
=
101
;
$this
->
code
=
101
;
...
...
application/model/AAgents.php
View file @
d5594252
...
@@ -144,30 +144,7 @@ class AAgents extends BaseModel
...
@@ -144,30 +144,7 @@ class AAgents extends BaseModel
->
where
(
$params
)
->
count
();
->
where
(
$params
)
->
count
();
}
}
/**
* 操作盘方记录
*
* @param int $pageNo
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getRecords
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
$data
=
Db
::
table
(
'g_operating_records'
)
->
field
(
$field
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
order
(
$order_
)
->
page
(
$pageNo
)
->
select
();
return
$data
;
}
/**
/**
* @param $field
* @param $field
...
...
application/model/GOperatingRecords.php
View file @
d5594252
...
@@ -72,4 +72,26 @@ class GOperatingRecords extends BaseModel
...
@@ -72,4 +72,26 @@ class GOperatingRecords extends BaseModel
}
}
return
$data
;
return
$data
;
}
}
/**
* 操作盘方记录
* @param int $pageNo
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getRecords
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
$data
=
$this
->
field
(
$field
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
order
(
$order_
)
->
page
(
$pageNo
)
->
select
();
return
$data
;
}
}
}
\ No newline at end of file
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