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
5ce543cd
Commit
5ce543cd
authored
Aug 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跟进时间搜索一个月
parent
489e4634
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
Remark.php
application/index/controller/Remark.php
+14
-2
No files found.
application/index/controller/Remark.php
View file @
5ce543cd
...
...
@@ -41,8 +41,15 @@ class Remark extends Basic
$u_phone_follow
=
new
UPhoneFollowPp
();
$last_month
=
date
(
"Y-m-d"
,
strtotime
(
"-1 month"
));
if
(
!
empty
(
$this
->
params
[
'start_date'
])
&&
empty
(
$this
->
params
[
'end_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
.
' 00:00:00'
];
if
(
strtotime
(
$last_month
)
>
strtotime
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'> time'
,
$last_month
.
' 00:00:00'
];
}
else
{
$where
[
'create_time'
]
=
[
'> time'
,
$this
->
params
[
'start_date'
]
.
' 00:00:00'
];
}
}
else
{
$where
[
'create_time'
]
=
[
'> time'
,
$last_month
.
' 00:00:00'
];
}
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
empty
(
$this
->
params
[
'start_date'
]))
{
...
...
@@ -50,7 +57,12 @@ class Remark extends Basic
}
if
(
!
empty
(
$this
->
params
[
'end_date'
])
&&
!
empty
(
$this
->
params
[
'start_date'
]))
{
$where
[
'create_time'
]
=
[
'between'
,[
$this
->
params
[
'start_date'
]
.
' 00:00:00'
,
$this
->
params
[
'end_date'
]
.
' 23:59:59'
]];
if
(
strtotime
(
$last_month
)
>
strtotime
(
$this
->
params
[
'start_date'
]))
{
$start_date
=
$last_month
;
}
else
{
$start_date
=
$this
->
params
[
'start_date'
];
}
$where
[
'create_time'
]
=
[
'between'
,[
$start_date
.
' 00:00:00'
,
$this
->
params
[
'end_date'
]
.
' 23:59:59'
]];
}
if
(
!
empty
(
$this
->
params
[
'content'
]))
{
...
...
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