lvhao 20 小時之前
父節點
當前提交
7dc7fb2136
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      core/CoreApp/controllers/Whlabel.php

+ 6 - 1
core/CoreApp/controllers/Whlabel.php

@@ -1112,7 +1112,12 @@ class Whlabel extends Start_Controller
 				$rows[$key]['cpbz'] = $u9_info['bm'];
 				
 				$rows[$key]['cs'] =  $u9_info['jm'];
-				$sd = $this->whlabel->find_all($where . ' and sku = "' . $value['sku'] . '" and warehouse = "' . $value['warehouse'] . '" and features = "' . $value['features'] . '"', 'details,cpid,cpbz,state');
+				if(empty($value['details'])){
+					$sd = $this->whlabel->find_all($where . ' and sku = "' . $value['sku'] . '" and warehouse = "' . $value['warehouse'] . '" and features = "' . $value['features'] . '"', 'details,cpid,cpbz,state');
+				}else{
+					$sd = $this->whlabel->find_all($where . ' and sku = "' . $value['sku'] . '" and warehouse = "' . $value['warehouse'] . '" and features = "' . $value['features'] . '"  and details = "' . $value['details'] . '"', 'details,cpid,cpbz,state');
+				}
+				
 				$details = array();
 				$cpid = array();
 				$cpbz = array();