@@ -33,7 +33,10 @@ class GetKennelDetailWorkCommand extends CConsoleCommand {
$data[] = $row;
}
- $type_name = 'all';
+ if (count($data) == 0) {
+ exit;
+ }
+ $type_name = 'food';
$res=Service::factory('JRecordService')->push($data,$type_name,['start' => $start_time, 'end' => $end_time],1);
$mail = Yii::app()->mailer;
try {