longyi 5 ay önce
ebeveyn
işleme
47bfb2f886
1 değiştirilmiş dosya ile 13 ekleme ve 12 silme
  1. 13 12
      core/CoreApp/controllers/Zzququeu9.php

+ 13 - 12
core/CoreApp/controllers/Zzququeu9.php

@@ -76,25 +76,26 @@ class Zzququeu9 extends Start_Controller {
 
 			$order_no = $this->input->post('order_no',true);
                $where='type = 10 ';
-			if($order_no){
-			    $where .= " and order_no = '".$order_no."' ";
-			}
-               if($timetk && $timetj){
-                   $where .= " and create_time  > ".$timetk." and create_time  < ".$timetj." ";
-               }
-               if($status){
-                    if($status = 1){
+    			if($order_no){
+    			    $where .= " and order_no = '".$order_no."' ";
+    			}
+    			 if($status){
+                    if($status == 1){
                          $where .= " and dc_status = 0 ";
-                    }elseif($status = 2){
+                    }elseif($status == 2){
                          $where .= " and dc_status = -1  ";
-                    }elseif($status = 3){
+                    }elseif($status == 3){
                          $where .= " and dc_status = -2  ";
-                    }elseif($status = 4){
+                    }elseif($status == 4){
                          $where .= " and dc_status = -3  ";
-                    }elseif($status = 5){
+                    }elseif($status == 5){
                          $where .= " and dc_status < 3  ";
                     }
                }
+               if($timetk && $timetj){
+                   $where .= " and create_time  > ".$timetk." and create_time  < ".$timetj." ";
+               }
+              
 			if(empty($page))
                {
                     $start = 0;