lvhao 5 일 전
부모
커밋
7a4662b959
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      core/CoreApp/controllers/Specialstock.php

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

@@ -795,9 +795,11 @@ 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)
             {
@@ -982,9 +984,7 @@ class Specialstock extends Start_Controller {
             }
 			if($state)
             {
-                if($state >-1){
-					$where  .= " and state = '$state'";
-				}
+                $where  .= " and state = '$state'";
             }
 			if($ktime && $jtime)
             {