Customers_610_2

This commit is contained in:
dengbw
2022-06-10 15:50:16 +08:00
parent 98be1d1d2b
commit b7184dc34f
+1 -1
View File
@@ -729,7 +729,7 @@ class Customers extends Wxapp
$re_vis = $this->mdCustomerVisitData->get($where_vis);
if (!$re_vis) {
//删除未回访计划
$this->mdCustomerVisitData->delete(['c_id' => $id, 'biz_id' => $biz_id, 'status<>' => 2, 't_day >=' => $visit_time]);
$this->mdCustomerVisitData->delete(['c_id' => $id, 'biz_id' => $biz_id, 'status<>' => 2, 't_day >=' => date('Y-m-d')]);
$where_vis['level'] = $level;
$where_vis['c_time'] = time();
$this->mdCustomerVisitData->add($where_vis);