Browse Source

修改数据库连接和redis连接

multiwx
xh-pan1 9 months ago
parent
commit
9592ef2f9b
  1. 14
      cereshop-admin/src/main/resources/application-admin-dev.yml
  2. 14
      cereshop-app/src/main/resources/application-app-dev.yml
  3. 19
      cereshop-app/src/main/resources/application.yml
  4. 14
      cereshop-business/src/main/resources/application-business-dev.yml
  5. 12
      cereshop-commons/src/main/java/com/shop/cereshop/commons/config/XspayConfig.java
  6. 278
      doc/3.0/update.sql

14
cereshop-admin/src/main/resources/application-admin-dev.yml

@ -63,7 +63,7 @@ spring:
max-idle: 400
min-idle: 0
#网站域名
domain: http://122.9.152.120
domain: http://36.138.125.206
#阿里云短信
aliyun:
@ -210,13 +210,13 @@ xspay:
url: https://uwebgatetest.hnapay.com/webgate/unifiedAPI.htm
mer_code: 10000000381
app_return_url: xx
app_notice_url: http://122.9.152.120/ceres-app-api/extend/xsPay/pay/notify
app_baoguan_notice_url: http://122.9.152.120/ceres-app-api/extend/xsPay/pay/baoguannotify
app_notice_url: http://36.138.125.206/ceres-app-api/extend/xsPay/pay/notify
app_baoguan_notice_url: http://36.138.125.206/ceres-app-api/extend/xsPay/pay/baoguannotify
business_return_url: xx
business_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/pay/notify
business_return_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/refund/notify
business_register_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/register/notify
business_getmoney_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/getmoney/notify
business_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/pay/notify
business_return_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/refund/notify
business_register_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/register/notify
business_getmoney_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/getmoney/notify
rsa_private_key: MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBANMGXGvYX9yqb5qauZgc2mXk4R+2op9KLhCuqO0mt5aTyAFfGXty2RHAinwQif6AUyfFZK7p0/9xz2yX4VHltA4qFNsgQmi2Qtry8MTbBrPtVgukWdLmcK7NqR9C8reXO7e/Np3SPNLle5MsEkwM25cMK56JEc3WMRe+KIRZ69d1AgMBAAECgYBTSW1suyeKplIKCQs7OBgSozUfGSwyBksMFoNhpihLa+RCdlBOYtO9p+qAcN6l7evkBIpqZqtfZIHjcEZj1m8reIHHBnuv/sKGXWPvMBKqckenwNnqUzlj4X8hvFtkbcqXLGdyYoicW+P5+P8zHmYRom+izd5FO9281zXa4UK6gQJBAOquqD84B1VnNq2xopaaJvxaL4c5IOinkfRWShttANCpt1D0t1cs+7WPq9sdFZ4cyHYomxuC4knqJh1E/WzCVqUCQQDmMZH8+6sgqOrgsECw6w0KdUci/XgzT/DRS/3MFMeRv7ygEtdlyvyxRirEArsjQgDg3IBLo9TxBUdygPhgXnSRAkEAtp95r9By7IOoKhw8cMO+qMuphqnvMP0NeD0Z6CO36ajYTXhRn9YSfiQyUQ1eAC9X05MfuJXucCR0ynwgVd0ZPQJAdYaRdow3TrFvWdAi9zDKs7A05ZRrrib+WJ1nsq5ZRfySnVeBSaNdaFTeuLx8NwAX2rY5emTm7zc2xys5pFoVQQJAUPrxmTbELDTF1by6POX/IT3iSeClzOx+M05Yd4sgXtALPjYt0VMLtnsfmt9qMEjhk0Q95wgdmeHsBHxno5qGfQ==
newpay_public_key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDmVh2/xldLXhVU/mNT57m95uw0Hr0Pdl4pUyM2xV509LqLYTbLduCqqnuMTJUq7Irv8SsKfVqB7zKggxFyjmIfeeyTbhMDJkWZ20xRhv+rSw3ZBQD/Hbn+cxhi4FZ3gc+jUSI1pIsPrlvRK7E5DyWLa/RvZYiQfW/XYI4c1Mb29QIDAQAB
default_company_code: 460116287K

14
cereshop-app/src/main/resources/application-app-dev.yml

