AccountItem.php 310 B

1234567891011121314151617
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class AccountItem extends Model
  9. {
  10. protected $connection='mysql_sys';
  11. public function GetUidByDepartId($departId){
  12. return $this->where(["itemid"=>$departId])->column("account_id");
  13. }
  14. }