From 190074d0e33dfa6bf8ef576c6deda15263c20896 Mon Sep 17 00:00:00 2001 From: dengbw Date: Sat, 30 Apr 2022 20:08:59 +0800 Subject: [PATCH] customers_430 --- api/controllers/plan/Licheb.php | 2 +- api/controllers/wxapp/licheb/Customers.php | 2 +- api/controllers/wxapp/licheb/User.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 180fbd2d..a3c96b7b 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -176,7 +176,7 @@ class Licheb extends HD_Controller foreach ($res_u as $key => $value) { $id = $value['id']; $biz_id = $value['biz_id']; - $where_v = array("a.biz_id in ($biz_id)" => null, 'a.admin_id' => $id, 'b.contact' => 1, 'b.status' => 1, 'b.day=' => $day); + $where_v = array("a.biz_id in ($biz_id)" => null, 'a.status<>' => 2, 'a.admin_id' => $id, 'b.contact' => 1, 'b.status' => 1, 'b.day=' => $day); $visit_count = $this->mdCustomersVisit->count_visit($where_v); if ($visit_count) {//发送短信 send_alisms(array('mobile' => $value['mobile'], 'template' => 'SMS_226985259', 'param' => ['count' => $visit_count])); diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 0b955f7f..fb6478ae 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -695,7 +695,7 @@ class Customers extends Wxapp $size = $params['size']; !$page && $page = 1; !$size && $size = 10; - $where = array('a.biz_id' => $biz_id, 'b.contact' => 1, 'b.status' => 1); + $where = array('a.biz_id' => $biz_id, 'a.status<>' => 2, 'b.contact' => 1, 'b.status' => 1); $group_id == 1 && $where['a.admin_id'] = $this->session['uid']; $count = $this->mdCustomersVisit->count_visit($where); $lists = []; diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index d5853943..0229d6eb 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -302,7 +302,7 @@ class User extends Wxapp ['title' => '交付确认', 'icon' => 'icon-jiaofu', 'total' => $del_count, 'page' => '/pages/order/filterList/index?key=5&ismy=1'], ]; //客户代办事项 - $where_v = array('a.biz_id' => $biz_id, 'b.contact' => 1, 'b.status' => 1); + $where_v = array('a.biz_id' => $biz_id, 'a.status<>' => 2,'b.contact' => 1, 'b.status' => 1); $group_id == 1 && $where_v['a.admin_id'] = $uid; $visit_count = $this->mdCustomersVisit->count_visit($where_v); if ($group_id == 1) {