32], [['account'], 'string', 'max' => 64], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'order_id' => 'Order ID', 'name' => 'Name', 'account' => 'Account', 'amount' => 'Amount', 'created_at' => 'Created At', ]; } /** * 批量插入汇款 * * @param array $list * @return boolean */ public function addList($list) { if (empty($list)) return false; $field = array_keys($list[array_key_first($list)]); return Yii::$app->db->createCommand()->batchInsert(self::tableName(), $field, $list)->execute(); } }