InvoicePool.php 296 B

1234567891011121314151617
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class InvoicePool extends Model
  9. {
  10. public function PoolInfo(){
  11. return $this->belongsTo(InvoicePoolInfo::class,'invNo','invNo')->bind(["buyer_code","seller_code"]);
  12. }
  13. }