|
|
@@ -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'";
|