客户搜索bug修复

This commit is contained in:
hdm 2022-09-07 23:06:38 +08:00
parent 29e3034373
commit cfc22c30d3
2 changed files with 16 additions and 0 deletions
app/customer
controller
view/index

@ -30,6 +30,15 @@ class Index extends BaseController
} }
if (!empty($param['status'])) { if (!empty($param['status'])) {
$where[] = ['a.status', '=', $param['status']]; $where[] = ['a.status', '=', $param['status']];
}
if (!empty($param['grade_id'])) {
$where[] = ['a.grade_id', '=', $param['grade_id']];
}
if (!empty($param['source_id'])) {
$where[] = ['a.source_id', '=', $param['source_id']];
}
if (!empty($param['type'])) {
$where[] = ['a.intent_status', '=', $param['type']];
} }
$where[] = ['a.delete_time', '=', 0]; $where[] = ['a.delete_time', '=', 0];
@ -123,6 +132,12 @@ class Index extends BaseController
} }
if (!empty($param['status'])) { if (!empty($param['status'])) {
$where[] = ['a.status', '=', $param['status']]; $where[] = ['a.status', '=', $param['status']];
}
if (!empty($param['industry_id'])) {
$where[] = ['a.industry_id', '=', $param['industry_id']];
}
if (!empty($param['source_id'])) {
$where[] = ['a.source_id', '=', $param['source_id']];
} }
$where[] = ['a.delete_time', '=', 0]; $where[] = ['a.delete_time', '=', 0];
$where[] = ['a.belong_uid', '=', 0]; $where[] = ['a.belong_uid', '=', 0];

@ -45,6 +45,7 @@
<option value="2">跟进客户</option> <option value="2">跟进客户</option>
<option value="3">正式客户</option> <option value="3">正式客户</option>
<option value="4">流失客户</option> <option value="4">流失客户</option>
<option value="5">已成交客户</option>
</select> </select>
</div> </div>
<div class="layui-input-inline" style="width:240px;"> <div class="layui-input-inline" style="width:240px;">