lvhao преди 1 ден
родител
ревизия
8c74279847
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      core/CoreApp/controllers/Whlabel_bh.php

+ 4 - 4
core/CoreApp/controllers/Whlabel_bh.php

@@ -2770,7 +2770,7 @@ class Whlabel_bh extends Start_Controller {
     			$jtime = strtotime($jtime);
     			$where = " ctime3 >= ".$ktime." and ctime3 <= ".$jtime." ";$gj = "";$ck = "";
     
-    			$where .="  and ck like '%|".$transfer."|' ";
+    			$where .=" and status = 2 and ck like '%|".$transfer."|' ";
     			if($number)
                 {
                     $where  .= " and number like '%$number%'";
@@ -2788,10 +2788,10 @@ class Whlabel_bh extends Start_Controller {
 			    
           
 				$list = array();
-				$rows = $this->whlabel_bh_transfer->find_all($where,'id,wbid,orderinfo,jm,pm,time,label,cktime');
-				echo "<pre>";
-				var_dump($rows);
+				echo $where;
 				die;
+				$rows = $this->whlabel_bh_transfer->find_all($where,'id,wbid,orderinfo,jm,pm,time,label,cktime');
+			
 				
             	foreach($rows as $k=>$v){
 					$cktime = explode("|",trim($v['cktime'],"|"));