@ -67,7 +67,7 @@ spring:
max-idle: 400
min-idle: 0
#网站域名
domain: http://122.9.152.120
domain: http://36.138.125.206
#阿里云短信
aliyun:
@ -227,13 +227,13 @@ xspay:
url: https://uwebgatetest.hnapay.com/webgate/unifiedAPI.htm
mer_code: 10000000381
app_return_url: xx
app_notice_url: http://122.9.152.120/ceres-app-api/extend/xsPay/pay/notify
app_baoguan_notice_url: http://122.9.152.120/ceres-app-api/extend/xsPay/pay/baoguannotify
app_notice_url: http://36.138.125.206/ceres-app-api/extend/xsPay/pay/notify
app_baoguan_notice_url: http://36.138.125.206/ceres-app-api/extend/xsPay/pay/baoguannotify
business_return_url: xx
business_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/pay/notify
business_return_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/refund/notify
business_register_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/register/notify
business_getmoney_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/getmoney/notify
business_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/pay/notify
business_return_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/refund/notify
business_register_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/register/notify
business_getmoney_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/getmoney/notify
rsa_private_key: MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBANMGXGvYX9yqb5qauZgc2mXk4R+2op9KLhCuqO0mt5aTyAFfGXty2RHAinwQif6AUyfFZK7p0/9xz2yX4VHltA4qFNsgQmi2Qtry8MTbBrPtVgukWdLmcK7NqR9C8reXO7e/Np3SPNLle5MsEkwM25cMK56JEc3WMRe+KIRZ69d1AgMBAAECgYBTSW1suyeKplIKCQs7OBgSozUfGSwyBksMFoNhpihLa+RCdlBOYtO9p+qAcN6l7evkBIpqZqtfZIHjcEZj1m8reIHHBnuv/sKGXWPvMBKqckenwNnqUzlj4X8hvFtkbcqXLGdyYoicW+P5+P8zHmYRom+izd5FO9281zXa4UK6gQJBAOquqD84B1VnNq2xopaaJvxaL4c5IOinkfRWShttANCpt1D0t1cs+7WPq9sdFZ4cyHYomxuC4knqJh1E/WzCVqUCQQDmMZH8+6sgqOrgsECw6w0KdUci/XgzT/DRS/3MFMeRv7ygEtdlyvyxRirEArsjQgDg3IBLo9TxBUdygPhgXnSRAkEAtp95r9By7IOoKhw8cMO+qMuphqnvMP0NeD0Z6CO36ajYTXhRn9YSfiQyUQ1eAC9X05MfuJXucCR0ynwgVd0ZPQJAdYaRdow3TrFvWdAi9zDKs7A05ZRrrib+WJ1nsq5ZRfySnVeBSaNdaFTeuLx8NwAX2rY5emTm7zc2xys5pFoVQQJAUPrxmTbELDTF1by6POX/IT3iSeClzOx+M05Yd4sgXtALPjYt0VMLtnsfmt9qMEjhk0Q95wgdmeHsBHxno5qGfQ==
newpay_public_key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDmVh2/xldLXhVU/mNT57m95uw0Hr0Pdl4pUyM2xV509LqLYTbLduCqqnuMTJUq7Irv8SsKfVqB7zKggxFyjmIfeeyTbhMDJkWZ20xRhv+rSw3ZBQD/Hbn+cxhi4FZ3gc+jUSI1pIsPrlvRK7E5DyWLa/RvZYiQfW/XYI4c1Mb29QIDAQAB
default_company_code: 460116287K

19
cereshop-app/src/main/resources/application.yml

