Jgry.php 510 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. *
  4. *User:Administrator
  5. *Date:2021/10/13
  6. */
  7. namespace app\api\model;
  8. use think\Model;
  9. class Jgry extends Model
  10. {
  11. public function getUserInfoByRybh($rybh)
  12. {
  13. if (empty($rybh)) {
  14. return false;
  15. }
  16. return $this->where('rybh','=', $rybh)->find();
  17. }
  18. public function getJgryInfoByRymc($rymc)
  19. {
  20. if (empty($rymc)) {
  21. return false;
  22. }
  23. return $this->where('rymc', '=', $rymc)->field('groupname,rymc')->find();
  24. }
  25. }