| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use app\jobs\storeSync\DiyCommon;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%worker_goods_ext}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $goods_id
- * @property integer $payment_type
- * @property string $profit_base
- * @property string $profit_max
- * @property integer $created_at
- * @property integer $updated_at
- * @property string $desc
- * @property string $warn
- * @property integer $cat_id
- * @property string $final_profit
- * @property integer $bind_worker
- */
- class WorkerGoodsExt extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%worker_goods_ext}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- ]
- ];
- }
- public function beforeSave($insert)
- {
- return parent::beforeSave($insert);
- }
- public function afterSave($insert, $changedAttributes)
- {
- parent::afterSave($insert, $changedAttributes); // TODO: Change the autogenerated stub
- (new DiyCommon)->JobBehaviors($this->store_id, StoreSyncExtLog::TYPE_WORKER_CONFIG_GOODS);
- }
- }
|