INSERT INTO `sys_setting` VALUES ('site_source_china', '国内站', '2', '国内站点码表', 1);
INSERT INTO `sys_setting` VALUES ('site_source_oversea', '海外站', '1', '海外站点码表', 1);


ALTER TABLE member
ADD COLUMN country VARCHAR(100) NULL COMMENT '国家',
ADD COLUMN city VARCHAR(100) NULL COMMENT '城市',
ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '会员类型 1:海外门户 2:国内分销门户';

ALTER TABLE goods ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '发布站点 1：国外站 2：国内站' AFTER goods_id;

ALTER TABLE goods ADD COLUMN goods_name_cn VARCHAR(200) NOT NULL COMMENT '商品中文名' AFTER goods_name ;

ALTER TABLE product ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '发布站点 1：国外站 2：国内站' AFTER product_id;

ALTER TABLE product ADD COLUMN goods_name_cn VARCHAR(200) NOT NULL COMMENT '商品中文名' AFTER goods_name;

ALTER TABLE goods_label ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1：国外站 2：国内站' AFTER label_id;

ALTER TABLE goods_related_template ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户';

ALTER TABLE goods_parameter_group ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户';

ALTER TABLE enquiry ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户';

ALTER TABLE  enquiry_receive_mail_setting ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户';

ALTER TABLE  sys_tpl_pc_mall_data ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户';

ALTER TABLE  sys_tpl_pc_mall_deco ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER deco_id;

ALTER TABLE  store_inner_label ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER inner_label_id;

ALTER TABLE  goods_brand ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER brand_id;

ALTER TABLE  store_profile_text_list ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER id;

ALTER TABLE  store_profile_list ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER id;

ALTER TABLE  store_certificate_list ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER id;

ALTER TABLE  store_company_show_list ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER id;

ALTER TABLE  store_bind_category ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户';

