|
|
@@ -13,7 +13,7 @@ use Illuminate\Support\Facades\DB;
|
|
|
class StatisticsService extends Service
|
|
|
{
|
|
|
public function statisticsEmployeeCommon($data,$user){
|
|
|
- if(empty($data['order_time'][0]) || ! empty($data['order_time'][1])) return [false, '时间不能为空'];
|
|
|
+ if(empty($data['order_time'][0]) || empty($data['order_time'][1])) return [false, '时间不能为空'];
|
|
|
|
|
|
list($start_time, $end_time) = $this->changeDateToTimeStampAboutRange($data['order_time'],false);
|
|
|
if ($start_time === null || $end_time === null || $start_time > $end_time) return [false, "时间的区间无效"];
|
|
|
@@ -146,7 +146,7 @@ class StatisticsService extends Service
|
|
|
}
|
|
|
|
|
|
public function statisticsDeviceCommon($data,$user, $field = []){
|
|
|
- if(empty($data['order_time'][0]) || ! empty($data['order_time'][1])) return [false, '时间不能为空'];
|
|
|
+ if(empty($data['order_time'][0]) || empty($data['order_time'][1])) return [false, '时间不能为空'];
|
|
|
|
|
|
list($start_time, $end_time) = $this->changeDateToTimeStampAboutRange($data['order_time'],false);
|
|
|
if ($start_time === null || $end_time === null || $start_time > $end_time) return [false, "时间的区间无效"];
|