From c9464d0c475d63590eb0e1bcf31fd26ffb2ab09a Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 20 Dec 2021 16:17:54 +0800 Subject: [PATCH] settter --- app/model/Deduction.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/model/Deduction.php b/app/model/Deduction.php index fd8d776..8da4754 100644 --- a/app/model/Deduction.php +++ b/app/model/Deduction.php @@ -19,4 +19,8 @@ class Deduction extends Base { return $this->hasOne(CouponMain::class,"id","coupon_main_id"); } + public function bill() + { + return $this->hasOne(Bill::class,"id","bill_id"); + } } \ No newline at end of file