作者 lizheng
1 个管道 的构建 通过 耗费 0 秒

筛选

... ... @@ -386,7 +386,7 @@ class ProductController extends RestBaseController
* @header name:XX-Device-Type type:string require:0 default:wxapp other: desc:设备类型
*
* @param name:user_id type:int require:1 other: desc:业务员id
* @param name:company type:int require:0 other: desc:工作信息1上班2做生意0不限
* @param name:company type:int require:0 other: desc:工作信息1上班2做生意0无 3不限
* @param name:policy type:int require:0 other: desc:保单信息1有0无2不限
* @param name:car type:int require:0 other: desc:车辆信息1全款车0无2不限3分期车
* @param name:page type:int require:0 other: desc:页码
... ... @@ -414,13 +414,16 @@ class ProductController extends RestBaseController
// if (!empty($data['company'])) {
// $condition['p.job'] = $data['company'];
// }
if (isset($data['company']) && $data['company'] !=null && $data['company'] !=3) {
// && $data['company'] !=null
if (isset($data['company']) && $data['company'] !=3) {
$condition['p.job'] = $data['company'];
}
if (isset($data['policy']) && $data['policy'] !=null && $data['policy'] !=2) {
// && $data['policy'] !=null
if (isset($data['policy']) && $data['policy'] !=2) {
$condition['p.policy'] = $data['policy'];
}
if (isset($data['car']) && $data['car'] !=null && $data['car'] !=2) {
// && $data['car'] !=null
if (isset($data['car']) && $data['car'] !=2) {
$condition['p.car'] = $data['car'];
}
$list = Db::name('product')
... ...