|
@@ -367,7 +367,7 @@ class ApiService{
|
|
if ($start_date == $end_date) {
|
|
if ($start_date == $end_date) {
|
|
$query = $query->where('lrsj', 'like', $start_date . '%');
|
|
$query = $query->where('lrsj', 'like', $start_date . '%');
|
|
} else {
|
|
} else {
|
|
- $query = $query->where('lrsj', '>=', $start_date)->where('lrsj', '<=', $end_date);
|
|
|
|
|
|
+ $query = $query->where('lrsj', '>=', $start_date . ' 00:00:00')->where('lrsj', '<=', $end_date . ' 23:59:59');
|
|
}
|
|
}
|
|
|
|
|
|
if ($depart) {
|
|
if ($depart) {
|
|
@@ -378,7 +378,7 @@ class ApiService{
|
|
$query = $query->where('lrr', $person_id);
|
|
$query = $query->where('lrr', $person_id);
|
|
}
|
|
}
|
|
|
|
|
|
- $query = $query->orderBy('lrsj', 'desc')->groupBy('lrdate', 'xjdw', 'lrr')
|
|
|
|
|
|
+ $query = $query->orderBy('lrdate', 'desc')->groupBy('lrdate', 'xjdw', 'lrr')
|
|
->select(
|
|
->select(
|
|
[
|
|
[
|
|
DB::raw('DATE(lrsj) as lrdate'),
|
|
DB::raw('DATE(lrsj) as lrdate'),
|