소스 검색

修改特殊仓浏览的状态

lvhao 5 일 전
부모
커밋
a013837922
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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)
             {