Company.php 358 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\common\model;
  3. use app\hander\HelpHander;
  4. use think\Db;
  5. use think\Model;
  6. class Company extends Model
  7. {
  8. public function lists($orgId){
  9. $lists = $this
  10. ->where('org_id',$orgId)
  11. ->field('id,title')
  12. ->order('id asc')
  13. ->select();
  14. return $lists?$lists->toArray():[];
  15. }
  16. }