zz пре 6 година
родитељ
комит
ed26d2d303
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Console/Commands/BookTest.php

+ 2 - 2
app/Console/Commands/BookTest.php

@@ -334,8 +334,8 @@ class BookTest extends Command
         $result = [];
         $chapter_model = new ChapterOrder();
         foreach ($info as $item){
-            $to_bids = YqUserBidRelation::where('uid',$item->uid)->where('to_bid','>',0)->where('to_bid','!=','from_bid')->select('to_bid','created_at')->get();
-            $from_bids = YqUserBidRelation::where('uid',$item->uid)->where('from_bid','>',0)->where('to_bid','!=','from_bid')->select('from_bid','created_at')->get();
+            $to_bids = YqUserBidRelation::where('uid',$item->uid)->where('to_bid','>',0)->whereColumn('to_bid','!=','from_bid')->select('to_bid','created_at')->get();
+            $from_bids = YqUserBidRelation::where('uid',$item->uid)->where('from_bid','>',0)->whereColumn('to_bid','!=','from_bid')->select('from_bid','created_at')->get();
             $chapter_model->setCurrentTable($item->uid);
             if($to_bids){
                 foreach ($to_bids as $v){