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
23801a80
Commit
23801a80
authored
Jan 11, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
name
parent
0ca19c32
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
UPhoneFollowUpTemporary.php
application/model/UPhoneFollowUpTemporary.php
+5
-4
No files found.
application/model/UPhoneFollowUpTemporary.php
View file @
23801a80
...
@@ -195,19 +195,20 @@ class UPhoneFollowUpTemporary extends BaseModel
...
@@ -195,19 +195,20 @@ class UPhoneFollowUpTemporary extends BaseModel
* @param int $pageNo
* @param int $pageNo
* @param int $pageSize
* @param int $pageSize
* @param $where
* @param $where
* @param string $fi
le
d
* @param string $fi
el
d
* @return false|null|\PDOStatement|string|\think\Collection
* @return false|null|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
getFollowListV3
(
$site_id
,
$pageNo
,
$pageSize
,
$where
,
$fi
le
d
=
'`id`, `user_id`, `create_time`, `content`, `user_status`, `labels_id`, `agent_id`'
)
{
public
function
getFollowListV3
(
$site_id
,
$pageNo
,
$pageSize
,
$where
,
$fi
el
d
=
'`id`, `user_id`, `create_time`, `content`, `user_status`, `labels_id`, `agent_id`'
)
{
if
(
!
$this
->
createTable
()){
if
(
!
$this
->
createTable
()){
return
null
;
return
null
;
}
}
$sql
=
Db
::
table
(
'u_phone_follow_up_'
.
$site_id
)
->
field
(
$fi
le
d
)
->
order
(
'id desc'
)
->
where
(
$where
)
->
buildSql
();
$sql
=
Db
::
table
(
'u_phone_follow_up_'
.
$site_id
)
->
field
(
$fi
el
d
)
->
order
(
'id desc'
)
->
where
(
$where
)
->
buildSql
();
$sql_string
=
$this
->
table
(
$this
->
table_name_string
)
->
field
(
$fi
le
d
)
->
where
(
$where
)
->
union
([
$sql
],
true
)
->
buildSql
();
$sql_string
=
$this
->
table
(
$this
->
table_name_string
)
->
field
(
$fi
el
d
)
->
where
(
$where
)
->
union
([
$sql
],
true
)
->
buildSql
();
$data
=
Db
::
table
(
$sql_string
.
' a'
)
$data
=
Db
::
table
(
$sql_string
.
' a'
)
->
field
(
$field
)
->
order
(
'id desc'
)
->
order
(
'id desc'
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
...
...
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