255], ['mch_id', 'default', 'value' => 0] ]; } public function behaviors() { return [ [ 'class' => TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'mch_id' => '商户主键', 'name' => '打印机名称', 'printer_type' => '打印机类型', 'printer_setting' => '打印机设置', 'is_delete' => 'Is Delete', 'updated_at' => '更新时间', 'created_at' => '创建时间', 'md_id' => "门店id", 'supplier_id' => '供货商id', 'type' => '类型' ]; } }