12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\cxinv\model;
- class FinancialCheck extends Base
- {
- protected $schema = [
- 'id' =>'bigint',
- 'checkCode' =>'varchar',
- 'code' =>'varchar',
- 'type' =>'int',
- 'itemid' =>'int',
- 'goodType' =>'int',
- 'goodNo' =>'varchar',
- 'goodName' =>'varchar',
- 'company_code' =>'varchar',
- 'company_name' =>'varchar',
- 'spec' =>'varchar',
- 'unit' =>'varchar',
- 'num' =>'decimal',
- 'price' =>'decimal',
- 'subprice' =>'decimal',
- 'check_fee' =>'decimal',
- 'check_uid' =>'int',
- 'check_uname' =>'varchar',
- 'check_time' =>'datetime',
- 'fz_date' =>'varchar',
- 'create_time' =>'datetime',
- ];
- protected $createTime = 'create_time';
- public function FinancialTz(){
- return $this->hasOne(FinancialTz::class,'ktCode','code');
- }
- public function ProductCheck(){
- return $this->hasOne(ProductCheck::class,'checkCode','code');
- }
- }
|