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
1169d610
Commit
1169d610
authored
Jan 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型名称修改
parent
505e4d51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
31 deletions
+31
-31
.DS_Store
.DS_Store
+0
-0
UPhoneFollowUp.php
application/model/UPhoneFollowUp.php
+31
-31
.DS_Store
public/.DS_Store
+0
-0
No files found.
.DS_Store
View file @
1169d610
No preview for this file type
application/model/UPhoneFollow
P
p.php
→
application/model/UPhoneFollow
U
p.php
View file @
1169d610
...
...
@@ -5,15 +5,15 @@ namespace app\model;
use
think\Db
;
class
UPhoneFollow
P
p
extends
BaseModel
class
UPhoneFollow
U
p
extends
BaseModel
{
protected
$table
=
'u_phone_follow_up'
;
protected
$UPhoneFollow
P
p
;
protected
$UPhoneFollow
U
p
;
function
__construct
(
$site_id
)
{
$this
->
UPhoneFollow
P
p
=
Db
(
$this
->
table
.
"_"
.
$site_id
);
$this
->
UPhoneFollow
U
p
=
Db
(
$this
->
table
.
"_"
.
$site_id
);
}
/**
...
...
@@ -51,7 +51,7 @@ class UPhoneFollowPp extends BaseModel
if
(
isset
(
$params
[
"disc"
]))
{
$arr
[
"disc"
]
=
$params
[
"disc"
];
}
$result
=
$this
->
UPhoneFollow
P
p
->
insert
(
$arr
);
$result
=
$this
->
UPhoneFollow
U
p
->
insert
(
$arr
);
return
$result
;
}
...
...
@@ -70,7 +70,7 @@ class UPhoneFollowPp extends BaseModel
*/
public
function
getSearch
(
$p
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$join
,
$where
,
$group
)
{
$r
=
$this
->
UPhoneFollow
P
p
->
field
(
$field
)
$r
=
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
alias
(
'f'
)
->
join
(
$join
)
->
where
(
$where
)
...
...
@@ -92,7 +92,7 @@ class UPhoneFollowPp extends BaseModel
public
function
getUserAgentTotal
(
$params
,
$join
)
{
$result
=
$this
->
UPhoneFollow
P
p
->
alias
(
'f'
)
$result
=
$this
->
UPhoneFollow
U
p
->
alias
(
'f'
)
->
join
(
$join
)
->
where
(
$params
)
->
count
();
return
$result
;
...
...
@@ -106,19 +106,19 @@ class UPhoneFollowPp extends BaseModel
public
function
select_useraction_search
(
$user_id
,
$searchdate
)
{
if
(
$searchdate
)
{
$UPhoneFollow
Pp_res
=
$this
->
UPhoneFollowP
p
$UPhoneFollow
Up_res
=
$this
->
UPhoneFollowU
p
->
where
(
'user_id'
,
$user_id
)
->
where
(
'content'
,
$searchdate
)
->
order
(
'create_time'
,
'desc'
)
->
select
();
}
else
{
$UPhoneFollow
Pp_res
=
$this
->
UPhoneFollowP
p
$UPhoneFollow
Up_res
=
$this
->
UPhoneFollowU
p
->
where
(
'user_id'
,
$user_id
)
->
order
(
'create_time'
,
'desc'
)
->
select
();
}
return
$UPhoneFollow
P
p_res
;
return
$UPhoneFollow
U
p_res
;
}
/*zw start**/
...
...
@@ -132,7 +132,7 @@ class UPhoneFollowPp extends BaseModel
if
(
isset
(
$params
[
"type"
]))
{
$where_
[
"a.type"
]
=
$params
[
"type"
];
}
$result
=
$this
->
UPhoneFollow
P
p
$result
=
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
...
...
@@ -151,7 +151,7 @@ class UPhoneFollowPp extends BaseModel
if
(
isset
(
$params
[
"user_id"
]))
{
$where_
[
"a.user_id"
]
=
$params
[
"user_id"
];
}
$result
=
$this
->
UPhoneFollow
P
p
$result
=
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
...
...
@@ -169,26 +169,26 @@ class UPhoneFollowPp extends BaseModel
public
function
phone_up_list
(
$pagesize
,
$pagenum
)
{
$UPhoneFollow
Pp_res
=
$this
->
UPhoneFollowP
p
$UPhoneFollow
Up_res
=
$this
->
UPhoneFollowU
p
->
order
(
'create_time'
,
'desc'
)
->
limit
(
$pagesize
)
->
page
(
$pagenum
)
->
select
();
return
$UPhoneFollow
P
p_res
;
return
$UPhoneFollow
U
p_res
;
}
public
function
phone_up_list_count
()
{
$UPhoneFollow
Pp_res
=
$this
->
UPhoneFollowP
p
$UPhoneFollow
Up_res
=
$this
->
UPhoneFollowU
p
->
count
();
return
$UPhoneFollow
P
p_res
;
return
$UPhoneFollow
U
p_res
;
}
public
function
all_user_search
(
$searchdate
,
$pagesize
,
$pagenum
)
{
$UPhoneFollow
Pp_res
=
$this
->
UPhoneFollowP
p
$UPhoneFollow
Up_res
=
$this
->
UPhoneFollowU
p
->
field
(
'a.*,b.vip'
)
->
alias
(
'a'
)
->
join
(
'u_users b'
,
'a.user_id = b.id'
,
'left'
)
...
...
@@ -197,15 +197,15 @@ class UPhoneFollowPp extends BaseModel
->
limit
(
$pagesize
)
->
page
(
$pagenum
)
->
select
();
return
$UPhoneFollow
P
p_res
;
return
$UPhoneFollow
U
p_res
;
}
public
function
all_user_search_count
(
$searchdate
)
{
$UPhoneFollow
Pp_res
=
$this
->
UPhoneFollowP
p
$UPhoneFollow
Up_res
=
$this
->
UPhoneFollowU
p
->
where
(
'content'
,
'like'
,
"%
$searchdate
%"
)
->
count
();
return
$UPhoneFollow
P
p_res
;
return
$UPhoneFollow
U
p_res
;
}
/**
...
...
@@ -222,7 +222,7 @@ class UPhoneFollowPp extends BaseModel
* @throws \think\exception\DbException
*/
public
function
getFollowList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
return
$this
->
UPhoneFollow
P
p
->
field
(
$field
)
return
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
...
...
@@ -238,12 +238,12 @@ class UPhoneFollowPp extends BaseModel
*/
public
function
getFollowTotal
(
$params
)
{
return
$this
->
UPhoneFollow
P
p
->
where
(
$params
)
return
$this
->
UPhoneFollow
U
p
->
where
(
$params
)
->
count
();
}
public
function
getUserFollowKey
(
$field
,
$where
,
$order
=
'id asc'
)
{
return
$this
->
UPhoneFollow
P
p
->
where
(
$where
)
return
$this
->
UPhoneFollow
U
p
->
where
(
$where
)
->
order
(
$order
)
->
value
(
$field
);
}
...
...
@@ -252,7 +252,7 @@ class UPhoneFollowPp extends BaseModel
public
function
getLastOrNextUserIDPhoneFollowP
(
$where
,
$field
,
$limit
,
$order
)
{
$return
=
$this
->
UPhoneFollow
P
p
$return
=
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'u_users b'
,
'a.user_id = b.id'
,
'left'
)
...
...
@@ -286,7 +286,7 @@ class UPhoneFollowPp extends BaseModel
$data
[
'user_id'
]
=
$user_id
;
$data
[
'content'
]
=
$content
;
$data
[
'type'
]
=
$type
;
return
$this
->
UPhoneFollow
P
p
->
insertGetId
(
$data
);
return
$this
->
UPhoneFollow
U
p
->
insertGetId
(
$data
);
}
public
function
getLastPhoneFollowTime
(
$user_id
)
...
...
@@ -298,12 +298,12 @@ class UPhoneFollowPp extends BaseModel
$field
=
'create_time'
;
$order
=
'id desc'
;
$limit
=
1
;
$return
=
$this
->
UPhoneFollow
P
p
->
field
(
$field
)
->
where
(
$arr
)
->
limit
(
$limit
)
->
order
(
$order
)
->
select
();
$return
=
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
where
(
$arr
)
->
limit
(
$limit
)
->
order
(
$order
)
->
select
();
//echo $this->getLastSql();
return
$return
;
...
...
@@ -315,7 +315,7 @@ class UPhoneFollowPp extends BaseModel
*/
public
function
getPhoneFollowData
(
$field
,
$params
,
$order
)
{
$result
=
$this
->
UPhoneFollow
P
p
$result
=
$this
->
UPhoneFollow
U
p
->
field
(
$field
)
->
order
(
$order
)
->
where
(
$params
)
...
...
public/.DS_Store
View file @
1169d610
No preview for this file type
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