12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\common\model\member;
- use app\common\model\BaseModel;
- use app\store\model\Order;
- use app\store\model\User;
- /**
- * 金米粒手工扣减模型
- * @package app\store\model\member
- */
- class DeductionManual extends BaseModel
- {
- //审核状态
- const AUDIT_STATUS = [0=>'待审核',1=>'审核通过',2=>'已拒绝',3=>'关闭'];
- protected $name = 'member_deduction_manual';
- protected $append = [];
- /**
- * 详情
- * @param int $id
- * @return null|static
- */
- public static function detail(int $id,$with =[])
- {
- return self::get($id,$with);
- }
- //用户关联
- public function user(){
- return $this->hasOne(User::class,'user_id','user_id');
- }
- }
|