소스 검색

关于用户的老客户

lvhao 3 달 전
부모
커밋
6282bf743e
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      core/CoreApp/controllers/Customer.php
  2. 1 1
      core/CoreApp/controllers/Customertt.php

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

@@ -1668,6 +1668,7 @@ class Customer extends Start_Controller {
 					}
 				}
 			}	
+			
 			/*  匹配ID结束  */
 		    $this->db->trans_begin();
 		    foreach ($list as $key=>$value)
@@ -2155,7 +2156,7 @@ class Customer extends Start_Controller {
 				$fdata = $this->customer->find_all($where.$wid,'email,shop','time desc');
 				foreach ($fdata as $key=>$value) 
 		        {
-					$d = $this->fullorder->find_all('email = "'.$value['email'].'" and shop = "'.$value['shop'].'" and mergeid = 0','orderinfo,state,product,shipremarks,name,email,country,dtime,shouldmoney','time desc');
+					$d = $this->fullorder->find_all('email = "'.$value['email'].'" and shop = "'.$value['shop'].'" and mergeid = 0    and  extra_status = 0 ','orderinfo,state,product,shipremarks,name,email,country,dtime,shouldmoney','time desc');
 					if($nu == 2)
 					{
 					    if(count($d) > 1)

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

@@ -1876,7 +1876,7 @@ class customertt extends Start_Controller {
 				$fdata = $this->customertt->find_all($where.$wid,'email,shop','time desc');
 				foreach ($fdata as $key=>$value) 
 		        {
-					$d = $this->fullordertt->find_all('email = "'.$value['email'].'" and shop = "'.$value['shop'].'" and mergeid = 0','orderinfo,state,product,shipremarks,name,email,country,dtime,shouldmoney','time desc');
+					$d = $this->fullordertt->find_all('email = "'.$value['email'].'" and shop = "'.$value['shop'].'" and mergeid = 0   and  extra_status = 0 ','orderinfo,state,product,shipremarks,name,email,country,dtime,shouldmoney','time desc');
 					if($nu == 2)
 					{
 					    if(count($d) > 1)