修改查询错误

dev
曾超新 5 years ago
parent ccfd85f7e4
commit eaa7e4a524
  1. 4
      frontend/controllers/InsurerController.php

@ -3718,10 +3718,10 @@ class InsurerController extends BaseController
} }
if($status > 0) { if($status > 0) {
if($status == 1) { if($status == 1) {
$query->andWhere('status>1 and status<10'); $query->andWhere('status_id>1 and status_id<10');
} }
if($status == 2) { if($status == 2) {
$query->andWhere('status=10'); $query->andWhere('status_id=10');
} }
} }
$total = $query->count(); $total = $query->count();

Loading…
Cancel
Save