wugg преди 11 месеца
родител
ревизия
92951f8ae2
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      app/command/caixiao.php

+ 2 - 1
app/command/caixiao.php

@@ -14,9 +14,10 @@ class caixiao extends Command
     protected function cgd(){
     	$cgd=new CgdCaixiao();
     	$where=[['updatetime','>=',$this->hour]];
-    	$list = $cgd->with(["originCgd"])->where($where)->cursor();
+    	$list = $cgd->with(["originCgd"])->where($where)->select();
     	$cgdArr=[];
     	foreach ($list as $item){
+    		echo $item->cgdNo."--".$item->mainCode;
     		$unique = md5($item->cgdNo.$item->updatetime);
            $temp=['order_type'=>2,'uniqkey'=>$unique,'status'=>1,'addtime'=>date('Y-m:d H:i:s')];
            if($this->isInCfp($unique)){