TimestampBehavior::class, 'value' => time() ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'mch_id', 'printer_id', 'block_id', 'is_delete', 'is_attr', 'big', 'created_at', 'updated_at', 'md_id', 'supplier_id'], 'integer'], [['type'], 'string'], ['mch_id', 'default', 'value' => 0] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'mch_id' => '商户主键', 'printer_id' => '打印机ID', 'block_id' => '打印模板ID', 'type' => '打印方式 ', 'is_delete' => 'Is Delete', 'is_attr' => '是否打印规格 0--不打印 1--打印', 'big' => '发大倍数', 'updated_at' => '更新时间', 'created_at' => '创建时间', "md_id" => '门店id', 'supplier_id' => '供货商id' ]; } }