customers_713

This commit is contained in:
dengbw
2022-07-13 10:11:06 +08:00
committed by lccsw
parent f91538f90c
commit bf8a04548a
+2 -2
View File
@@ -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);