lvhao 2 napja
szülő
commit
dd95a709a7
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      core/CoreApp/controllers/Aatest.php

+ 2 - 1
core/CoreApp/controllers/Aatest.php

@@ -91,7 +91,8 @@ class Aatest extends Start_Controller {
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {  
-		$r = $this->db->from("fullorder")->where('extra_price IS NOT NULL', NULL, FALSE)->where('number','ALIP-251105-082')->get()->result_array();
+		$product_id = 33204;
+		$r = $this->db->from("fullorder")->where('extra_price IS NOT NULL', NULL, FALSE)->where('number','ALIP-251105-082')->where("JSON_SEARCH(extra_price, 'one', '$product_id', NULL, '$[*].product_id') IS NOT NULL")->get()->result_array();
 		echo "<pre>";
 		print_r($r);
 		die;