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

筛选

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