TradePool.php 311 B

123456789101112131415161718
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class TradePool extends Model
  9. {
  10. //
  11. public function Company()
  12. {
  13. return $this->belongsTo(CompanyInfo::class,"companyNo",'companyNo')->bind(["companyName"=>"company_name"]);
  14. }
  15. }