$ids, 'mall_id' => $mall_id, 'status' => static::STATUS_AGREE, 'type' => YunfastPayEnum::YUNFAST_PAY ]; return static::find() ->where($condition) ->select($field) ->all(); } /** * 通过ids修改记录为待打款 * * @param integer $mall_id * @param array $ids * @return integer */ public static function statusToWaitingByIds(int $mall_id, array $ids) { return static::updateAll(['status' => static::STATUS_WAIT], [ 'id' => $ids, 'mall_id' => $mall_id, ]); } }