|
|
@@ -801,10 +801,10 @@ class User extends Start_Controller
|
|
|
$ct = strtotime(date('Ymd', $t));
|
|
|
$ctj = strtotime(date('Ymd', $t + 24 * 3600));
|
|
|
//var_dump(date("Y-m-d H:i:s",$ct)."=================".date("Y-m-d H:i:s",$ctj));
|
|
|
- $dlz = $this->fullorder->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
- $smt = $this->fullordersmt->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,refundy,userid,refundj');
|
|
|
- $tt = $this->fullordertt->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
- $amz = $this->fullorderamz->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
+ $dlz = $this->fullorder->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
+ $smt = $this->fullordersmt->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,refundy,userid,refundj');
|
|
|
+ $tt = $this->fullordertt->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
+ $amz = $this->fullorderamz->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
|
|
|
$ab[] = $dlz;
|
|
|
//数量及金额开始
|
|
|
@@ -887,10 +887,10 @@ class User extends Start_Controller
|
|
|
$ct = strtotime(date('Ymd', $t));
|
|
|
$ctj = strtotime(date('Ymd', $t + 24 * 3600)) ;
|
|
|
//var_dump(date("Y-m-d H:i:s",$ct)."------------------------".date("Y-m-d H:i:s",$ctj));
|
|
|
- $dlz = $this->fullorder->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
- $smt = $this->fullordersmt->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
- $tt = $this->fullordertt->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
- $amz = $this->fullorderamz->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $dlz = $this->fullorder->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $smt = $this->fullordersmt->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $tt = $this->fullordertt->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $amz = $this->fullorderamz->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
//数量及金额开始
|
|
|
$dlzm = sprintf("%01.2f", array_sum(array_column($dlz, 'shouldmoney')));
|
|
|
$smtm = sprintf("%01.2f", array_sum(array_column($smt, 'shouldmoney')));
|
|
|
@@ -1015,10 +1015,10 @@ class User extends Start_Controller
|
|
|
$ct = strtotime(date('Ymd', $t));
|
|
|
// [修复 3] $ctj 减 1 秒
|
|
|
$ctj = strtotime(date('Ymd', $t + 24 * 3600)) ;
|
|
|
- $dlz = $this->fullorder->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
- $smt = $this->fullordersmt->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,refundy,userid,refundj');
|
|
|
- $tt = $this->fullordertt->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
- $amz = $this->fullorderamz->find_all("state != 217 and state != 214 and dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
+ $dlz = $this->fullorder->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
+ $smt = $this->fullordersmt->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,refundy,userid,refundj');
|
|
|
+ $tt = $this->fullordertt->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
+ $amz = $this->fullorderamz->find_all(" dtime >= " . $ct . " and dtime < " . $ctj . $where . " and shop != '0' and (" . rtrim($fgshop, 'or') . ") and shop != '18' and shop != '19'", 'budget,shouldmoney,shop,number,refundy,email,refundj');
|
|
|
|
|
|
$ab[] = $dlz;
|
|
|
//数量及金额开始
|
|
|
@@ -1101,10 +1101,10 @@ class User extends Start_Controller
|
|
|
$ct = strtotime(date('Ymd', $t));
|
|
|
// [修复 3] $ctj 减 1 秒
|
|
|
$ctj = strtotime(date('Ymd', $t + 24 * 3600)) ;
|
|
|
- $dlz = $this->fullorder->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
- $smt = $this->fullordersmt->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
- $tt = $this->fullordertt->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
- $amz = $this->fullorderamz->find_all("state != 217 and state != 214 and (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $dlz = $this->fullorder->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $smt = $this->fullordersmt->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $tt = $this->fullordertt->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
+ $amz = $this->fullorderamz->find_all(" (" . rtrim($fgshop, 'or') . ") and dtime >= " . $ct . " and dtime < " . $ctj . $where, 'budget,shouldmoney,shop');
|
|
|
//数量及金额开始
|
|
|
$dlzm = sprintf("%01.2f", array_sum(array_column($dlz, 'shouldmoney')));
|
|
|
$smtm = sprintf("%01.2f", array_sum(array_column($smt, 'shouldmoney')));
|