lvhao 5 дней назад
Родитель
Сommit
c72b2b091b
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      core/CoreApp/controllers/Fullorderexcel.php

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

@@ -1699,6 +1699,7 @@ class Fullorderexcel extends Start_Controller {
 			$dbapi = $this->input->get('dbapi',true);
 			$dbapinocc = $this->input->get('dbapinocc',true);
 			$orderurl = $this->input->get('orderurl',true);
+			$productid = $this->input->get('productid',true);
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
 			$timetkk = strtotime($timetkk);
@@ -1726,6 +1727,9 @@ 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'";