Pārlūkot izejas kodu

修改特殊仓浏览的状态

lvhao 5 dienas atpakaļ
vecāks
revīzija
a013837922
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5 2
      core/CoreApp/controllers/Specialstock.php

+ 5 - 2
core/CoreApp/controllers/Specialstock.php

@@ -980,9 +980,12 @@ class Specialstock extends Start_Controller {
             {
                 $where  .= " and purchase = '$purchase'";
             }
-			if($state)
+			if(isset($state))
             {
-                $where  .= " and state = '$state'";
+				if($state > -1){
+					$where  .= " and state = '$state'";
+				}
+               
             }
 			if($ktime && $jtime)
             {