LivingAllowanceApi.php 397 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\api;
  3. use app\common\model\LivingAllowance as laModel;
  4. /**
  5. * Description of LivingAllowanceApi
  6. *
  7. * @author sgq
  8. */
  9. class LivingAllowanceApi {
  10. public static function getList($where = []) {
  11. return laModel::where($where)->select()->toArray();
  12. }
  13. public static function getInfoById($id) {
  14. return laModel::where("id", $id)->find();
  15. }
  16. }