Browse Source

Boss的老客户导出

lvhao 3 months ago
parent
commit
ade684426f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/CoreApp/controllers/Boss.php

+ 1 - 1
core/CoreApp/controllers/Boss.php

@@ -1612,7 +1612,7 @@ class Boss extends Start_Controller
 					$m = 0;
 					$m = 0;
 					foreach ($data as $v) {
 					foreach ($data as $v) {
 						$customer = $this->customer->get_email($v['email'], $v['shop']);
 						$customer = $this->customer->get_email($v['email'], $v['shop']);
-						$customernum = $this->fullorder->find_count("$time < '" . ($t + 24 * 3600) . "' and email = '" . $v['email'] . "' and shop = '" . $v['shop'] . "'");
+						$customernum = $this->fullorder->find_count("$time < '" . ($t + 24 * 3600) . "' and email = '" . $v['email'] . "' and shop = '" . $v['shop'] . "'   and  extra_status = 0 ");
 						preg_match_all('/[0-9]/u', $v['phone'], $result);
 						preg_match_all('/[0-9]/u', $v['phone'], $result);
 						$numphone = join('', $result[0]);
 						$numphone = join('', $result[0]);
 						//$customerc = $this->customer->find_all("shop = '".$v['shop']."' and address = '".$v['address']."' and numphone = '".$numphone."'",'*','id desc');
 						//$customerc = $this->customer->find_all("shop = '".$v['shop']."' and address = '".$v['address']."' and numphone = '".$numphone."'",'*','id desc');