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