Browse Source

提交数据

lvhao 1 day ago
parent
commit
379f0cfafe
1 changed files with 7 additions and 0 deletions
  1. 7 0
      core/CoreApp/controllers/Fullorderexcel.php

+ 7 - 0
core/CoreApp/controllers/Fullorderexcel.php

@@ -378,6 +378,7 @@ class Fullorderexcel extends Start_Controller {
 			$timetj = strtotime($timetj);
 			$timetkk = strtotime($timetkk);
 			$timetjj = strtotime($timetjj);
+			$productid = $this->input->get('productid',true);
 			$px = $this->input->get('px',true);
 			$fexcel = $this->fullorderexcel->read($fexcel);
 			$classid = $this->fullorderexcelclassid->read($fexcel['type']);
@@ -401,6 +402,12 @@ class Fullorderexcel extends Start_Controller {
 			{
 				$where  .= " and dtime > '$timetk' and dtime < '$timetj'";
 			}
+
+			if($productid){
+				$where  .= " and extra_price IS NOT NULL and JSON_SEARCH(extra_price, 'one', '".$productid."', NULL, '$[*].product_id') IS NOT NULL";
+			}
+
+
 			if($library)
             {
                 $where  .= " and library = '$library'";