取消提现手续费-附加一些功能测试
This commit is contained in:
30
common/models/ChargeCashPayRecord.php
Normal file
30
common/models/ChargeCashPayRecord.php
Normal 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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user