diff --git a/api/controllers/wxapp/licheb/Transfer.php b/api/controllers/wxapp/licheb/Transfer.php index 550adbb8..3496d258 100644 --- a/api/controllers/wxapp/licheb/Transfer.php +++ b/api/controllers/wxapp/licheb/Transfer.php @@ -83,7 +83,11 @@ class Transfer extends Wxapp } $biz_id_str = $bizs ? implode(',', array_column($bizs, 'id')) : 0; $where = ['status <>' => -1, "biz_id in({$biz_id_str})" => null]; - $where['status'] = $tabs_id == 2 ? 2 : 1; + if ($tabs_id == 2) { + $where['status'] = 2; + } else { + $where['status in(0,1)'] = null; + } $s_date && $where['c_time >='] = strtotime($s_date . ' 00:00:00'); $e_date && $where['c_time <='] = strtotime($e_date . ' 23:59:59'); $count = $this->mdTransfer->count($where);