浏览代码

修改特殊仓浏览的状态

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)
             {