取消提现手续费-附加一些功能测试

This commit is contained in:
2024-09-29 16:44:06 +08:00
parent 3cca920102
commit 8ffba61ea7
4 changed files with 174 additions and 10 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace common\models;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
class ChargeCashPayRecord extends \common\modelsgii\ChargeCashPayRecord
{
public function behaviors()
{
return [
[
'class' => TimestampBehavior::class,
'attributes' => [
ActiveRecord::EVENT_BEFORE_INSERT => ['created_at','updated_at'],
ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
],
],
];
}
//门店
public function getStore()
{
return $this->hasOne(Store::class, ['id'=>'store_id']);
}
}