customers_430
This commit is contained in:
@@ -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]));
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user