...
|
...
|
@@ -246,11 +246,11 @@ class CommonController extends RestBaseController |
|
|
$startTime = isset($data['start_time'])&&!empty($data['start_time'])?$data['start_time']:'';
|
|
|
$endTime = isset($data['end_time'])&&!empty($data['end_time'])?$data['end_time']:'';
|
|
|
if (!empty($startTime)) {
|
|
|
$startTime = strtotime(date('Y-m-d'),$startTime);
|
|
|
$startTime = strtotime(date('Y-m-d',$startTime));
|
|
|
$query->where('t.train_time', '>=', $startTime);
|
|
|
}
|
|
|
if (!empty($endTime)) {
|
|
|
$endTime = strtotime(date('Y-m-d'),$endTime)+86400;
|
|
|
$endTime = strtotime(date('Y-m-d',$endTime))+86400;
|
|
|
$query->where('t.train_time', '<=', $endTime);
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -279,11 +279,11 @@ class CommonController extends RestBaseController |
|
|
$startTime = isset($data['start_time'])&&!empty($data['start_time'])?$data['start_time']:'';
|
|
|
$endTime = isset($data['end_time'])&&!empty($data['end_time'])?$data['end_time']:'';
|
|
|
if (!empty($startTime)) {
|
|
|
$startTime = strtotime(date('Y-m-d'),$startTime);
|
|
|
$startTime = strtotime(date('Y-m-d',$startTime));
|
|
|
$query->where('t.train_time', '>=', $startTime);
|
|
|
}
|
|
|
if (!empty($endTime)) {
|
|
|
$endTime = strtotime(date('Y-m-d'),$endTime)+86400;
|
|
|
$endTime = strtotime(date('Y-m-d',$endTime))+86400;
|
|
|
$query->where('t.train_time', '<=', $endTime);
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -308,11 +308,11 @@ class CommonController extends RestBaseController |
|
|
$startTime = isset($data['start_time'])&&!empty($data['start_time'])?$data['start_time']:'';
|
|
|
$endTime = isset($data['end_time'])&&!empty($data['end_time'])?$data['end_time']:'';
|
|
|
if (!empty($startTime)) {
|
|
|
$startTime = strtotime(date('Y-m-d'),$startTime);
|
|
|
$startTime = strtotime(date('Y-m-d',$startTime));
|
|
|
$query->where('t.exercise_time', '>=', $startTime);
|
|
|
}
|
|
|
if (!empty($endTime)) {
|
|
|
$endTime = strtotime(date('Y-m-d'),$endTime)+86400;
|
|
|
$endTime = strtotime(date('Y-m-d',$endTime))+86400;
|
|
|
$query->where('t.exercise_time', '<=', $endTime);
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -341,11 +341,11 @@ class CommonController extends RestBaseController |
|
|
$startTime = isset($data['start_time'])&&!empty($data['start_time'])?$data['start_time']:'';
|
|
|
$endTime = isset($data['end_time'])&&!empty($data['end_time'])?$data['end_time']:'';
|
|
|
if (!empty($startTime)) {
|
|
|
$startTime = strtotime(date('Y-m-d'),$startTime);
|
|
|
$startTime = strtotime(date('Y-m-d',$startTime));
|
|
|
$query->where('t.exercise_time', '>=', $startTime);
|
|
|
}
|
|
|
if (!empty($endTime)) {
|
|
|
$endTime = strtotime(date('Y-m-d'),$endTime)+86400;
|
|
|
$endTime = strtotime(date('Y-m-d',$endTime))+86400;
|
|
|
$query->where('t.exercise_time', '<=', $endTime);
|
|
|
}
|
|
|
})
|
...
|
...
|
|