RyService.php 537 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\service;
  3. use app\model\Ry;
  4. use think\db\exception\DataNotFoundException;
  5. use think\db\exception\DbException;
  6. use think\db\exception\ModelNotFoundException;
  7. class RyService
  8. {
  9. /**
  10. * @throws ModelNotFoundException
  11. * @throws DataNotFoundException
  12. * @throws DbException
  13. */
  14. static function selectLoginInfo($loginInfo):array{
  15. $map[]=["rybh","=",$loginInfo["rybh"]];
  16. $map[]=["kl","=",$loginInfo["kl"]];
  17. return (new \app\model\Ry)->where($map)->find()->toArray();
  18. }
  19. }