GoodChange.php 536 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class GoodChange extends Model
  9. {
  10. public static $mapField = [
  11. 'inv_good_name'=> '商品名称',
  12. 'inv_cat_name' => '商品类目',
  13. 'inv_tax' => '商品税率',
  14. 'is_discount' => '是否有优惠政策',
  15. 'addTax' => '增值税管理内容',
  16. 'inv_tag' => '税率标识'
  17. ];
  18. public function Good(){
  19. return $this->belongsTo(Good::class,"spuCode","spuCode");
  20. }
  21. }