<?php

namespace app\common\api;

use app\common\model\AmountStandard as asModel;

/**
 * Description of AmountStandardApi
 *
 * @author sgq
 */
class AmountStandardApi {

    public static function getStandard($type, $allowanceType, $talentArrange) {
        $where = [];
        $where[] = ["type", "=", $type];
        $where[] = ["allowanceType", "=", $allowanceType];
        $where[] = ["talentArrange", "=", $talentArrange];
        return asModel::where($where)->find();
    }

}
