Fix: app record list - date bug
This commit is contained in:
@@ -45,7 +45,7 @@ exit;
|
|||||||
|
|
||||||
|
|
||||||
function makeDateStatement($start_date, $end_date) {
|
function makeDateStatement($start_date, $end_date) {
|
||||||
return " '".$start_date."' < BR.RecordDateTime AND BR.RecordDateTime < '".$end_date."'";
|
return " '".$start_date."' <= BR.RecordDateTime AND BR.RecordDateTime <= DATE_ADD('".$end_date."', INTERVAL 1 DAY)";
|
||||||
// return " '2017-01-01' < BR.RecordDateTime AND BR.RecordDateTime < '".$end_date."'";
|
// return " '2017-01-01' < BR.RecordDateTime AND BR.RecordDateTime < '".$end_date."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,9 @@ exit;
|
|||||||
|
|
||||||
|
|
||||||
function makeDateStatement($start_date, $end_date) {
|
function makeDateStatement($start_date, $end_date) {
|
||||||
return " '".$start_date."' < TE.RecordDateTime AND TE.RecordDateTime < '".$end_date."'";
|
return " '".$start_date."' <= TE.RecordDateTime AND TE.RecordDateTime <= DATE_ADD('".$end_date."', INTERVAL 1 DAY)";
|
||||||
|
// return " '".$start_date."' <= TE.RecordDateTime AND TE.RecordDateTime <= '".$end_date."'";
|
||||||
|
// return " '2017-01-01' < TE.RecordDateTime";
|
||||||
// return " '2017-01-01' < TE.RecordDateTime AND TE.RecordDateTime < '".$end_date."'";
|
// return " '2017-01-01' < TE.RecordDateTime AND TE.RecordDateTime < '".$end_date."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user