LevelService.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | RXThinkCMF框架 [ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 南京RXThinkCMF研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.rxthink.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: 牧羊人 <1175401194@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Services;
  12. use App\Models\LevelModel;
  13. /**
  14. * 职级管理-服务类
  15. * @author 牧羊人
  16. * @since 2020/11/11
  17. * Class LevelService
  18. * @package App\Services
  19. */
  20. class LevelService extends BaseService
  21. {
  22. /**
  23. * 构造函数
  24. * @author 牧羊人
  25. * @since 2020/11/11
  26. * LevelService constructor.
  27. */
  28. public function __construct()
  29. {
  30. $this->model = new LevelModel();
  31. }
  32. /**
  33. * 获取职级列表
  34. * @return array
  35. * @since 2020/11/11
  36. * @author 牧羊人
  37. */
  38. public function getLevelList()
  39. {
  40. $list = $this->model->where([
  41. ['status', '=', 1],
  42. ['mark', '=', 1],
  43. ])->orderBy("sort", "asc")
  44. ->get()
  45. ->toArray();
  46. return message("操作成功", true, $list);
  47. }
  48. }