GodTemp.php 711 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\cxinv\model;
  3. use app\user\model\TaxCategory;
  4. class GodTemp extends Base
  5. {
  6. protected $schema = [
  7. 'id' => 'bigint:20',
  8. 'code' => 'varchar:255',
  9. 'goodName' => 'varchar:255',
  10. 'cat_info' => 'varchar:255',
  11. 'cat_tax'=> 'varchar:255',
  12. 'cat_code' => 'varchar:255',
  13. 'cat_name' => 'varchar:255',
  14. 'status_cn' => 'varchar:255',
  15. 'status' => 'tinyint:4',
  16. 'check_uname' => 'varchar:255',
  17. 'companyName' => 'varchar:255',
  18. ];
  19. public function TaxInfo(){
  20. return $this->hasOne(TaxCategory::class,'merge_code','cat_code')->bind(['tax_id'=>'id','short_name','cat_code','cat_name','merge_name']);
  21. }
  22. }