...
|
...
|
@@ -526,7 +526,7 @@ class AdminCommonController extends AdminBaseController |
|
|
$query->where('p.name', 'like', "%$keyword%");
|
|
|
}
|
|
|
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time'])+86400;
|
|
|
if (!empty($startTime)) {
|
|
|
$query->where('i.create_time', '>=', $startTime);
|
|
|
}
|
...
|
...
|
@@ -583,7 +583,7 @@ class AdminCommonController extends AdminBaseController |
|
|
$query->where('p.name', 'like', "%$keyword%");
|
|
|
}
|
|
|
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time'])+86400;
|
|
|
if (!empty($startTime)) {
|
|
|
if($table == 'check'){
|
|
|
$query->where('t.ins_m_time', '>=', $startTime);
|
...
|
...
|
@@ -621,7 +621,7 @@ class AdminCommonController extends AdminBaseController |
|
|
$query->where('p.name', 'like', "%$keyword%");
|
|
|
}
|
|
|
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time'])+86400;
|
|
|
if (!empty($startTime)) {
|
|
|
$query->where('r.create_time', '>=', $startTime);
|
|
|
}
|
...
|
...
|
@@ -729,7 +729,7 @@ class AdminCommonController extends AdminBaseController |
|
|
$query->where('p.name', 'like', "%$keyword%");
|
|
|
}
|
|
|
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
|
|
|
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time'])+86400;
|
|
|
if (!empty($startTime)) {
|
|
|
$query->where('t.test_time', '>=', $startTime);
|
|
|
}
|
...
|
...
|
@@ -1059,4 +1059,15 @@ class AdminCommonController extends AdminBaseController |
|
|
return $arr1;
|
|
|
}
|
|
|
|
|
|
//获取日期时间戳
|
|
|
public function getDate($time){
|
|
|
$dateStr = date('Y-m-d',$time);
|
|
|
//获取0点的时间戳
|
|
|
$time1 = strtotime($dateStr);
|
|
|
//获取24点的时间戳
|
|
|
$time2 = strtotime($dateStr) + 86400;
|
|
|
$arr = [$time1,$time2];
|
|
|
return $arr;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|