customers_908

This commit is contained in:
dengbw
2022-09-08 09:20:34 +08:00
committed by lccsw
parent 35dc063315
commit d64700b69d
@@ -72,6 +72,10 @@ class Customers_entity
return '';
}
}
if ($type == 6 || $type == 7) {//生成订单或战败客户删除回访记录
$this->ci->load->model('receiver/receiver_customers_visit_data_model', 'mdCustomerVisitData');
$this->ci->mdCustomerVisitData->delete(['c_id' => $customer_id, 'status<>' => 2, 't_day >=' => date('Y-m-d')]);
}
if ($type == 6) {//订单客户
$count_4 = $this->ci->customer_oplogs_model->count(['customer_id' => $customer_id, 'type' => 4]);
if (!$count_4) {//无到店日志