Explorar el Código

1,新增功能修改

cloud hace 1 mes
padre
commit
a1f13dcf1b

+ 24 - 0
application/admin/controller/CompanyInfo.php

@@ -0,0 +1,24 @@
+<?php
+
+namespace app\admin\controller;
+
+use app\common\controller\Backend;
+
+/**
+ * 公司信息管理
+ *
+ * @icon fa fa-building
+ */
+class CompanyInfo extends Backend
+{
+    /**
+     * @var \app\admin\model\CompanyInfo
+     */
+    protected $model = null;
+
+    public function _initialize()
+    {
+        parent::_initialize();
+        $this->model = new \app\admin\model\CompanyInfo;
+    }
+}

+ 9 - 0
application/admin/lang/zh-cn/company_info.php

@@ -0,0 +1,9 @@
+<?php
+
+return [
+    'Address'        => '公司总部地址',
+    'Employee_count' => '员工数量',
+    'Total_sales'    => '产品总销售额',
+    'Createtime'     => '创建时间',
+    'Updatetime'     => '更新时间',
+];

+ 5 - 0
application/admin/lang/zh-cn/news.php

@@ -4,9 +4,14 @@ return [
     'Type'       => '动态类型',
     'Type 1'     => '产品动态',
     'Type 2'     => '公司动态',
+    'Type 3'     => '首页公司简介',
+    'Type 4'     => '公司介绍',
+    'Type 5'     => '生产管理',
     'Image'      => '封面图',
     'Title'      => '标题',
     'Content'    => '内容',
+    'Intro'      => '简介',
+    'Business_scope' => '经营范围',
     'Source'     => '来源',
     'Browse'     => '浏览人数',
     'Createtime' => '创建时间',

+ 14 - 0
application/admin/model/CompanyInfo.php

@@ -0,0 +1,14 @@
+<?php
+
+namespace app\admin\model;
+
+use think\Model;
+
+class CompanyInfo extends Model
+{
+    protected $name = 'company_info';
+    protected $autoWriteTimestamp = 'integer';
+    protected $createTime = 'createtime';
+    protected $updateTime = 'updatetime';
+    protected $deleteTime = false;
+}

+ 7 - 1
application/admin/model/NewsModel.php

@@ -32,7 +32,13 @@ class NewsModel extends Model
     
     public function getTypeList()
     {
-        return ['1' => __('Type 1'), '2' => __('Type 2')];
+        return [
+            '1' => __('Type 1'),
+            '2' => __('Type 2'),
+            '3' => __('Type 3'),
+            '4' => __('Type 4'),
+            '5' => __('Type 5'),
+        ];
     }
 
 

+ 26 - 0
application/admin/view/company_info/add.html

@@ -0,0 +1,26 @@
+<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-address" class="form-control" name="row[address]" type="text" data-rule="required">
+        </div>
+    </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Employee_count')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-employee_count" min="0" class="form-control" name="row[employee_count]" type="number" data-rule="required">
+        </div>
+    </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Total_sales')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-total_sales" class="form-control" name="row[total_sales]" type="text" data-rule="required">
+        </div>
+    </div>
+    <div class="form-group layer-footer">
+        <label class="control-label col-xs-12 col-sm-2"></label>
+        <div class="col-xs-12 col-sm-8">
+            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
+        </div>
+    </div>
+</form>

+ 26 - 0
application/admin/view/company_info/edit.html

@@ -0,0 +1,26 @@
+<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}" data-rule="required">
+        </div>
+    </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Employee_count')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-employee_count" min="0" class="form-control" name="row[employee_count]" type="number" value="{$row.employee_count|htmlentities}" data-rule="required">
+        </div>
+    </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Total_sales')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <input id="c-total_sales" class="form-control" name="row[total_sales]" type="text" value="{$row.total_sales|htmlentities}" data-rule="required">
+        </div>
+    </div>
+    <div class="form-group layer-footer">
+        <label class="control-label col-xs-12 col-sm-2"></label>
+        <div class="col-xs-12 col-sm-8">
+            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
+        </div>
+    </div>
+</form>

+ 18 - 0
application/admin/view/company_info/index.html

@@ -0,0 +1,18 @@
+<div class="panel panel-default panel-intro">
+    {:build_heading()}
+
+    <div class="panel-body">
+        <div class="widget-body no-padding">
+            <div id="toolbar" class="toolbar">
+                <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i></a>
+                <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('company_info/add')?'':'hide'}" title="{:__('Add')}"><i class="fa fa-plus"></i> {:__('Add')}</a>
+                <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('company_info/edit')?'':'hide'}" title="{:__('Edit')}"><i class="fa fa-pencil"></i> {:__('Edit')}</a>
+                <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('company_info/del')?'':'hide'}" title="{:__('Delete')}"><i class="fa fa-trash"></i> {:__('Delete')}</a>
+            </div>
+            <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
+                   data-operate-edit="{:$auth->check('company_info/edit')}"
+                   data-operate-del="{:$auth->check('company_info/del')}" width="100%">
+            </table>
+        </div>
+    </div>
+</div>