@ -75,27 +75,46 @@ scrmTrackReportUrl: https://scrm-demo.zkthink.com/stage-api/wecom/clue-user/add
pay:
paymentMode: 4
#新生支付
xspay:
#请求网关地址
url: https://uwebgate.hnapay.com/webgate/unifiedAPI.htm
#支付回调地址
app_return_url: xx
#支付结果通知地址
app_notice_url: https://wechat.hnthee.com/ceres-app-api/extend/xsPay/pay/notify
#报关结果通知地址
app_baoguan_notice_url: https://wechat.hnthee.com/ceres-app-api/extend/xsPay/pay/baoguannotify
#商家端支付回调地址
business_return_url: xx
#商家端支付结果通知地址
business_notice_url: https://wechat.hnthee.com/ceres-business-api/extend/xsPay/pay/notify
#退款结果通知地址
business_return_notice_url: https://wechat.hnthee.com/ceres-business-api/extend/xsPay/refund/notify
#分账方录入结果通知地址
business_register_notice_url: https://wechat.hnthee.com/ceres-business-api/extend/xsPay/register/notify
#提现结果通知地址
business_getmoney_notice_url: https://wechat.hnthee.com/ceres-business-api/extend/xsPay/getmoney/notify
#商户会员号 merCode
mer_code: 10000000589
#加密方式
sign_type: 1
#相关秘钥
rsa_private_key: MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIsNcvBCDUYCkEyHcuzYyGL9TOHV0kQWcAUJmQqgIIcn7devK2fCSgZs5N42tVm59m07VyUmYXfXrFzx80qwp0Db3bUrqAZqMDB1YnxjiM+Rrrm0pPAPGvGUR4XunPIEbqidezUe1pZCMavejql+TkouXrtHQhZVJJHOQwhTvO03AgMBAAECgYBaFKRZMPEYYaDJcxXoiaeHOUENLE/C/CYlnUofsAxigmN6Tmh4F02NTA4YRqjFL8uMh9y0nGCYGof2zmcmA7rVPSOaQwqwqmc+lHWq/Jy5Z6cAxlod1UeA+BEF9gc/d6YNJx+1UoywMJgr4o/59K9MCZofFLUPGhxoMTQzTB34wQJBAL49KvP5EktoEbloVrqoMNXalgXmGeETrUGkc29uTegT/K/29FllcY5mlSJhnL/uoW8aMuU2V8h7fv7RoJBX/DUCQQC7HqNbl0tmj4ffBUsggoTyuKQby2bNLqPJ6wHcQB5OAZhP2E4q+KC9MpS3eT0ljC27/6T+y4Qvry+THmiU1jk7AkB4bWJWhZKmN6AYvctBaB1aE4CrBUnWqM0h48fLf4lD4/svLWbrfINRQPEhjadb/OUm3u/fF/KkEEGJcAxzs68NAkAIqCo2mpFKdWl7z+rh3if4csJk5swiwf2h4dV8Mxsz0K8TQpabNlV5a1WmB13k1s9m2zTu9MtwyVISJF4CRMbxAkEAi88aKBXP1TO9AFZwyNE2Z9dVcSk2xruj9yLgfKvpcZF5eGm3/S9wGz9k+753rxe/KMkWfWd0eIK3VK0iYJ9K+Q==
newpay_public_key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSsyBgvE+lwHaiGWUTozg++a+1+wy5UulZtE8uFDIu3tyJECxiPUrw2NE5UBkVqgYsSJu0keb3vvv5/xwsU9/wPEdYb/lhzFMlYt5Z+cob/khek7WQtmdoxCV6+AdGpo5tho2BikbYHbvehNjE894GZGVI1y/rGKxXBltqYqwoEwIDAQAB
#华讯报关
huaxun:
#请求网关地址
url: https://bg.qdhuaxun.cn/index.php
#APPID
appId: 8bd29f557af22ec4062774
#秘钥
key: alexyu01
#跨境仓储相关
crossstock:
#请求网关地址
url: http://47.112.3.12:8288
appToken: ad523693d56243dc87e820bd44e18da1
appKey: 4d6e1cf9dbb24dc78c3c4d24db021333

14
cereshop-business/src/main/resources/application-business-dev.yml

