12345678910111213141516171819202122232425 |
- <?php
- declare (strict_types = 1);
- namespace app\admin\model;
- use think\Model;
- /**
- * @mixin \think\Model
- */
- class GoodChange extends Model
- {
- public static $mapField = [
- 'inv_good_name'=> '商品名称',
- 'inv_cat_name' => '商品类目',
- 'inv_tax' => '商品税率',
- 'is_discount' => '是否有优惠政策',
- 'addTax' => '增值税管理内容',
- 'inv_tag' => '税率标识'
- ];
- public function Good(){
- return $this->belongsTo(Good::class,"spuCode","spuCode");
- }
- }
|