| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%agent_front_centralize_goods}}".
- *
- * @property integer $id
- * @property integer $front_admin_id
- * @property integer $cloud_goods_id
- * @property integer $goods_num
- * @property integer $sorting_num
- * @property integer $supplier_id
- * @property string $goods_no
- * @property string $attr
- * @property string $attr_info
- * @property string $goods_name
- * @property string $pic_url
- * @property integer $status
- * @property integer $centralize_goods_type
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $updated_at
- */
- class AgentFrontCentralizeGoods extends \yii\db\ActiveRecord
- {
- const STATUS_SORTING = 0;//分拣中
- const STATUS_NO_CAR_LOADING = 1;//分拣完成
- const STATUS_CAR_LOADING = 2;//已装车
- const STATUS_FINISH = 3;//已完成
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%agent_front_centralize_goods}}';
- }
- 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 [
- [['id', 'front_admin_id', 'cloud_goods_id', 'created_at', 'updated_at', 'is_delete', 'goods_num', 'centralize_goods_type', 'supplier_id', 'sorting_num', 'status'], 'integer'],
- [['attr', 'goods_no', 'attr_info', 'goods_name', 'pic_url'], 'string']
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'front_admin_id' => '仓库ID',
- 'cloud_goods_id' => '云仓商品ID',
- 'goods_num' => '商品数量',
- 'sorting_num' => '已分拣商品数量',
- 'goods_no' => '商品规格货号',
- 'attr' => '规格',
- 'attr_info' => '',
- 'goods_name' => '',
- 'pic_url' => '',
- 'is_delete' => '',
- 'created_at' => '',
- 'updated_at' => '',
- ];
- }
- }
|