From bf8a04548a0be5f0d91f273178fc6ce46d8cc65a Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 13 Jul 2022 10:11:06 +0800 Subject: [PATCH] customers_713 --- api/controllers/wxapp/licheb/Customers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 1ad377b9..2bb197a6 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -448,8 +448,8 @@ class Customers extends Wxapp $where_vis = ['c_id' => $id, 'biz_id' => $biz_id, 'sales_id' => $sales_id, 't_day' => $visit_time]; $re_vis = $this->mdCustomerVisitData->get($where_vis); if (!$re_vis) { - //删除大于今天的回访记录 - $this->mdCustomerVisitData->delete(['c_id' => $id, 'biz_id' => $biz_id, 'sales_id' => $sales_id, 't_day>' => $visit_time]); + //删除大于等今天的回访记录 + $this->mdCustomerVisitData->delete(['c_id' => $id, 'biz_id' => $biz_id, 't_day>=' => date('Y-m-d')]); $where_vis['level'] = $level; $where_vis['c_time'] = time(); $this->mdCustomerVisitData->add($where_vis);