Browse Source

提交数据

lvhao 2 months ago
parent
commit
3bff13ea8b
1 changed files with 22 additions and 0 deletions
  1. 22 0
      core/CoreApp/controllers/Systemfoutfz.php

+ 22 - 0
core/CoreApp/controllers/Systemfoutfz.php

@@ -61,6 +61,28 @@ class Systemfoutfz extends Start_Controller {
 
 	public function _exceltwo($arg_array)
     {
+		if(isset($_SESSION['api']))
+		{
+			$user = $this->user->get_api($_SESSION['api']);
+			$usp = $user;
+		    $fgshop = "";$sid = "";$wid="";$wtype="";
+		    $usersp = explode('|',trim($user['shop'],'|'));
+			$userwh = explode('|',trim($user['warehouse'],'|'));
+			foreach ($usersp as $value) 
+		    {
+				$fgshop .= " shop = ".$value." or";
+				$sid .= " id = ".$value." or";
+			}
+			foreach ($userwh as $value) 
+		    {
+				$wid .= " id = ".$value." or";
+				$wtype .= " type = ".$value." or";
+			}
+			if($user['userid'] == 'xw')
+			{
+				$xw = 1;
+			}
+		}
 		if(isset($_GET['fexcel']))  
 		{
 			$dowid = $this->input->get('a');