Blame view

framework/table/phoneappversions.table.php 701 Bytes
4d84a934   曹明   初始代码提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

defined('IN_IA') or exit('Access Denied');

class PhoneappversionsTable extends We7Table {
	protected $tableName = 'phoneapp_versions';
	protected $primaryKey = 'id';

    public function phoneappLatestVersion($uniacid) {
        return $this->query->from($this->tableName)->where('uniacid', $uniacid)->orderby('id', 'desc')->limit(4)->getall('id');
    }

	public function phoneappLastVersion($uniacid) {
		return $this->query->from($this->tableName)->where('uniacid', $uniacid)->orderby('id', 'desc')->limit(1)->get();
	}

	public function phoneappAllVersion($uniacid) {
        return $this->query->from($this->tableName)->where('uniacid', $uniacid)->orderby('id', 'desc')->getall();
    }
}