Jelajahi Sumber

修改导出whlable的信息

lvhao 1 hari lalu
induk
melakukan
7eab6f02cc
1 mengubah file dengan 43 tambahan dan 3 penghapusan
  1. 43 3
      core/CoreApp/controllers/Whlabel.php

+ 43 - 3
core/CoreApp/controllers/Whlabel.php

@@ -3749,14 +3749,27 @@ class Whlabel extends Start_Controller
 			$color = $this->input->get('color', true);
 			$lowe = $this->input->get('lowe', true);
 			$sku = $this->input->get('sku', true);
+			$title = $this->input->get('title', true);
 			$warehouse = $this->input->get('warehouse', true);
+			$purchase = $this->input->get('purchase', true);
 			$lacetype = $this->input->get('lacetype', true);
+			$haircap = $this->input->get('haircap', true);
 			$lacecolor = $this->input->get('lacecolor', true);
 			$density = $this->input->get('density', true);
-			$haircap = $this->input->get('haircap', true);
-			$purchase = $this->input->get('purchase', true);
-			$title = $this->input->get('title', true);
+			
+			$details = $this->input->get('details', true);
+			
 			$state = $this->input->get('state', true);
+
+			$shop = $this->input->get('shop', true);
+
+			$hairnumber = $this->input->get('hairnumber', true);
+
+			$type_leixi = $this->input->get('type', true);
+
+			$cpbz = $this->input->get('cpbz', true);
+			$sm = $this->input->get('sm', true);
+
 			$sid = $this->input->get('sid', true);
 			$ktime = $this->input->get('ktime', true);
 			$jtime = $this->input->get('jtime', true);
@@ -3803,11 +3816,38 @@ class Whlabel extends Start_Controller
 			if ($haircap) {
 				$where  .= " and features like '%-$haircap-%'";
 			}
+			if ($details) {
+				$where  .= " and details = '$details'";
+			}
+			if ($shop) {
+				$where  .= " and shop like '%$shop%'";
+			}
 			if ($title) {
 				$title = trim($title, ' ');
 				$title = trim($title, '	');
 				$where  .= " and title like '%$title%'";
 			}
+			if (!empty($hairnumber)) {
+				$where  .= " and  features like '%-128-%' ";
+				if ($hairnumber < 0) {
+					$class_list = $this->typeclass->find_all('classid = 43');
+					foreach ($class_list as $v) {
+						$where .= " and  features not like '%-" . $v['id'] . "-%'";
+					}
+				} else {
+					$where  .= " and features like '%-$hairnumber-%'";
+				}
+			}
+
+			if ($type_leixi) {
+				$where  .= " and type = '$type_leixi'";
+			}
+			if ($cpbz) {
+				$where .= " and cpbz like '%$cpbz%' ";
+			}
+			if ($sm) {
+				$where .= " and sm like '%$sm%' ";
+			}
 			if ($sku) {
 				$sku = trim($sku, ' ');
 				$sku = trim($sku, '	');