GreenCate.php 431 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\Db;
  6. class GreenCate extends Base
  7. {
  8. public function lists(){
  9. $list = Db::name('green_cate')
  10. ->where('enable',1)
  11. ->where('del',0)
  12. ->whereIn('org_id',[0,$this->orgId])
  13. ->order('sort asc,id desc')
  14. ->select();
  15. HelpHander::success($list);
  16. }
  17. }