| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace app\models;
- use app\modules\client\models\OrderComplete;
- use app\utils\OrderNo;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- use yii\helpers\ArrayHelper;
- /**
- * @property integer $id
- * @property integer $store_id
- * @property integer $order_id
- * @property integer $user_id
- * @property integer $old_sales_id
- * @property integer $sales_id
- * @property string $created_at
- * @property string $updated_at
- */
- class SuperSalesRepeatOrder extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%super_sales_repeat_order}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class
- ]
- ];
- }
- public function rules()
- {
- return [
- [['id', 'store_id', 'order_id', 'user_id', 'old_sales_id', 'sales_id'], 'integer'],
- [['created_at', 'updated_at'], 'string']
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'store_id' => '商城ID',
- 'order_id' => '订单ID',
- 'user_id' => '用户ID',
- 'old_sales_id' => '原团ID',
- 'sales_id' => '新团ID',
- 'created_at' => '',
- 'updated_at' => '',
- ];
- }
- }
|