| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%agent_front_centralize_goods_ext}}".
- *
- * @property integer $id
- * @property string $centralize_goods_id
- * @property integer $refund_type
- * @property integer $md_id
- * @property integer $store_id
- * @property integer $refund_id
- * @property float $longitude
- * @property float $latitude
- * @property string $name
- * @property string $mobile
- * @property integer $province_id
- * @property integer $city_id
- * @property integer $district_id
- * @property string $address
- * @property string $goods_num_info
- * @property integer $status
- * @property integer $goods_num
- * @property integer $driver_id
- * @property integer $is_confirm_goods
- * @property string $main_goods_pic
- * @property string $other_goods_pic
- * @property string $back_md_pic
- * @property integer $confirm_time
- * @property integer $created_at
- * @property integer $updated_at
- */
- class AgentFrontCentralizeGoodsRefundLog extends \yii\db\ActiveRecord
- {
- //发货方式:0快递 1上门取货 2退回门店
- /**
- * 0快递
- */
- const REFUND_TYPE_EXPRESS = 0;
- /**
- * 1上门取货
- */
- const REFUND_TYPE_VISIT = 1;
- /**
- * 2退回门店
- */
- const REFUND_TYPE_BACK_MD = 2;
- /**
- * 状态:0未取货
- */
- const STATUS_NOT_TAKE = 0;
- /**
- * 状态:1已取货
- */
- const STATUS_TAKE_SUCCESS = 1;
- /**
- * 状态:2取货失败
- */
- const STATUS_TAKE_ERROR = 2;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%agent_front_centralize_goods_refund_log}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['centralize_goods_id', 'main_goods_pic', 'other_goods_pic', 'back_md_pic', 'mobile', 'name', 'address', 'goods_num_info'], 'string'],
- [['id', 'refund_type', 'md_id', 'store_id', 'status', 'province_id', 'city_id', 'district_id', 'refund_id', 'is_confirm_goods', 'driver_id', 'goods_num'], 'integer'],
- [['longitude', 'latitude', 'updated_at', 'created_at', 'confirm_time'], 'number']
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'centralize_goods_id' => '商品信息ID',
- 'refund_type' => '退货类型:1上门收货 2退回门店',
- 'md_id' => '',
- 'store_id' => '',
- 'longitude' => '经度',
- 'latitude' => '纬度',
- 'name' => '退款人名称',
- 'mobile' => '退款人手机号',
- 'province_id' => '',
- 'city_id' => '',
- 'district_id' => '',
- 'goods_num_info' => '应收商品数量信息',
- 'status' => '状态:0未取 1确认取货 2取货失败',
- 'main_goods_pic' => '高价值照片',
- 'other_goods_pic' => '其他取回商品照片',
- 'back_md_pic' => '送回门店照片',
- 'confirm_time' => '确认取货时间',
- 'created_at' => '',
- 'updated_at' => '',
- ];
- }
- }
|