20240604
This commit is contained in:
@@ -261,6 +261,8 @@ class Cusorder extends Wxapp
|
||||
$where['admin_id'] = $uid;//销售
|
||||
} else if ($group_id == 2 || $group_id == 3) {//店长/老板
|
||||
$where["(biz_id = {$this->biz_id} OR admin_id = {$uid})"] = null;
|
||||
} else if ($group_id == 4) {
|
||||
$where['biz_id'] = $this->biz_id;
|
||||
}
|
||||
$where['status<'] = 2;
|
||||
$d_count = $this->orders_model->count($where);
|
||||
@@ -327,7 +329,6 @@ class Cusorder extends Wxapp
|
||||
$where["(biz_id = {$this->biz_id} OR admin_id = {$uid})"] = null;
|
||||
} else if ($group_id == 4) {
|
||||
$where['biz_id'] = $this->biz_id;
|
||||
$this->biz_id != 1 && $where['brand_id!='] = 3; //客户成功经理过滤
|
||||
}
|
||||
if ($keyword) {
|
||||
$where['name'] = $keyword;
|
||||
|
||||
@@ -480,7 +480,7 @@ class User extends Wxapp
|
||||
$province_id = $this->input_param('province_id');
|
||||
$city_id = $this->input_param('city_id');
|
||||
$lists = [];
|
||||
|
||||
$o_where['status'] = 1;
|
||||
$biz_id_arr = explode(',', $this->session['biz_id']);
|
||||
$fileds = 'id,biz_name';
|
||||
if ($this->session['biz_id'] && $biz_id_arr) {
|
||||
@@ -491,7 +491,7 @@ class User extends Wxapp
|
||||
!$province_id && $province_id = '430000';
|
||||
$province_id && $o_where = ['province_id' => $province_id];
|
||||
$city_id && $o_where = ['city_id' => $city_id];
|
||||
$bizs = $this->biz_model->select(['status' => 1], $o_where, 'id desc', '', '', $fileds);
|
||||
$bizs = $this->biz_model->select($o_where, 'id desc', '', '', $fileds);
|
||||
}
|
||||
if ($bizs) {
|
||||
foreach ($bizs as $key => $val) {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
class Auto_api_log_model extends HD_Model{
|
||||
private $table_name = 'lc_auto_api_log';
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct($this->table_name, 'default');
|
||||
}
|
||||
}
|
||||
@@ -46,11 +46,8 @@ class Biz_model extends HD_Model
|
||||
$bizs = [];
|
||||
$ids = implode(',', $ids_arr);
|
||||
if ($ids) {
|
||||
$typeAry = $this->type_ary();
|
||||
$type_ids = implode(',',array_keys($typeAry));
|
||||
$where = [
|
||||
"id in ($ids)" => null,
|
||||
"type in ($type_ids)" => null,
|
||||
"status" => 1
|
||||
];
|
||||
is_array($o_where) && $where = array_merge($where, $o_where);
|
||||
|
||||
Reference in New Issue
Block a user