CREATE TABLE `store_name`
(
    `id`          bigint                                                  NOT NULL AUTO_INCREMENT COMMENT 'id',
    `web_site`    tinyint                                                 NOT NULL DEFAULT 1 COMMENT '站点',
    `store_id`    bigint                                                  NOT NULL COMMENT '店铺ID',
    `store_name`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '店铺名称',

    `create_id`   bigint                                                  NOT NULL COMMENT '创建人',
    `create_time` datetime                                                NOT NULL COMMENT '创建时间',

    `update_id`   bigint                                                           DEFAULT NULL COMMENT '更新人',
    `update_time` datetime                                                         DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='店铺名称表';



CREATE TABLE `store_site_info`
(
    `id`               bigint                                                  NOT NULL AUTO_INCREMENT COMMENT 'id',
    `web_site`         tinyint                                                 NOT NULL DEFAULT 1 COMMENT '站点',
    `store_id`         bigint                                                  NOT NULL COMMENT '店铺ID',
    `store_logo`       varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '店铺logo',
    `store_banner_pc`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'pc端店铺横幅',
    `main_business`    varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '店铺主营商品名称',
    `service_phone`    varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci  DEFAULT NULL COMMENT '店铺客服电话',
    `email`            varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '邮箱',
    `address`          varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '店铺开店详细地址',
    `store_map_info`   varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '店铺地图参数-经度',
    `store_map_info_w` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '店铺地图参数-维度',
    `create_id`        bigint                                                  DEFAULT NULL COMMENT '创建人',
    `create_time`      datetime                                                DEFAULT NULL COMMENT '创建时间',

    `update_id`        bigint                                                           DEFAULT NULL COMMENT '更新人',
    `update_time`      datetime                                                         DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='店铺站点基础设置表';

ALTER TABLE  stats_brand_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_brand_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_brand_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_brand_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_brand_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


ALTER TABLE  stats_category_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_category_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_category_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_category_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_category_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


ALTER TABLE  stats_goods_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_goods_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_goods_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_goods_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_goods_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


ALTER TABLE  stats_member_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_member_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_member_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_member_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_member_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


ALTER TABLE  stats_member_store_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_member_store_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_member_store_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_member_store_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_member_store_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


ALTER TABLE  stats_store_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_store_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_store_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_store_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_store_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


ALTER TABLE  stats_platform_day ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_platform_hour ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_platform_month ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE  stats_platform_week ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;

ALTER TABLE stats_platform_year ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER stats_time;


INSERT INTO sys_setting (name, title, value, description, type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name IN (
               'basic_site_name', 'basic_site_icp', 'basic_site_copyright', 'basic_site_technical_support',
               'basic_site_phone', 'basic_site_email',
               'hot_search_words', 'verification_code_check_is_enable',
               'sys_seo_title', 'sys_seo_desc', 'sys_seo_keywords', 'pt_map_parameter', 'pt_map_parameter_1',
               'about_banner', 'about_pic', 'about_text',
               'basic_site_address', 'gz_code', 'guide_funds_banner', 'guide_funds_text'
    );


INSERT INTO sys_setting (name, title, value, description,type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name IN (
               'main_site_logo', 'main_user_center_logo', 'main_user_logon_bg', 'main_user_register_bg',
               'pc_home_bottom_adv', 'main_user_forget_password_bg',
               'main_user_register_logo', 'main_seller_center_logo', 'vendor_login_left_bg', 'vendor_login_bg',
               'main_admin_top_logo', 'admin_login_left_bg', 'admin_login_bg'
    );

INSERT INTO sys_setting (name, title, value, description,type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name IN (
               'default_image_store_logo', 'default_image_user_portrait', 'default_image_store_banner_pc',
               'default_image_store_list_top'
    );

INSERT INTO sys_setting (name, title, value, description,type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name = 'seller_center_entrance_is_enable';

INSERT INTO sys_setting (name, title, value, description,type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name = 'pay_test_enable';

ALTER TABLE sys_seo DROP INDEX code_UNIQUE;

ALTER TABLE sys_seo ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER id;


ALTER TABLE sys_agreement ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER agreement_code;
INSERT INTO sys_agreement (agreement_code, web_site, title, update_time, update_admin_id, update_admin_name, content)
SELECT CONCAT(agreement_code, '_2') AS agreement_code,
       '2',
       title,
       update_time,
       update_admin_id,
       update_admin_name,
       ''
FROM sys_agreement;

INSERT INTO sys_setting (name, title, value, description,type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name = 'goods_publish_need_audit';

ALTER TABLE goods_category ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER category_id;

ALTER TABLE goods_attribute ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER attribute_id;


INSERT INTO store_name(web_site, store_id, store_name, store_log, create_id, create_time)
SELECT '2', store_id, store_name, store_logo, 0, SYSDATE()
FROM store;

ALTER TABLE store_site_info
ADD COLUMN store_grade_id INT NULL  COMMENT '店铺等级id',
ADD COLUMN store_grade_name VARCHAR(255) NULL COMMENT '店铺等级名称',
ADD COLUMN open_time TINYINT  NULL  COMMENT '开店时长，1、2、3、4，单位：年',
ADD COLUMN store_expire_time  DATETIME   NULL  COMMENT '店铺到期时间';


ALTER TABLE store_grade ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER grade_id;

ALTER TABLE sys_enquiry_receive_mail_setting ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER id;

ALTER TABLE cms_article_category ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER category_id;

ALTER TABLE cms_article ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER article_id;

INSERT INTO store_cms_article_category
VALUES(null, "国外站门户", 4, 1, 1, now(), now(), null),(null, "国内站门户", 5, 1, 1, now(), now(), null);

UPDATE store_cms_article_category SET is_show = 0 WHERE category_name='PC商城';


ALTER TABLE store_cms_article ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER article_id;



DROP TABLE IF EXISTS `sys_pc_first_adv`;
CREATE TABLE `sys_pc_first_adv`
(
    `id`       int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `web_site` tinyint(4) NOT NULL DEFAULT 1 COMMENT '站点',
    `adv_id`   int(11) NULL DEFAULT NULL COMMENT '广告id',
    `data`     text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '弹层广告数据',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'pc首页弹层广告表' ROW_FORMAT = Dynamic;


INSERT INTO `sys_pc_first_adv`
VALUES (1, 1, 1,
        '{\"imgUrl\":\"https://xinke-xinke-s3-test.s3.ap-east-1.amazonaws.com//images/admin/deco/m0wFu9pSgRMIUy9OEQB.jpg\",\"imgPath\":\"/images/admin/deco/m0wFu9pSgRMIUy9OEQB.jpg\",\"show_switch\":true,\"show_radio_sele\":\"more\",\"link_type\":\"url\",\"link_value\":\"http://pcnuxt.b2b.test.advichcloud.com/store/list\",\"info\":{}}');
INSERT INTO `sys_pc_first_adv`
VALUES (2, 1, 2,
        '{\"imgUrl\":\"https://www.b2btopsite.com/images/admin/deco/mqPMTwJkfzreN1QKul3.jpg\",\"imgPath\":\"/images/admin/deco/mqPMTwJkfzreN1QKul3.jpg\",\"show_switch\":true,\"link_type\":\"url\",\"link_value\":\"https://www.b2btopsite.com/goods/Category\",\"info\":{}}');

INSERT INTO `sys_pc_first_adv`
VALUES (3, 2, 1,
        '{\"imgUrl\":\"https://xinke-xinke-s3-test.s3.ap-east-1.amazonaws.com//images/admin/deco/m0wFu9pSgRMIUy9OEQB.jpg\",\"imgPath\":\"/images/admin/deco/m0wFu9pSgRMIUy9OEQB.jpg\",\"show_switch\":true,\"show_radio_sele\":\"more\",\"link_type\":\"url\",\"link_value\":\"http://pcnuxt.b2b.test.advichcloud.com/store/list\",\"info\":{}}');
INSERT INTO `sys_pc_first_adv`
VALUES (4, 2, 2,
        '{\"imgUrl\":\"https://www.b2btopsite.com/images/admin/deco/mqPMTwJkfzreN1QKul3.jpg\",\"imgPath\":\"/images/admin/deco/mqPMTwJkfzreN1QKul3.jpg\",\"show_switch\":true,\"link_type\":\"url\",\"link_value\":\"https://www.b2btopsite.com/goods/Category\",\"info\":{}}');


ALTER TABLE sys_pc_navigation ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER nav_id;

ALTER TABLE cms_friend_link ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1:海外门户 2:国内分销门户' AFTER link_id;

INSERT INTO sys_seo
SELECT NULL,2,0,type,name,code,target_id,title,remark,keywords,alt,create_uid,NOW(),update_uid,NOW()
FROM sys_seo WHERE type = 'MALL' AND create_uid = 1;



ALTER TABLE store ADD COLUMN business_state TINYINT NOT NULL DEFAULT 3 COMMENT '经营状态 1 资质审核 2装修筹备 3经营中4 暂停经营' AFTER state;

ALTER TABLE store_site_info ADD COLUMN business_state TINYINT NOT NULL DEFAULT 3 COMMENT '经营状态 1 资质审核 2装修筹备 3经营中4 暂停经营' AFTER store_id;

INSERT INTO `sys_setting` VALUES ('business_state_1', '资质审核', '1', '经营状态码表', 3);
INSERT INTO `sys_setting` VALUES ('business_state_2', '装修筹备', '2', '经营状态码表', 3);
INSERT INTO `sys_setting` VALUES ('business_state_3', '经营中', '3', '经营状态码表', 3);
INSERT INTO `sys_setting` VALUES ('business_state_4', '暂停经营', '4', '经营状态码表', 3);

ALTER TABLE sys_search_log ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1：国外站 2：国内站' AFTER log_id;

ALTER TABLE goods_search_words ADD COLUMN web_site TINYINT NOT NULL DEFAULT 1 COMMENT '站点 1：国外站 2：国内站' AFTER words_id;

INSERT INTO sys_setting (name, title, value, description,type)
SELECT CONCAT(name, '_2') AS name,
       title,
       value,
       description,
       type
FROM sys_setting
WHERE name = 'es_index_update_time';

CREATE INDEX idx_goods_click_follow ON goods_extend (goods_id, click_number, follow_number)

ALTER TABLE member_product_look_log MODIFY COLUMN goods_name VARCHAR(200) COMMENT '商品名称';

ALTER TABLE member_product_look_log MODIFY COLUMN goods_brief VARCHAR(1000) COMMENT '商品副标题，长度建议140个字符内';

update msg_store_tpl set email_content='{"email_subject":"新询盘提醒-{$siteName}","email_content":"<h2>尊敬的客户，您好：</h2><p>收到询盘信息如下：</p><p>姓 名：{$name}</p><p>邮 箱：{$email}</p><p>国家/地区：{$country}</p><p>联系方式：{$phoneCode}-{$phone}</p><p>数 量：{$quantity}</p><p>询盘内容：{$message}</p><p>访问链接：{$pageUrl}</p>"}'  where tpl_code ='enquiry_reminder'


ALTER TABLE enquiry MODIFY COLUMN page_url VARCHAR(2048) COMMENT '询盘来源页面URL';