@ -63,7 +63,7 @@ spring:
max-idle: 400
min-idle: 0
#网站域名
domain: http://122.9.152.120
domain: http://36.138.125.206
#阿里云短信
aliyun:
@ -202,13 +202,13 @@ xspay:
url: https://uwebgatetest.hnapay.com/webgate/unifiedAPI.htm
mer_code: 10000000381
app_return_url: xx
app_notice_url: http://122.9.152.120/ceres-app-api/extend/xsPay/pay/notify
app_baoguan_notice_url: http://122.9.152.120/ceres-app-api/extend/xsPay/pay/baoguannotify
app_notice_url: http://36.138.125.206/ceres-app-api/extend/xsPay/pay/notify
app_baoguan_notice_url: http://36.138.125.206/ceres-app-api/extend/xsPay/pay/baoguannotify
business_return_url: xx
business_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/pay/notify
business_return_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/refund/notify
business_register_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/register/notify
business_getmoney_notice_url: http://122.9.152.120/ceres-business-api/extend/xsPay/getmoney/notify
business_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/pay/notify
business_return_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/refund/notify
business_register_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/register/notify
business_getmoney_notice_url: http://36.138.125.206/ceres-business-api/extend/xsPay/getmoney/notify
rsa_private_key: MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBANMGXGvYX9yqb5qauZgc2mXk4R+2op9KLhCuqO0mt5aTyAFfGXty2RHAinwQif6AUyfFZK7p0/9xz2yX4VHltA4qFNsgQmi2Qtry8MTbBrPtVgukWdLmcK7NqR9C8reXO7e/Np3SPNLle5MsEkwM25cMK56JEc3WMRe+KIRZ69d1AgMBAAECgYBTSW1suyeKplIKCQs7OBgSozUfGSwyBksMFoNhpihLa+RCdlBOYtO9p+qAcN6l7evkBIpqZqtfZIHjcEZj1m8reIHHBnuv/sKGXWPvMBKqckenwNnqUzlj4X8hvFtkbcqXLGdyYoicW+P5+P8zHmYRom+izd5FO9281zXa4UK6gQJBAOquqD84B1VnNq2xopaaJvxaL4c5IOinkfRWShttANCpt1D0t1cs+7WPq9sdFZ4cyHYomxuC4knqJh1E/WzCVqUCQQDmMZH8+6sgqOrgsECw6w0KdUci/XgzT/DRS/3MFMeRv7ygEtdlyvyxRirEArsjQgDg3IBLo9TxBUdygPhgXnSRAkEAtp95r9By7IOoKhw8cMO+qMuphqnvMP0NeD0Z6CO36ajYTXhRn9YSfiQyUQ1eAC9X05MfuJXucCR0ynwgVd0ZPQJAdYaRdow3TrFvWdAi9zDKs7A05ZRrrib+WJ1nsq5ZRfySnVeBSaNdaFTeuLx8NwAX2rY5emTm7zc2xys5pFoVQQJAUPrxmTbELDTF1by6POX/IT3iSeClzOx+M05Yd4sgXtALPjYt0VMLtnsfmt9qMEjhk0Q95wgdmeHsBHxno5qGfQ==
newpay_public_key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDmVh2/xldLXhVU/mNT57m95uw0Hr0Pdl4pUyM2xV509LqLYTbLduCqqnuMTJUq7Irv8SsKfVqB7zKggxFyjmIfeeyTbhMDJkWZ20xRhv+rSw3ZBQD/Hbn+cxhi4FZ3gc+jUSI1pIsPrlvRK7E5DyWLa/RvZYiQfW/XYI4c1Mb29QIDAQAB
default_company_code: 460116287K

12
cereshop-commons/src/main/java/com/shop/cereshop/commons/config/XspayConfig.java

