Преглед изворни кода

Merge branch 'dev_wf' of wugg/phpstock into version1.5

wufeng пре 2 година
родитељ
комит
1b324f6173
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/command/NowReportHandle.php

+ 1 - 1
app/command/NowReportHandle.php

@@ -619,7 +619,7 @@ class NowReportHandle extends Command
             ->leftJoin('company_item ci', 'ci.id=u.itemid')
             ->leftJoin('order_num on', 'on.orderCode=s.orderCode')
             ->leftJoin('purchease_order po', 'po.cgdNo=on.cgdNo')
-            ->where('s.is_del', 0)
+            ->where(['s.is_del' => 0, 'u.is_del' => 0])
             ->whereBetween('s.addtime', [$start_date, $end_date])
             ->order('s.addtime', 'desc')
             ->cursor();