+ 12 - 0
application/admin/view/news/add.html

@@ -38,6 +38,18 @@
             <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
         </div>
     </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Intro')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-intro" class="form-control editor" rows="5" name="row[intro]" cols="50"></textarea>
+        </div>
+    </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Business_scope')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-business_scope" class="form-control editor" rows="5" name="row[business_scope]" cols="50"></textarea>
+        </div>
+    </div>
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
         <div class="col-xs-12 col-sm-8">

+ 12 - 0
application/admin/view/news/edit.html

@@ -38,6 +38,18 @@
             <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
         </div>
     </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Intro')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-intro" class="form-control editor" rows="5" name="row[intro]" cols="50">{$row.intro|htmlentities}</textarea>
+        </div>
+    </div>
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Business_scope')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-business_scope" class="form-control editor" rows="5" name="row[business_scope]" cols="50">{$row.business_scope|htmlentities}</textarea>
+        </div>
+    </div>
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
         <div class="col-xs-12 col-sm-8">

+ 33 - 0
application/api/controller/Index.php

@@ -58,6 +58,39 @@ class Index extends Api
         $this->success("ok", $list);
     }
 
+    /**
+     * 获取指定分类最新的公司动态内容
+     *
+     * @param int $category_id 公司动态分类ID
+     */
+    public function company_dynamic_latest()
+    {
+        $categoryId = $this->request->param('category_id/d', 0);
+        $typeList = (new NewsModel())->getTypeList();
+        if (!$categoryId || !isset($typeList[(string)$categoryId])) {
+            $this->error('分类ID无效');
+        }
+
+        $news = NewsModel::where('type', $categoryId)
+            ->order('updatetime', 'desc')
+            ->order('id', 'desc')
+            ->find();
+        if (!$news) {
+            $this->error('该分类暂无内容');
+        }
+
+        $data = $news->toArray();
+        if (!empty($data['image']) && strpos($data['image'], 'http') !== 0) {
+            $data['image'] = 'http://' . $this->request->host() . $data['image'];
+        }
+        foreach (['content', 'intro', 'business_scope'] as $field) {
+            if (isset($data[$field])) {
+                $data[$field] = trim(html_entity_decode(strip_tags($data[$field]), ENT_QUOTES, 'UTF-8'));
+            }
+        }
+        $this->success('ok', $data);
+    }
+
     public function factory_category(){
         $page = $this->request->param("page", 1);
         $limit = $this->request->param("limit", 10);

+ 3 - 0
database/migrations/20260814_add_news_intro_business_scope.sql

@@ -0,0 +1,3 @@
+ALTER TABLE `fa_news`
+    ADD COLUMN `intro` TEXT NULL COMMENT '简介' AFTER `content`,
+    ADD COLUMN `business_scope` TEXT NULL COMMENT '经营范围' AFTER `intro`;

+ 2 - 0
database/migrations/20260814_change_company_info_total_sales_to_text.sql

@@ -0,0 +1,2 @@
+ALTER TABLE `fa_company_info`
+    MODIFY COLUMN `total_sales` VARCHAR(100) NOT NULL COMMENT '产品总销售额';

+ 67 - 0
database/migrations/20260814_create_company_info.sql

@@ -0,0 +1,67 @@
+-- 保留公司动态分类 1~5;仅移除曾错误添加到 fa_news 的公司信息字段。
+ALTER TABLE `fa_news`
+    MODIFY COLUMN `type` ENUM('1', '2', '3', '4', '5') NULL DEFAULT NULL
+        COMMENT '动态类型:1=产品动态,2=公司动态,3=首页公司简介,4=公司介绍,5=生产管理';
+
+SET @drop_address = (
+    SELECT IF(COUNT(*) > 0, 'ALTER TABLE `fa_news` DROP COLUMN `address`', 'SELECT 1')
+    FROM information_schema.COLUMNS
+    WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'fa_news' AND COLUMN_NAME = 'address'
+);
+PREPARE company_info_stmt FROM @drop_address;
+EXECUTE company_info_stmt;
+DEALLOCATE PREPARE company_info_stmt;
+
+SET @drop_employee_count = (
+    SELECT IF(COUNT(*) > 0, 'ALTER TABLE `fa_news` DROP COLUMN `employee_count`', 'SELECT 1')
+    FROM information_schema.COLUMNS
+    WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'fa_news' AND COLUMN_NAME = 'employee_count'
+);
+PREPARE company_info_stmt FROM @drop_employee_count;
+EXECUTE company_info_stmt;
+DEALLOCATE PREPARE company_info_stmt;
+
+SET @drop_total_sales = (
+    SELECT IF(COUNT(*) > 0, 'ALTER TABLE `fa_news` DROP COLUMN `total_sales`', 'SELECT 1')
+    FROM information_schema.COLUMNS
+    WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'fa_news' AND COLUMN_NAME = 'total_sales'
+);
+PREPARE company_info_stmt FROM @drop_total_sales;
+EXECUTE company_info_stmt;
+DEALLOCATE PREPARE company_info_stmt;
+
+CREATE TABLE IF NOT EXISTS `fa_company_info` (
+    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
+    `address` VARCHAR(255) NOT NULL COMMENT '公司总部地址',
+    `employee_count` INT UNSIGNED NOT NULL COMMENT '员工数量',
+    `total_sales` VARCHAR(100) NOT NULL COMMENT '产品总销售额',
+    `createtime` BIGINT NULL DEFAULT NULL COMMENT '创建时间',
+    `updatetime` BIGINT NULL DEFAULT NULL COMMENT '更新时间',
+    PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='公司信息';
+
+INSERT IGNORE INTO `fa_auth_rule`
+(`type`, `pid`, `name`, `title`, `icon`, `url`, `condition`, `remark`, `ismenu`, `menutype`, `extend`, `py`, `pinyin`, `createtime`, `updatetime`, `weigh`, `status`)
+VALUES
+('file', 0, 'company_info', '公司信息', 'fa fa-building', '', '', '', 1, NULL, '', 'gsxx', 'gongsixinxi', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal');
+
+SET @company_info_pid = (SELECT `id` FROM `fa_auth_rule` WHERE `name` = 'company_info' LIMIT 1);
+
+INSERT IGNORE INTO `fa_auth_rule`
+(`type`, `pid`, `name`, `title`, `icon`, `url`, `condition`, `remark`, `ismenu`, `menutype`, `extend`, `py`, `pinyin`, `createtime`, `updatetime`, `weigh`, `status`)
+VALUES
+('file', @company_info_pid, 'company_info/index', '查看', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/add', '添加', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/edit', '编辑', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/del', '删除', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/multi', '批量更新', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal');
+
+-- 为现有“普通管理员”角色追加公司信息权限;重复执行不会重复追加。
+SET @company_info_rules = (
+    SELECT GROUP_CONCAT(`id` ORDER BY `id` SEPARATOR ',')
+    FROM `fa_auth_rule`
+    WHERE `name` IN ('company_info', 'company_info/index', 'company_info/add', 'company_info/edit', 'company_info/del', 'company_info/multi')
+);
+UPDATE `fa_auth_group`
+SET `rules` = CONCAT_WS(',', NULLIF(`rules`, ''), @company_info_rules)
+WHERE `id` = 2 AND FIND_IN_SET(@company_info_pid, `rules`) = 0;

+ 40 - 0
database/migrations/20260814_create_company_info_only.sql

@@ -0,0 +1,40 @@
+-- 仅同步“公司信息”模块:不会修改 fa_news 或公司动态数据。
+CREATE TABLE IF NOT EXISTS `fa_company_info` (
+    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
+    `address` VARCHAR(255) NOT NULL COMMENT '公司总部地址',
+    `employee_count` INT UNSIGNED NOT NULL COMMENT '员工数量',
+    `total_sales` VARCHAR(100) NOT NULL COMMENT '产品总销售额',
+    `createtime` BIGINT NULL DEFAULT NULL COMMENT '创建时间',
+    `updatetime` BIGINT NULL DEFAULT NULL COMMENT '更新时间',
+    PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='公司信息';
+
+-- 兼容已创建旧表(总销售额为数值)的情况,改为允许汉字文本。
+ALTER TABLE `fa_company_info`
+    MODIFY COLUMN `total_sales` VARCHAR(100) NOT NULL COMMENT '产品总销售额';
+
+INSERT IGNORE INTO `fa_auth_rule`
+(`type`, `pid`, `name`, `title`, `icon`, `url`, `condition`, `remark`, `ismenu`, `menutype`, `extend`, `py`, `pinyin`, `createtime`, `updatetime`, `weigh`, `status`)
+VALUES
+('file', 0, 'company_info', '公司信息', 'fa fa-building', '', '', '', 1, NULL, '', 'gsxx', 'gongsixinxi', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal');
+
+SET @company_info_pid = (SELECT `id` FROM `fa_auth_rule` WHERE `name` = 'company_info' LIMIT 1);
+
+INSERT IGNORE INTO `fa_auth_rule`
+(`type`, `pid`, `name`, `title`, `icon`, `url`, `condition`, `remark`, `ismenu`, `menutype`, `extend`, `py`, `pinyin`, `createtime`, `updatetime`, `weigh`, `status`)
+VALUES
+('file', @company_info_pid, 'company_info/index', '查看', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/add', '添加', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/edit', '编辑', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/del', '删除', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal'),
+('file', @company_info_pid, 'company_info/multi', '批量更新', 'fa fa-circle-o', '', '', '', 0, NULL, '', '', '', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 'normal');
+
+-- 给当前项目的“普通管理员”角色追加菜单权限;可重复执行。
+SET @company_info_rules = (
+    SELECT GROUP_CONCAT(`id` ORDER BY `id` SEPARATOR ',')
+    FROM `fa_auth_rule`
+    WHERE `name` IN ('company_info', 'company_info/index', 'company_info/add', 'company_info/edit', 'company_info/del', 'company_info/multi')
+);
+UPDATE `fa_auth_group`
+SET `rules` = CONCAT_WS(',', NULLIF(`rules`, ''), @company_info_rules)
+WHERE `id` = 2 AND FIND_IN_SET(@company_info_pid, `rules`) = 0;

+ 46 - 0
public/assets/js/backend/company_info.js

@@ -0,0 +1,46 @@
+define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
+    var Controller = {
+        index: function () {
+            Table.api.init({
+                extend: {
+                    index_url: 'company_info/index' + location.search,
+                    add_url: 'company_info/add',
+                    edit_url: 'company_info/edit',
+                    del_url: 'company_info/del',
+                    multi_url: 'company_info/multi',
+                    table: 'company_info'
+                }
+            });
+
+            var table = $('#table');
+            table.bootstrapTable({
+                url: $.fn.bootstrapTable.defaults.extend.index_url,
+                pk: 'id',
+                sortName: 'id',
+                columns: [[
+                    {checkbox: true},
+                    {field: 'id', title: __('Id')},
+                    {field: 'address', title: __('Address'), operate: 'LIKE'},
+                    {field: 'employee_count', title: __('Employee_count'), operate: false},
+                    {field: 'total_sales', title: __('Total_sales'), operate: false},
+                    {field: 'createtime', title: __('Createtime'), operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime},
+                    {field: 'updatetime', title: __('Updatetime'), operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime},
+                    {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
+                ]]
+            });
+            Table.api.bindevent(table);
+        },
+        add: function () {
+            Controller.api.bindevent();
+        },
+        edit: function () {
+            Controller.api.bindevent();
+        },
+        api: {
+            bindevent: function () {
+                Form.api.bindevent($('form[role=form]'));
+            }
+        }
+    };
+    return Controller;
+});

+ 1 - 1
public/assets/js/backend/news.js

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                     [
                         {checkbox: true},
                         {field: 'id', title: __('Id')},
-                        {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
+                        {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2'),"3":__('Type 3'),"4":__('Type 4'),"5":__('Type 5')}, formatter: Table.api.formatter.normal},
                         {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
                         {field: 'title', title: __('Title'), operate: 'LIKE'},
                         {field: 'source', title: __('Source'), operate: 'LIKE'},

+ 3 - 3
public/nginx.htaccess

@@ -1,3 +1,3 @@
-if (!-e $request_filename) {
-         rewrite ^(.*)$ /index.php/$1 last;
-     }
+location / {
+    try_files $uri $uri/ /index.html;
+}

+ 3 - 1
website_mall.sql

@@ -1043,10 +1043,12 @@ INSERT INTO `fa_goods_order` VALUES (7, 9, 3, '数据线', '雷蛇G20', '/upload
 DROP TABLE IF EXISTS `fa_news`;
 CREATE TABLE `fa_news`  (
   `id` int(11) NOT NULL AUTO_INCREMENT,
-  `type` enum('1','2') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动态类型:1=产品动态,2=公司动态',
+  `type` enum('1','2','3','4','5') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动态类型:1=产品动态,2=公司动态,3=首页公司简介,4=公司介绍,5=生产管理',
   `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '封面图',
   `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
   `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
+  `intro` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '简介',
+  `business_scope` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '经营范围',
   `source` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源',
   `browse` int(11) NOT NULL DEFAULT 0 COMMENT '浏览人数',
   `createtime` bigint(16) NULL DEFAULT NULL COMMENT '创建时间',