@ -21,25 +21,25 @@ public class XspayConfig {
public static String APP_RETURN_URL = "xx";
// 支付结果通知地址
public static String APP_NOTICE_URL = "http://122.9.152.120/ceres-app-api/extend/xsPay/pay/notify";
public static String APP_NOTICE_URL = "http://36.138.125.206/ceres-app-api/extend/xsPay/pay/notify";
// 报关结果通知地址
public static String APP_BAOGUAN_NOTICE_URL = "http://122.9.152.120/ceres-app-api/extend/xsPay/pay/boguannotify";
public static String APP_BAOGUAN_NOTICE_URL = "http://36.138.125.206/ceres-app-api/extend/xsPay/pay/boguannotify";
// 支付回调地址
public static String BUSINESS_RETURN_URL = "xx";
// 支付结果通知地址
public static String BUSINESS_NOTICE_URL = "http://122.9.152.120/ceres-business-api/extend/xsPay/pay/notify";
public static String BUSINESS_NOTICE_URL = "http://36.138.125.206/ceres-business-api/extend/xsPay/pay/notify";
// 退款结果通知地址
public static String BUSINESS_RETURN_NOTICE_URL = "http://122.9.152.120/ceres-business-api/extend/xsPay/refund/notify";
public static String BUSINESS_RETURN_NOTICE_URL = "http://36.138.125.206/ceres-business-api/extend/xsPay/refund/notify";
// 分账方录入结果通知地址
public static String BUSINESS_REGISTER_NOTICE_URL = "http://122.9.152.120/ceres-business-api/extend/xsPay/register/notify";
public static String BUSINESS_REGISTER_NOTICE_URL = "http://36.138.125.206/ceres-business-api/extend/xsPay/register/notify";
// 提现结果通知地址
public static String BUSINESS_GETMONEY_NOTICE_URL = "http://122.9.152.120/ceres-business-api/extend/xsPay/getmoney/notify";
public static String BUSINESS_GETMONEY_NOTICE_URL = "http://36.138.125.206/ceres-business-api/extend/xsPay/getmoney/notify";
/**

278
doc/3.0/update.sql

@ -0,0 +1,278 @@
-- 修改商家用户表表名
ALTER TABLE cere_platform_business RENAME TO cere_platform_business_user;
-- 创建商家表
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `cere_platform_business`;
CREATE TABLE `cere_platform_business` (
`business_id` bigint(20) NOT NULL AUTO_INCREMENT,
`business_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商家编码',
`business_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商家名称',
`business_brief` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
`business_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`charge_person_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家负责人',
`charge_person_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人电话',
`business_adress` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址',
`business_adress_province` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-省',
`business_adress_city` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-市',
`business_adress_detail` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-详细地址',
`business_logo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家logo',
`effective_date` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生效日期 即时生效-设置当前时间 有值-指定日期生效',
`effective_year` int(11) NULL DEFAULT NULL COMMENT '生效时限(年)',
`contract_state` tinyint(1) NULL DEFAULT 1 COMMENT '合同状态 1-有效 0-无效',
`authentication_state` tinyint(1) NOT NULL DEFAULT 1 COMMENT '认证状态 1-未认证 2-审核中 3-审核通过 4-审核失败 5-签约成功(使用中)',
`check_state` tinyint(1) NOT NULL COMMENT '入驻处理状态 0-未处理 1-通过 2-拒绝',
`state` tinyint(1) NOT NULL COMMENT '是否启用 1-是 0-否',
`authen_type` tinyint(1) NULL DEFAULT NULL COMMENT '主体类型 1-个人 2-个体工商户 3-企业 4-其他组织',
`wx_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信收款码',
`ailpay_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支付宝收款码',
`create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
`update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
`divide` int(11) NULL DEFAULT NULL COMMENT '交易分成比例',
`collection_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '平台收款码',
`audit_live` tinyint(1) NULL DEFAULT 1 COMMENT '审核直播间 1-开启 0-关闭',
`audit_live_product` tinyint(1) NULL DEFAULT 1 COMMENT '审核直播间商品 1-开启 0-关闭',
`xs_pay_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '新生支付商户Id',
`share_days` int(11) NULL DEFAULT 7 COMMENT '分账账期',
PRIMARY KEY (`business_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商家信息表' ROW_FORMAT = DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;
-- 初始化商家表数据
INSERT INTO `cere_platform_business` (`business_id`, `business_code`, `business_name`, `business_brief`, `charge_person_name`, `charge_person_phone`, `business_adress`, `business_adress_province`, `business_adress_city`, `business_adress_detail`, `business_logo`, `effective_date`, `effective_year`, `contract_state`, `authentication_state`, `check_state`, `state`, `authen_type`, `wx_image`, `ailpay_image`, `create_time`, `update_time`, `divide`, `collection_code`, `audit_live`, `audit_live_product`, `xs_pay_id`, `share_days`)
SELECT
cps.shop_id business_id,
cps.shop_code business_code,
cps.shop_name business_name,
cps.shop_brief business_brief,
cps.charge_person_name charge_person_name,
cps.charge_person_phone charge_person_phone,
cps.shop_adress business_adress,
cps.shop_adress_province business_adress_province,
cps.shop_adress_city business_adress_city,
cps.shop_adress_detail business_adress_detail,
cps.shop_logo business_logo,
cps.effective_date effective_date,
cps.effective_year effective_year,
cps.contract_state contract_state,
cps.authentication_state authentication_state,
cps.check_state check_state,
cps.state state,
cps.authen_type authen_type,
cps.wx_image wx_image,
cps.ailpay_image ailpay_image,
cps.create_time create_time,
cps.update_time update_time,
cps.divide divide,
cps.collection_code collection_code,
cps.audit_live audit_live,
cps.audit_live_product audit_live_product,
cps.xs_pay_id xs_pay_id,
cps.share_days share_days
FROM cere_platform_shop cps;
-- 修改商家用户关联表表名
ALTER TABLE cere_business_shop RENAME TO cere_business_user;
-- 商家用户关联表增加是否是主账号的字段
ALTER TABLE `cere_business_user`
ADD COLUMN `is_main_user` tinyint(1) DEFAULT 0 COMMENT '是否主账号';
-- 商家用户关联表修改关联店铺Id为商家Id
ALTER TABLE cere_business_user CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_business_user` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
-- 店铺表增加商家表关联Id
ALTER TABLE `cere_platform_shop`
ADD COLUMN `business_id` bigint(20) DEFAULT 0 COMMENT '商家Id';
-- 初始化店铺表商家Id
UPDATE cere_platform_shop SET business_id = shop_id;
ALTER TABLE cere_shop_personal CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_personal` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
ALTER TABLE cere_shop_other_organizations CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_other_organizations` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
ALTER TABLE cere_shop_enterprise CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_enterprise` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
ALTER TABLE cere_shop_individual_businesses CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_individual_businesses` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
ALTER TABLE `cere_shop_visit`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_visit SET project = '0';
ALTER TABLE `cere_shop_order`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_order SET project = '0';
ALTER TABLE `cere_order_after`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_order_after SET project = '0';
ALTER TABLE `cere_shop_conversion`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_conversion SET project = '0';
ALTER TABLE cere_platform_shop MODIFY COLUMN shop_phone varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '店铺账号';
ALTER TABLE cere_platform_shop MODIFY COLUMN shop_password varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '店铺密码';
ALTER TABLE cere_platform_shop MODIFY COLUMN authentication_state tinyint(1) DEFAULT 1 NULL COMMENT '认证状态 1-未认证 2-审核中 3-审核通过 4-审核失败 5-签约成功(使用中)';
ALTER TABLE cere_platform_shop MODIFY COLUMN check_state tinyint(1) NULL COMMENT '入驻处理状态 0-未处理 1-通过 2-拒绝';
ALTER TABLE cere_platform_shop MODIFY COLUMN state tinyint(1) NULL COMMENT '是否启用 1-是 0-否';
ALTER TABLE cere_buyer_user ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_buyer_user SET project = '0';
ALTER TABLE cere_platform_canvas ADD COLUMN business_id bigint(20) DEFAULT 0 COMMENT '商家Id';
UPDATE cere_platform_canvas SET business_id = '0';
ALTER TABLE cere_platform_canvas ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_platform_canvas SET project = '0';
ALTER TABLE cere_product_classify ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_product_classify SET project = '0';
ALTER TABLE cere_shop_group ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_group SET project = '0';
ALTER TABLE cere_shop_product ADD classify_business_id bigint(20) NULL COMMENT '关联商家分类id';
ALTER TABLE cere_shop_product ADD shop_group_business_id bigint(20) NULL COMMENT '关联商家商品分组id';
-- ALTER TABLE cereshop_multi.cere_platform_business ADD is_cross tinyint(1) NULL COMMENT '是否是跨境 0为国内 1为跨境';
ALTER TABLE cere_platform_shop ADD is_cross tinyint(1) NULL COMMENT '是否是跨境 0为国内 1为跨境';
DELETE FROM cere_platform_permission WHERE permission_name='店铺跨境信息设置';
ALTER TABLE `cere_order_parent`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_order_parent SET project = '0';
ALTER TABLE `cere_shop_withdrawal`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_withdrawal SET project = '0';
ALTER TABLE `cere_pay_log`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_pay_log SET project = '0';
ALTER TABLE `cere_shop_withdrawal`
ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_withdrawal SET project = '0';
ALTER TABLE `cere_shop_product` ADD COLUMN `if_new` tinyint(1) NULL DEFAULT 0 COMMENT '是否新品' AFTER `if_huabei`;
ALTER TABLE `cere_shop_product` ADD COLUMN `if_first` tinyint(1) NULL DEFAULT 0 COMMENT '是否首发' AFTER `if_new`;
ALTER TABLE `cere_shop_product` ADD COLUMN `if_low_price` tinyint(1) NULL DEFAULT 0 COMMENT '是否低价' AFTER `if_first`;
CREATE TABLE `cere_business_shop` (
`business_user_id` bigint(20) NOT NULL COMMENT '商家用户id',
`shop_id` bigint(20) NULL DEFAULT NULL,
`if_binding` tinyint(1) NOT NULL COMMENT '是否绑定当前店铺 1-是 0-否'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商家用户绑定店铺信息表' ROW_FORMAT = DYNAMIC;
CREATE TABLE `cere_interaction_diagram` (
`interaction_diagram_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '联动图Id',
`interaction_diagram_name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图名字',
`interaction_diagram_image` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图背景图',
`image_width` int(10) NULL DEFAULT NULL COMMENT '图片宽度',
`image_height` int(10) NULL DEFAULT NULL COMMENT '图片高度',
`point_data` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图数据',
`business_id` bigint(20) NULL DEFAULT 0 COMMENT '商家Id',
`terminal` tinyint(1) NULL DEFAULT NULL COMMENT '终端 1-小程序 2-H5 3-APP 4-PC',
PRIMARY KEY (`interaction_diagram_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品图片信息表' ROW_FORMAT = DYNAMIC;
CREATE TABLE `cere_platform_lang_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
`lang_key` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多语言主键',
`lang_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多语言名字',
`lang_zh` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '中文',
`lang_en` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '英语',
`create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
`update_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `cere_platform_permission_lang_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
`permission_id` bigint(20) NULL DEFAULT NULL COMMENT '菜单主键',
`permission_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单名字',
`language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `cere_product_classify_lang_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
`classify_id` bigint(20) NULL DEFAULT NULL COMMENT '分类主键',
`classify_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分类名字',
`language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `cere_shop_group_lang_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
`shop_group_id` bigint(20) NULL DEFAULT NULL COMMENT '分组主键',
`group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名字',
`group_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组描述',
`language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `cere_shop_product_lang_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`product_id` bigint(20) NULL DEFAULT NULL COMMENT '商品id',
`product_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称',
`product_brief` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卖点简介',
`product_text` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '商品描述(富文本)',
`language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `index`(`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '店铺商品信息表' ROW_FORMAT = DYNAMIC;
CREATE TABLE `cere_sku_name_lang_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
`sku_uni_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格id-code',
`sku_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格名',
`sku_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格值',
`language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品规格属性信息表' ROW_FORMAT = DYNAMIC;
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5419, 61, '仓库管理', '', '/system/storehouse', 'el-icon-box', '', 'menu', 10111, 0, '2023-05-24 20:39:27', NULL);
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5491, 0, '库存管理', '', '/stock', 'el-icon-goods', '', 'catalog', 10136, 0, '2023-07-18 06:56:44', '2023-07-18 08:31:30');
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5492, 5491, '库存明细', '', '/stock/stocknote', 'el-icon-date', '', 'menu', 10137, 0, '2023-07-18 06:57:50', '2023-07-18 08:31:42');
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5576, 58, '我的店铺', '', '/shop/myshop', 'el-icon-document-copy', '', 'menu', 10160, 0, '2023-09-17 14:20:12', NULL);
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5647, 55, '商家商品分类', '', '/commodity/commdityClass', 'el-icon-film', '', 'menu', 10182, 0, '2023-10-05 06:10:44', NULL);
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5652, 61, '商家装修', '', '{BaseUrl}/canvas.html', 'el-icon-camera', '', 'menu', 10183, 0, '2023-10-20 05:41:13', '2023-10-20 05:43:17');
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5740, 0, '资源管理', '', '/resource', 'el-icon-truck', '', 'catalog', 10185, 0, '2024-03-18 04:47:54', NULL);
INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5741, 5740, '互动图', '', '/resource/interactiondiagram', 'el-icon-aim', '', 'menu', 10186, 0, '2024-03-18 04:51:16', '2024-03-18 05:15:49');
Loading…
Cancel
Save