diff --git a/application/common/command/CheckOrdeRecordCommand.php b/application/common/command/CheckOrdeRecordCommand.php index 7861e4a..2efee40 100644 --- a/application/common/command/CheckOrdeRecordCommand.php +++ b/application/common/command/CheckOrdeRecordCommand.php @@ -43,7 +43,7 @@ class CheckOrdeRecordCommand extends Command ]); } } - OrderDispatchRecord::whereIn('id',$ids)->update(['status'=>1]); + OrderDispatchRecord::whereIn('id',$ids)->where('status',0)->update(['status'=>1]); OrderDispatch::whereIn('id',$dispatchIds)->where('follow',1)->update(['follow'=>0]); });