AmountStandardApi.php 488 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\api;
  3. use app\common\model\AmountStandard as asModel;
  4. /**
  5. * Description of AmountStandardApi
  6. *
  7. * @author sgq
  8. */
  9. class AmountStandardApi {
  10. public static function getStandard($type, $allowanceType, $talentArrange) {
  11. $where = [];
  12. $where[] = ["type", "=", $type];
  13. $where[] = ["allowanceType", "=", $allowanceType];
  14. $where[] = ["talentArrange", "=", $talentArrange];
  15. return asModel::where($where)->find();
  16. }
  17. }