Jelajahi Sumber

提交数据

lvhao 5 bulan lalu
induk
melakukan
a51319f004
1 mengubah file dengan 20 tambahan dan 3 penghapusan
  1. 20 3
      core/CoreApp/controllers/Zzququeu9.php

+ 20 - 3
core/CoreApp/controllers/Zzququeu9.php

@@ -61,13 +61,30 @@ class Zzququeu9 extends Start_Controller {
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
 
+               $status = $this->input->post('status',true);
+
 			$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." ";
+                   $where .= " and create_time  > ".$timetk." and create_time  < ".$timetj." ";
+               }
+               if($status){
+                    if($status = 1){
+                         $where .= " and dc_status < 0 ";
+                    }elseif($status = 2){
+                         $where .= " and cg_status < 0 ";
+                    }elseif($status = 3){
+                         $where .= " and xs_status < 0 ";
+                    }elseif($status = 4){
+                         $where .= " and dr_status < 0 ";
+                    }elseif($status = 5){
+                         $where .= " and xs_two_status < 0 ";
+                    }elseif($status = 6){
+                         $where .= " and bzsh_status <0 ";
+                    }
                }
 			if(empty($page))
                {
@@ -79,7 +96,7 @@ class Zzququeu9 extends Start_Controller {
                     $start = ($page - 1)*$perpage;
                }
 			
-               $info_list = $this->zzquque_u9->find_all($where,'*','id asc',$start,$perpage);
+               $info_list = $this->zzquque_u9->find_all($where,'*','id desc',$start,$perpage);
                $type_list = $this->zzquque_u9->getType();
                $list = [];
                foreach($info_list as $k=>$v){
@@ -529,7 +546,7 @@ class Zzququeu9 extends Start_Controller {
             ]);
             echo json_encode(['msg'=>'添加成功','success'=>true]);exit; 
         }else{
-            echo json_encode(['msg'=>'添加失败','success'=>false]);exit; 
+            echo json_encode(['msg'=>'订单不允许重复添加','success'=>false]);exit; 
         }