lvhao 5 天之前
父节点
当前提交
7a86bca604
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      core/CoreApp/controllers/Specialstock.php

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

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