lvhao před 1 dnem
rodič
revize
513cc879cc
1 změnil soubory, kde provedl 17 přidání a 13 odebrání
  1. 17 13
      core/CoreApp/controllers/Transfer.php

+ 17 - 13
core/CoreApp/controllers/Transfer.php

@@ -812,19 +812,23 @@ class Transfer extends Start_Controller {
                 	
             	}
 				$fid = '';
-				$info_list_cr = $this->systemtransfer_cr->find_all($cr);
-				foreach ($info_list_cr as $v)
-		    	{
-					$fid .= "id = '".$v['fid']."' or ";
-				}
-				if($fid)
-				{
-			    	$where  .= ' and ('.trim($fid,'or ').')';
-				}
-				else
-				{
-					$where  .= ' and id = 0';
-				}
+
+				$where .=" and id IN (SELECT DISTINCT fid FROM crowd_systemtransfer_cr WHERE $cr)";
+				// $info_list_cr = $this->systemtransfer_cr->find_all($cr);
+				// foreach ($info_list_cr as $v)
+		    	// {
+				// 	$fid .= "id = '".$v['fid']."' or ";
+				// }
+				// if($fid)
+				// {
+			    // 	$where  .= ' and ('.trim($fid,'or ').')';
+				// }
+				// else
+				// {
+				// 	$where  .= ' and id = 0';
+				// }
+
+		
 			}
             //取得信息列表
             $info_list = $this->systemtransfer->find_all($where,'id,number,is_jiaji,pm,shipremarks,printtime,time,ctime12',$order_str,$start,$perpage);