|
@@ -703,7 +703,7 @@ class CustomerService extends Service
|
|
* @param $user
|
|
* @param $user
|
|
* @return array
|
|
* @return array
|
|
*/
|
|
*/
|
|
- public function customerList($data,$user){
|
|
|
|
|
|
+ public function customerWxList($data,$user){
|
|
$model = $this->customerCommonSearch($data,$user);
|
|
$model = $this->customerCommonSearch($data,$user);
|
|
$list = $this->limit($model,'',$data);
|
|
$list = $this->limit($model,'',$data);
|
|
$list = $this->fillData($list,$data, $user);
|
|
$list = $this->fillData($list,$data, $user);
|
|
@@ -716,6 +716,20 @@ class CustomerService extends Service
|
|
return [true, $list];
|
|
return [true, $list];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 客户列表
|
|
|
|
+ * @param $data
|
|
|
|
+ * @param $user
|
|
|
|
+ * @return array
|
|
|
|
+ */
|
|
|
|
+ public function customerList($data,$user){
|
|
|
|
+ $model = $this->customerCommonSearch($data,$user);
|
|
|
|
+ $list = $this->limit($model,'',$data);
|
|
|
|
+ $list = $this->fillData($list,$data, $user);
|
|
|
|
+
|
|
|
|
+ return [true, $list];
|
|
|
|
+ }
|
|
|
|
+
|
|
public function customer2CommonSearch($data,$user){
|
|
public function customer2CommonSearch($data,$user){
|
|
$model = Customer::Clear($user,$data);
|
|
$model = Customer::Clear($user,$data);
|
|
$model = $model->where('del_time',0)
|
|
$model = $model->where('del_time',0)
|