1
0
mirror of https://gitee.com/bagee/jd-coupon.git synced 2025-08-01 12:28:04 +08:00

init project

This commit is contained in:
yjwfn 2021-10-30 13:02:59 +08:00
commit e8fd97a362
482 changed files with 63691 additions and 0 deletions

36
.gitignore vendored Normal file
View File

@ -0,0 +1,36 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
### Maven ###
.mvn
target
build

79
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,79 @@
stages:
- build
- run
variables:
app_service: jd-coupon #服务名称
app_service_port: 8080 #服务端口
app_artifactId: jd-union-service #项目工程artifactId
app_version: 0.0.1-SNAPSHOT #项目工程version
app_serviceDir: jd-union-service #需要运行/发布的服务工程名称(相对主工程目录)
app_jarFile: ${app_artifactId}-${app_version}.jar #打包后的jar名称
app_image: registry.cn-shanghai.aliyuncs.com/csbaic/jd-coupon:${app_version} #Docker镜像名称
app_containerName: ${app_service} #容器名称
app_network: jd-coupon #服务网格网络名称,所有服务都应该在同一个网络中
#
#build-dev-image:
# stage: build
# tags:
# - video
# only:
# refs:
# - dev
# script:
# - cd ${app_serviceDir}
# - wget -O Dockerfile https://gitlab.com/ruanchengtech/rc-public/raw/master/DockerFile/ai-photo-Jre8Dockerfile
# - mvn clean package
# - docker rmi -f ${app_image} || true
# - docker build --build-arg APP_JAR_FILE=target/${app_jarFile} --tag=${app_image} .
#
#
#run-dev:
# stage: run
# tags:
# - video
# dependencies:
# - build-dev-image
# only:
# refs:
# - dev
# script:
# - docker network create --attachable --driver bridge ${app_network} || true
# - docker rm -f ${app_containerName} || true
# - docker run --name ${app_containerName} -d --network ${app_network} -p ${app_service_port}:8080 ${app_image}
#
build-prod-image:
stage: build
tags:
- aliyun
- i-uf659w5lxc5ch9usz6rs
- prod
- csbaic
only:
refs:
- master
script:
- cd ${app_serviceDir}
- mvn clean package -U
- docker rmi -f ${app_image} || true
- docker build --no-cache --build-arg APP_JAR_FILE=target/${app_jarFile} --tag=${app_image} .
run-prod:
stage: run
tags:
- aliyun
- i-uf659w5lxc5ch9usz6rs
- prod
- csbaic
dependencies:
- build-prod-image
only:
refs:
- master
script:
- docker rm -f ${app_containerName} || true
- docker run --name ${app_containerName} -d -e SPRING.PROFILES.ACTIVE=prod -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone --network csbaic -p ${app_service_port}:8080 ${app_image}

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>jd-social-commerce</artifactId>
<groupId>com.csbaic</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jd-union-code-generator</artifactId>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>com.csbaic</groupId>
<artifactId>csbaic-dependencies</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,79 @@
package com.csbaic.jd;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generator.config.*;
import com.baomidou.mybatisplus.generator.config.rules.DateType;
import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
// 演示例子执行 main 方法控制台输入模块表名回车自动生成对应项目目录中
public class CodeGenerator {
public static void main(String[] args) {
// 代码生成器
AutoGenerator mpg = new AutoGenerator();
// 全局配置
GlobalConfig gc = new GlobalConfig();
gc.setOutputDir("/Users/yjwfn/development/csbaic/jd-social-commerce/jd-union-service/src/main/java");
gc.setAuthor("yjwfn");
gc.setOpen(false);
gc.setEntityName("%sEntity");
gc.setIdType(IdType.ASSIGN_ID);
gc.setDateType(DateType.TIME_PACK);
// gc.setSwagger2(true); 实体属性 Swagger2 注解
mpg.setGlobalConfig(gc);
// 数据源配置
DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://localhost:3306/jd_union?serverTimezone=Asia/Shanghai&characterEncoding=utf8");
// dsc.setSchemaName("public");
dsc.setDriverName("com.mysql.jdbc.Driver");
dsc.setUsername("root");
dsc.setPassword("123456");
mpg.setDataSource(dsc);
// 包配置
PackageConfig pc = new PackageConfig();
pc.setParent("com.csbaic.jd");
mpg.setPackageInfo(pc);
// 配置模板
TemplateConfig templateConfig = new TemplateConfig();
//控制 不生成 controller
// templateConfig.setController("");
mpg.setTemplate(templateConfig);
// 策略配置
StrategyConfig strategy = new StrategyConfig();
strategy.setNaming(NamingStrategy.underline_to_camel);
strategy.setColumnNaming(NamingStrategy.underline_to_camel);
strategy.setEntityLombokModel(false);
strategy.setRestControllerStyle(false);
strategy.setControllerMappingHyphenStyle(false);
strategy.setEntityColumnConstant(true);
//"banner", "activity","user", "wechat_user", "user_profile" , "timeline_goods", "order_detail", "order_sku", "team_member"
// strategy.setInclude("news");
// strategy.setInclude("member_commission");
// strategy.setInclude("order_sync_record");
// strategy.setInclude("user");
// strategy.setInclude("member_billing_calculate_result");
// strategy.setInclude("user_active_score");
// strategy.setInclude("member_billing_calculate_status");
// strategy.setInclude("wallet_transaction_flow");
//"apply_withdraw_order","apply_withdraw_order_operate_record",
// strategy.setInclude( "apply_withdraw_order_operate_record");
strategy.setInclude("jd_member_quick_start");
strategy.setTablePrefix("jd");
mpg.setStrategy(strategy);
mpg.execute();
}
}

View File

@ -0,0 +1,8 @@
FROM openjdk:8-jdk-alpine
# RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
# && echo "Asia/Shanghai" > /etc/timezone \
# && apk del tzdata
COPY target/jd-union-service-0.0.1-SNAPSHOT.jar /app/app.jar
ENTRYPOINT ["java", "-jar", "-Xms256m", "-Xmx256m", "/app/app.jar"]

View File

@ -0,0 +1,644 @@
SET FOREIGN_KEY_CHECKS = 0;
CREATE TABLE `jd_activity` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
`share_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动分享图',
`logo_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动logo图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享文本',
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '活动开始时间',
`end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '活动结束时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='活动表';
insert into `jd_activity`(`id`,`title`,`share_image`,`logo_image`,`content`,`start_time`,`end_time`,`status`,`create_time`) values
('1242795127613689858','🔥清洁纸品超级品类日','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_share.jpg','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg','🎉清洁纸品超级品类日
9950299150
👉https://u.jd.com/WoWhDy
🔥9950
👉https://u.jd.com/YGHnSB
🔥299150
👉https://u.jd.com/BAAv0C
🔥995
👉https://u.jd.com/pHuf4v
💦 995
👉https://u.jd.com/8p5tu2
💦 2
👉https://u.jd.com/3PXTC8
💦 20
👉https://u.jd.com/tGXzHr
💦 12920
👉https://u.jd.com/T3QkTL','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:47:03'),
('1249586550744813569','🔥初春潮履 焕新出彩','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_share.png','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_logo.png','[Smile]型格男装闪耀新品
[Smile]
[Smile]https://u.jd.com/EqPd29
[Smile]Dickies 58
[Smile]https://u.jd.com/YY4C6u
[Smile]69
[Smile]https://u.jd.com/Xl8we8
[Smile]STARTER5
[Smile]https://u.jd.com/U8btgt
[Smile]dangerouspeople4
[Smile]https://u.jd.com/HTo25e
[Smile] 28.8
[Smile] https://u.jd.com/ukDode','2020-04-01 00:00:00','2020-04-30 00:00:00',1,'2020-04-13 14:33:44');
CREATE TABLE `jd_apply_withdraw_order` (
`id` bigint(20) NOT NULL,
`applier_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '申请人用户id',
`amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '申请提现金额',
`wechat_id` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人微信号',
`payee_name` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人姓名',
`payee_card_id` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人身份证号',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现单状态',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_apply_withdraw_order_operate_record` (
`id` bigint(20) NOT NULL,
`withdraw_order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '提现申请单id',
`operator_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '操作人id',
`operator_name` varchar(255) NOT NULL DEFAULT '' COMMENT '操作人名称',
`operate_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
`remark` varchar(1014) NOT NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_banner` (
`id` bigint(20) NOT NULL,
`location` varchar(2048) NOT NULL DEFAULT '' COMMENT 'banner跳转页面',
`cover_url` varchar(255) NOT NULL DEFAULT '' COMMENT 'banner封面图',
`end_time` datetime NOT NULL COMMENT '结束时间',
`start_time` datetime NOT NULL COMMENT '开始时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1: 自动2显示3未显示',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='banner表';
insert into `jd_banner`(`id`,`location`,`cover_url`,`end_time`,`start_time`,`status`,`title`) values
('1242798208464195585','/page_package/activity/activity?id=1242795127613689858','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg','2020-03-31 00:00:00','2020-03-25 00:00:00',1,'🔥清洁纸品超级品类日'),
('1249587684121251841','/page_package/activity/activity?id=1249586550744813569','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_logo.png','2020-04-30 00:00:00','2020-04-01 00:00:00',1,'🔥初春潮履 焕新出彩');
CREATE TABLE `jd_feedback` (
`id` bigint(20) NOT NULL,
`submitter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '提交人',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '選項的值',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '反馈状态',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_member_commission` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`identify` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户等级',
`level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '记录深度',
`batch_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '批次Id',
`sku_id` bigint(20) NOT NULL COMMENT '商品ID',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '京东订单id',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`order_time` datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
`estimate_rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估返利(卖货)',
`actual_rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际返利(卖货)',
`estimate_award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估奖励',
`actual_award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际奖励',
`estimate_commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估佣金',
`actual_commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际佣金',
`sku_name` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品名称',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`remark` varchar(256) NOT NULL DEFAULT '' COMMENT '佣金备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
PRIMARY KEY (`id`),
KEY `index_user_id` (`user_id`),
KEY `index_batch_id` (`batch_id`),
KEY `index_sku_id` (`sku_id`),
KEY `index_order_id` (`order_id`),
KEY `order_finish_time` (`finish_time`),
KEY `index_order_time` (`order_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_member_commission`(`id`,`user_id`,`identify`,`level`,`batch_id`,`sku_id`,`order_id`,`finish_time`,`order_time`,`estimate_rebate_fee`,`actual_rebate_fee`,`estimate_award_fee`,`actual_award_fee`,`estimate_commission_fee`,`actual_commission_fee`,`sku_name`,`valid_code`,`remark`,`create_time`) values
('1249651547512508418','1249647976792461313',2,0,'1249651547508314114','67324890451','117544770336',null,'2020-04-13 18:50:01',0.7200,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',15,'自购返利: 10.0','2020-04-13 18:52:00'),
('1249651547516702721','1249647976792461313',2,0,'1249651547508314114','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,3.6300,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',15,'推广人获得佣金的50.0%','2020-04-13 18:52:00'),
('1249651547529285634','1249647766947237890',2,1,'1249651547525091330','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.7200,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',15,'直属超级会员获得奖励20%','2020-04-13 18:52:00'),
('1249651547533479939','1249647377699049474',3,2,'1249651547533479938','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.7200,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',15,'非直属导师获取奖励20%','2020-04-13 18:52:00'),
('1249651547546062850','1249646645646200834',3,4,'1249651547541868545','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.3600,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',15,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 18:52:00'),
('1249658845240758274','1249647179123920897',2,0,'1249658845236563970','20175593221','112300888440',null,'2020-04-13 19:19:27',1.0700,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',15,'自购返利: 10.0','2020-04-13 19:21:00'),
('1249658845244952578','1249647179123920897',2,0,'1249658845236563970','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,5.3900,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',15,'推广人获得佣金的50.0%','2020-04-13 19:21:00'),
('1249658845249146883','1249646645646200834',3,1,'1249658845249146882','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,1.6100,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',15,'直属导师获取奖励30%','2020-04-13 19:21:00'),
('1249658845257535490','1249646154606448642',3,2,'1249658845257535489','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.8000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',15,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:21:00'),
('1249659851890495491','1249646645646200834',3,0,'1249659851890495490','67813342286','117548817387',null,'2020-04-13 19:23:14',0.5300,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',15,'自购返利: 10.0','2020-04-13 19:25:00'),
('1249659851894689793','1249646645646200834',3,0,'1249659851890495490','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,4.3000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',15,'推广人获得佣金的80.0%','2020-04-13 19:25:00'),
('1249659851903078402','1249646154606448642',3,1,'1249659851903078401','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.2500,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',15,'导师的直属导师奖励 6%','2020-04-13 19:25:00'),
('1249660858817056770','1249647766947237890',2,0,'1249660858817056769','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'自购返利: 10.0','2020-04-13 19:29:00'),
('1249660858825445378','1249647766947237890',2,0,'1249660858817056769','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'推广人获得佣金的50.0%','2020-04-13 19:29:00'),
('1249660858829639683','1249647377699049474',3,1,'1249660858829639682','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'直属导师获取奖励30%','2020-04-13 19:29:00'),
('1249660858842222594','1249646645646200834',3,3,'1249660858838028289','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:29:00'),
('1249664381755592706','1249647377699049474',3,0,'1249664381751398402','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'自购返利: 10.0','2020-04-13 19:43:00'),
('1249664381755592707','1249647377699049474',3,0,'1249664381751398402','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'推广人获得佣金的80.0%','2020-04-13 19:43:00'),
('1249664381763981313','1249646645646200834',3,2,'1249664381759787010','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'导师的直属导师奖励 6%','2020-04-13 19:43:00'),
('1249664381768175619','1249646154606448642',3,3,'1249664381768175618','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:43:00'),
('1249839032611901443','1249660183160819714',1,0,'1249839032611901442','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'自购返利: 10.0','2020-04-14 07:17:00'),
('1249839032620290049','1249647976792461313',2,1,'1249839032616095745','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'推广人获得佣金的50.0%','2020-04-14 07:17:00'),
('1249839032624484355','1249647766947237890',2,2,'1249839032624484354','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'直属超级会员获得奖励20%','2020-04-14 07:17:00'),
('1249839032632872962','1249647377699049474',3,3,'1249839032628678657','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'非直属导师获取奖励20%','2020-04-14 07:17:00'),
('1249839032637067267','1249646645646200834',3,5,'1249839032637067266','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-14 07:17:00'),
('1249874767977123842','1249646645646200834',3,0,'1249874767977123841','54412358961','117607354307',null,'2020-04-14 09:37:04',11.9000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',15,'自购返利: 10.0','2020-04-14 09:39:00'),
('1249874767981318146','1249646645646200834',3,0,'1249874767977123841','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,95.2500,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',15,'推广人获得佣金的80.0%','2020-04-14 09:39:00'),
('1249874767989706753','1249646154606448642',3,1,'1249874767985512450','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,5.7100,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',15,'导师的直属导师奖励 6%','2020-04-14 09:39:00');
CREATE TABLE `jd_member_commission_per_user_for_30_day` (
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`estimate_rebate_fee` decimal(31,4) DEFAULT NULL,
`actual_rebate_fee` decimal(31,4) DEFAULT NULL,
`estimate_award_fee` decimal(31,4) DEFAULT NULL,
`actual_award_fee` decimal(31,4) DEFAULT NULL,
`estimate_commission_fee` decimal(31,4) DEFAULT NULL,
`actual_commission_fee` decimal(31,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_message` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '消息标题',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '消息内容',
`start_time` datetime NOT NULL COMMENT '消息开始时间',
`end_time` datetime NOT NULL COMMENT '消息结束时间',
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息类型',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新闻';
CREATE TABLE `jd_news` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
`location` varchar(2048) NOT NULL DEFAULT '' COMMENT '跳转页面',
`start_time` datetime NOT NULL COMMENT '活动开始时间',
`end_time` datetime NOT NULL COMMENT '活动结束时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '快报状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新闻';
insert into `jd_news`(`id`,`title`,`location`,`start_time`,`end_time`,`status`,`create_time`) values
('1242795456094801922','🔥清洁纸品超级品类日','/page_package/activity/activity?id=1242795127613689858','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:48:21'),
('1242796305235841025','🔥清洁纸品超级品类日','/page_package/activity/activity?id=1242795127613689858','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:51:43'),
('1249587919287488514','🔥初春潮履 焕新出彩','/page_package/activity/activity?id=1249586550744813569','2020-04-01 00:00:00','2020-04-30 00:00:00',1,'2020-04-13 14:39:10');
CREATE TABLE `jd_option` (
`id` bigint(20) NOT NULL,
`option_name` varchar(128) NOT NULL COMMENT '選項key',
`option_value` varchar(255) NOT NULL COMMENT '選項的值',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `option_name` (`option_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_option`(`id`,`option_name`,`option_value`,`create_time`) values
('1242792998689837058','sys_default_user_name','系统用户','2020-03-25 20:38:35'),
('1242792998748557314','opt_sys_next_group_id','10007','2020-03-25 20:38:35'),
('1242792998756945922','sys_withdraw_start_day','27','2020-03-25 20:38:35'),
('1242792998765334529','sys_register_user_identify','1','2020-03-25 20:38:35'),
('1242792998765334530','sys_withdraw_end_day','30','2020-03-25 20:38:35'),
('1242792998773723138','app_force_login','false','2020-03-25 20:38:35'),
('1242792998773723139','sys_current_sync_start_time','20200414094700','2020-03-25 20:38:35'),
('1242792998782111745','sys_order_sync_retry_interval','2000','2020-03-25 20:38:35'),
('1242792998786306049','sys_order_sync_start_time','20200327161300','2020-03-25 20:38:35'),
('1242792998790500353','sys_default_user_identify','1','2020-03-25 20:38:35'),
('1242792998790500354','sys_order_sync_retry_count','3','2020-03-25 20:38:35'),
('1242792998794694657','sys_settlement_start_day','0 0 0 23 * ?','2020-03-25 20:38:35'),
('1242792998798888961','sys_order_sync_delay','2','2020-03-25 20:38:35'),
('1243451545673011201','app_default_inviter_code','PBP1TP','2020-03-27 16:15:25');
CREATE TABLE `jd_order_detail` (
`id` bigint(20) NOT NULL COMMENT 'id',
`order_id` bigint(20) NOT NULL COMMENT '订单ID',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`order_emt` tinyint(4) NOT NULL DEFAULT '1' COMMENT '下单设备(1:PC,2:无线)',
`order_time` datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
`owner_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广人id',
`buyer_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '购买人id',
`parent_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '父单的订单ID仅当发生订单拆分时返回 0未拆分有值则表示此订单为子订单',
`pay_month` varchar(19) NOT NULL DEFAULT '0' COMMENT '订单维度预估结算时间,不建议使用可以用订单行sku维度paymonth字段参考格式yyyyMMdd0未结算订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
`plus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '下单用户是否为PLUS会员 01',
`pop_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '订单维度商家ID不建议使用可以用订单行sku维度popId参考',
`union_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推客的联盟ID',
`ext1` varchar(255) NOT NULL DEFAULT '' COMMENT '订单维度的推客生成推广链接时传入的扩展字段不建议使用可以用订单行sku维度ext1参考,(需要联系运营开放白名单才能拿到数据)',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT '订单维度的有效码不建议使用可以用订单行sku维度validCode参考,-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '订单更新时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单记录';
insert into `jd_order_detail`(`id`,`order_id`,`finish_time`,`order_emt`,`order_time`,`owner_id`,`buyer_id`,`parent_id`,`pay_month`,`plus`,`pop_id`,`union_id`,`ext1`,`valid_code`,`update_time`,`create_time`) values
('1249651547374096386','117544770336',null,2,'2020-04-13 18:50:01','1249647976792461313','1249647976792461313',0,'0',0,625318,1002274953,'',15,'2020-04-13 18:52:00','2020-04-13 18:52:00'),
('1249653308906278913','117545220705',null,2,'2020-04-13 18:57:12','1249647766947237890','1249647766947237890',0,'0',0,10101608,1002274953,'',3,'2020-04-13 18:59:00','2020-04-13 18:59:00'),
('1249656831983226882','117545233538',null,2,'2020-04-13 19:11:01','1249647377699049474','1249647377699049474',0,'0',0,10101608,1002274953,'',3,'2020-04-13 19:13:00','2020-04-13 19:13:00'),
('1249658845198815233','112300888440',null,2,'2020-04-13 19:19:27','1249647179123920897','1249647179123920897',0,'0',0,154813,1002274953,'',15,'2020-04-13 19:21:00','2020-04-13 19:21:00'),
('1249659851844358145','117548817387',null,2,'2020-04-13 19:23:14','1249646645646200834','1249646645646200834',0,'0',1,10340545,1002274953,'',15,'2020-04-13 19:25:00','2020-04-13 19:25:00'),
('1249661613460426754','112296467773',null,2,'2020-04-13 19:30:57','1249647976792461313','1249660183160819714',0,'0',0,27236,1002274953,'',3,'2020-04-13 19:32:00','2020-04-13 19:32:00'),
('1249874767943569410','117607354307',null,2,'2020-04-14 09:37:04','1249646645646200834','1249646645646200834',0,'0',1,166144,1002274953,'',15,'2020-04-14 09:39:00','2020-04-14 09:39:00');
CREATE TABLE `jd_order_sku` (
`id` bigint(20) NOT NULL COMMENT 'id',
`sku_id` bigint(20) NOT NULL COMMENT '商品ID',
`order_id` bigint(20) NOT NULL COMMENT '京东订单id',
`owner_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广人id',
`buyer_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '购买人id',
`actual_cos_price` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际计算佣金的金额。订单完成后,会将误扣除的运费券金额更正。如订单完成后发生退款,此金额会更新。',
`actual_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT ' 推客获得的实际佣金(实际计佣金额*佣金比例*最终比例)。如订单完成后发生退款,此金额会更新。',
`commission_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '佣金比例',
`estimate_cos_price` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估计佣金额,即用户下单的金额(已扣除优惠券、白条、支付优惠、进口税,未扣除红包和京豆),有时会误扣除运费券金额,完成结算时会在实际计佣金额中更正。如订单完成前发生退款,此金额也会更新。',
`estimate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '推客的预估佣金(预估计佣金额*佣金比例*最终比例),如订单完成前发生退款,此金额也会更新。',
`final_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '最终比例(分成比例+补贴比例)',
`cid1` bigint(20) NOT NULL DEFAULT '0' COMMENT '一级类目ID',
`frozen_sku_nnum` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品售后中数量',
`pid` varchar(128) DEFAULT '' COMMENT '联盟子站长身份标识格式子站长ID_子站长网站ID_子站长推广位ID',
`position_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广位ID,0代表无推广位',
`site_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '网站ID0无网站',
`sku_name` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品名称',
`sku_num` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品数量',
`sku_image` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品主图',
`sku_return_num` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品已退货数量',
`sub_side_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '分成比例',
`subsidy_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '补贴比例',
`cid3` bigint(20) NOT NULL DEFAULT '0' COMMENT '三级类目ID',
`union_alias` varchar(255) NOT NULL DEFAULT '' COMMENT ' PID所属母账号平台名称原第三方服务商来源',
`union_tag` varchar(255) NOT NULL DEFAULT '' COMMENT '联盟标签数据整型的二进制字符串目前返回16位0000000000000001。数据从右向左进行每一位为1表示符合联盟的标签特征第1位红包第2位组合推广第3位拼购第5位有效首次购0000000000011XXX表示有效首购最终奖励活动结算金额会结合订单状态判断以联盟后台对应活动效果数据报表https://union.jd.com/active为准,第8位复购订单第9位礼金第10位联盟礼金第11位推客礼金。例如0000000000000001:红包订单0000000000000010:组合推广订单0000000000000100:拼购订单0000000000011000:有效首购0000000000000111红包+组合推广+拼购等)',
`union_traffic_group` tinyint(4) NOT NULL DEFAULT '0' COMMENT '渠道组 11号店其他京东',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`sub_unionId` varchar(255) NOT NULL DEFAULT '' COMMENT '子联盟ID(需要联系运营开放白名单才能拿到数据)',
`trace_type` tinyint(4) NOT NULL DEFAULT '2' COMMENT '2同店3跨店',
`pay_month` int(11) NOT NULL DEFAULT '0' COMMENT '订单行维度预估结算时间格式yyyyMMdd 0未结算。订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
`pop_id` bigint(20) NOT NULL DEFAULT '0' COMMENT ' 商家ID。''订单行维度''',
`ext1` varchar(255) NOT NULL DEFAULT '' COMMENT ' 推客生成推广链接时传入的扩展字段(需要联系运营开放白名单才能拿到数据)。''订单行维度''',
`cp_act_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '招商团活动id正整数为0时表示无活动',
`union_role` tinyint(4) NOT NULL DEFAULT '1' COMMENT '站长角色1 推客、 2 团长',
`gift_coupon_key` varchar(255) NOT NULL DEFAULT '' COMMENT '礼金批次ID',
`gift_coupon_ocs_amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '礼金分摊金额',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'sku更新时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'sdu创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_order_id_and_sku_id` (`order_id`,`sku_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='佣金商品记录';
insert into `jd_order_sku`(`id`,`sku_id`,`order_id`,`owner_id`,`buyer_id`,`actual_cos_price`,`actual_fee`,`commission_rate`,`estimate_cos_price`,`estimate_fee`,`final_rate`,`cid1`,`frozen_sku_nnum`,`pid`,`position_id`,`site_id`,`sku_name`,`sku_num`,`sku_image`,`sku_return_num`,`sub_side_rate`,`subsidy_rate`,`cid3`,`union_alias`,`union_tag`,`union_traffic_group`,`valid_code`,`sub_unionId`,`trace_type`,`pay_month`,`pop_id`,`ext1`,`cp_act_id`,`union_role`,`gift_coupon_key`,`gift_coupon_ocs_amount`,`update_time`,`create_time`) values
('1249651547399262209','67324890451','117544770336','1249647976792461313','1249647976792461313',0.0000,0.0000,30.0000,26.9000,7.2600,0.0000,1320,0,'',0,142291,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',1,'https://img14.360buyimg.com/ads/jfs/t1/96571/8/7516/187936/5dfc7308Ec21bb900/1e9f93ea11142746.jpg',0,0.0000,0.0000,1590,'','0000000000000000',4,15,'',2,0,625318,'',0,1,'',0.0000,'2020-04-13 18:52:00','2020-04-13 18:52:00'),
('1249653308935639042','63733255505','117545220705','1249647766947237890','1249647766947237890',0.0000,0.0000,71.0000,119.6000,0.0000,0.0000,16750,0,'',0,142291,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',1,'https://img14.360buyimg.com/ads/jfs/t1/114949/28/413/113995/5e8c56deE89fb838d/e3757bfa4852c97c.jpg',0,0.0000,0.0000,16806,'','0000000000000000',4,3,'',2,0,10101608,'',0,1,'',0.0000,'2020-04-13 18:59:00','2020-04-13 18:59:00'),
('1249656831995809794','67156343434','117545233538','1249647377699049474','1249647377699049474',0.0000,0.0000,71.0000,159.6000,0.0000,0.0000,16750,0,'',0,142291,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',1,'https://img14.360buyimg.com/ads/jfs/t1/113959/33/99/149977/5e871399Eeb724700/9d01f6ee6100190c.jpg',0,0.0000,0.0000,16806,'','0000000000000000',4,3,'',2,0,10101608,'',0,1,'',0.0000,'2020-04-13 19:13:00','2020-04-13 19:13:00'),
('1249658845207203842','20175593221','112300888440','1249647179123920897','1249647179123920897',0.0000,0.0000,20.0000,59.9000,10.7800,0.0000,15901,0,'',0,142291,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',1,'https://img14.360buyimg.com/ads/jfs/t1/3160/29/10391/273015/5bcad3ffE008df512/188a1af611e68eb4.jpg',0,0.0000,0.0000,15908,'','0000000000000000',4,15,'',2,0,154813,'',0,1,'',0.0000,'2020-04-13 19:21:00','2020-04-13 19:21:00'),
('1249659851852746754','67813342286','117548817387','1249646645646200834','1249646645646200834',0.0000,0.0000,20.0000,29.9000,5.3800,0.0000,9192,0,'',0,142291,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',1,'https://img14.360buyimg.com/ads/jfs/t1/97798/27/17537/138655/5e8b2b24E01a7e735/c448ca86d413df4d.png',0,0.0000,0.0000,1517,'','0000000000000000',4,15,'',2,0,10340545,'',0,1,'',0.0000,'2020-04-13 19:25:00','2020-04-13 19:25:00'),
('1249661613473009666','10146821114','112296467773','1249647976792461313','1249660183160819714',0.0000,0.0000,30.0000,79.0000,0.0000,0.0000,1319,0,'',0,142291,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',1,'https://img14.360buyimg.com/ads/jfs/t1945/310/2304052158/266487/9e24311b/56d1b7b1N9d7c6504.jpg',0,0.0000,0.0000,14936,'','0000000000011000',4,3,'',2,0,27236,'',0,1,'',0.0000,'2020-04-13 19:32:00','2020-04-13 19:32:00'),
('1249874767951958017','54412358961','117607354307','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,189.0000,119.0700,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,15,'',2,0,166144,'',0,1,'',0.0000,'2020-04-14 09:39:00','2020-04-14 09:39:00');
CREATE TABLE `jd_order_sync_record` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '京东订单id',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0成功1失败',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_order_sync_record`(`id`,`order_id`,`status`) values
('1249651547567034370','117544770336',0),
('1249653309074051074','117545220705',0),
('1249656832083890178','117545233538',0),
('1249658845274312705','112300888440',0),
('1249659851919855617','117548817387',0),
('1249661613582061570','112296467773',0),
('1249874768002289666','117607354307',0);
CREATE TABLE `jd_question` (
`id` bigint(20) NOT NULL,
`cid` bigint(20) NOT NULL COMMENT '问题分类ID',
`title` varchar(64) NOT NULL COMMENT '问题标题',
`answer` varchar(1024) NOT NULL COMMENT '问题回答',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `index_category` (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_question`(`id`,`cid`,`title`,`answer`,`create_time`) values
('1242742075793158145','1242741770884034562','优惠券只能一个号领一次吗?','优惠券数量有限,一般情况一个账号仅能领用一次。','2020-03-25 17:16:14'),
('1242742267862921218','1242741770884034562','部分商品分货较慢是什么原因?','部分商家的产品是第三方POP商家使用的是第三言主物流一般送货速度会较慢。另外在大促活动期间商家积压的订单比较多可能发货会较慢。
线950618','2020-03-25 17:17:00'),
('1242742614790582273','1242741792610529282','如何申请售后服务?','申请售后常用的2个流程
1->->->->
2APP->->','2020-03-25 17:18:23'),
('1242742683598139394','1242741792610529282','对收到的产品不满意 ','按照京东7天元理由退货政策您收到货发现有问题可以与商家协商退货和退款如协商不成您可以拨打东京客服电话950618按2进入按键导航根据语言提示按7再按1然后输入收货人手机号确认手机号按1然后再输入订单后四位等待人工客服接起。','2020-03-25 17:18:39'),
('1242742750933495809','1242741792610529282','为什么通过平台下单的商品售后问题需要联系京东处理?','平台只提供商品链接,分享商品优惠信息,并不提供下单购买等服务,您实际下单仍是在京东内完成,商品也是由京东提供,所以如果产生售后问题,需要您联系京东商场协商处理。','2020-03-25 17:18:55'),
('1242742960657084418','1242741824084586498','如何查看该订单的物流信息?','查看订单的3个途经
1->->->->->->->
2->->->->
APP订单界面查看订单
3APP->','2020-03-25 17:19:45'),
('1242743068148707330','1242741824084586498','如何知道是谁下的单?','东京注重保护客户隐私,您看不到客户姓名、电话等隐私信息。','2020-03-25 17:20:11'),
('1242743117427585025','1242741824084586498','为什么我的订单会显示“无效-取消”?','如果客户下单付款后又取消了此订单,则订单详情内会显示“无效-取消”标识。','2020-03-25 17:20:22'),
('1242743201657597954','1242741824084586498','订单中显示红色“跨店“标志是什么意思?','关于跨店的解析:
广A店铺商品的推广主链接进行东京B店铺商品','2020-03-25 17:20:42'),
('1242743268615467009','1242741824084586498','为什么订单会显示”无效-拆单”','拆单是系统根据该订单内的产品类目及仓库中无师进行拆分,已拆单导致父订单无效,但不会影响佣金收益,已拆单的订单佣金是按照拆单后形成的子订单号计算佣金的。 ','2020-03-25 17:20:58'),
('1242743319614009346','1242741824084586498','订单显示“无效-非推广商品”是什么意思?','根据京东推广规则,“无效-非推广商品”是批该商品商家没有设置佣金 或跨店佣金为0或者Plus会员购买为0的商品此类订单不会获得推广收益。','2020-03-25 17:21:11'),
('1242743382734090241','1242741824084586498','客户订单在东京已经付款,为什么在平台显示待付款','客户在京东20分钟内付款的订单状态会及时更新到小程序中如果20分钟后付款的订单状态会在次日更新可在第二天进行查看不会影响您的收益。','2020-03-25 17:21:26'),
('1242743781218136065','1242741824084586498','客户购买了商品在京东APP中可以看到订单但您在平台小程序中看不到推广订单','1平台小程序没有这个商品或活动已结束商品已经在平台为下架状态所以小程序中不会显示订单
2
35-10
4
5APP
6
7Plus会员买没佣且买了不跟单','2020-03-25 17:23:01'),
('1242743928740196354','1242741853012701185','我的收益有哪几种类型?','推广收益:您的直属会员在小程序自购,或者您分享的商品促成别人购买所得到的收益。
广
','2020-03-25 17:23:36'),
('1242743986168606721','1242741853012701185','什么是“预估收益”及“预估收益”会变少的原因是什么?','根据京东的推广规则:预估收益是根据用户一瞬间时间预估统计的推广效果数据,并非实际结算收益,取消已付款的订单或者退换货后对应的收益会相应的扣除,实际收益以订单结算为准。','2020-03-25 17:23:50'),
('1242744363194593282','1242741853012701185','为什么我的订单收益为0','1执照京东的返佣规则 ,乡村推广账号、企业账号、分期付款用户、以开具增值税运用发票的订单是没有收益的。
广 广广
Plus会员账号说明Plus账号是东京的一种会员账号类型0
2使E卡等京东虚拟货币 0.
30
4Plus会员ghuj3的订单
5','2020-03-25 17:25:19'),
('1242744421667385346','1242741853012701185','订单显示的收益和选品时看到预估“预估收益”不一样?','您选品时看到的收益金额为预估推广收益由于客户在一瞬间时可能会使用京券、余额、京豆和E卡等京东虚拟货币导致收益减少导致订单收益变少的情况发生。','2020-03-25 17:25:33'),
('1242744555805421569','1242741853012701185','每月提现金额和”预估收益“不一致?','所有的收益都是按照系统设计好的规则进行,不存在 恶意扣除,可提现收益跟预估收益不一致原因有以下两点:
1退
2 广
15 退 退 ','2020-03-25 17:26:05'),
('1242744635073572866','1242741853012701185','
','1
2广广广','2020-03-25 17:26:24'),
('1242745099500466178','1242741895224176642','为什么会有违规订单?','平台内推广的商品,有一些是商家通过打造引流爆款产品亏本促销,从而提升商品或店铺在东京内的搜索排名,促销完成后,需要长尾的带动整体销售利润。
1广
2广
广 ','2020-03-25 17:28:15'),
('1242745257789304834','1242741895224176642','我自己购买的商品被判定为”违规订单“,如何申斥?','如果对订单判断有疑问,我们可以帮您进行早逝处理,您需要提供以下三张照片,通过客服转交进行申斥。
1
2
3
35 ','2020-03-25 17:28:53'),
('1242745347664850946','1242741895224176642','如何避免”违规订单“?','1请务必不要代下单如遇首次购物用户耐心引导即可。
230','2020-03-25 17:29:14'),
('1242745460017672194','1242741930515050497','一人多微信号怎么提现?','可以绑定同一人的身份证,同一个银行卡完成提现。','2020-03-25 17:29:41'),
('1242745508176670722','1242741930515050497','更换了微信头像和昵称,小程序不同步?','小程序的微信昵称和头像微信不同步,后续会提供相应功能更新昵称头像功能。','2020-03-25 17:29:52'),
('1242745630994280450','1242741930515050497','邀请另人加入后,我们之间都有什么关系?','直属注册会员:通过您直接邀请注册的会员。
','2020-03-25 17:30:22');
CREATE TABLE `jd_question_category` (
`id` bigint(20) NOT NULL,
`name` varchar(64) NOT NULL COMMENT '分类名称',
`icon` varchar(256) NOT NULL COMMENT '小图标',
`open` tinyint(4) NOT NULL DEFAULT '1',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_question_category`(`id`,`name`,`icon`,`open`,`create_time`) values
('1242741770884034562','商品类','goodsfill',1,'2020-03-25 17:15:01'),
('1242741792610529282','售后类','servicefill',1,'2020-03-25 17:15:07'),
('1242741824084586498','订单类','shopfill',1,'2020-03-25 17:15:14'),
('1242741853012701185','收益类','moneybagfill',1,'2020-03-25 17:15:21'),
('1242741895224176642','违规订单类','warnfill',1,'2020-03-25 17:15:31'),
('1242741930515050497','其他问题','questionfill',1,'2020-03-25 17:15:39');
CREATE TABLE `jd_settlement_calculate_result` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`start_date` date NOT NULL COMMENT '开始时间',
`end_date` date NOT NULL COMMENT '开始时间',
`rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '返利',
`award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '奖励',
`commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '佣金',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '成员状态(0成功1失败)',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录时间',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`start_date`,`end_date`),
KEY `index_user_id_and_start_date_and_end_date` (`user_id`,`start_date`,`end_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_share_poster` (
`id` bigint(20) NOT NULL,
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '海报名称',
`icon_url` varchar(512) NOT NULL DEFAULT '' COMMENT '图标Url',
`image_url` varchar(512) NOT NULL DEFAULT '' COMMENT '分享图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '海报文字内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分享海报';
CREATE TABLE `jd_super_member_apply` (
`id` bigint(20) NOT NULL,
`owner_id` bigint(20) NOT NULL COMMENT '申请人',
`group_id` int(11) NOT NULL COMMENT '群组id',
`image_urls` varchar(260) NOT NULL DEFAULT '' COMMENT '申请图',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '申请状态',
`remark` varchar(64) NOT NULL DEFAULT '' COMMENT '备注信息',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '申请时间',
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='超级会员申请表';
CREATE TABLE `jd_team_member` (
`id` bigint(20) NOT NULL COMMENT 'ID',
`leader_id` bigint(20) unsigned NOT NULL COMMENT '领队id',
`member_id` bigint(20) unsigned NOT NULL COMMENT '成员id',
`level` int(11) NOT NULL COMMENT '级别',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_unique_leader_id_and_member_id` (`leader_id`,`member_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_team_member`(`id`,`leader_id`,`member_id`,`level`,`create_time`) values
('1249645277048999938','1249645276885422081','1249645276885422081',0,'2020-04-13 18:27:05'),
('1249646154673557505','1249646154606448642','1249646154606448642',0,'2020-04-13 18:30:35'),
('1249646154698723329','1249645276885422081','1249646154606448642',1,'2020-04-13 18:30:35'),
('1249646645688143873','1249646645646200834','1249646645646200834',0,'2020-04-13 18:32:32'),
('1249646645709115394','1249646154606448642','1249646645646200834',1,'2020-04-13 18:32:32'),
('1249646645713309698','1249645276885422081','1249646645646200834',2,'2020-04-13 18:32:32'),
('1249646801640755202','1249646801590423553','1249646801590423553',0,'2020-04-13 18:33:09'),
('1249646801661726722','1249646154606448642','1249646801590423553',1,'2020-04-13 18:33:09'),
('1249646801665921026','1249645276885422081','1249646801590423553',2,'2020-04-13 18:33:09'),
('1249647179123920898','1249647179123920897','1249647179123920897',0,'2020-04-13 18:34:39'),
('1249647179182641153','1249646645646200834','1249647179123920897',1,'2020-04-13 18:34:39'),
('1249647179186835458','1249646154606448642','1249647179123920897',2,'2020-04-13 18:34:39'),
('1249647179186835459','1249645276885422081','1249647179123920897',3,'2020-04-13 18:34:39'),
('1249647377699049475','1249647377699049474','1249647377699049474',0,'2020-04-13 18:35:26'),
('1249647377770352642','1249647179123920897','1249647377699049474',1,'2020-04-13 18:35:26'),
('1249647377774546945','1249646645646200834','1249647377699049474',2,'2020-04-13 18:35:26'),
('1249647377778741250','1249646154606448642','1249647377699049474',3,'2020-04-13 18:35:26'),
('1249647377782935553','1249645276885422081','1249647377699049474',4,'2020-04-13 18:35:26'),
('1249647766993375234','1249647766947237890','1249647766947237890',0,'2020-04-13 18:36:59'),
('1249647767018541058','1249647377699049474','1249647766947237890',1,'2020-04-13 18:36:59'),
('1249647767018541059','1249647179123920897','1249647766947237890',2,'2020-04-13 18:36:59'),
('1249647767018541060','1249646645646200834','1249647766947237890',3,'2020-04-13 18:36:59'),
('1249647767022735361','1249646154606448642','1249647766947237890',4,'2020-04-13 18:36:59'),
('1249647767022735362','1249645276885422081','1249647766947237890',5,'2020-04-13 18:36:59'),
('1249647976838598658','1249647976792461313','1249647976792461313',0,'2020-04-13 18:37:49'),
('1249647976855375874','1249647766947237890','1249647976792461313',1,'2020-04-13 18:37:49'),
('1249647976859570177','1249647377699049474','1249647976792461313',2,'2020-04-13 18:37:49'),
('1249647976863764482','1249647179123920897','1249647976792461313',3,'2020-04-13 18:37:49'),
('1249647976863764483','1249646645646200834','1249647976792461313',4,'2020-04-13 18:37:49'),
('1249647976867958786','1249646154606448642','1249647976792461313',5,'2020-04-13 18:37:49'),
('1249647976867958787','1249645276885422081','1249647976792461313',6,'2020-04-13 18:37:49'),
('1249648482097041410','1249648482063486977','1249648482063486977',0,'2020-04-13 18:39:50'),
('1249648482113818625','1249645276885422081','1249648482063486977',1,'2020-04-13 18:39:50'),
('1249649658767085570','1249649658737725441','1249649658737725441',0,'2020-04-13 18:44:30'),
('1249649658783862786','1249645276885422081','1249649658737725441',1,'2020-04-13 18:44:30'),
('1249660183160819715','1249660183160819714','1249660183160819714',0,'2020-04-13 19:26:19'),
('1249660183206957058','1249647976792461313','1249660183160819714',1,'2020-04-13 19:26:19'),
('1249660183211151361','1249647766947237890','1249660183160819714',2,'2020-04-13 19:26:19'),
('1249660183211151362','1249647377699049474','1249660183160819714',3,'2020-04-13 19:26:19'),
('1249660183211151363','1249647179123920897','1249660183160819714',4,'2020-04-13 19:26:19'),
('1249660183215345666','1249646645646200834','1249660183160819714',5,'2020-04-13 19:26:19'),
('1249660183215345667','1249646154606448642','1249660183160819714',6,'2020-04-13 19:26:19'),
('1249660183215345668','1249645276885422081','1249660183160819714',7,'2020-04-13 19:26:19');
CREATE TABLE `jd_timeline_goods` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
`sku_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品id',
`publisher_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '发布人id',
`image_url` varchar(1024) NOT NULL DEFAULT '' COMMENT '分享图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '发圈内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_user` (
`id` bigint(20) NOT NULL,
`nick_name` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名',
`avatar_url` varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享图',
`phone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
`identify` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户身份(导师,合伙人)',
`invitation_code` varchar(10) NOT NULL DEFAULT '' COMMENT '邀请码',
`inviter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '邀请人用户id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
`role_name` varchar(32) NOT NULL DEFAULT 'MEMBER' COMMENT '成员角色',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_user`(`id`,`nick_name`,`avatar_url`,`phone`,`identify`,`invitation_code`,`inviter_id`,`create_time`,`role_name`) values
('1249645276885422081','系统用户','','',1,'PBP1TP',0,'2020-04-13 18:27:05','MEMBER'),
('1249646154606448642','惊天霸戈','https://wx.qlogo.cn/mmopen/vi_32/LCEZLO6xdqicB6bB2wQHLdTbDnCmicLqu7ibnAs4yib3iaee2VZXZrszm9ZvicyUPhFy3kxPUKxqZWUh0sPFq5nhEeQg/132','18817096723',3,'AS3PSV','1249645276885422081','2020-04-13 18:44:30','ADMIN'),
('1249646645646200834','NULL NULL bug','https://wx.qlogo.cn/mmopen/vi_32/w9Qqaicic2vnrD4xmQ4VU8licdXqQUlEGjOgdNcO4LWiaaic1fZTys9IiaMsqEwtmfrdajlA4jWFq9GKvkLCuRZMBPYg/132','15700701570',3,'0XPZ6R','1249646154606448642','2020-04-13 18:32:32','MEMBER'),
('1249647179123920897','漫步天空的鱼 ','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83ep1J5W23GsduT7eoxB0VUH12nzYYJicxj3T5Z7Vnf6d8eSaCAhUV5UqgCd3ZdmCWqrK0EzphaU0ewg/132','15674980439',2,'BXW8N2','1249646645646200834','2020-04-13 18:34:39','MEMBER'),
('1249647377699049474','大灰狼᭄ꫛꪝ','https://wx.qlogo.cn/mmopen/vi_32/Cp6oMCj4n8d2icpSMZeuQLa2gwXEgibVH2r5b9vibm8mnSIOTbb38tjgDkTJ9y5GBDX8WMuCgQkZmeibt0Kuia4Q9hA/132','18073692882',3,'GTXY4M','1249647179123920897','2020-04-13 18:35:26','MEMBER'),
('1249647766947237890','伍星','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKeBn4LFgzpXMBmrAcMRvOl0vibkYDAMibbpIchCBJoaPUT8ePlicEH58RWaiadXJSBtyHF9JubGlPyvg/132','15576622046',2,'CZZ47L','1249647377699049474','2020-04-13 18:36:59','MEMBER'),
('1249647976792461313','🐭','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJZFvrWqkibKOtTYsBl7Ovq6JVuYHibWwicyibZL1SicIqHOCaGhMAxAEVY8Hg2gpKkelMmxCSricR45wqg/132','15367842658',2,'BVPERE','1249647766947237890','2020-04-13 18:37:49','MEMBER'),
('1249660183160819714','佰创科技,专业软件定制','https://wx.qlogo.cn/mmopen/vi_32/9MjR2XUtd7RibDUm3p2hoJutquAfmPH5rSlWGoa0vsZKhDfIhrZZA4BdiaibAT1yFV8vA8LsicMuDnIgicmHXXIkbxg/132','15399928823',1,'YDYFVZ','1249647976792461313','2020-04-13 19:26:19','MEMBER');
CREATE TABLE `jd_wallet` (
`id` bigint(20) NOT NULL,
`balance` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '钱包余额',
`balance_freeze` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '已被冻结的金额',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '钱包状态',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_wallet_transaction_flow` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '费用数量',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '交易id',
`transaction_time` datetime NOT NULL COMMENT '交易时间',
`transaction_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '交易类型(0 未知1收入2支出 ',
`transaction_biz` tinyint(4) NOT NULL DEFAULT '0' COMMENT '交易业务类型 ',
`remark` varchar(255) NOT NULL DEFAULT '' COMMENT '流水备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_wechat_group` (
`id` bigint(20) NOT NULL,
`group_id` int(11) NOT NULL COMMENT '群组id',
`group_name` varchar(64) NOT NULL COMMENT '组名称',
`owner_id` bigint(20) NOT NULL COMMENT '归属人id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间',
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分享海报';
CREATE TABLE `jd_wechat_user` (
`id` bigint(20) NOT NULL COMMENT 'id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`session_key` varchar(255) NOT NULL DEFAULT '' COMMENT '会话密钥',
`wechat_id` varchar(255) NOT NULL DEFAULT '' COMMENT '微信号',
`open_id` varchar(255) NOT NULL DEFAULT '' COMMENT '用户唯一标识',
`union_id` varchar(255) NOT NULL DEFAULT '' COMMENT '用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_wechat_user`(`id`,`user_id`,`session_key`,`wechat_id`,`open_id`,`union_id`,`create_time`) values
('1249646645721698306','1249646645646200834','GyVq6q2zh5OIcXOh4EbsEA==','wuli_wuxiansen','ostG55SIgJGucXBPW9FF4kXUvQDE','oNCj5w_TGlfVSWPJVgnncYT5BgQI','2020-04-13 18:32:32'),
('1249647179195224066','1249647179123920897','kqqv9YBMAHEij8K6aUjkHQ==','crystal9524','ostG55cqGSeXyqOlcxpDFQz-p76Q','','2020-04-13 18:34:39'),
('1249647377791324162','1249647377699049474','qEzPxkabttdEH7jHXWjUMg==','Shoujijadt','ostG55UrBsInb1B8UQNUSvaNZUBo','','2020-04-13 18:35:26'),
('1249647767035318273','1249647766947237890','0NeMSggOB1s+AQdE4uIZ2Q==','wuxing','ostG55cOduWJjfpmtxikQAS9shcg','oNCj5w2w7m6NyyL4Lq7IyfXyk7ak','2020-04-13 18:36:59'),
('1249647976880541697','1249647976792461313','cTHqNQe5sVw38r22ZgELRw==','laoshuzi-777','ostG55bEOkbmR-EFWDIB7-7mlyzk','oNCj5w1dBjMturL8--k0NK5UcISQ','2020-04-13 18:37:49'),
('1249649658788057090','1249646154606448642','OFfTjOMRyRY/ilzASLDzvQ==','head_main','ostG55bDoaEKkwSn3qgN1Ubncj6U','oNCj5w1xr4Ho1Tj7OFE0-NdiUH6s','2020-04-13 18:44:30'),
('1249660183227928578','1249660183160819714','hlpvEawQ8yAzsUOc5GtllA==','','ostG55b6yIdcTtht2gOv-61tlXjA','oNCj5w8a9qLSiPVDYoixvisRM4dc','2020-04-13 19:26:19');
CREATE TABLE `jd_withdraw_order_payment` (
`id` bigint(20) NOT NULL COMMENT 'id',
`partner_trade_no` varchar(32) NOT NULL DEFAULT '' COMMENT '商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)',
`payment_no` varchar(64) NOT NULL DEFAULT '' COMMENT '企业付款成功,返回的微信付款单号',
`payment_time` varchar(32) NOT NULL DEFAULT '' COMMENT '企业付款成功时间',
`amount` int(11) NOT NULL COMMENT '支付金额(单位:分)',
`device_info` varchar(32) NOT NULL DEFAULT '' COMMENT '微信支付分配的终端设备号',
`payment_desc` varchar(100) NOT NULL DEFAULT '' COMMENT '支付备注',
`result_code` varchar(16) NOT NULL COMMENT 'SUCCESS/FAIL注意当状态为FAIL时存在业务结果未明确的情况。如果状态为FAIL请务必关注错误代码err_code字段通过查询查询接口确认此次付款的结果。',
`err_code` varchar(32) NOT NULL DEFAULT '' COMMENT '错误码信息注意出现未明确的错误码时SYSTEMERROR等请务必用原商户订单号重试或通过查询接口确认此次付款的结果。',
`err_code_des` varchar(128) NOT NULL DEFAULT '' COMMENT '结果信息描述',
PRIMARY KEY (`id`),
UNIQUE KEY `partner_trade_no` (`partner_trade_no`),
UNIQUE KEY `payment_no` (`payment_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='提现支付操作记录';
SET FOREIGN_KEY_CHECKS = 1;

View File

@ -0,0 +1,851 @@
SET FOREIGN_KEY_CHECKS = 0;
CREATE TABLE `jd_activity` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
`share_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动分享图',
`logo_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动logo图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享文本',
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '活动开始时间',
`end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '活动结束时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='活动表';
insert into `jd_activity`(`id`,`title`,`share_image`,`logo_image`,`content`,`start_time`,`end_time`,`status`,`create_time`) values
('1242795127613689858','🔥清洁纸品超级品类日','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_share.jpg','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg','🎉清洁纸品超级品类日
9950299150
👉https://u.jd.com/WoWhDy
🔥9950
👉https://u.jd.com/YGHnSB
🔥299150
👉https://u.jd.com/BAAv0C
🔥995
👉https://u.jd.com/pHuf4v
💦 995
👉https://u.jd.com/8p5tu2
💦 2
👉https://u.jd.com/3PXTC8
💦 20
👉https://u.jd.com/tGXzHr
💦 12920
👉https://u.jd.com/T3QkTL','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:47:03'),
('1249586550744813569','🔥初春潮履 焕新出彩','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_share.png','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_logo.png','💰李宁特卖日!
2
👉https://u.jd.com/wY8Gfh
🎉2
👉https://u.jd.com/RGDzAP
🎉
👉https://u.jd.com/zsQSHQ
🎉30030
👉https://u.jd.com/QUhmwA
🎉4
👉https://u.jd.com/PBh6Xn
🎉49980
👉https://u.jd.com/QvRBYy
🎉30030
👉https://u.jd.com/uce033','2020-04-01 00:00:00','2020-04-30 00:00:00',1,'2020-04-13 14:33:44');
CREATE TABLE `jd_apply_withdraw_order` (
`id` bigint(20) NOT NULL,
`applier_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '申请人用户id',
`amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '申请提现金额',
`wechat_id` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人微信号',
`payee_name` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人姓名',
`payee_card_id` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人身份证号',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现单状态',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_apply_withdraw_order_operate_record` (
`id` bigint(20) NOT NULL,
`withdraw_order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '提现申请单id',
`operator_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '操作人id',
`operator_name` varchar(255) NOT NULL DEFAULT '' COMMENT '操作人名称',
`operate_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
`remark` varchar(1014) NOT NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_banner` (
`id` bigint(20) NOT NULL,
`location` varchar(2048) NOT NULL DEFAULT '' COMMENT 'banner跳转页面',
`cover_url` varchar(255) NOT NULL DEFAULT '' COMMENT 'banner封面图',
`end_time` datetime NOT NULL COMMENT '结束时间',
`start_time` datetime NOT NULL COMMENT '开始时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1: 自动2显示3未显示',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='banner表';
insert into `jd_banner`(`id`,`location`,`cover_url`,`end_time`,`start_time`,`status`,`title`) values
('1242798208464195585','/page_package/activity/activity?id=1242795127613689858','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg','2020-03-31 00:00:00','2020-03-25 00:00:00',1,'🔥清洁纸品超级品类日'),
('1249587684121251841','/page_package/activity/activity?id=1249586550744813569','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_logo.png','2020-04-30 00:00:00','2020-04-01 00:00:00',1,'🔥初春潮履 焕新出彩');
CREATE TABLE `jd_feedback` (
`id` bigint(20) NOT NULL,
`submitter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '提交人',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '選項的值',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '反馈状态',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_member_commission` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`identify` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户等级',
`level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '记录深度',
`batch_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '批次Id',
`sku_id` bigint(20) NOT NULL COMMENT '商品ID',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '京东订单id',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`order_time` datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
`estimate_rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估返利(卖货)',
`actual_rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际返利(卖货)',
`estimate_award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估奖励',
`actual_award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际奖励',
`estimate_commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估佣金',
`actual_commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际佣金',
`sku_name` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品名称',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`remark` varchar(256) NOT NULL DEFAULT '' COMMENT '佣金备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
PRIMARY KEY (`id`),
KEY `index_user_id` (`user_id`),
KEY `index_batch_id` (`batch_id`),
KEY `index_sku_id` (`sku_id`),
KEY `index_order_id` (`order_id`),
KEY `order_finish_time` (`finish_time`),
KEY `index_order_time` (`order_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_member_commission`(`id`,`user_id`,`identify`,`level`,`batch_id`,`sku_id`,`order_id`,`finish_time`,`order_time`,`estimate_rebate_fee`,`actual_rebate_fee`,`estimate_award_fee`,`actual_award_fee`,`estimate_commission_fee`,`actual_commission_fee`,`sku_name`,`valid_code`,`remark`,`create_time`) values
('1249660858817056770','1249647766947237890',2,0,'1249660858817056769','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'自购返利: 10.0','2020-04-13 19:29:00'),
('1249660858825445378','1249647766947237890',2,0,'1249660858817056769','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'推广人获得佣金的50.0%','2020-04-13 19:29:00'),
('1249660858829639683','1249647377699049474',3,1,'1249660858829639682','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'直属导师获取奖励30%','2020-04-13 19:29:00'),
('1249660858842222594','1249646645646200834',3,3,'1249660858838028289','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:29:00'),
('1249664381755592706','1249647377699049474',3,0,'1249664381751398402','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'自购返利: 10.0','2020-04-13 19:43:00'),
('1249664381755592707','1249647377699049474',3,0,'1249664381751398402','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'推广人获得佣金的80.0%','2020-04-13 19:43:00'),
('1249664381763981313','1249646645646200834',3,2,'1249664381759787010','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'导师的直属导师奖励 6%','2020-04-13 19:43:00'),
('1249664381768175619','1249646154606448642',3,3,'1249664381768175618','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:43:00'),
('1250013935331971074','1249647976792461313',2,0,'1250013935323582466','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'自购返利: 10.0','2020-04-14 18:52:00'),
('1250013935340359681','1249647976792461313',2,0,'1250013935323582466','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'推广人获得佣金的50.0%','2020-04-14 18:52:00'),
('1250013935352942593','1249647766947237890',2,1,'1250013935348748289','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'直属超级会员获得奖励20%','2020-04-14 18:52:00'),
('1250013935361331201','1249647377699049474',3,2,'1250013935357136898','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'非直属导师获取奖励20%','2020-04-14 18:52:00'),
('1250013935365525506','1249646645646200834',3,4,'1250013935365525505','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-14 18:52:00'),
('1250021233114746882','1249647179123920897',2,0,'1250021233106358273','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'自购返利: 10.0','2020-04-14 19:21:00'),
('1250021233118941186','1249647179123920897',2,0,'1250021233106358273','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'推广人获得佣金的50.0%','2020-04-14 19:21:00'),
('1250021233127329793','1249646645646200834',3,1,'1250021233123135489','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'直属导师获取奖励30%','2020-04-14 19:21:00'),
('1250021233135718402','1249646154606448642',3,2,'1250021233135718401','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-14 19:21:00'),
('1250022239865147394','1249646645646200834',3,0,'1250022239865147393','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',3,'自购返利: 10.0','2020-04-14 19:25:00'),
('1250022239869341698','1249646645646200834',3,0,'1250022239865147393','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',3,'推广人获得佣金的80.0%','2020-04-14 19:25:00'),
('1250022239881924610','1249646154606448642',3,1,'1250022239881924609','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',3,'导师的直属导师奖励 6%','2020-04-14 19:25:00'),
('1250237155914027010','1249646645646200834',3,0,'1250237155905638401','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'自购返利: 10.0','2020-04-15 09:39:00'),
('1250237155918221313','1249646645646200834',3,0,'1250237155905638401','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'推广人获得佣金的80.0%','2020-04-15 09:39:00'),
('1250237155930804225','1249646154606448642',3,1,'1250237155926609922','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'导师的直属导师奖励 6%','2020-04-15 09:39:00'),
('1250239672605478914','1249646645646200834',3,0,'1250239672605478913','52381363881','117611225195',null,'2020-04-14 09:47:13',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',3,'自购返利: 10.0','2020-04-15 09:49:00'),
('1250239672609673218','1249646645646200834',3,0,'1250239672605478913','52381363881','117611225195',null,'2020-04-14 09:47:13',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',3,'推广人获得佣金的80.0%','2020-04-15 09:49:00'),
('1250239672618061826','1249646154606448642',3,1,'1250239672613867522','52381363881','117611225195',null,'2020-04-14 09:47:13',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',3,'导师的直属导师奖励 6%','2020-04-15 09:49:00'),
('1250529331545903107','1249660183160819714',1,0,'1250529331545903106','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'自购返利: 10.0','2020-04-16 05:00:01'),
('1250529331604623362','1249647976792461313',2,1,'1250529331604623361','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'推广人获得佣金的50.0%','2020-04-16 05:00:01'),
('1250529331646566402','1249647766947237890',2,2,'1250529331642372097','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'直属超级会员获得奖励20%','2020-04-16 05:00:01'),
('1250529331654955010','1249647377699049474',3,3,'1250529331654955009','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'非直属导师获取奖励20%','2020-04-16 05:00:01'),
('1250529331663343618','1249647179123920897',3,4,'1250529331663343617','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-16 05:00:01'),
('1250617915221217282','1249646154606448642',3,0,'1250617915217022978','54412358961','117884785856',null,'2020-04-16 10:47:48',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'自购返利: 10.0','2020-04-16 10:52:01'),
('1250617915233800194','1249646154606448642',3,0,'1250617915217022978','54412358961','117884785856',null,'2020-04-16 10:47:48',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'推广人获得佣金的80.0%','2020-04-16 10:52:01'),
('1250618166535524354','1249646154606448642',3,0,'1250618166531330050','65868637885','117805624512',null,'2020-04-15 17:37:58',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'李宁跑步鞋女鞋春季云减震跑鞋网面透气休闲鞋女士运动鞋 标准黑 37',3,'推广人获得佣金的80.0%','2020-04-16 10:53:00'),
('1250620683042426882','1249646154606448642',3,0,'1250620683034038274','58043448672','117893529708',null,'2020-04-16 11:01:29',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'莉兹星空星耀口红女高颜值哑光豆沙色不脱色美妆 8#豆沙色',3,'自购返利: 10.0','2020-04-16 11:03:00'),
('1250620683046621185','1249646154606448642',3,0,'1250620683034038274','58043448672','117893529708',null,'2020-04-16 11:01:29',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'莉兹星空星耀口红女高颜值哑光豆沙色不脱色美妆 8#豆沙色',3,'推广人获得佣金的80.0%','2020-04-16 11:03:00'),
('1250624457999912961','1249646154606448642',3,0,'1250624457995718658','63965195734','117885632034',null,'2020-04-16 11:09:42',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 06亮燿玫红色',3,'自购返利: 10.0','2020-04-16 11:18:00'),
('1250624458004107265','1249646154606448642',3,0,'1250624457995718658','63965195734','117885632034',null,'2020-04-16 11:09:42',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 06亮燿玫红色',3,'推广人获得佣金的80.0%','2020-04-16 11:18:00'),
('1250627226236358658','1249646154606448642',3,0,'1250627226232164354','65670962506','117890434730',null,'2020-04-16 11:25:10',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 03经典正红色',3,'自购返利: 10.0','2020-04-16 11:29:00'),
('1250627226240552962','1249646154606448642',3,0,'1250627226232164354','65670962506','117890434730',null,'2020-04-16 11:25:10',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 03经典正红色',3,'推广人获得佣金的80.0%','2020-04-16 11:29:00'),
('1250694418948689922','1249646645646200834',3,0,'1250694418948689921','54412358961','117793424898',null,'2020-04-15 15:54:00',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'自购返利: 10.0','2020-04-16 15:56:00'),
('1250694418952884225','1249646645646200834',3,0,'1250694418948689921','54412358961','117793424898',null,'2020-04-15 15:54:00',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'推广人获得佣金的80.0%','2020-04-16 15:56:00'),
('1250694418957078531','1249646154606448642',3,1,'1250694418957078530','54412358961','117793424898',null,'2020-04-15 15:54:00',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'导师的直属导师奖励 6%','2020-04-16 15:56:00'),
('1250718326649262081','1249647377699049474',3,0,'1250718326645067778','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'自购返利: 10.0','2020-04-16 17:31:00'),
('1250718326649262082','1249647377699049474',3,0,'1250718326645067778','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'推广人获得佣金的80.0%','2020-04-16 17:31:00'),
('1250718326657650691','1249647179123920897',3,1,'1250718326657650690','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'导师的直属导师奖励 6%','2020-04-16 17:31:00'),
('1250718326682816514','1249646645646200834',3,2,'1250718326682816513','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-16 17:31:00'),
('1250766644821626881','1249646154606448642',3,0,'1250766644817432578','40771647999','117823997793',null,'2020-04-15 20:40:55',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'李宁短袖男夏季圆领速干篮球跑步训练上衣吸湿透气短袖紧运动T恤健身健身运动服 混色荧光亮绿AUDM017-2 L/175',3,'推广人获得佣金的80.0%','2020-04-16 20:43:00'),
('1250991124181422083','1249646154606448642',3,0,'1250991124181422082','66093114558','117891130506',null,'2020-04-16 11:33:32',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'华公子三色口红 1支顶3支3色口红时尚新款 不易沾杯不易掉色网红款 三色口红',3,'自购返利: 10.0','2020-04-17 11:35:00'),
('1250991124189810690','1249646154606448642',3,0,'1250991124181422082','66093114558','117891130506',null,'2020-04-16 11:33:32',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'华公子三色口红 1支顶3支3色口红时尚新款 不易沾杯不易掉色网红款 三色口红',3,'推广人获得佣金的80.0%','2020-04-17 11:35:00'),
('1251052780362141698','1251052016969453569',1,0,'1251052780362141697',1101196302,'118039298372',null,'2020-04-17 15:38:53',1.5000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',16,'自购返利: 10.0','2020-04-17 15:40:00'),
('1251052780370530306','1250327528271253505',3,1,'1251052780366336001',1101196302,'118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,12.0700,0.0000,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',16,'推广人获得佣金的80.0%','2020-04-17 15:40:00'),
('1251052780374724610','1249647377699049474',3,2,'1251052780374724609',1101196302,'118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.7200,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',16,'导师的直属导师奖励 6%','2020-04-17 15:40:00'),
('1251052780378918915','1249647179123920897',3,3,'1251052780378918914',1101196302,'118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.3600,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',16,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-17 15:40:00'),
('1251052780420861955','1251052016969453569',1,0,'1251052780420861954','10069629503','118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',16,'自购返利: 10.0','2020-04-17 15:40:00'),
('1251052780429250561','1250327528271253505',3,1,'1251052780425056257','10069629503','118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',16,'推广人获得佣金的80.0%','2020-04-17 15:40:00'),
('1251052780433444867','1249647377699049474',3,2,'1251052780433444866','10069629503','118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',16,'导师的直属导师奖励 6%','2020-04-17 15:40:00'),
('1251052780441833473','1249647179123920897',3,3,'1251052780437639169','10069629503','118039298372',null,'2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',16,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-17 15:40:00'),
('1251087257490690049','1249646645646200834',3,0,'1251087257486495745','100005597540','118008077932','2020-04-17 17:55:18','2020-04-17 10:38:53',1.1600,1.1600,0.0000,0.0000,0.0000,0.0000,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',17,'自购返利: 10.0','2020-04-17 17:57:00'),
('1251087257490690050','1249646645646200834',3,0,'1251087257486495745','100005597540','118008077932','2020-04-17 17:55:18','2020-04-17 10:38:53',0.0000,0.0000,0.0000,0.0000,9.3200,9.3200,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',17,'推广人获得佣金的80.0%','2020-04-17 17:57:00'),
('1251087257499078659','1249646154606448642',3,1,'1251087257499078658','100005597540','118008077932','2020-04-17 17:55:18','2020-04-17 10:38:53',0.0000,0.0000,0.5500,0.5500,0.0000,0.0000,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',17,'导师的直属导师奖励 6%','2020-04-17 17:57:00');
CREATE TABLE `jd_member_commission_per_user_for_30_day` (
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`estimate_rebate_fee` decimal(31,4) DEFAULT NULL,
`actual_rebate_fee` decimal(31,4) DEFAULT NULL,
`estimate_award_fee` decimal(31,4) DEFAULT NULL,
`actual_award_fee` decimal(31,4) DEFAULT NULL,
`estimate_commission_fee` decimal(31,4) DEFAULT NULL,
`actual_commission_fee` decimal(31,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_member_quick_start` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`title` varchar(32) NOT NULL DEFAULT '' COMMENT '新人上路标题',
`content` varchar(512) NOT NULL DEFAULT '' COMMENT '新人上路说明',
`video_url` varchar(256) NOT NULL DEFAULT '' COMMENT '视频地址',
`type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '跳转页面、复制、显示图片',
`style` tinyint(4) NOT NULL DEFAULT '1' COMMENT '显示样式',
`action` varchar(16) NOT NULL DEFAULT '' COMMENT '操作提示',
`data` varchar(256) NOT NULL DEFAULT '' COMMENT '操作内容',
`sort` tinyint(4) NOT NULL DEFAULT '1' COMMENT '显示顺序',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新人上手';
insert into `jd_member_quick_start`(`id`,`title`,`content`,`video_url`,`type`,`style`,`action`,`data`,`sort`,`create_time`) values
('1249952388481380354','成长任务1升级超级会员省得多赚的多','&lt;p&gt;建立一个大于&lt;span style=&quot;color:#E53333;&quot;&gt;50人的微信群&lt;/span&gt;完成升级,即可省得更多,分享赚钱之路。&lt;/p&gt;','',1,1,'去升级','/page_package/apply-vip/apply-vip',1,'2020-04-14 16:04:20'),
('1249964797954703361','成长任务2掌握选爆品和会卖货的技巧','&lt;p&gt;了解小程序内重要的选品频道,掌握更多的发品方式和技巧,为亲朋好友带来优惠。&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#E53333;&quot;&gt;&lt;br /&gt;想学习更多一定添加专属导师微信!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;导师微信号:#{#teacher.wechatId}&lt;/p&gt;','',2,1,'复制导师微信','#{#teacher.wechatId}',2,'2020-04-14 16:04:20'),
('1249967624462594050','成长任务4: 进官方爆款群选取更多爆单素材','&lt;p&gt;官方爆款九是重要的选器渠道之一,这里是全网爆款商品。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#E53333;&quot;&gt;注:推广商品需要先转链哦!&lt;/span&gt;&lt;/p&gt;','',3,1,'获取进群二维码','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg',4,'2020-04-14 16:04:20'),
('1249968644873842689','成长任务3进培训群实现收益技能双增长','官方培训群,全方位的学习课程,更有大咖导师独家分享,帮助大家提升收益。','',3,1,'获取进群二维码','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg',3,'2020-04-14 16:04:20'),
('1249974375077449729','成长任务5邀请小伙伴加入一起赚钱','学会邀请小伙伴加入的3种方式帮助小伙伴少钱赚钱的同时还能获得平台额外奖励邀请越多赚得越多~','',4,1,'去邀请','',5,'2020-04-14 16:14:49');
CREATE TABLE `jd_message` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '消息标题',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '消息内容',
`start_time` datetime NOT NULL COMMENT '消息开始时间',
`end_time` datetime NOT NULL COMMENT '消息结束时间',
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息类型',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新闻';
CREATE TABLE `jd_news` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
`location` varchar(2048) NOT NULL DEFAULT '' COMMENT '跳转页面',
`start_time` datetime NOT NULL COMMENT '活动开始时间',
`end_time` datetime NOT NULL COMMENT '活动结束时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '快报状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新闻';
insert into `jd_news`(`id`,`title`,`location`,`start_time`,`end_time`,`status`,`create_time`) values
('1242795456094801922','🔥清洁纸品超级品类日','/page_package/activity/activity?id=1242795127613689858','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:48:21'),
('1242796305235841025','🔥清洁纸品超级品类日','/page_package/activity/activity?id=1242795127613689858','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:51:43'),
('1249587919287488514','🔥初春潮履 焕新出彩','/page_package/activity/activity?id=1249586550744813569','2020-04-01 00:00:00','2020-04-30 00:00:00',1,'2020-04-13 14:39:10');
CREATE TABLE `jd_option` (
`id` bigint(20) NOT NULL,
`option_name` varchar(128) NOT NULL COMMENT '選項key',
`option_value` varchar(255) NOT NULL COMMENT '選項的值',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `option_name` (`option_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_option`(`id`,`option_name`,`option_value`,`create_time`) values
('1242792998689837058','sys_default_user_name','系统用户','2020-03-25 20:38:35'),
('1242792998748557314','opt_sys_next_group_id','10011','2020-03-25 20:38:35'),
('1242792998756945922','sys_withdraw_start_day','27','2020-03-25 20:38:35'),
('1242792998765334529','sys_register_user_identify','1','2020-03-25 20:38:35'),
('1242792998765334530','sys_withdraw_end_day','30','2020-03-25 20:38:35'),
('1242792998773723138','app_force_login','false','2020-03-25 20:38:35'),
('1242792998773723139','sys_current_sync_start_time','20200417203000','2020-03-25 20:38:35'),
('1242792998782111745','sys_order_sync_retry_interval','2000','2020-03-25 20:38:35'),
('1242792998786306049','sys_order_sync_start_time','20200327161300','2020-03-25 20:38:35'),
('1242792998790500353','sys_default_user_identify','1','2020-03-25 20:38:35'),
('1242792998790500354','sys_order_sync_retry_count','3','2020-03-25 20:38:35'),
('1242792998794694657','sys_settlement_start_day','0 0 0 23 * ?','2020-03-25 20:38:35'),
('1242792998798888961','sys_order_sync_delay','2','2020-03-25 20:38:35'),
('1243451545673011201','app_default_inviter_code','PBP1TP','2020-03-27 16:15:25');
CREATE TABLE `jd_order_detail` (
`id` bigint(20) NOT NULL COMMENT 'id',
`order_id` bigint(20) NOT NULL COMMENT '订单ID',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`order_emt` tinyint(4) NOT NULL DEFAULT '1' COMMENT '下单设备(1:PC,2:无线)',
`order_time` datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
`owner_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广人id',
`buyer_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '购买人id',
`parent_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '父单的订单ID仅当发生订单拆分时返回 0未拆分有值则表示此订单为子订单',
`pay_month` varchar(19) NOT NULL DEFAULT '0' COMMENT '订单维度预估结算时间,不建议使用可以用订单行sku维度paymonth字段参考格式yyyyMMdd0未结算订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
`plus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '下单用户是否为PLUS会员 01',
`pop_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '订单维度商家ID不建议使用可以用订单行sku维度popId参考',
`union_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推客的联盟ID',
`ext1` varchar(255) NOT NULL DEFAULT '' COMMENT '订单维度的推客生成推广链接时传入的扩展字段不建议使用可以用订单行sku维度ext1参考,(需要联系运营开放白名单才能拿到数据)',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT '订单维度的有效码不建议使用可以用订单行sku维度validCode参考,-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '订单更新时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单记录';
insert into `jd_order_detail`(`id`,`order_id`,`finish_time`,`order_emt`,`order_time`,`owner_id`,`buyer_id`,`parent_id`,`pay_month`,`plus`,`pop_id`,`union_id`,`ext1`,`valid_code`,`update_time`,`create_time`) values
('1249651547374096386','117544770336',null,2,'2020-04-13 18:50:01','1249647976792461313','1249647976792461313',0,'0',0,625318,1002274953,'',3,'2020-04-13 18:52:00','2020-04-13 18:52:00'),
('1249653308906278913','117545220705',null,2,'2020-04-13 18:57:12','1249647766947237890','1249647766947237890',0,'0',0,10101608,1002274953,'',3,'2020-04-13 18:59:00','2020-04-13 18:59:00'),
('1249656831983226882','117545233538',null,2,'2020-04-13 19:11:01','1249647377699049474','1249647377699049474',0,'0',0,10101608,1002274953,'',3,'2020-04-13 19:13:00','2020-04-13 19:13:00'),
('1249658845198815233','112300888440',null,2,'2020-04-13 19:19:27','1249647179123920897','1249647179123920897',0,'0',0,154813,1002274953,'',3,'2020-04-13 19:21:00','2020-04-13 19:21:00'),
('1249659851844358145','117548817387',null,2,'2020-04-13 19:23:14','1249646645646200834','1249646645646200834',0,'0',1,10340545,1002274953,'',3,'2020-04-13 19:25:00','2020-04-13 19:25:00'),
('1249661613460426754','112296467773',null,2,'2020-04-13 19:30:57','1249647976792461313','1249660183160819714',0,'0',0,27236,1002274953,'',3,'2020-04-13 19:32:00','2020-04-13 19:32:00'),
('1249874767943569410','117607354307',null,2,'2020-04-14 09:37:04','1249646645646200834','1249646645646200834',0,'0',1,166144,1002274953,'',3,'2020-04-14 09:39:00','2020-04-14 09:39:00'),
('1249877285247389697','117611225195',null,2,'2020-04-14 09:47:13','1249646645646200834','1249646645646200834',0,'0',1,736958,1002274953,'',3,'2020-04-14 09:49:01','2020-04-14 09:49:01'),
('1250332031120838658','117793424898',null,2,'2020-04-15 15:54:00','1249646645646200834','1249646645646200834',0,'0',1,166144,1002274953,'',3,'2020-04-15 15:56:00','2020-04-15 15:56:00'),
('1250355686865375234','117812091341',null,2,'2020-04-15 17:28:46','1249647377699049474','1249647377699049474',0,'0',0,590931,1002274953,'',3,'2020-04-15 17:30:00','2020-04-15 17:30:00'),
('1250357951906975745','117805624512',null,2,'2020-04-15 17:37:58','1249646154606448642',0,0,'0',0,607110,1002274953,'',3,'2020-04-15 17:39:00','2020-04-15 17:39:00'),
('1250404005377478658','117823997793',null,2,'2020-04-15 20:40:55','1249646154606448642',0,0,'0',0,109725,1002274953,'',3,'2020-04-15 20:42:00','2020-04-15 20:42:00'),
('1250617159969673218','117884785856',null,2,'2020-04-16 10:47:48','1249646154606448642','1249646154606448642',0,'0',0,166144,1002274953,'',3,'2020-04-16 10:49:00','2020-04-16 10:49:00'),
('1250620682996289538','117893529708',null,2,'2020-04-16 11:01:29','1249646154606448642','1249646154606448642',0,'0',0,10149882,1002274953,'',3,'2020-04-16 11:03:00','2020-04-16 11:03:00'),
('1250622696358678529','117885632034',null,2,'2020-04-16 11:09:42','1249646154606448642','1249646154606448642',0,'0',0,10166579,1002274953,'',3,'2020-04-16 11:11:00','2020-04-16 11:11:00'),
('1250626723028930562','117890434730',null,2,'2020-04-16 11:25:10','1249646154606448642','1249646154606448642',0,'0',0,10072467,1002274953,'',3,'2020-04-16 11:27:00','2020-04-16 11:27:00'),
('1250628736059969538','117891130506',null,2,'2020-04-16 11:33:32','1249646154606448642','1249646154606448642',0,'0',0,10327467,1002274953,'',3,'2020-04-16 11:35:00','2020-04-16 11:35:00'),
('1250977534384803841','118008077932','2020-04-17 17:55:18',2,'2020-04-17 10:38:53','1249646645646200834','1249646645646200834',0,'20200520',1,0,1002274953,'',17,'2020-04-17 10:41:00','2020-04-17 10:41:00'),
('1251052780316004353','118039298372',null,2,'2020-04-17 15:38:53','1250327528271253505','1251052016969453569',0,'0',0,21425,1002274953,'',16,'2020-04-17 15:40:00','2020-04-17 15:40:00');
CREATE TABLE `jd_order_sku` (
`id` bigint(20) NOT NULL COMMENT 'id',
`sku_id` bigint(20) NOT NULL COMMENT '商品ID',
`order_id` bigint(20) NOT NULL COMMENT '京东订单id',
`owner_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广人id',
`buyer_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '购买人id',
`actual_cos_price` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际计算佣金的金额。订单完成后,会将误扣除的运费券金额更正。如订单完成后发生退款,此金额会更新。',
`actual_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT ' 推客获得的实际佣金(实际计佣金额*佣金比例*最终比例)。如订单完成后发生退款,此金额会更新。',
`commission_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '佣金比例',
`estimate_cos_price` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估计佣金额,即用户下单的金额(已扣除优惠券、白条、支付优惠、进口税,未扣除红包和京豆),有时会误扣除运费券金额,完成结算时会在实际计佣金额中更正。如订单完成前发生退款,此金额也会更新。',
`estimate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '推客的预估佣金(预估计佣金额*佣金比例*最终比例),如订单完成前发生退款,此金额也会更新。',
`final_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '最终比例(分成比例+补贴比例)',
`cid1` bigint(20) NOT NULL DEFAULT '0' COMMENT '一级类目ID',
`frozen_sku_nnum` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品售后中数量',
`pid` varchar(128) DEFAULT '' COMMENT '联盟子站长身份标识格式子站长ID_子站长网站ID_子站长推广位ID',
`position_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广位ID,0代表无推广位',
`site_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '网站ID0无网站',
`sku_name` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品名称',
`sku_num` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品数量',
`sku_image` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品主图',
`sku_return_num` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品已退货数量',
`sub_side_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '分成比例',
`subsidy_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '补贴比例',
`cid3` bigint(20) NOT NULL DEFAULT '0' COMMENT '三级类目ID',
`union_alias` varchar(255) NOT NULL DEFAULT '' COMMENT ' PID所属母账号平台名称原第三方服务商来源',
`union_tag` varchar(255) NOT NULL DEFAULT '' COMMENT '联盟标签数据整型的二进制字符串目前返回16位0000000000000001。数据从右向左进行每一位为1表示符合联盟的标签特征第1位红包第2位组合推广第3位拼购第5位有效首次购0000000000011XXX表示有效首购最终奖励活动结算金额会结合订单状态判断以联盟后台对应活动效果数据报表https://union.jd.com/active为准,第8位复购订单第9位礼金第10位联盟礼金第11位推客礼金。例如0000000000000001:红包订单0000000000000010:组合推广订单0000000000000100:拼购订单0000000000011000:有效首购0000000000000111红包+组合推广+拼购等)',
`union_traffic_group` tinyint(4) NOT NULL DEFAULT '0' COMMENT '渠道组 11号店其他京东',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`sub_unionId` varchar(255) NOT NULL DEFAULT '' COMMENT '子联盟ID(需要联系运营开放白名单才能拿到数据)',
`trace_type` tinyint(4) NOT NULL DEFAULT '2' COMMENT '2同店3跨店',
`pay_month` int(11) NOT NULL DEFAULT '0' COMMENT '订单行维度预估结算时间格式yyyyMMdd 0未结算。订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
`pop_id` bigint(20) NOT NULL DEFAULT '0' COMMENT ' 商家ID。''订单行维度''',
`ext1` varchar(255) NOT NULL DEFAULT '' COMMENT ' 推客生成推广链接时传入的扩展字段(需要联系运营开放白名单才能拿到数据)。''订单行维度''',
`cp_act_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '招商团活动id正整数为0时表示无活动',
`union_role` tinyint(4) NOT NULL DEFAULT '1' COMMENT '站长角色1 推客、 2 团长',
`gift_coupon_key` varchar(255) NOT NULL DEFAULT '' COMMENT '礼金批次ID',
`gift_coupon_ocs_amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '礼金分摊金额',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'sku更新时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'sdu创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_order_id_and_sku_id` (`order_id`,`sku_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='佣金商品记录';
insert into `jd_order_sku`(`id`,`sku_id`,`order_id`,`owner_id`,`buyer_id`,`actual_cos_price`,`actual_fee`,`commission_rate`,`estimate_cos_price`,`estimate_fee`,`final_rate`,`cid1`,`frozen_sku_nnum`,`pid`,`position_id`,`site_id`,`sku_name`,`sku_num`,`sku_image`,`sku_return_num`,`sub_side_rate`,`subsidy_rate`,`cid3`,`union_alias`,`union_tag`,`union_traffic_group`,`valid_code`,sub_union_id,`trace_type`,`pay_month`,`pop_id`,`ext1`,`cp_act_id`,`union_role`,`gift_coupon_key`,`gift_coupon_ocs_amount`,`update_time`,`create_time`) values
('1249651547399262209','67324890451','117544770336','1249647976792461313','1249647976792461313',0.0000,0.0000,30.0000,26.9000,0.0000,0.0000,1320,0,'',0,142291,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',1,'https://img14.360buyimg.com/ads/jfs/t1/96571/8/7516/187936/5dfc7308Ec21bb900/1e9f93ea11142746.jpg',0,0.0000,0.0000,1590,'','0000000000000000',4,3,'',2,0,625318,'',0,1,'',0.0000,'2020-04-13 18:52:00','2020-04-13 18:52:00'),
('1249653308935639042','63733255505','117545220705','1249647766947237890','1249647766947237890',0.0000,0.0000,71.0000,119.6000,0.0000,0.0000,16750,0,'',0,142291,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',1,'https://img14.360buyimg.com/ads/jfs/t1/114949/28/413/113995/5e8c56deE89fb838d/e3757bfa4852c97c.jpg',0,0.0000,0.0000,16806,'','0000000000000000',4,3,'',2,0,10101608,'',0,1,'',0.0000,'2020-04-13 18:59:00','2020-04-13 18:59:00'),
('1249656831995809794','67156343434','117545233538','1249647377699049474','1249647377699049474',0.0000,0.0000,71.0000,159.6000,0.0000,0.0000,16750,0,'',0,142291,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',1,'https://img14.360buyimg.com/ads/jfs/t1/113959/33/99/149977/5e871399Eeb724700/9d01f6ee6100190c.jpg',0,0.0000,0.0000,16806,'','0000000000000000',4,3,'',2,0,10101608,'',0,1,'',0.0000,'2020-04-13 19:13:00','2020-04-13 19:13:00'),
('1249658845207203842','20175593221','112300888440','1249647179123920897','1249647179123920897',0.0000,0.0000,20.0000,59.9000,0.0000,0.0000,15901,0,'',0,142291,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',1,'https://img14.360buyimg.com/ads/jfs/t1/3160/29/10391/273015/5bcad3ffE008df512/188a1af611e68eb4.jpg',0,0.0000,0.0000,15908,'','0000000000000000',4,3,'',2,0,154813,'',0,1,'',0.0000,'2020-04-13 19:21:00','2020-04-13 19:21:00'),
('1249659851852746754','67813342286','117548817387','1249646645646200834','1249646645646200834',0.0000,0.0000,20.0000,29.9000,0.0000,0.0000,9192,0,'',0,142291,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',1,'https://img14.360buyimg.com/ads/jfs/t1/97798/27/17537/138655/5e8b2b24E01a7e735/c448ca86d413df4d.png',0,0.0000,0.0000,1517,'','0000000000000000',4,3,'',2,0,10340545,'',0,1,'',0.0000,'2020-04-13 19:25:00','2020-04-13 19:25:00'),
('1249661613473009666','10146821114','112296467773','1249647976792461313','1249660183160819714',0.0000,0.0000,30.0000,79.0000,0.0000,0.0000,1319,0,'',0,142291,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',1,'https://img14.360buyimg.com/ads/jfs/t1945/310/2304052158/266487/9e24311b/56d1b7b1N9d7c6504.jpg',0,0.0000,0.0000,14936,'','0000000000101000',4,3,'',2,0,27236,'',0,1,'',0.0000,'2020-04-13 19:32:00','2020-04-13 19:32:00'),
('1249874767951958017','54412358961','117607354307','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,189.0000,0.0000,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,3,'',2,0,166144,'',0,1,'',0.0000,'2020-04-14 09:39:00','2020-04-14 09:39:00'),
('1249877285251584002','52381363881','117611225195','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,89.0000,0.0000,0.0000,1316,0,'',0,142291,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',1,'https://img14.360buyimg.com/ads/jfs/t1/56566/40/4872/63656/5d299e7bE986c3563/cad34c2522c504b8.jpg',0,0.0000,0.0000,13547,'','0000000000000000',4,3,'',2,0,736958,'',0,1,'',0.0000,'2020-04-14 09:49:01','2020-04-14 09:49:01'),
('1250332031154393089','54412358961','117793424898','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,39.0000,0.0000,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,3,'',2,0,166144,'',0,1,'',0.0000,'2020-04-15 15:56:00','2020-04-15 15:56:00'),
('1250355686877958145','58398852091','117812091341','1249647377699049474','1249647377699049474',0.0000,0.0000,40.0000,19.9000,0.0000,0.0000,16750,0,'',0,142291,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',1,'https://img14.360buyimg.com/ads/jfs/t1/103201/1/7954/111347/5e007eacE24eeedf2/0af3cd2dfc88bfc8.jpg',0,0.0000,0.0000,16778,'','0000000000000000',4,3,'',2,0,590931,'',0,1,'',0.0000,'2020-04-15 17:30:00','2020-04-15 17:30:00'),
('1250357951919558658','65868637885','117805624512','1249646154606448642',0,0.0000,0.0000,2.0000,138.0000,0.0000,0.0000,1318,0,'',0,142291,'李宁跑步鞋女鞋春季云减震跑鞋网面透气休闲鞋女士运动鞋 标准黑 37',1,'https://img14.360buyimg.com/ads/jfs/t1/90864/40/13472/57930/5e5a36a4E62cbee27/f583d5ba42978051.jpg',0,0.0000,0.0000,9756,'','0000000000000000',4,3,'',2,0,607110,'',0,1,'',0.0000,'2020-04-15 17:39:00','2020-04-15 17:39:00'),
('1250404005385867265','40771647999','117823997793','1249646154606448642',0,0.0000,0.0000,5.0000,45.0000,0.0000,0.0000,1318,0,'',0,142291,'李宁短袖男夏季圆领速干篮球跑步训练上衣吸湿透气短袖紧运动T恤健身健身运动服 混色荧光亮绿AUDM017-2 L/175',1,'https://img14.360buyimg.com/ads/jfs/t1/28499/16/4316/136639/5c30517cE2ef058f4/c8aae81914bf365d.jpg',0,0.0000,0.0000,12107,'','0000000000000000',4,3,'',2,0,109725,'',0,1,'',0.0000,'2020-04-15 20:42:00','2020-04-15 20:42:00'),
('1250617160024199169','54412358961','117884785856','1249646154606448642','1249646154606448642',0.0000,0.0000,70.0000,39.0000,0.0000,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,3,'',2,0,166144,'',0,1,'',0.0000,'2020-04-16 10:49:00','2020-04-16 10:49:00'),
('1250620683004678146','58043448672','117893529708','1249646154606448642','1249646154606448642',0.0000,0.0000,52.0000,75.0000,0.0000,0.0000,1316,0,'',0,142291,'莉兹星空星耀口红女高颜值哑光豆沙色不脱色美妆 8#豆沙色',1,'https://img14.360buyimg.com/ads/jfs/t1/53028/35/12124/365909/5d918ef8E9394cbcc/0851ae7c82b8e3c0.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10149882,'',0,1,'',0.0000,'2020-04-16 11:03:00','2020-04-16 11:03:00'),
('1250622696367067137','63965195734','117885632034','1249646154606448642','1249646154606448642',0.0000,0.0000,52.0000,49.9000,0.0000,0.0000,1316,0,'',0,142291,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 06亮燿玫红色',1,'https://img14.360buyimg.com/ads/jfs/t1/92822/24/6737/131720/5df5e89bE3faea339/3d35de1af00137c3.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10166579,'',0,1,'',0.0000,'2020-04-16 11:11:00','2020-04-16 11:11:00'),
('1250626723054096386','65670962506','117890434730','1249646154606448642','1249646154606448642',0.0000,0.0000,52.0000,49.9000,0.0000,0.0000,1316,0,'',0,142291,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 03经典正红色',1,'https://img14.360buyimg.com/ads/jfs/t1/103769/9/12477/134759/5e47a4bdEfbd9088e/bd47bdbe71b784af.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10072467,'',0,1,'',0.0000,'2020-04-16 11:27:00','2020-04-16 11:27:00'),
('1250628736072552450','66093114558','117891130506','1249646154606448642','1249646154606448642',0.0000,0.0000,75.0000,19.9000,0.0000,0.0000,1316,0,'',0,142291,'华公子三色口红 1支顶3支3色口红时尚新款 不易沾杯不易掉色网红款 三色口红',1,'https://img14.360buyimg.com/ads/jfs/t1/93356/22/14052/155299/5e6064efE36471089/e88677e65c684815.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10327467,'',0,1,'',0.0000,'2020-04-16 11:35:00','2020-04-16 11:35:00'),
('1250977534393192450','100005597540','118008077932','1249646645646200834','1249646645646200834',259.0000,11.6600,4.5000,259.0000,11.6600,0.0000,670,0,'',0,142291,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',1,'https://img14.360buyimg.com/ads/jfs/t1/109588/31/4183/215825/5e1bc390E94383e35/f634a22cdb59504f.jpg',0,0.0000,0.0000,1049,'','0000000000000000',4,17,'',2,20200520,0,'',0,1,'',0.0000,'2020-04-17 10:41:00','2020-04-17 10:41:00'),
('1251052780320198657',1101196302,'118039298372','1250327528271253505','1251052016969453569',0.0000,0.0000,30.0000,55.9000,15.0900,0.0000,1316,0,'',0,142291,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',1,'https://img14.360buyimg.com/ads/jfs/t1/118741/1/629/120024/5e8ead14Ea44d98d2/23a136fc5c3fdede.jpg',0,0.0000,0.0000,1392,'','0000000000000000',4,16,'',2,0,21425,'',0,1,'',0.0000,'2020-04-17 15:40:00','2020-04-17 15:40:00'),
('1251052780324392962','10069629503','118039298372','1250327528271253505','1251052016969453569',0.0000,0.0000,1.0000,0.0000,0.0000,0.0000,1316,0,'',0,142291,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',1,'https://img14.360buyimg.com/ads/jfs/t1/72899/9/15653/102456/5dd22df2Ebe2fa093/4469cd06d66a6279.jpg',0,0.0000,0.0000,1392,'','0000000000000000',4,16,'',2,0,21425,'',0,1,'',0.0000,'2020-04-17 15:40:00','2020-04-17 15:40:00');
CREATE TABLE `jd_order_sync_record` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '京东订单id',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0成功1失败',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_order_sync_record`(`id`,`order_id`,`status`) values
('1249651547567034370','117544770336',0),
('1249653309074051074','117545220705',0),
('1249656832083890178','117545233538',0),
('1249658845274312705','112300888440',0),
('1249659851919855617','117548817387',0),
('1249661613582061570','112296467773',0),
('1249874768002289666','117607354307',0),
('1249877285310304257','117611225195',0),
('1250332031301193729','117793424898',0),
('1250355686999592962','117812091341',0),
('1250357951982473218','117805624512',0),
('1250404005440393217','117823997793',0),
('1250617160133251074','117884785856',0),
('1250620683063398401','117893529708',0),
('1250622696429981698','117885632034',0),
('1250626723108622338','117890434730',0),
('1250628736114495490','117891130506',0),
('1250975268852469761','118001435563',1),
('1250976778839658497','118001729067',1),
('1250977534447718402','118008077932',0),
('1250978540464115713','118001123009',1),
('1250990116697018370','118010992358',1),
('1250990871751430145','118012334255',1),
('1250993639887212546','118011304104',1),
('1250995401746550785','118010693067',1),
('1251035666821681153','118029956776',1),
('1251039693332549634','118036531916',1),
('1251040196649029634','118034776750',1),
('1251043468252286978','118035152389',1),
('1251043971572961281','118035194374',1),
('1251052780496359426','118039298372',0);
CREATE TABLE `jd_question` (
`id` bigint(20) NOT NULL,
`cid` bigint(20) NOT NULL COMMENT '问题分类ID',
`title` varchar(64) NOT NULL COMMENT '问题标题',
`answer` varchar(1024) NOT NULL COMMENT '问题回答',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `index_category` (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_question`(`id`,`cid`,`title`,`answer`,`create_time`) values
('1242742075793158145','1242741770884034562','优惠券只能一个号领一次吗?','优惠券数量有限,一般情况一个账号仅能领用一次。','2020-03-25 17:16:14'),
('1242742267862921218','1242741770884034562','部分商品分货较慢是什么原因?','部分商家的产品是第三方POP商家使用的是第三言主物流一般送货速度会较慢。另外在大促活动期间商家积压的订单比较多可能发货会较慢。
线950618','2020-03-25 17:17:00'),
('1242742614790582273','1242741792610529282','如何申请售后服务?','申请售后常用的2个流程
1->->->->
2APP->->','2020-03-25 17:18:23'),
('1242742683598139394','1242741792610529282','对收到的产品不满意 ','按照京东7天元理由退货政策您收到货发现有问题可以与商家协商退货和退款如协商不成您可以拨打东京客服电话950618按2进入按键导航根据语言提示按7再按1然后输入收货人手机号确认手机号按1然后再输入订单后四位等待人工客服接起。','2020-03-25 17:18:39'),
('1242742750933495809','1242741792610529282','为什么通过平台下单的商品售后问题需要联系京东处理?','平台只提供商品链接,分享商品优惠信息,并不提供下单购买等服务,您实际下单仍是在京东内完成,商品也是由京东提供,所以如果产生售后问题,需要您联系京东商场协商处理。','2020-03-25 17:18:55'),
('1242742960657084418','1242741824084586498','如何查看该订单的物流信息?','查看订单的3个途经
1->->->->->->->
2->->->->
APP订单界面查看订单
3APP->','2020-03-25 17:19:45'),
('1242743068148707330','1242741824084586498','如何知道是谁下的单?','东京注重保护客户隐私,您看不到客户姓名、电话等隐私信息。','2020-03-25 17:20:11'),
('1242743117427585025','1242741824084586498','为什么我的订单会显示“无效-取消”?','如果客户下单付款后又取消了此订单,则订单详情内会显示“无效-取消”标识。','2020-03-25 17:20:22'),
('1242743201657597954','1242741824084586498','订单中显示红色“跨店“标志是什么意思?','关于跨店的解析:
广A店铺商品的推广主链接进行东京B店铺商品','2020-03-25 17:20:42'),
('1242743268615467009','1242741824084586498','为什么订单会显示”无效-拆单”','拆单是系统根据该订单内的产品类目及仓库中无师进行拆分,已拆单导致父订单无效,但不会影响佣金收益,已拆单的订单佣金是按照拆单后形成的子订单号计算佣金的。 ','2020-03-25 17:20:58'),
('1242743319614009346','1242741824084586498','订单显示“无效-非推广商品”是什么意思?','根据京东推广规则,“无效-非推广商品”是批该商品商家没有设置佣金 或跨店佣金为0或者Plus会员购买为0的商品此类订单不会获得推广收益。','2020-03-25 17:21:11'),
('1242743382734090241','1242741824084586498','客户订单在东京已经付款,为什么在平台显示待付款','客户在京东20分钟内付款的订单状态会及时更新到小程序中如果20分钟后付款的订单状态会在次日更新可在第二天进行查看不会影响您的收益。','2020-03-25 17:21:26'),
('1242743781218136065','1242741824084586498','客户购买了商品在京东APP中可以看到订单但您在平台小程序中看不到推广订单','1平台小程序没有这个商品或活动已结束商品已经在平台为下架状态所以小程序中不会显示订单
2
35-10
4
5APP
6
7Plus会员买没佣且买了不跟单','2020-03-25 17:23:01'),
('1242743928740196354','1242741853012701185','我的收益有哪几种类型?','推广收益:您的直属会员在小程序自购,或者您分享的商品促成别人购买所得到的收益。
广
','2020-03-25 17:23:36'),
('1242743986168606721','1242741853012701185','什么是“预估收益”及“预估收益”会变少的原因是什么?','根据京东的推广规则:预估收益是根据用户一瞬间时间预估统计的推广效果数据,并非实际结算收益,取消已付款的订单或者退换货后对应的收益会相应的扣除,实际收益以订单结算为准。','2020-03-25 17:23:50'),
('1242744363194593282','1242741853012701185','为什么我的订单收益为0','1执照京东的返佣规则 ,乡村推广账号、企业账号、分期付款用户、以开具增值税运用发票的订单是没有收益的。
广 广广
Plus会员账号说明Plus账号是东京的一种会员账号类型0
2使E卡等京东虚拟货币 0.
30
4Plus会员ghuj3的订单
5','2020-03-25 17:25:19'),
('1242744421667385346','1242741853012701185','订单显示的收益和选品时看到预估“预估收益”不一样?','您选品时看到的收益金额为预估推广收益由于客户在一瞬间时可能会使用京券、余额、京豆和E卡等京东虚拟货币导致收益减少导致订单收益变少的情况发生。','2020-03-25 17:25:33'),
('1242744555805421569','1242741853012701185','每月提现金额和”预估收益“不一致?','所有的收益都是按照系统设计好的规则进行,不存在 恶意扣除,可提现收益跟预估收益不一致原因有以下两点:
1退
2 广
15 退 退 ','2020-03-25 17:26:05'),
('1242744635073572866','1242741853012701185','
','1
2广广广','2020-03-25 17:26:24'),
('1242745099500466178','1242741895224176642','为什么会有违规订单?','平台内推广的商品,有一些是商家通过打造引流爆款产品亏本促销,从而提升商品或店铺在东京内的搜索排名,促销完成后,需要长尾的带动整体销售利润。
1广
2广
广 ','2020-03-25 17:28:15'),
('1242745257789304834','1242741895224176642','我自己购买的商品被判定为”违规订单“,如何申斥?','如果对订单判断有疑问,我们可以帮您进行早逝处理,您需要提供以下三张照片,通过客服转交进行申斥。
1
2
3
35 ','2020-03-25 17:28:53'),
('1242745347664850946','1242741895224176642','如何避免”违规订单“?','1请务必不要代下单如遇首次购物用户耐心引导即可。
230','2020-03-25 17:29:14'),
('1242745460017672194','1242741930515050497','一人多微信号怎么提现?','可以绑定同一人的身份证,同一个银行卡完成提现。','2020-03-25 17:29:41'),
('1242745508176670722','1242741930515050497','更换了微信头像和昵称,小程序不同步?','小程序的微信昵称和头像微信不同步,后续会提供相应功能更新昵称头像功能。','2020-03-25 17:29:52'),
('1242745630994280450','1242741930515050497','邀请另人加入后,我们之间都有什么关系?','直属注册会员:通过您直接邀请注册的会员。
','2020-03-25 17:30:22');
CREATE TABLE `jd_question_category` (
`id` bigint(20) NOT NULL,
`name` varchar(64) NOT NULL COMMENT '分类名称',
`icon` varchar(256) NOT NULL COMMENT '小图标',
`open` tinyint(4) NOT NULL DEFAULT '1',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_question_category`(`id`,`name`,`icon`,`open`,`create_time`) values
('1242741770884034562','商品类','goodsfill',1,'2020-03-25 17:15:01'),
('1242741792610529282','售后类','servicefill',1,'2020-03-25 17:15:07'),
('1242741824084586498','订单类','shopfill',1,'2020-03-25 17:15:14'),
('1242741853012701185','收益类','moneybagfill',1,'2020-03-25 17:15:21'),
('1242741895224176642','违规订单类','warnfill',1,'2020-03-25 17:15:31'),
('1242741930515050497','其他问题','questionfill',1,'2020-03-25 17:15:39');
CREATE TABLE `jd_settlement_calculate_result` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`start_date` date NOT NULL COMMENT '开始时间',
`end_date` date NOT NULL COMMENT '开始时间',
`rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '返利',
`award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '奖励',
`commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '佣金',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '成员状态(0成功1失败)',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录时间',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`start_date`,`end_date`),
KEY `index_user_id_and_start_date_and_end_date` (`user_id`,`start_date`,`end_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_share_poster` (
`id` bigint(20) NOT NULL,
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '海报名称',
`icon_url` varchar(512) NOT NULL DEFAULT '' COMMENT '图标Url',
`image_url` varchar(512) NOT NULL DEFAULT '' COMMENT '分享图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '海报文字内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分享海报';
insert into `jd_share_poster`(`id`,`title`,`icon_url`,`image_url`,`content`,`create_time`) values
('1249932434573627394','尚橙优选社交电商','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/WechatIMG631.png','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg','尚橙优选','2020-04-14 13:28:09');
CREATE TABLE `jd_super_member_apply` (
`id` bigint(20) NOT NULL,
`owner_id` bigint(20) NOT NULL COMMENT '申请人',
`group_id` int(11) NOT NULL COMMENT '群组id',
`image_urls` varchar(260) NOT NULL DEFAULT '' COMMENT '申请图',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '申请状态',
`remark` varchar(64) NOT NULL DEFAULT '' COMMENT '备注信息',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '申请时间',
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='超级会员申请表';
insert into `jd_super_member_apply`(`id`,`owner_id`,`group_id`,`image_urls`,`status`,`remark`,`create_time`) values
('1249900567870836738','1249660183160819714',10007,'',1,'','2020-04-14 11:21:32'),
('1249927678744596482','1249646154606448642',10008,'',1,'','2020-04-14 13:09:15'),
('1249989614446317569','1249647766947237890',10009,'',1,'','2020-04-14 17:15:22'),
('1250799480366698498','1250327528271253505',10010,'',1,'','2020-04-16 22:53:29');
CREATE TABLE `jd_team_member` (
`id` bigint(20) NOT NULL COMMENT 'ID',
`leader_id` bigint(20) unsigned NOT NULL COMMENT '领队id',
`member_id` bigint(20) unsigned NOT NULL COMMENT '成员id',
`level` int(11) NOT NULL COMMENT '级别',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_unique_leader_id_and_member_id` (`leader_id`,`member_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_team_member`(`id`,`leader_id`,`member_id`,`level`,`create_time`) values
('1249645277048999938','1249645276885422081','1249645276885422081',0,'2020-04-13 18:27:05'),
('1249646154673557505','1249646154606448642','1249646154606448642',0,'2020-04-13 18:30:35'),
('1249646154698723329','1249645276885422081','1249646154606448642',1,'2020-04-13 18:30:35'),
('1249646645688143873','1249646645646200834','1249646645646200834',0,'2020-04-13 18:32:32'),
('1249646645709115394','1249646154606448642','1249646645646200834',1,'2020-04-13 18:32:32'),
('1249646645713309698','1249645276885422081','1249646645646200834',2,'2020-04-13 18:32:32'),
('1249646801640755202','1249646801590423553','1249646801590423553',0,'2020-04-13 18:33:09'),
('1249646801661726722','1249646154606448642','1249646801590423553',1,'2020-04-13 18:33:09'),
('1249646801665921026','1249645276885422081','1249646801590423553',2,'2020-04-13 18:33:09'),
('1249647179123920898','1249647179123920897','1249647179123920897',0,'2020-04-13 18:34:39'),
('1249647179182641153','1249646645646200834','1249647179123920897',1,'2020-04-13 18:34:39'),
('1249647179186835458','1249646154606448642','1249647179123920897',2,'2020-04-13 18:34:39'),
('1249647179186835459','1249645276885422081','1249647179123920897',3,'2020-04-13 18:34:39'),
('1249647377699049475','1249647377699049474','1249647377699049474',0,'2020-04-13 18:35:26'),
('1249647377770352642','1249647179123920897','1249647377699049474',1,'2020-04-13 18:35:26'),
('1249647377774546945','1249646645646200834','1249647377699049474',2,'2020-04-13 18:35:26'),
('1249647377778741250','1249646154606448642','1249647377699049474',3,'2020-04-13 18:35:26'),
('1249647377782935553','1249645276885422081','1249647377699049474',4,'2020-04-13 18:35:26'),
('1249647766993375234','1249647766947237890','1249647766947237890',0,'2020-04-13 18:36:59'),
('1249647767018541058','1249647377699049474','1249647766947237890',1,'2020-04-13 18:36:59'),
('1249647767018541059','1249647179123920897','1249647766947237890',2,'2020-04-13 18:36:59'),
('1249647767018541060','1249646645646200834','1249647766947237890',3,'2020-04-13 18:36:59'),
('1249647767022735361','1249646154606448642','1249647766947237890',4,'2020-04-13 18:36:59'),
('1249647767022735362','1249645276885422081','1249647766947237890',5,'2020-04-13 18:36:59'),
('1249647976838598658','1249647976792461313','1249647976792461313',0,'2020-04-13 18:37:49'),
('1249647976855375874','1249647766947237890','1249647976792461313',1,'2020-04-13 18:37:49'),
('1249647976859570177','1249647377699049474','1249647976792461313',2,'2020-04-13 18:37:49'),
('1249647976863764482','1249647179123920897','1249647976792461313',3,'2020-04-13 18:37:49'),
('1249647976863764483','1249646645646200834','1249647976792461313',4,'2020-04-13 18:37:49'),
('1249647976867958786','1249646154606448642','1249647976792461313',5,'2020-04-13 18:37:49'),
('1249647976867958787','1249645276885422081','1249647976792461313',6,'2020-04-13 18:37:49'),
('1249648482097041410','1249648482063486977','1249648482063486977',0,'2020-04-13 18:39:50'),
('1249648482113818625','1249645276885422081','1249648482063486977',1,'2020-04-13 18:39:50'),
('1249649658767085570','1249649658737725441','1249649658737725441',0,'2020-04-13 18:44:30'),
('1249649658783862786','1249645276885422081','1249649658737725441',1,'2020-04-13 18:44:30'),
('1249660183160819715','1249660183160819714','1249660183160819714',0,'2020-04-13 19:26:19'),
('1249660183206957058','1249647976792461313','1249660183160819714',1,'2020-04-13 19:26:19'),
('1249660183211151361','1249647766947237890','1249660183160819714',2,'2020-04-13 19:26:19'),
('1249660183211151362','1249647377699049474','1249660183160819714',3,'2020-04-13 19:26:19'),
('1249660183211151363','1249647179123920897','1249660183160819714',4,'2020-04-13 19:26:19'),
('1249660183215345666','1249646645646200834','1249660183160819714',5,'2020-04-13 19:26:19'),
('1249660183215345667','1249646154606448642','1249660183160819714',6,'2020-04-13 19:26:19'),
('1249660183215345668','1249645276885422081','1249660183160819714',7,'2020-04-13 19:26:19'),
('1250327528296419329','1250327528271253505','1250327528271253505',0,'2020-04-15 15:38:07'),
('1250327528296419330','1249647377699049474','1250327528271253505',1,'2020-04-15 15:38:07'),
('1250327528296419331','1249647179123920897','1250327528271253505',2,'2020-04-15 15:38:07'),
('1250327528296419332','1249646645646200834','1250327528271253505',3,'2020-04-15 15:38:07'),
('1250327528296419333','1249646154606448642','1250327528271253505',4,'2020-04-15 15:38:07'),
('1250327528296419334','1249645276885422081','1250327528271253505',5,'2020-04-15 15:38:07'),
('1250335058548494337','1250335058540105729','1250335058540105729',0,'2020-04-15 16:08:02'),
('1250335058548494338','1249647377699049474','1250335058540105729',1,'2020-04-15 16:08:02'),
('1250335058548494339','1249647179123920897','1250335058540105729',2,'2020-04-15 16:08:02'),
('1250335058548494340','1249646645646200834','1250335058540105729',3,'2020-04-15 16:08:02'),
('1250335058548494341','1249646154606448642','1250335058540105729',4,'2020-04-15 16:08:02'),
('1250335058548494342','1249645276885422081','1250335058540105729',5,'2020-04-15 16:08:02'),
('1250348825478959106','1250348825445404674','1250348825445404674',0,'2020-04-15 17:02:45'),
('1250348825491542017','1249646645646200834','1250348825445404674',1,'2020-04-15 17:02:45'),
('1250348825495736321','1249646154606448642','1250348825445404674',2,'2020-04-15 17:02:45'),
('1250348825495736322','1249645276885422081','1250348825445404674',3,'2020-04-15 17:02:45'),
('1250354910906552322','1250354910881386498','1250354910881386498',0,'2020-04-15 17:26:55'),
('1250354910923329538','1249647377699049474','1250354910881386498',1,'2020-04-15 17:26:55'),
('1250354910923329539','1249647179123920897','1250354910881386498',2,'2020-04-15 17:26:55'),
('1250354910923329540','1249646645646200834','1250354910881386498',3,'2020-04-15 17:26:55'),
('1250354910923329541','1249646154606448642','1250354910881386498',4,'2020-04-15 17:26:55'),
('1250354910923329542','1249645276885422081','1250354910881386498',5,'2020-04-15 17:26:55'),
('1250362253052481537','1250362253027315714','1250362253027315714',0,'2020-04-15 17:56:06'),
('1250362253081841665','1249647377699049474','1250362253027315714',1,'2020-04-15 17:56:06'),
('1250362253081841666','1249647179123920897','1250362253027315714',2,'2020-04-15 17:56:06'),
('1250362253081841667','1249646645646200834','1250362253027315714',3,'2020-04-15 17:56:06'),
('1250362253081841668','1249646154606448642','1250362253027315714',4,'2020-04-15 17:56:06'),
('1250362253081841669','1249645276885422081','1250362253027315714',5,'2020-04-15 17:56:06'),
('1250382285237129218','1250382285216157697','1250382285216157697',0,'2020-04-15 19:15:42'),
('1250382285245517826','1249646645646200834','1250382285216157697',1,'2020-04-15 19:15:42'),
('1250382285249712130','1249646154606448642','1250382285216157697',2,'2020-04-15 19:15:42'),
('1250382285249712131','1249645276885422081','1250382285216157697',3,'2020-04-15 19:15:42'),
('1250383191181627394','1250383191160655874','1250383191160655874',0,'2020-04-15 19:19:18'),
('1250383191194210306','1249647377699049474','1250383191160655874',1,'2020-04-15 19:19:18'),
('1250383191194210307','1249647179123920897','1250383191160655874',2,'2020-04-15 19:19:18'),
('1250383191194210308','1249646645646200834','1250383191160655874',3,'2020-04-15 19:19:18'),
('1250383191194210309','1249646154606448642','1250383191160655874',4,'2020-04-15 19:19:18'),
('1250383191194210310','1249645276885422081','1250383191160655874',5,'2020-04-15 19:19:18'),
('1250644514909982722','1250644514880622594','1250644514880622594',0,'2020-04-16 12:37:42'),
('1250644514918371330','1250382285216157697','1250644514880622594',1,'2020-04-16 12:37:42'),
('1250644514918371331','1249646645646200834','1250644514880622594',2,'2020-04-16 12:37:42'),
('1250644514918371332','1249646154606448642','1250644514880622594',3,'2020-04-16 12:37:42'),
('1250644514918371333','1249645276885422081','1250644514880622594',4,'2020-04-16 12:37:42'),
('1250646779901251586','1250646779880280065','1250646779880280065',0,'2020-04-16 12:46:42'),
('1250646779909640194','1250382285216157697','1250646779880280065',1,'2020-04-16 12:46:42'),
('1250646779913834498','1249646645646200834','1250646779880280065',2,'2020-04-16 12:46:42'),
('1250646779913834499','1249646154606448642','1250646779880280065',3,'2020-04-16 12:46:42'),
('1250646779918028801','1249645276885422081','1250646779880280065',4,'2020-04-16 12:46:42'),
('1250825513887338497','1250825513870561281','1250825513870561281',0,'2020-04-17 00:36:56'),
('1250825513891532802','1250327528271253505','1250825513870561281',1,'2020-04-17 00:36:56'),
('1250825513891532803','1249647377699049474','1250825513870561281',2,'2020-04-17 00:36:56'),
('1250825513891532804','1249647179123920897','1250825513870561281',3,'2020-04-17 00:36:56'),
('1250825513891532805','1249646645646200834','1250825513870561281',4,'2020-04-17 00:36:56'),
('1250825513891532806','1249646154606448642','1250825513870561281',5,'2020-04-17 00:36:56'),
('1250825513891532807','1249645276885422081','1250825513870561281',6,'2020-04-17 00:36:56'),
('1250996158046670849','1250996157996339202','1250996157996339202',0,'2020-04-17 11:55:01'),
('1250996158063448065','1249646154606448642','1250996157996339202',1,'2020-04-17 11:55:01'),
('1250996158063448066','1249645276885422081','1250996157996339202',2,'2020-04-17 11:55:01'),
('1250996511056072705','1250996511001546754','1250996511001546754',0,'2020-04-17 11:56:25'),
('1250996511064461314','1249646154606448642','1250996511001546754',1,'2020-04-17 11:56:25'),
('1250996511068655617','1249645276885422081','1250996511001546754',2,'2020-04-17 11:56:25'),
('1251052016986230786','1251052016969453569','1251052016969453569',0,'2020-04-17 15:36:58'),
('1251052016994619393','1250327528271253505','1251052016969453569',1,'2020-04-17 15:36:58'),
('1251052016998813697','1249647377699049474','1251052016969453569',2,'2020-04-17 15:36:58'),
('1251052016998813698','1249647179123920897','1251052016969453569',3,'2020-04-17 15:36:58'),
('1251052016998813699','1249646645646200834','1251052016969453569',4,'2020-04-17 15:36:58'),
('1251052016998813700','1249646154606448642','1251052016969453569',5,'2020-04-17 15:36:58'),
('1251052016998813701','1249645276885422081','1251052016969453569',6,'2020-04-17 15:36:58');
CREATE TABLE `jd_timeline_goods` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
`sku_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品id',
`publisher_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '发布人id',
`image_url` varchar(1024) NOT NULL DEFAULT '' COMMENT '分享图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '发圈内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_user` (
`id` bigint(20) NOT NULL,
`nick_name` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名',
`avatar_url` varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享图',
`phone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
`identify` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户身份(导师,合伙人)',
`invitation_code` varchar(10) NOT NULL DEFAULT '' COMMENT '邀请码',
`inviter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '邀请人用户id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
`role_name` varchar(32) NOT NULL DEFAULT 'MEMBER' COMMENT '成员角色',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_invitation_code` (`invitation_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_user`(`id`,`nick_name`,`avatar_url`,`phone`,`identify`,`invitation_code`,`inviter_id`,`create_time`,`role_name`) values
('1249645276885422081','系统用户','','',1,'PBP1TP',0,'2020-04-13 18:27:05','MEMBER'),
('1249646154606448642','惊天霸戈','https://wx.qlogo.cn/mmopen/vi_32/LCEZLO6xdqicB6bB2wQHLdTbDnCmicLqu7ibnAs4yib3iaee2VZXZrszm9ZvicyUPhFy3kxPUKxqZWUh0sPFq5nhEeQg/132','18817096723',3,'AS3PSV','1249645276885422081','2020-04-13 18:44:30','ADMIN'),
('1249646645646200834','NULL NULL bug','https://wx.qlogo.cn/mmopen/vi_32/w9Qqaicic2vnrD4xmQ4VU8licdXqQUlEGjOgdNcO4LWiaaic1fZTys9IiaMsqEwtmfrdajlA4jWFq9GKvkLCuRZMBPYg/132','15700701570',3,'0XPZ6R','1249646154606448642','2020-04-13 18:32:32','MEMBER'),
('1249647179123920897','漫步天空的鱼 ','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83ep1J5W23GsduT7eoxB0VUH12nzYYJicxj3T5Z7Vnf6d8eSaCAhUV5UqgCd3ZdmCWqrK0EzphaU0ewg/132','15674980439',3,'BXW8N2','1249646645646200834','2020-04-13 18:34:39','MEMBER'),
('1249647377699049474','大灰狼᭄ꫛꪝ','https://wx.qlogo.cn/mmopen/vi_32/Cp6oMCj4n8d2icpSMZeuQLa2gwXEgibVH2r5b9vibm8mnSIOTbb38tjgDkTJ9y5GBDX8WMuCgQkZmeibt0Kuia4Q9hA/132','18073692882',3,'GTXY4M','1249647179123920897','2020-04-13 18:35:26','MEMBER'),
('1249647766947237890','伍星','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKeBn4LFgzpXMBmrAcMRvOl0vibkYDAMibbpIchCBJoaPUT8ePlicEH58RWaiadXJSBtyHF9JubGlPyvg/132','15576622046',2,'CZZ47L','1249647377699049474','2020-04-13 18:36:59','MEMBER'),
('1249647976792461313','🐭','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJZFvrWqkibKOtTYsBl7Ovq6JVuYHibWwicyibZL1SicIqHOCaGhMAxAEVY8Hg2gpKkelMmxCSricR45wqg/132','15367842658',2,'BVPERE','1249647766947237890','2020-04-13 18:37:49','MEMBER'),
('1249660183160819714','佰创科技,专业软件定制','https://wx.qlogo.cn/mmopen/vi_32/9MjR2XUtd7RibDUm3p2hoJutquAfmPH5rSlWGoa0vsZKhDfIhrZZA4BdiaibAT1yFV8vA8LsicMuDnIgicmHXXIkbxg/132','15399928823',1,'YDYFVZ','1249647976792461313','2020-04-13 19:26:19','MEMBER'),
('1250327528271253505','有生命的线条','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKM6n8DJtQwNLBFDlZTVRZ69AhYlGAOQTSibBhFP4gCBsHcoicNUAjddHG99342liaIiaCXtzATRwGonQ/132','15243677665',3,'P33119','1249647377699049474','2020-04-15 15:38:07','MEMBER'),
('1250335058540105729','不过平头百姓而已','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83epu2ts9GReslKtLh9mgIUBJMp0vROg7fAn89HicPkaawrARIibBZPAKmaUuATasEwbWvlk4cWxdUmXA/132','13507431619',1,'BP8MNU','1249647377699049474','2020-04-15 16:08:02','MEMBER'),
('1250348825445404674','快乐2020🐁','https://wx.qlogo.cn/mmopen/vi_32/6PbKL8YRE2zFwvqvkfMpSAVc9ibd3lb8haZqZDTdLZ8BtuBia6Xtp3JHibzVxNTddl9YNMibWSPyxuVesynPxBNfTQ/132','15217585808',1,'2JFJ1L','1249646645646200834','2020-04-15 17:02:45','MEMBER'),
('1250354910881386498','Ther','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLJzrtHs9DeaJkkFn4QBJxNJiao5pDfujRREywE4riaFIZN4iaRcSJHVl0fZOI74FOPtIWUpqD6OAmag/132','18350247600',1,'6WYAZV','1249647377699049474','2020-04-15 17:26:55','MEMBER'),
('1250362253027315714','兴腾站刘新¹⁸⁶⁹²²⁶⁵⁷⁴⁷','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eofl7wbZfn2ODj2zxiaYIdDNp4FIe7oW3bicZLeoyzfOBT6AXtSIZtLI578QWAyKAq9kV25mE9CHOBQ/132','18692265747',1,'JWFR5P','1249647377699049474','2020-04-15 17:56:06','MEMBER'),
('1250382285216157697','香草味布丁','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKaVsd5xbNGt9JNDNYPrtk723R3HfpecTwl34XR2NmbqZmwibficOicsIZpvSPZshjfqLKjAPypib39pw/132','13272480847',1,'R691T4','1249646645646200834','2020-04-15 19:15:42','MEMBER'),
('1250383191160655874','曾小敏','https://wx.qlogo.cn/mmopen/vi_32/JeagDnsoReLIW9m05pEG8kGf3xhXlDvyvnLRZP9GtYicibbsxWmIMlK4gAASOYKotxHEayCYCkM0aqGGE3HdkJcQ/132','16680919892',1,'QF3QYK','1249647377699049474','2020-04-15 19:19:18','MEMBER'),
('1250644514880622594','灿烂阳光','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoiab8HO17eD4YJA7ux5z6lKlpUAOyGkfVk3TrVR8jVCZnicBPlckDicmXOibD0PZaHFibhWiaDGRkvIfGQ/132','17873634335',1,'SJMNAK','1250382285216157697','2020-04-16 12:37:42','MEMBER'),
('1250646779880280065','王运街','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLosbX33zKcpgrEFIpUIpvYGqj6SXzibWaeRfDD2ITtdev2GsiaMzfeXw8yAUjXRmqEzar9ibPrLKfvQ/132','13054049621',1,'7T9E9S','1250382285216157697','2020-04-16 12:46:42','MEMBER'),
('1250825513870561281','毛丽琼','https://wx.qlogo.cn/mmopen/vi_32/dliaGpsxSic6ITW76R5I4TPUHibVNuAkvfnoKxFR399o03HtxLno5WDuMVWnl8ergLnlqOvLwsleibx9X8icovOPApw/132','18073622100',1,'TRVQWU','1250327528271253505','2020-04-17 00:36:56','MEMBER'),
('1250996157996339202','刘栋财','https://wx.qlogo.cn/mmopen/vi_32/dicCNxib8B5xJkUNaZlqUsibjk5B7Hk0fPAQGBj929FrFUUxNH0wqHAeVrK7qobcIfdcoe1aqB7VaA9f2ToqmXLgg/132','18073684790',1,'07BRL3','1249646154606448642','2020-04-17 11:55:01','MEMBER'),
('1250996511001546754','LF','https://wx.qlogo.cn/mmopen/vi_32/JLDdiba5ia9FibcIxNoWS5gFNmsXLuou6hoARCDnqtUezO20LyhpmL12I22qUlEzMZ08yhItib21tZcxmWPCcoZZoQ/132','15367740153',1,'GTZRZL','1249646154606448642','2020-04-17 11:56:25','MEMBER'),
('1251052016969453569','','https://wx.qlogo.cn/mmopen/vi_32/9jLGxrIYxWobrrotSJeFqDATic7aFfARFBI84qjOccYHo4Q8QzLbpW9wsltR30F02Ga1KANl2E3sWjPQEug4T3w/132','13975150979',1,'ZSZR6C','1250327528271253505','2020-04-17 15:36:58','MEMBER');
CREATE TABLE `jd_wallet` (
`id` bigint(20) NOT NULL,
`balance` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '钱包余额',
`balance_freeze` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '已被冻结的金额',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '钱包状态',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_wallet_transaction_flow` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '费用数量',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '交易id',
`transaction_time` datetime NOT NULL COMMENT '交易时间',
`transaction_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '交易类型(0 未知1收入2支出 ',
`transaction_biz` tinyint(4) NOT NULL DEFAULT '0' COMMENT '交易业务类型 ',
`remark` varchar(255) NOT NULL DEFAULT '' COMMENT '流水备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `jd_wechat_group` (
`id` bigint(20) NOT NULL,
`group_id` int(11) NOT NULL COMMENT '群组id',
`group_name` varchar(64) NOT NULL COMMENT '组名称',
`owner_id` bigint(20) NOT NULL COMMENT '归属人id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间',
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分享海报';
CREATE TABLE `jd_wechat_user` (
`id` bigint(20) NOT NULL COMMENT 'id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`session_key` varchar(255) NOT NULL DEFAULT '' COMMENT '会话密钥',
`wechat_id` varchar(255) NOT NULL DEFAULT '' COMMENT '微信号',
`open_id` varchar(255) NOT NULL DEFAULT '' COMMENT '用户唯一标识',
`union_id` varchar(255) NOT NULL DEFAULT '' COMMENT '用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_wechat_user`(`id`,`user_id`,`session_key`,`wechat_id`,`open_id`,`union_id`,`create_time`) values
('1249646645721698306','1249646645646200834','Np0iKMBd6uPCP/bwZQRycQ==','wuli_wuxiansen','ostG55SIgJGucXBPW9FF4kXUvQDE','oNCj5w_TGlfVSWPJVgnncYT5BgQI','2020-04-13 18:32:32'),
('1249647179195224066','1249647179123920897','T4Kh2M6YvNkdn2MJNFguMg==','crystal9524','ostG55cqGSeXyqOlcxpDFQz-p76Q','','2020-04-13 18:34:39'),
('1249647377791324162','1249647377699049474','zbcjCqjUy7AVKRYBnE1cOA==','Shoujijadt','ostG55UrBsInb1B8UQNUSvaNZUBo','','2020-04-13 18:35:26'),
('1249647767035318273','1249647766947237890','e57I0mMfTfD/ya8nrJOCqA==','wuxing','ostG55cOduWJjfpmtxikQAS9shcg','oNCj5w2w7m6NyyL4Lq7IyfXyk7ak','2020-04-13 18:36:59'),
('1249647976880541697','1249647976792461313','2Nb6oPFGv0CfNzdBqapOEw==','laoshuzi-777','ostG55bEOkbmR-EFWDIB7-7mlyzk','oNCj5w1dBjMturL8--k0NK5UcISQ','2020-04-13 18:37:49'),
('1249649658788057090','1249646154606448642','YPlUdVosyqqNgKsl0pBXnA==','head_main','ostG55bDoaEKkwSn3qgN1Ubncj6U','oNCj5w1xr4Ho1Tj7OFE0-NdiUH6s','2020-04-13 18:44:30'),
('1249660183227928578','1249660183160819714','wLHl4YzrWf4ceu/i9x+7bQ==','csbaic','ostG55b6yIdcTtht2gOv-61tlXjA','oNCj5w8a9qLSiPVDYoixvisRM4dc','2020-04-13 19:26:19'),
('1250327528409665538','1250327528271253505','IXVM6OfNRNQqpq7HcwbbXg==','h1017247134','ostG55SwVQj2K5PuWPnuO__EKTmA','','2020-04-15 15:38:07'),
('1250335058548494343','1250335058540105729','x6Anti6QK2gM1kbhavy9kA==','','ostG55Z25hERr0UHekxFTHSpvykk','','2020-04-15 16:08:02'),
('1250348825499930625','1250348825445404674','tEZMlQainW6XxQwHU8Jxpw==','','ostG55ecDv2829a_CONBAyz3Q3_8','','2020-04-15 17:02:45'),
('1250354910935912450','1250354910881386498','4SoYVh+cRQ1nCjCmqtuH+Q==','','ostG55YTZLnrFAiIGzgOZ4a7_xsM','','2020-04-15 17:26:55'),
('1250362253081841670','1250362253027315714','TLi8lMYGxGB2P+7BKKLgzQ==','','ostG55REHHWXGin7DTUsVEv0rQLA','','2020-04-15 17:56:06'),
('1250382285258100737','1250382285216157697','hQK61TRdkhqs9Q16Sm1K2g==','','ostG55fa3XE_5T7escJc-zIPH6X8','','2020-04-15 19:15:42'),
('1250383191206793217','1250383191160655874','5fY45eHmSY51Xuk/mmnGWA==','','ostG55c86JZyM71KqgIpQZz7-ao4','','2020-04-15 19:19:18'),
('1250644514926759938','1250644514880622594','xvWXr6CVdNwaE+qVDM7LGQ==','','ostG55Zy7IY6uZ9euXsAVDvMd4dY','','2020-04-16 12:37:42'),
('1250646779926417410','1250646779880280065','5sT4ag5oSaFLzZGNw9LJWA==','','ostG55VjwWUQDiMwMiWS5jrBzDjg','','2020-04-16 12:46:42'),
('1250825513904115713','1250825513870561281','UNSKZ68QRm46Qlrsuzf9nQ==','','ostG55Y0vsqRd6YQZnEiPM3F4ZXg','','2020-04-17 00:36:56'),
('1250996158080225282','1250996157996339202','BDS2DhMiE3HlufImSvmtXg==','','ostG55Zyqgc9KqDz16Dk6ThuGYHE','','2020-04-17 11:55:01'),
('1250996511072849921','1250996511001546754','puvIRk+OjOBjKvld4JDu4g==','LFang_','ostG55XNzqN5XOk2bfEMZT31cuNo','','2020-04-17 11:56:25'),
('1251052017007202305','1251052016969453569','CkfUtoeatSsIIaUnkjCI1w==','','ostG55W4QAwr8rf81TyQaZ34RUVw','','2020-04-17 15:36:58');
CREATE TABLE `jd_withdraw_order_payment` (
`id` bigint(20) NOT NULL COMMENT 'id',
`partner_trade_no` varchar(32) NOT NULL DEFAULT '' COMMENT '商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)',
`payment_no` varchar(64) NOT NULL DEFAULT '' COMMENT '企业付款成功,返回的微信付款单号',
`payment_time` varchar(32) NOT NULL DEFAULT '' COMMENT '企业付款成功时间',
`amount` int(11) NOT NULL COMMENT '支付金额(单位:分)',
`device_info` varchar(32) NOT NULL DEFAULT '' COMMENT '微信支付分配的终端设备号',
`payment_desc` varchar(100) NOT NULL DEFAULT '' COMMENT '支付备注',
`result_code` varchar(16) NOT NULL COMMENT 'SUCCESS/FAIL注意当状态为FAIL时存在业务结果未明确的情况。如果状态为FAIL请务必关注错误代码err_code字段通过查询查询接口确认此次付款的结果。',
`err_code` varchar(32) NOT NULL DEFAULT '' COMMENT '错误码信息注意出现未明确的错误码时SYSTEMERROR等请务必用原商户订单号重试或通过查询接口确认此次付款的结果。',
`err_code_des` varchar(128) NOT NULL DEFAULT '' COMMENT '结果信息描述',
PRIMARY KEY (`id`),
UNIQUE KEY `partner_trade_no` (`partner_trade_no`),
UNIQUE KEY `payment_no` (`payment_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='提现支付操作记录';
SET FOREIGN_KEY_CHECKS = 1;

View File

@ -0,0 +1,974 @@
drop database if exists `jd_union`;
create DATABASE if not exists `jd_union` DEFAULT CHARSET utf8mb4;
USE `jd_union`;
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `jd_activity`;
CREATE TABLE `jd_activity` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
`share_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动分享图',
`logo_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动logo图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享文本',
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '活动开始时间',
`end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '活动结束时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='活动表';
insert into `jd_activity`(`id`,`title`,`share_image`,`logo_image`,`content`,`start_time`,`end_time`,`status`,`create_time`) values
('1242795127613689858','🔥清洁纸品超级品类日','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_share.jpg','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg','🎉清洁纸品超级品类日
9950299150
👉https://u.jd.com/WoWhDy
🔥9950
👉https://u.jd.com/YGHnSB
🔥299150
👉https://u.jd.com/BAAv0C
🔥995
👉https://u.jd.com/pHuf4v
💦 995
👉https://u.jd.com/8p5tu2
💦 2
👉https://u.jd.com/3PXTC8
💦 20
👉https://u.jd.com/tGXzHr
💦 12920
👉https://u.jd.com/T3QkTL','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:47:03'),
('1249586550744813569','🔥初春潮履 焕新出彩','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_share.png','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_logo.png','💰李宁特卖日!
2
👉https://u.jd.com/wY8Gfh
🎉2
👉https://u.jd.com/RGDzAP
🎉
👉https://u.jd.com/zsQSHQ
🎉30030
👉https://u.jd.com/QUhmwA
🎉4
👉https://u.jd.com/PBh6Xn
🎉49980
👉https://u.jd.com/QvRBYy
🎉30030
👉https://u.jd.com/uce033','2020-04-01 00:00:00','2020-04-30 00:00:00',1,'2020-04-13 14:33:44');
DROP TABLE IF EXISTS `jd_apply_withdraw_order`;
CREATE TABLE `jd_apply_withdraw_order` (
`id` bigint(20) NOT NULL,
`applier_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '申请人用户id',
`amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '申请提现金额',
`wechat_id` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人微信号',
`payee_name` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人姓名',
`payee_card_id` varchar(255) NOT NULL DEFAULT '' COMMENT '收款人身份证号',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现单状态',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_apply_withdraw_order_operate_record`;
CREATE TABLE `jd_apply_withdraw_order_operate_record` (
`id` bigint(20) NOT NULL,
`withdraw_order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '提现申请单id',
`operator_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '操作人id',
`operator_name` varchar(255) NOT NULL DEFAULT '' COMMENT '操作人名称',
`operate_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
`remark` varchar(1014) NOT NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_banner`;
CREATE TABLE `jd_banner` (
`id` bigint(20) NOT NULL,
`location` varchar(2048) NOT NULL DEFAULT '' COMMENT 'banner跳转页面',
`cover_url` varchar(255) NOT NULL DEFAULT '' COMMENT 'banner封面图',
`end_time` datetime NOT NULL COMMENT '结束时间',
`start_time` datetime NOT NULL COMMENT '开始时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1: 自动2显示3未显示',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='banner表';
insert into `jd_banner`(`id`,`location`,`cover_url`,`end_time`,`start_time`,`status`,`title`) values
('1242798208464195585','/page_package/activity/activity?id=1242795127613689858','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg','2020-03-31 00:00:00','2020-03-25 00:00:00',1,'🔥清洁纸品超级品类日'),
('1249587684121251841','/page_package/activity/activity?id=1249586550744813569','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/2srJNTsM1fh2Epnfowoztc1Cuvix_logo.png','2020-04-30 00:00:00','2020-04-01 00:00:00',1,'🔥初春潮履 焕新出彩');
DROP TABLE IF EXISTS `jd_feedback`;
CREATE TABLE `jd_feedback` (
`id` bigint(20) NOT NULL,
`submitter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '提交人',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '選項的值',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '反馈状态',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_member_commission`;
CREATE TABLE `jd_member_commission` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`identify` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户等级',
`level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '记录深度',
`batch_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '批次Id',
`sku_id` bigint(20) NOT NULL COMMENT '商品ID',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '京东订单id',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`order_time` datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
`estimate_rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估返利(卖货)',
`actual_rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际返利(卖货)',
`estimate_award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估奖励',
`actual_award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际奖励',
`estimate_commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估佣金',
`actual_commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际佣金',
`sku_name` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品名称',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`remark` varchar(256) NOT NULL DEFAULT '' COMMENT '佣金备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
PRIMARY KEY (`id`),
KEY `index_user_id` (`user_id`),
KEY `index_batch_id` (`batch_id`),
KEY `index_sku_id` (`sku_id`),
KEY `index_order_id` (`order_id`),
KEY `order_finish_time` (`finish_time`),
KEY `index_order_time` (`order_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_member_commission`(`id`,`user_id`,`identify`,`level`,`batch_id`,`sku_id`,`order_id`,`finish_time`,`order_time`,`estimate_rebate_fee`,`actual_rebate_fee`,`estimate_award_fee`,`actual_award_fee`,`estimate_commission_fee`,`actual_commission_fee`,`sku_name`,`valid_code`,`remark`,`create_time`) values
('1249660858817056770','1249647766947237890',2,0,'1249660858817056769','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'自购返利: 10.0','2020-04-13 19:29:00'),
('1249660858825445378','1249647766947237890',2,0,'1249660858817056769','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'推广人获得佣金的50.0%','2020-04-13 19:29:00'),
('1249660858829639683','1249647377699049474',3,1,'1249660858829639682','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'直属导师获取奖励30%','2020-04-13 19:29:00'),
('1249660858842222594','1249646645646200834',3,3,'1249660858838028289','63733255505','117545220705',null,'2020-04-13 18:57:12',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:29:00'),
('1249664381755592706','1249647377699049474',3,0,'1249664381751398402','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'自购返利: 10.0','2020-04-13 19:43:00'),
('1249664381755592707','1249647377699049474',3,0,'1249664381751398402','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'推广人获得佣金的80.0%','2020-04-13 19:43:00'),
('1249664381763981313','1249646645646200834',3,2,'1249664381759787010','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'导师的直属导师奖励 6%','2020-04-13 19:43:00'),
('1249664381768175619','1249646154606448642',3,3,'1249664381768175618','67156343434','117545233538',null,'2020-04-13 19:11:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-13 19:43:00'),
('1250013935331971074','1249647976792461313',2,0,'1250013935323582466','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'自购返利: 10.0','2020-04-14 18:52:00'),
('1250013935340359681','1249647976792461313',2,0,'1250013935323582466','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'推广人获得佣金的50.0%','2020-04-14 18:52:00'),
('1250013935352942593','1249647766947237890',2,1,'1250013935348748289','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'直属超级会员获得奖励20%','2020-04-14 18:52:00'),
('1250013935361331201','1249647377699049474',3,2,'1250013935357136898','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'非直属导师获取奖励20%','2020-04-14 18:52:00'),
('1250013935365525506','1249646645646200834',3,4,'1250013935365525505','67324890451','117544770336',null,'2020-04-13 18:50:01',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-14 18:52:00'),
('1250021233114746882','1249647179123920897',2,0,'1250021233106358273','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'自购返利: 10.0','2020-04-14 19:21:00'),
('1250021233118941186','1249647179123920897',2,0,'1250021233106358273','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'推广人获得佣金的50.0%','2020-04-14 19:21:00'),
('1250021233127329793','1249646645646200834',3,1,'1250021233123135489','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'直属导师获取奖励30%','2020-04-14 19:21:00'),
('1250021233135718402','1249646154606448642',3,2,'1250021233135718401','20175593221','112300888440',null,'2020-04-13 19:19:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-14 19:21:00'),
('1250022239865147394','1249646645646200834',3,0,'1250022239865147393','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',3,'自购返利: 10.0','2020-04-14 19:25:00'),
('1250022239869341698','1249646645646200834',3,0,'1250022239865147393','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',3,'推广人获得佣金的80.0%','2020-04-14 19:25:00'),
('1250022239881924610','1249646154606448642',3,1,'1250022239881924609','67813342286','117548817387',null,'2020-04-13 19:23:14',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',3,'导师的直属导师奖励 6%','2020-04-14 19:25:00'),
('1250237155914027010','1249646645646200834',3,0,'1250237155905638401','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'自购返利: 10.0','2020-04-15 09:39:00'),
('1250237155918221313','1249646645646200834',3,0,'1250237155905638401','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'推广人获得佣金的80.0%','2020-04-15 09:39:00'),
('1250237155930804225','1249646154606448642',3,1,'1250237155926609922','54412358961','117607354307',null,'2020-04-14 09:37:04',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'导师的直属导师奖励 6%','2020-04-15 09:39:00'),
('1250239672605478914','1249646645646200834',3,0,'1250239672605478913','52381363881','117611225195',null,'2020-04-14 09:47:13',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',3,'自购返利: 10.0','2020-04-15 09:49:00'),
('1250239672609673218','1249646645646200834',3,0,'1250239672605478913','52381363881','117611225195',null,'2020-04-14 09:47:13',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',3,'推广人获得佣金的80.0%','2020-04-15 09:49:00'),
('1250239672618061826','1249646154606448642',3,1,'1250239672613867522','52381363881','117611225195',null,'2020-04-14 09:47:13',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',3,'导师的直属导师奖励 6%','2020-04-15 09:49:00'),
('1250529331545903107','1249660183160819714',1,0,'1250529331545903106','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'自购返利: 10.0','2020-04-16 05:00:01'),
('1250529331604623362','1249647976792461313',2,1,'1250529331604623361','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'推广人获得佣金的50.0%','2020-04-16 05:00:01'),
('1250529331646566402','1249647766947237890',2,2,'1250529331642372097','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'直属超级会员获得奖励20%','2020-04-16 05:00:01'),
('1250529331654955010','1249647377699049474',3,3,'1250529331654955009','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'非直属导师获取奖励20%','2020-04-16 05:00:01'),
('1250529331663343618','1249647179123920897',3,4,'1250529331663343617','10146821114','112296467773',null,'2020-04-13 19:30:57',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-16 05:00:01'),
('1250617915221217282','1249646154606448642',3,0,'1250617915217022978','54412358961','117884785856',null,'2020-04-16 10:47:48',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'自购返利: 10.0','2020-04-16 10:52:01'),
('1250617915233800194','1249646154606448642',3,0,'1250617915217022978','54412358961','117884785856',null,'2020-04-16 10:47:48',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'推广人获得佣金的80.0%','2020-04-16 10:52:01'),
('1250618166535524354','1249646154606448642',3,0,'1250618166531330050','65868637885','117805624512',null,'2020-04-15 17:37:58',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'李宁跑步鞋女鞋春季云减震跑鞋网面透气休闲鞋女士运动鞋 标准黑 37',3,'推广人获得佣金的80.0%','2020-04-16 10:53:00'),
('1250620683042426882','1249646154606448642',3,0,'1250620683034038274','58043448672','117893529708',null,'2020-04-16 11:01:29',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'莉兹星空星耀口红女高颜值哑光豆沙色不脱色美妆 8#豆沙色',3,'自购返利: 10.0','2020-04-16 11:03:00'),
('1250620683046621185','1249646154606448642',3,0,'1250620683034038274','58043448672','117893529708',null,'2020-04-16 11:01:29',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'莉兹星空星耀口红女高颜值哑光豆沙色不脱色美妆 8#豆沙色',3,'推广人获得佣金的80.0%','2020-04-16 11:03:00'),
('1250624457999912961','1249646154606448642',3,0,'1250624457995718658','63965195734','117885632034',null,'2020-04-16 11:09:42',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 06亮燿玫红色',3,'自购返利: 10.0','2020-04-16 11:18:00'),
('1250624458004107265','1249646154606448642',3,0,'1250624457995718658','63965195734','117885632034',null,'2020-04-16 11:09:42',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 06亮燿玫红色',3,'推广人获得佣金的80.0%','2020-04-16 11:18:00'),
('1250627226236358658','1249646154606448642',3,0,'1250627226232164354','65670962506','117890434730',null,'2020-04-16 11:25:10',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 03经典正红色',3,'自购返利: 10.0','2020-04-16 11:29:00'),
('1250627226240552962','1249646154606448642',3,0,'1250627226232164354','65670962506','117890434730',null,'2020-04-16 11:25:10',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 03经典正红色',3,'推广人获得佣金的80.0%','2020-04-16 11:29:00'),
('1250694418948689922','1249646645646200834',3,0,'1250694418948689921','54412358961','117793424898',null,'2020-04-15 15:54:00',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'自购返利: 10.0','2020-04-16 15:56:00'),
('1250694418952884225','1249646645646200834',3,0,'1250694418948689921','54412358961','117793424898',null,'2020-04-15 15:54:00',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'推广人获得佣金的80.0%','2020-04-16 15:56:00'),
('1250694418957078531','1249646154606448642',3,1,'1250694418957078530','54412358961','117793424898',null,'2020-04-15 15:54:00',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',3,'导师的直属导师奖励 6%','2020-04-16 15:56:00'),
('1250718326649262081','1249647377699049474',3,0,'1250718326645067778','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'自购返利: 10.0','2020-04-16 17:31:00'),
('1250718326649262082','1249647377699049474',3,0,'1250718326645067778','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'推广人获得佣金的80.0%','2020-04-16 17:31:00'),
('1250718326657650691','1249647179123920897',3,1,'1250718326657650690','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'导师的直属导师奖励 6%','2020-04-16 17:31:00'),
('1250718326682816514','1249646645646200834',3,2,'1250718326682816513','58398852091','117812091341',null,'2020-04-15 17:28:46',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-16 17:31:00'),
('1250766644821626881','1249646154606448642',3,0,'1250766644817432578','40771647999','117823997793',null,'2020-04-15 20:40:55',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'李宁短袖男夏季圆领速干篮球跑步训练上衣吸湿透气短袖紧运动T恤健身健身运动服 混色荧光亮绿AUDM017-2 L/175',3,'推广人获得佣金的80.0%','2020-04-16 20:43:00'),
('1250991124181422083','1249646154606448642',3,0,'1250991124181422082','66093114558','117891130506',null,'2020-04-16 11:33:32',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'华公子三色口红 1支顶3支3色口红时尚新款 不易沾杯不易掉色网红款 三色口红',3,'自购返利: 10.0','2020-04-17 11:35:00'),
('1250991124189810690','1249646154606448642',3,0,'1250991124181422082','66093114558','117891130506',null,'2020-04-16 11:33:32',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'华公子三色口红 1支顶3支3色口红时尚新款 不易沾杯不易掉色网红款 三色口红',3,'推广人获得佣金的80.0%','2020-04-17 11:35:00'),
('1251087257490690049','1249646645646200834',3,0,'1251087257486495745','100005597540','118008077932','2020-04-17 17:55:18','2020-04-17 10:38:53',1.1600,1.1600,0.0000,0.0000,0.0000,0.0000,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',17,'自购返利: 10.0','2020-04-17 17:57:00'),
('1251087257490690050','1249646645646200834',3,0,'1251087257486495745','100005597540','118008077932','2020-04-17 17:55:18','2020-04-17 10:38:53',0.0000,0.0000,0.0000,0.0000,9.3200,9.3200,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',17,'推广人获得佣金的80.0%','2020-04-17 17:57:00'),
('1251087257499078659','1249646154606448642',3,1,'1251087257499078658','100005597540','118008077932','2020-04-17 17:55:18','2020-04-17 10:38:53',0.0000,0.0000,0.5500,0.5500,0.0000,0.0000,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',17,'导师的直属导师奖励 6%','2020-04-17 17:57:00'),
('1251337657674371074','1250327528271253505',3,0,'1251337657670176769','61589744648','118001435563',null,'2020-04-17 10:30:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'深海鳕鱼肠儿童零食小吃休闲食品 原味鳕鱼肠150g/罐',3,'推广人获得佣金的80.0%','2020-04-18 10:32:00'),
('1251337657686953985','1249647377699049474',3,1,'1251337657682759681','61589744648','118001435563',null,'2020-04-17 10:30:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'深海鳕鱼肠儿童零食小吃休闲食品 原味鳕鱼肠150g/罐',3,'导师的直属导师奖励 6%','2020-04-18 10:32:00'),
('1251337657695342594','1249647179123920897',3,2,'1251337657695342593','61589744648','118001435563',null,'2020-04-17 10:30:27',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'深海鳕鱼肠儿童零食小吃休闲食品 原味鳕鱼肠150g/罐',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 10:32:00'),
('1251352505456005122','1250327528271253505',3,0,'1251352505456005121','65806506700','118010992358',null,'2020-04-17 11:29:31',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',3,'推广人获得佣金的80.0%','2020-04-18 11:31:00'),
('1251352505464393731','1249647377699049474',3,1,'1251352505464393730','65806506700','118010992358',null,'2020-04-17 11:29:31',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',3,'导师的直属导师奖励 6%','2020-04-18 11:31:00'),
('1251352505472782339','1249647179123920897',3,2,'1251352505472782338','65806506700','118010992358',null,'2020-04-17 11:29:31',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 11:31:00'),
('1251354015711629315','1250327528271253505',3,1,'1251354015711629314',1101196302,'118039298372','2020-04-18 11:35:40','2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,12.0700,12.0700,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',17,'推广人获得佣金的80.0%','2020-04-18 11:37:01'),
('1251354015724212227','1249647377699049474',3,2,'1251354015724212226',1101196302,'118039298372','2020-04-18 11:35:40','2020-04-17 15:38:53',0.0000,0.0000,0.7200,0.7200,0.0000,0.0000,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',17,'导师的直属导师奖励 6%','2020-04-18 11:37:01'),
('1251354015732600833','1249647179123920897',3,3,'1251354015728406529',1101196302,'118039298372','2020-04-18 11:35:40','2020-04-17 15:38:53',0.0000,0.0000,0.3600,0.3600,0.0000,0.0000,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',17,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 11:37:01'),
('1251354015795515393','1250327528271253505',3,1,'1251354015791321089','10069629503','118039298372','2020-04-18 11:35:40','2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',17,'推广人获得佣金的80.0%','2020-04-18 11:37:01'),
('1251354015808098305','1249647377699049474',3,2,'1251354015803904002','10069629503','118039298372','2020-04-18 11:35:40','2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',17,'导师的直属导师奖励 6%','2020-04-18 11:37:01'),
('1251354015816486914','1249647179123920897',3,3,'1251354015816486913','10069629503','118039298372','2020-04-18 11:35:40','2020-04-17 15:38:53',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',17,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 11:37:01'),
('1251366849883410434','1249646154606448642',3,1,'1251366849879216129','67680280017','118143514976',null,'2020-04-18 12:26:42',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',2,'推广人获得佣金的80.0%','2020-04-18 12:28:00'),
('1251367101411627010','1249646154606448642',3,1,'1251367101407432705','67680280017','112689529115',null,'2020-04-18 12:26:42',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',3,'推广人获得佣金的80.0%','2020-04-18 12:29:00'),
('1251388744221593602','1249646154606448642',3,1,'1251388744217399297','51144378665','118160850861',null,'2020-04-18 13:53:11',0.0000,0.0000,0.0000,0.0000,1.1300,0.0000,'棉签竹棒 棉签棒化妆卸妆棉签耳勺耳鼻清洁 双头纯棉棒 4包800只',16,'推广人获得佣金的80.0%','2020-04-18 13:55:00'),
('1251388744250953731','1249646154606448642',3,1,'1251388744250953730','51363039179','118160850861',null,'2020-04-18 13:53:11',0.0000,0.0000,0.0000,0.0000,1.1300,0.0000,'多功能桌面收纳盒 创意化妆收纳盒 办公用品小物件收纳 22*10.5*10.5cm 粉色/蓝色随机发货(无法备注指定颜色)',16,'推广人获得佣金的80.0%','2020-04-18 13:55:00'),
('1251388744280313858','1249646154606448642',3,1,'1251388744276119554','52830066539','118160850861',null,'2020-04-18 13:53:11',0.0000,0.0000,0.0000,0.0000,0.1100,0.0000,'可爱擦手巾挂式厨房卫生间擦手毛巾抹手巾珊瑚绒吸水抹布儿童手帕擦手布 包装更新新旧款混 粉萌猪猪-粉色',16,'推广人获得佣金的80.0%','2020-04-18 13:55:00'),
('1251405856826724354','1250327528271253505',3,0,'1251405856826724353','66996956135','118035152389',null,'2020-04-17 15:01:11',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',3,'推广人获得佣金的80.0%','2020-04-18 15:03:00'),
('1251405856835112962','1249647377699049474',3,1,'1251405856835112961','66996956135','118035152389',null,'2020-04-17 15:01:11',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',3,'导师的直属导师奖励 6%','2020-04-18 15:03:00'),
('1251405856839307266','1249647179123920897',3,2,'1251405856839307265','66996956135','118035152389',null,'2020-04-17 15:01:11',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 15:03:00'),
('1251406360239673346','1250327528271253505',3,0,'1251406360235479041','66996956135','118035194374',null,'2020-04-17 15:03:34',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',3,'推广人获得佣金的80.0%','2020-04-18 15:05:00'),
('1251406360239673348','1249647377699049474',3,1,'1251406360239673347','66996956135','118035194374',null,'2020-04-17 15:03:34',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',3,'导师的直属导师奖励 6%','2020-04-18 15:05:00'),
('1251406360260644866','1249647179123920897',3,2,'1251406360239673349','66996956135','118035194374',null,'2020-04-17 15:03:34',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 15:05:00'),
('1251435552490655747','1250327528271253505',3,0,'1251435552490655746','65806506700','118001123009',null,'2020-04-17 10:43:18',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',3,'推广人获得佣金的80.0%','2020-04-18 17:01:00'),
('1251435552499044354','1249647377699049474',3,1,'1251435552494850050','65806506700','118001123009',null,'2020-04-17 10:43:18',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',3,'导师的直属导师奖励 6%','2020-04-18 17:01:00'),
('1251435552503238658','1249647179123920897',3,2,'1251435552503238657','65806506700','118001123009',null,'2020-04-17 10:43:18',0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',3,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 17:01:00'),
('1251518096368209922','1249647179123920897',3,0,'1251518096364015617','67680280017','118209893710',null,'2020-04-18 22:27:31',0.0000,0.0000,0.0000,0.0000,2.1500,0.0000,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',16,'推广人获得佣金的80.0%','2020-04-18 22:29:00'),
('1251518096372404227','1249646645646200834',3,1,'1251518096372404226','67680280017','118209893710',null,'2020-04-18 22:27:31',0.0000,0.0000,0.1200,0.0000,0.0000,0.0000,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',16,'导师的直属导师奖励 6%','2020-04-18 22:29:00'),
('1251518096376598531','1249646154606448642',3,2,'1251518096376598530','67680280017','118209893710',null,'2020-04-18 22:27:31',0.0000,0.0000,0.0600,0.0000,0.0000,0.0000,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',16,'导师的直属导师获得该导师的 50% 奖励收益','2020-04-18 22:29:00');
DROP TABLE IF EXISTS `jd_member_commission_per_user_for_30_day`;
CREATE TABLE `jd_member_commission_per_user_for_30_day` (
`user_id` bigint(20) NOT NULL COMMENT '用户id',
`estimate_rebate_fee` decimal(31,4) DEFAULT NULL,
`actual_rebate_fee` decimal(31,4) DEFAULT NULL,
`estimate_award_fee` decimal(31,4) DEFAULT NULL,
`actual_award_fee` decimal(31,4) DEFAULT NULL,
`estimate_commission_fee` decimal(31,4) DEFAULT NULL,
`actual_commission_fee` decimal(31,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_member_quick_start`;
CREATE TABLE `jd_member_quick_start` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`title` varchar(32) NOT NULL DEFAULT '' COMMENT '新人上路标题',
`content` varchar(512) NOT NULL DEFAULT '' COMMENT '新人上路说明',
`video_url` varchar(256) NOT NULL DEFAULT '' COMMENT '视频地址',
`type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '跳转页面、复制、显示图片',
`style` tinyint(4) NOT NULL DEFAULT '1' COMMENT '显示样式',
`action` varchar(16) NOT NULL DEFAULT '' COMMENT '操作提示',
`data` varchar(256) NOT NULL DEFAULT '' COMMENT '操作内容',
`sort` tinyint(4) NOT NULL DEFAULT '1' COMMENT '显示顺序',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新人上手';
insert into `jd_member_quick_start`(`id`,`title`,`content`,`video_url`,`type`,`style`,`action`,`data`,`sort`,`create_time`) values
('1249952388481380354','成长任务1升级超级会员省得多赚的多','&lt;p&gt;建立一个大于&lt;span style=&quot;color:#E53333;&quot;&gt;50人的微信群&lt;/span&gt;完成升级,即可省得更多,分享赚钱之路。&lt;/p&gt;','',1,1,'去升级','/page_package/apply-vip/apply-vip',1,'2020-04-14 16:04:20'),
('1249964797954703361','成长任务2掌握选爆品和会卖货的技巧','&lt;p&gt;了解小程序内重要的选品频道,掌握更多的发品方式和技巧,为亲朋好友带来优惠。&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#E53333;&quot;&gt;&lt;br /&gt;想学习更多一定添加专属导师微信!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;导师微信号:#{#teacher.wechatId}&lt;/p&gt;','',2,1,'复制导师微信','#{#teacher.wechatId}',2,'2020-04-14 16:04:20'),
('1249967624462594050','成长任务4: 进官方爆款群选取更多爆单素材','&lt;p&gt;官方爆款九是重要的选器渠道之一,这里是全网爆款商品。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#E53333;&quot;&gt;注:推广商品需要先转链哦!&lt;/span&gt;&lt;/p&gt;','',3,1,'获取进群二维码','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg',4,'2020-04-14 16:04:20'),
('1249968644873842689','成长任务3进培训群实现收益技能双增长','官方培训群,全方位的学习课程,更有大咖导师独家分享,帮助大家提升收益。','',3,1,'获取进群二维码','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg',3,'2020-04-14 16:04:20'),
('1249974375077449729','成长任务5邀请小伙伴加入一起赚钱','学会邀请小伙伴加入的3种方式帮助小伙伴少钱赚钱的同时还能获得平台额外奖励邀请越多赚得越多~','',4,1,'去邀请','',5,'2020-04-14 16:14:49');
DROP TABLE IF EXISTS `jd_message`;
CREATE TABLE `jd_message` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '消息标题',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '消息内容',
`start_time` datetime NOT NULL COMMENT '消息开始时间',
`end_time` datetime NOT NULL COMMENT '消息结束时间',
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息类型',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新闻';
DROP TABLE IF EXISTS `jd_news`;
CREATE TABLE `jd_news` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
`location` varchar(2048) NOT NULL DEFAULT '' COMMENT '跳转页面',
`start_time` datetime NOT NULL COMMENT '活动开始时间',
`end_time` datetime NOT NULL COMMENT '活动结束时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '快报状态1: 自动2显示3未显示',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='新闻';
insert into `jd_news`(`id`,`title`,`location`,`start_time`,`end_time`,`status`,`create_time`) values
('1242795456094801922','🔥清洁纸品超级品类日','/page_package/activity/activity?id=1242795127613689858','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:48:21'),
('1242796305235841025','🔥清洁纸品超级品类日','/page_package/activity/activity?id=1242795127613689858','2020-03-25 00:00:00','2020-03-31 00:00:00',1,'2020-03-25 20:51:43'),
('1249587919287488514','🔥初春潮履 焕新出彩','/page_package/activity/activity?id=1249586550744813569','2020-04-01 00:00:00','2020-04-30 00:00:00',1,'2020-04-13 14:39:10');
DROP TABLE IF EXISTS `jd_option`;
CREATE TABLE `jd_option` (
`id` bigint(20) NOT NULL,
`option_name` varchar(128) NOT NULL COMMENT '選項key',
`option_value` varchar(255) NOT NULL COMMENT '選項的值',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `option_name` (`option_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_option`(`id`,`option_name`,`option_value`,`create_time`) values
('1242792998689837058','sys_default_user_name','系统用户','2020-03-25 20:38:35'),
('1242792998748557314','opt_sys_next_group_id','10012','2020-03-25 20:38:35'),
('1242792998756945922','sys_withdraw_start_day','27','2020-03-25 20:38:35'),
('1242792998765334529','sys_register_user_identify','1','2020-03-25 20:38:35'),
('1242792998765334530','sys_withdraw_end_day','30','2020-03-25 20:38:35'),
('1242792998773723138','app_force_login','false','2020-03-25 20:38:35'),
('1242792998773723139','sys_current_sync_start_time','20200418225800','2020-03-25 20:38:35'),
('1242792998782111745','sys_order_sync_retry_interval','2000','2020-03-25 20:38:35'),
('1242792998786306049','sys_order_sync_start_time','20200327161300','2020-03-25 20:38:35'),
('1242792998790500353','sys_default_user_identify','1','2020-03-25 20:38:35'),
('1242792998790500354','sys_order_sync_retry_count','3','2020-03-25 20:38:35'),
('1242792998794694657','sys_settlement_start_day','0 0 0 23 * ?','2020-03-25 20:38:35'),
('1242792998798888961','sys_order_sync_delay','2','2020-03-25 20:38:35'),
('1243451545673011201','app_default_inviter_code','AS3PSV','2020-03-27 16:15:25');
DROP TABLE IF EXISTS `jd_order_detail`;
CREATE TABLE `jd_order_detail` (
`id` bigint(20) NOT NULL COMMENT 'id',
`order_id` bigint(20) NOT NULL COMMENT '订单ID',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`order_emt` tinyint(4) NOT NULL DEFAULT '1' COMMENT '下单设备(1:PC,2:无线)',
`order_time` datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
`owner_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广人id',
`buyer_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '购买人id',
`parent_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '父单的订单ID仅当发生订单拆分时返回 0未拆分有值则表示此订单为子订单',
`pay_month` varchar(19) NOT NULL DEFAULT '0' COMMENT '订单维度预估结算时间,不建议使用可以用订单行sku维度paymonth字段参考格式yyyyMMdd0未结算订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
`plus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '下单用户是否为PLUS会员 01',
`pop_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '订单维度商家ID不建议使用可以用订单行sku维度popId参考',
`union_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推客的联盟ID',
`ext1` varchar(255) NOT NULL DEFAULT '' COMMENT '订单维度的推客生成推广链接时传入的扩展字段不建议使用可以用订单行sku维度ext1参考,(需要联系运营开放白名单才能拿到数据)',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT '订单维度的有效码不建议使用可以用订单行sku维度validCode参考,-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '订单更新时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单记录';
insert into `jd_order_detail`(`id`,`order_id`,`finish_time`,`order_emt`,`order_time`,`owner_id`,`buyer_id`,`parent_id`,`pay_month`,`plus`,`pop_id`,`union_id`,`ext1`,`valid_code`,`update_time`,`create_time`) values
('1249651547374096386','117544770336',null,2,'2020-04-13 18:50:01','1249647976792461313','1249647976792461313',0,'0',0,625318,1002274953,'',3,'2020-04-13 18:52:00','2020-04-13 18:52:00'),
('1249653308906278913','117545220705',null,2,'2020-04-13 18:57:12','1249647766947237890','1249647766947237890',0,'0',0,10101608,1002274953,'',3,'2020-04-13 18:59:00','2020-04-13 18:59:00'),
('1249656831983226882','117545233538',null,2,'2020-04-13 19:11:01','1249647377699049474','1249647377699049474',0,'0',0,10101608,1002274953,'',3,'2020-04-13 19:13:00','2020-04-13 19:13:00'),
('1249658845198815233','112300888440',null,2,'2020-04-13 19:19:27','1249647179123920897','1249647179123920897',0,'0',0,154813,1002274953,'',3,'2020-04-13 19:21:00','2020-04-13 19:21:00'),
('1249659851844358145','117548817387',null,2,'2020-04-13 19:23:14','1249646645646200834','1249646645646200834',0,'0',1,10340545,1002274953,'',3,'2020-04-13 19:25:00','2020-04-13 19:25:00'),
('1249661613460426754','112296467773',null,2,'2020-04-13 19:30:57','1249647976792461313','1249660183160819714',0,'0',0,27236,1002274953,'',3,'2020-04-13 19:32:00','2020-04-13 19:32:00'),
('1249874767943569410','117607354307',null,2,'2020-04-14 09:37:04','1249646645646200834','1249646645646200834',0,'0',1,166144,1002274953,'',3,'2020-04-14 09:39:00','2020-04-14 09:39:00'),
('1249877285247389697','117611225195',null,2,'2020-04-14 09:47:13','1249646645646200834','1249646645646200834',0,'0',1,736958,1002274953,'',3,'2020-04-14 09:49:01','2020-04-14 09:49:01'),
('1250332031120838658','117793424898',null,2,'2020-04-15 15:54:00','1249646645646200834','1249646645646200834',0,'0',1,166144,1002274953,'',3,'2020-04-15 15:56:00','2020-04-15 15:56:00'),
('1250355686865375234','117812091341',null,2,'2020-04-15 17:28:46','1249647377699049474','1249647377699049474',0,'0',0,590931,1002274953,'',3,'2020-04-15 17:30:00','2020-04-15 17:30:00'),
('1250357951906975745','117805624512',null,2,'2020-04-15 17:37:58','1249646154606448642',0,0,'0',0,607110,1002274953,'',3,'2020-04-15 17:39:00','2020-04-15 17:39:00'),
('1250404005377478658','117823997793',null,2,'2020-04-15 20:40:55','1249646154606448642',0,0,'0',0,109725,1002274953,'',3,'2020-04-15 20:42:00','2020-04-15 20:42:00'),
('1250617159969673218','117884785856',null,2,'2020-04-16 10:47:48','1249646154606448642','1249646154606448642',0,'0',0,166144,1002274953,'',3,'2020-04-16 10:49:00','2020-04-16 10:49:00'),
('1250620682996289538','117893529708',null,2,'2020-04-16 11:01:29','1249646154606448642','1249646154606448642',0,'0',0,10149882,1002274953,'',3,'2020-04-16 11:03:00','2020-04-16 11:03:00'),
('1250622696358678529','117885632034',null,2,'2020-04-16 11:09:42','1249646154606448642','1249646154606448642',0,'0',0,10166579,1002274953,'',3,'2020-04-16 11:11:00','2020-04-16 11:11:00'),
('1250626723028930562','117890434730',null,2,'2020-04-16 11:25:10','1249646154606448642','1249646154606448642',0,'0',0,10072467,1002274953,'',3,'2020-04-16 11:27:00','2020-04-16 11:27:00'),
('1250628736059969538','117891130506',null,2,'2020-04-16 11:33:32','1249646154606448642','1249646154606448642',0,'0',0,10327467,1002274953,'',3,'2020-04-16 11:35:00','2020-04-16 11:35:00'),
('1250977534384803841','118008077932','2020-04-17 17:55:18',2,'2020-04-17 10:38:53','1249646645646200834','1249646645646200834',0,'20200520',1,0,1002274953,'',17,'2020-04-17 10:41:00','2020-04-17 10:41:00'),
('1251052780316004353','118039298372','2020-04-18 11:35:40',2,'2020-04-17 15:38:53','1250327528271253505','1251052016969453569',0,'20200520',0,21425,1002274953,'',17,'2020-04-17 15:40:00','2020-04-17 15:40:00'),
('1251337657582096386','118001435563',null,2,'2020-04-17 10:30:27','1250327528271253505',0,0,'0',0,10255182,1002274953,'',3,'2020-04-18 10:32:00','2020-04-18 10:32:00'),
('1251340929093079041','118001123009',null,2,'2020-04-17 10:43:18','1250327528271253505',0,0,'0',0,10308080,1002274953,'',3,'2020-04-18 10:45:00','2020-04-18 10:45:00'),
('1251352505401479169','118010992358',null,2,'2020-04-17 11:29:31','1250327528271253505',0,0,'0',0,10308080,1002274953,'',3,'2020-04-18 11:31:00','2020-04-18 11:31:00'),
('1251366849816301569','118143514976',null,2,'2020-04-18 12:26:42','1249646154606448642','1250996511001546754',0,'0',1,0,1002274953,'',2,'2020-04-18 12:28:00','2020-04-18 12:28:00'),
('1251367101365489666','112689529115',null,2,'2020-04-18 12:26:42','1249646154606448642','1250996511001546754','118143514976','0',1,10120162,1002274953,'',3,'2020-04-18 12:29:00','2020-04-18 12:29:00'),
('1251388744167067649','118160850861',null,2,'2020-04-18 13:53:11','1249646154606448642','1250996511001546754',0,'0',1,10178434,1002274953,'',16,'2020-04-18 13:55:00','2020-04-18 13:55:00'),
('1251405856780587010','118035152389',null,2,'2020-04-17 15:01:11','1250327528271253505',0,0,'0',0,10154020,1002274953,'',3,'2020-04-18 15:03:00','2020-04-18 15:03:00'),
('1251406360197730305','118035194374',null,2,'2020-04-17 15:03:34','1250327528271253505',0,0,'0',0,10154020,1002274953,'',3,'2020-04-18 15:05:00','2020-04-18 15:05:00'),
('1251518096326266882','118209893710',null,2,'2020-04-18 22:27:31','1249647179123920897','1249647179123920897',0,'0',0,10120162,1002274953,'',16,'2020-04-18 22:29:00','2020-04-18 22:29:00');
DROP TABLE IF EXISTS `jd_order_sku`;
CREATE TABLE `jd_order_sku` (
`id` bigint(20) NOT NULL COMMENT 'id',
`sku_id` bigint(20) NOT NULL COMMENT '商品ID',
`order_id` bigint(20) NOT NULL COMMENT '京东订单id',
`owner_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广人id',
`buyer_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '购买人id',
`actual_cos_price` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '实际计算佣金的金额。订单完成后,会将误扣除的运费券金额更正。如订单完成后发生退款,此金额会更新。',
`actual_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT ' 推客获得的实际佣金(实际计佣金额*佣金比例*最终比例)。如订单完成后发生退款,此金额会更新。',
`commission_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '佣金比例',
`estimate_cos_price` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '预估计佣金额,即用户下单的金额(已扣除优惠券、白条、支付优惠、进口税,未扣除红包和京豆),有时会误扣除运费券金额,完成结算时会在实际计佣金额中更正。如订单完成前发生退款,此金额也会更新。',
`estimate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '推客的预估佣金(预估计佣金额*佣金比例*最终比例),如订单完成前发生退款,此金额也会更新。',
`final_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '最终比例(分成比例+补贴比例)',
`cid1` bigint(20) NOT NULL DEFAULT '0' COMMENT '一级类目ID',
`frozen_sku_nnum` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品售后中数量',
`pid` varchar(128) DEFAULT '' COMMENT '联盟子站长身份标识格式子站长ID_子站长网站ID_子站长推广位ID',
`position_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '推广位ID,0代表无推广位',
`site_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '网站ID0无网站',
`sku_name` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品名称',
`sku_num` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品数量',
`sku_image` varchar(1024) NOT NULL DEFAULT '' COMMENT '商品主图',
`sku_return_num` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品已退货数量',
`sub_side_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '分成比例',
`subsidy_rate` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '补贴比例',
`cid3` bigint(20) NOT NULL DEFAULT '0' COMMENT '三级类目ID',
`union_alias` varchar(255) NOT NULL DEFAULT '' COMMENT ' PID所属母账号平台名称原第三方服务商来源',
`union_tag` varchar(255) NOT NULL DEFAULT '' COMMENT '联盟标签数据整型的二进制字符串目前返回16位0000000000000001。数据从右向左进行每一位为1表示符合联盟的标签特征第1位红包第2位组合推广第3位拼购第5位有效首次购0000000000011XXX表示有效首购最终奖励活动结算金额会结合订单状态判断以联盟后台对应活动效果数据报表https://union.jd.com/active为准,第8位复购订单第9位礼金第10位联盟礼金第11位推客礼金。例如0000000000000001:红包订单0000000000000010:组合推广订单0000000000000100:拼购订单0000000000011000:有效首购0000000000000111红包+组合推广+拼购等)',
`union_traffic_group` tinyint(4) NOT NULL DEFAULT '0' COMMENT '渠道组 11号店其他京东',
`valid_code` tinyint(4) NOT NULL DEFAULT '-1' COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
`sub_union_id` varchar(255) NOT NULL DEFAULT '' COMMENT '子联盟ID(需要联系运营开放白名单才能拿到数据)',
`trace_type` tinyint(4) NOT NULL DEFAULT '2' COMMENT '2同店3跨店',
`pay_month` int(11) NOT NULL DEFAULT '0' COMMENT '订单行维度预估结算时间格式yyyyMMdd 0未结算。订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
`pop_id` bigint(20) NOT NULL DEFAULT '0' COMMENT ' 商家ID。''订单行维度''',
`ext1` varchar(255) NOT NULL DEFAULT '' COMMENT ' 推客生成推广链接时传入的扩展字段(需要联系运营开放白名单才能拿到数据)。''订单行维度''',
`cp_act_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '招商团活动id正整数为0时表示无活动',
`union_role` tinyint(4) NOT NULL DEFAULT '1' COMMENT '站长角色1 推客、 2 团长',
`gift_coupon_key` varchar(255) NOT NULL DEFAULT '' COMMENT '礼金批次ID',
`gift_coupon_ocs_amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '礼金分摊金额',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'sku更新时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'sdu创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_order_id_and_sku_id` (`order_id`,`sku_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='佣金商品记录';
insert into `jd_order_sku`(`id`,`sku_id`,`order_id`,`owner_id`,`buyer_id`,`actual_cos_price`,`actual_fee`,`commission_rate`,`estimate_cos_price`,`estimate_fee`,`final_rate`,`cid1`,`frozen_sku_nnum`,`pid`,`position_id`,`site_id`,`sku_name`,`sku_num`,`sku_image`,`sku_return_num`,`sub_side_rate`,`subsidy_rate`,`cid3`,`union_alias`,`union_tag`,`union_traffic_group`,`valid_code`,`sub_union_id`,`trace_type`,`pay_month`,`pop_id`,`ext1`,`cp_act_id`,`union_role`,`gift_coupon_key`,`gift_coupon_ocs_amount`,`update_time`,`create_time`) values
('1249651547399262209','67324890451','117544770336','1249647976792461313','1249647976792461313',0.0000,0.0000,30.0000,26.9000,0.0000,0.0000,1320,0,'',0,142291,'小狗熊手工小麻花海苔网红小吃小孩零食歪一整箱咪 小麻花x6+小锅巴x4+山药片x2',1,'https://img14.360buyimg.com/ads/jfs/t1/96571/8/7516/187936/5dfc7308Ec21bb900/1e9f93ea11142746.jpg',0,0.0000,0.0000,1590,'','0000000000000000',4,3,'',2,0,625318,'',0,1,'',0.0000,'2020-04-13 18:52:00','2020-04-13 18:52:00'),
('1249653308935639042','63733255505','117545220705','1249647766947237890','1249647766947237890',0.0000,0.0000,71.0000,119.6000,0.0000,0.0000,16750,0,'',0,142291,'合和泰 树花晓秀 蜂胶护齿牙膏4支装 天然蜂胶 清新口气 舒敏修护 口腔清洁护理 牙龈修护 480g 蜂胶护齿牙膏 4支装',1,'https://img14.360buyimg.com/ads/jfs/t1/114949/28/413/113995/5e8c56deE89fb838d/e3757bfa4852c97c.jpg',0,0.0000,0.0000,16806,'','0000000000000000',4,3,'',2,0,10101608,'',0,1,'',0.0000,'2020-04-13 18:59:00','2020-04-13 18:59:00'),
('1249656831995809794','67156343434','117545233538','1249647377699049474','1249647377699049474',0.0000,0.0000,71.0000,159.6000,0.0000,0.0000,16750,0,'',0,142291,'合和泰蜂胶祛幽(HP)牙膏4支装 天然蜂胶 远离幽门螺旋杆菌 洁牙固齿 清新口气 口腔清洁 祛除异味 蜂胶祛幽牙膏 4支装',1,'https://img14.360buyimg.com/ads/jfs/t1/113959/33/99/149977/5e871399Eeb724700/9d01f6ee6100190c.jpg',0,0.0000,0.0000,16806,'','0000000000000000',4,3,'',2,0,10101608,'',0,1,'',0.0000,'2020-04-13 19:13:00','2020-04-13 19:13:00'),
('1249658845207203842','20175593221','112300888440','1249647179123920897','1249647179123920897',0.0000,0.0000,20.0000,59.9000,0.0000,0.0000,15901,0,'',0,142291,'可心柔COROU 可心柔V9保湿抽纸便携式外出3层40抽30包宝宝婴儿纸巾柔纸巾整箱量贩',1,'https://img14.360buyimg.com/ads/jfs/t1/3160/29/10391/273015/5bcad3ffE008df512/188a1af611e68eb4.jpg',0,0.0000,0.0000,15908,'','0000000000000000',4,3,'',2,0,154813,'',0,1,'',0.0000,'2020-04-13 19:21:00','2020-04-13 19:21:00'),
('1249659851852746754','67813342286','117548817387','1249646645646200834','1249646645646200834',0.0000,0.0000,20.0000,29.9000,0.0000,0.0000,9192,0,'',0,142291,'闪电卫士一次性防护口罩 无纺布带熔喷层 全塑鼻梁条 蓝色三层轻薄透气学生成人男女通用 经典款【20片装】',1,'https://img14.360buyimg.com/ads/jfs/t1/97798/27/17537/138655/5e8b2b24E01a7e735/c448ca86d413df4d.png',0,0.0000,0.0000,1517,'','0000000000000000',4,3,'',2,0,10340545,'',0,1,'',0.0000,'2020-04-13 19:25:00','2020-04-13 19:25:00'),
('1249661613473009666','10146821114','112296467773','1249647976792461313','1249660183160819714',0.0000,0.0000,30.0000,79.0000,0.0000,0.0000,1319,0,'',0,142291,'瑞典Fa-newborn春秋童装儿童上衣外套男童女童风衣 品红 110cm',1,'https://img14.360buyimg.com/ads/jfs/t1945/310/2304052158/266487/9e24311b/56d1b7b1N9d7c6504.jpg',0,0.0000,0.0000,14936,'','0000000000101000',4,3,'',2,0,27236,'',0,1,'',0.0000,'2020-04-13 19:32:00','2020-04-13 19:32:00'),
('1249874767951958017','54412358961','117607354307','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,189.0000,0.0000,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,3,'',2,0,166144,'',0,1,'',0.0000,'2020-04-14 09:39:00','2020-04-14 09:39:00'),
('1249877285251584002','52381363881','117611225195','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,89.0000,0.0000,0.0000,1316,0,'',0,142291,'肌底精华眼霜/水光防护肌密眼霜(小黑瓶眼霜 发光眼霜 新老包装随机) 发光眼霜',1,'https://img14.360buyimg.com/ads/jfs/t1/56566/40/4872/63656/5d299e7bE986c3563/cad34c2522c504b8.jpg',0,0.0000,0.0000,13547,'','0000000000000000',4,3,'',2,0,736958,'',0,1,'',0.0000,'2020-04-14 09:49:01','2020-04-14 09:49:01'),
('1250332031154393089','54412358961','117793424898','1249646645646200834','1249646645646200834',0.0000,0.0000,70.0000,39.0000,0.0000,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,3,'',2,0,166144,'',0,1,'',0.0000,'2020-04-15 15:56:00','2020-04-15 15:56:00'),
('1250355686877958145','58398852091','117812091341','1249647377699049474','1249647377699049474',0.0000,0.0000,40.0000,19.9000,0.0000,0.0000,16750,0,'',0,142291,'谜草集凡士林保湿霜擦脸润肤霜美肤白嫩面霜滋润补水手足护理男女士护肤化妆品 润肤霜170g*2瓶',1,'https://img14.360buyimg.com/ads/jfs/t1/103201/1/7954/111347/5e007eacE24eeedf2/0af3cd2dfc88bfc8.jpg',0,0.0000,0.0000,16778,'','0000000000000000',4,3,'',2,0,590931,'',0,1,'',0.0000,'2020-04-15 17:30:00','2020-04-15 17:30:00'),
('1250357951919558658','65868637885','117805624512','1249646154606448642',0,0.0000,0.0000,2.0000,138.0000,0.0000,0.0000,1318,0,'',0,142291,'李宁跑步鞋女鞋春季云减震跑鞋网面透气休闲鞋女士运动鞋 标准黑 37',1,'https://img14.360buyimg.com/ads/jfs/t1/90864/40/13472/57930/5e5a36a4E62cbee27/f583d5ba42978051.jpg',0,0.0000,0.0000,9756,'','0000000000000000',4,3,'',2,0,607110,'',0,1,'',0.0000,'2020-04-15 17:39:00','2020-04-15 17:39:00'),
('1250404005385867265','40771647999','117823997793','1249646154606448642',0,0.0000,0.0000,5.0000,45.0000,0.0000,0.0000,1318,0,'',0,142291,'李宁短袖男夏季圆领速干篮球跑步训练上衣吸湿透气短袖紧运动T恤健身健身运动服 混色荧光亮绿AUDM017-2 L/175',1,'https://img14.360buyimg.com/ads/jfs/t1/28499/16/4316/136639/5c30517cE2ef058f4/c8aae81914bf365d.jpg',0,0.0000,0.0000,12107,'','0000000000000000',4,3,'',2,0,109725,'',0,1,'',0.0000,'2020-04-15 20:42:00','2020-04-15 20:42:00'),
('1250617160024199169','54412358961','117884785856','1249646154606448642','1249646154606448642',0.0000,0.0000,70.0000,39.0000,0.0000,0.0000,1316,0,'',0,142291,'形象美21天精华极光晚安精华液安瓶精华2ml*21包 补水保湿 滋润紧致 温和养护肌肤 2ml*21袋',1,'https://img14.360buyimg.com/ads/jfs/t1/55511/34/10177/128239/5d760ab2E3b96e20a/7397ed310ebf39f9.jpg',0,0.0000,0.0000,13546,'','0000000000000000',4,3,'',2,0,166144,'',0,1,'',0.0000,'2020-04-16 10:49:00','2020-04-16 10:49:00'),
('1250620683004678146','58043448672','117893529708','1249646154606448642','1249646154606448642',0.0000,0.0000,52.0000,75.0000,0.0000,0.0000,1316,0,'',0,142291,'莉兹星空星耀口红女高颜值哑光豆沙色不脱色美妆 8#豆沙色',1,'https://img14.360buyimg.com/ads/jfs/t1/53028/35/12124/365909/5d918ef8E9394cbcc/0851ae7c82b8e3c0.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10149882,'',0,1,'',0.0000,'2020-04-16 11:03:00','2020-04-16 11:03:00'),
('1250622696367067137','63965195734','117885632034','1249646154606448642','1249646154606448642',0.0000,0.0000,52.0000,49.9000,0.0000,0.0000,1316,0,'',0,142291,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 06亮燿玫红色',1,'https://img14.360buyimg.com/ads/jfs/t1/92822/24/6737/131720/5df5e89bE3faea339/3d35de1af00137c3.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10166579,'',0,1,'',0.0000,'2020-04-16 11:11:00','2020-04-16 11:11:00'),
('1250626723054096386','65670962506','117890434730','1249646154606448642','1249646154606448642',0.0000,0.0000,52.0000,49.9000,0.0000,0.0000,1316,0,'',0,142291,'韩纪美妆魅惑口红滋润保湿不易沾杯不易掉色彩妆口红 孕妇可用 03经典正红色',1,'https://img14.360buyimg.com/ads/jfs/t1/103769/9/12477/134759/5e47a4bdEfbd9088e/bd47bdbe71b784af.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10072467,'',0,1,'',0.0000,'2020-04-16 11:27:00','2020-04-16 11:27:00'),
('1250628736072552450','66093114558','117891130506','1249646154606448642','1249646154606448642',0.0000,0.0000,75.0000,19.9000,0.0000,0.0000,1316,0,'',0,142291,'华公子三色口红 1支顶3支3色口红时尚新款 不易沾杯不易掉色网红款 三色口红',1,'https://img14.360buyimg.com/ads/jfs/t1/93356/22/14052/155299/5e6064efE36471089/e88677e65c684815.jpg',0,0.0000,0.0000,1425,'','0000000000000000',4,3,'',2,0,10327467,'',0,1,'',0.0000,'2020-04-16 11:35:00','2020-04-16 11:35:00'),
('1250977534393192450','100005597540','118008077932','1249646645646200834','1249646645646200834',259.0000,11.6600,4.5000,259.0000,11.6600,0.0000,670,0,'',0,142291,'绿联 Type-C扩展坞 适用苹果Macbook华为笔记本 USB-C转HDMI/VGA千兆网口网卡电脑转换器网线接口3.0分线器',1,'https://img14.360buyimg.com/ads/jfs/t1/109588/31/4183/215825/5e1bc390E94383e35/f634a22cdb59504f.jpg',0,0.0000,0.0000,1049,'','0000000000000000',4,17,'',2,20200520,0,'',0,1,'',0.0000,'2020-04-17 10:41:00','2020-04-17 10:41:00'),
('1251052780320198657',1101196302,'118039298372','1250327528271253505','1251052016969453569',55.9000,15.0900,30.0000,55.9000,15.0900,0.0000,1316,0,'',0,142291,'欧诗漫OSM珍珠补水面膜女保湿水润玻尿酸撕拉面膜贴21片 补水保湿免洗男士通用护肤化妆品',1,'https://img14.360buyimg.com/ads/jfs/t1/87036/29/19113/149574/5e99d465E4cee1524/810b2621e79ce63e.jpg',0,0.0000,0.0000,1392,'','0000000000000000',4,17,'1250327528271253505_1251052016969453569_3_1_0',2,20200520,21425,'',0,1,'',0.0000,'2020-04-17 15:40:00','2020-04-17 15:40:00'),
('1251052780324392962','10069629503','118039298372','1250327528271253505','1251052016969453569',0.0000,0.0000,1.0000,0.0000,0.0000,0.0000,1316,0,'',0,142291,'欧诗漫OSM珍珠补水保湿珍珠玻尿酸水润隐形面膜贴女10片袋装',1,'https://img14.360buyimg.com/ads/jfs/t1/72899/9/15653/102456/5dd22df2Ebe2fa093/4469cd06d66a6279.jpg',0,0.0000,0.0000,1392,'','0000000000000000',4,17,'1250327528271253505_1251052016969453569_3_1_0',2,20200520,21425,'',0,1,'',0.0000,'2020-04-17 15:40:00','2020-04-17 15:40:00'),
('1251337657607262209','61589744648','118001435563','1250327528271253505',0,0.0000,0.0000,20.0000,19.9000,0.0000,0.0000,1320,0,'',0,142291,'深海鳕鱼肠儿童零食小吃休闲食品 原味鳕鱼肠150g/罐',1,'https://img14.360buyimg.com/ads/jfs/t1/88897/38/278/125164/5daac91aE03e45e96/cbd22a1c459050ff.jpg',0,0.0000,0.0000,1592,'','0000000000000100',4,3,'1250327528271253505_0_3_0_0',2,0,10255182,'',0,1,'',0.0000,'2020-04-18 10:32:00','2020-04-18 10:32:00'),
('1251340929101467650','65806506700','118001123009','1250327528271253505',0,0.0000,0.0000,10.0000,49.9000,0.0000,0.0000,1320,0,'',0,142291,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',1,'https://img14.360buyimg.com/ads/jfs/t1/85352/4/18178/175392/5e93df26E1348b661/4d14742ae133cc3a.jpg',0,0.0000,0.0000,1595,'','0000000000011000',4,3,'1250327528271253505_0_3_0_0',2,0,10308080,'',0,1,'',0.0000,'2020-04-18 10:45:00','2020-04-18 10:45:00'),
('1251352505409867778','65806506700','118010992358','1250327528271253505',0,0.0000,0.0000,10.0000,49.9000,0.0000,0.0000,1320,0,'',0,142291,'盼盼系列真食惠 手撕面包整箱1000g-2000g装 早餐蛋糕点办公室零食原味面包点心食品礼盒 手撕面包2斤装',1,'https://img14.360buyimg.com/ads/jfs/t1/85352/4/18178/175392/5e93df26E1348b661/4d14742ae133cc3a.jpg',0,0.0000,0.0000,1595,'','0000000000000000',4,3,'1250327528271253505_0_3_0_0',2,0,10308080,'',0,1,'',0.0000,'2020-04-18 11:31:00','2020-04-18 11:31:00'),
('1251366849828884481','67680280017','118143514976','1249646154606448642','1250996511001546754',0.0000,0.0000,10.0000,39.9100,0.0000,0.0000,1320,0,'',0,142291,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',1,'https://img14.360buyimg.com/ads/jfs/t1/101103/12/17195/84210/5e855af7E826b9fb2/4cfcf00b62970a5f.jpg',0,0.0000,0.0000,2675,'','0000000000000000',4,2,'1249646154606448642_1250996511001546754_3_1_0',2,0,0,'',0,1,'',0.0000,'2020-04-18 12:28:00','2020-04-18 12:28:00'),
('1251367101378072577','67680280017','112689529115','1249646154606448642','1250996511001546754',0.0000,0.0000,10.0000,29.9000,0.0000,0.0000,1320,0,'',0,142291,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',1,'https://img14.360buyimg.com/ads/jfs/t1/101103/12/17195/84210/5e855af7E826b9fb2/4cfcf00b62970a5f.jpg',0,0.0000,0.0000,2675,'','0000000000000000',4,3,'1249646154606448642_1250996511001546754_3_1_0',2,0,10120162,'',0,1,'',0.0000,'2020-04-18 12:29:00','2020-04-18 12:29:00'),
('1251388744179650562','51144378665','118160850861','1249646154606448642','1250996511001546754',0.0000,0.0000,20.0000,7.9200,1.4200,0.0000,1316,0,'',0,142291,'棉签竹棒 棉签棒化妆卸妆棉签耳勺耳鼻清洁 双头纯棉棒 4包800只',1,'https://img14.360buyimg.com/ads/jfs/t1/118697/33/1078/129228/5e943043E6806cd51/b6b031e7222c87e4.jpg',0,0.0000,0.0000,16861,'','0000000000000000',4,16,'1249646154606448642_1250996511001546754_3_1_0',2,0,10178434,'',0,1,'',0.0000,'2020-04-18 13:55:00','2020-04-18 13:55:00'),
('1251388744183844865','51363039179','118160850861','1249646154606448642','1250996511001546754',0.0000,0.0000,20.0000,7.9200,1.4200,0.0000,1620,0,'',0,142291,'多功能桌面收纳盒 创意化妆收纳盒 办公用品小物件收纳 22*10.5*10.5cm 粉色/蓝色随机发货(无法备注指定颜色)',1,'https://img14.360buyimg.com/ads/jfs/t1/86406/32/18269/118192/5e943042Ee3e22869/0f0b711989908701.jpg',0,0.0000,0.0000,13783,'','0000000000000000',4,16,'1249646154606448642_1250996511001546754_3_1_0',2,0,10178434,'',0,1,'',0.0000,'2020-04-18 13:55:00','2020-04-18 13:55:00'),
('1251388744188039169','52830066539','118160850861','1249646154606448642','1250996511001546754',0.0000,0.0000,2.0000,7.9200,0.1400,0.0000,1620,0,'',0,142291,'可爱擦手巾挂式厨房卫生间擦手毛巾抹手巾珊瑚绒吸水抹布儿童手帕擦手布 包装更新新旧款混 粉萌猪猪-粉色',1,'https://img14.360buyimg.com/ads/jfs/t1/107635/25/12274/161332/5e943045E8f2de4cb/d49835bf70291097.jpg',0,0.0000,0.0000,1657,'','0000000000000000',4,16,'1249646154606448642_1250996511001546754_3_1_0',2,0,10178434,'',0,1,'',0.0000,'2020-04-18 13:55:00','2020-04-18 13:55:00'),
('1251405856784781313','66996956135','118035152389','1250327528271253505',0,0.0000,0.0000,21.0000,39.9000,0.0000,0.0000,1620,0,'',0,142291,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',1,'https://img14.360buyimg.com/ads/jfs/t1/101233/29/16441/113330/5e7aab77Eec59e9f5/8dd6f31a87ef4990.jpg',0,0.0000,0.0000,11969,'','0000000000000000',4,3,'1250327528271253505_0_3_0_0',2,0,10154020,'',0,1,'',0.0000,'2020-04-18 15:03:00','2020-04-18 15:03:00'),
('1251406360201924609','66996956135','118035194374','1250327528271253505',0,0.0000,0.0000,21.0000,39.9000,0.0000,0.0000,1620,0,'',0,142291,'灭蚊灯家用灭蚊器物理无辐射光触媒灭蚊灯家用驱蚊神器室内无辐射婴儿usb插电式卧室捕防蚊 一个装',1,'https://img14.360buyimg.com/ads/jfs/t1/101233/29/16441/113330/5e7aab77Eec59e9f5/8dd6f31a87ef4990.jpg',0,0.0000,0.0000,11969,'','0000000000000000',4,3,'1250327528271253505_0_3_0_0',2,0,10154020,'',0,1,'',0.0000,'2020-04-18 15:05:00','2020-04-18 15:05:00'),
('1251518096334655489','67680280017','118209893710','1249647179123920897','1249647179123920897',0.0000,0.0000,10.0000,29.9000,2.6900,0.0000,1320,0,'',0,142291,'【当季新米】一寄稻 盘锦大米5KG(10斤) 东北大米 邮政农品 优质一等',1,'https://img14.360buyimg.com/ads/jfs/t1/101103/12/17195/84210/5e855af7E826b9fb2/4cfcf00b62970a5f.jpg',0,0.0000,0.0000,2675,'','0000000000000000',4,16,'1249647179123920897_1249647179123920897_3_3_0',2,0,10120162,'',0,1,'',0.0000,'2020-04-18 22:29:00','2020-04-18 22:29:00');
DROP TABLE IF EXISTS `jd_order_sync_record`;
CREATE TABLE `jd_order_sync_record` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '京东订单id',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0成功1失败',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_order_sync_record`(`id`,`order_id`,`status`) values
('1249651547567034370','117544770336',0),
('1249653309074051074','117545220705',0),
('1249656832083890178','117545233538',0),
('1249658845274312705','112300888440',0),
('1249659851919855617','117548817387',0),
('1249661613582061570','112296467773',0),
('1249874768002289666','117607354307',0),
('1249877285310304257','117611225195',0),
('1250332031301193729','117793424898',0),
('1250355686999592962','117812091341',0),
('1250357951982473218','117805624512',0),
('1250404005440393217','117823997793',0),
('1250617160133251074','117884785856',0),
('1250620683063398401','117893529708',0),
('1250622696429981698','117885632034',0),
('1250626723108622338','117890434730',0),
('1250628736114495490','117891130506',0),
('1250975268852469761','118001435563',0),
('1250976778839658497','118001729067',1),
('1250977534447718402','118008077932',0),
('1250978540464115713','118001123009',0),
('1250990116697018370','118010992358',0),
('1250990871751430145','118012334255',1),
('1250993639887212546','118011304104',1),
('1250995401746550785','118010693067',1),
('1251035666821681153','118029956776',1),
('1251039693332549634','118036531916',1),
('1251040196649029634','118034776750',1),
('1251043468252286978','118035152389',0),
('1251043971572961281','118035194374',0),
('1251052780496359426','118039298372',0),
('1251366849900187650','118143514976',0),
('1251367101424209922','112689529115',0),
('1251388744292896769','118160850861',0),
('1251518096393375745','118209893710',0);
DROP TABLE IF EXISTS `jd_question`;
CREATE TABLE `jd_question` (
`id` bigint(20) NOT NULL,
`cid` bigint(20) NOT NULL COMMENT '问题分类ID',
`title` varchar(64) NOT NULL COMMENT '问题标题',
`answer` varchar(1024) NOT NULL COMMENT '问题回答',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `index_category` (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_question`(`id`,`cid`,`title`,`answer`,`create_time`) values
('1242742075793158145','1242741770884034562','优惠券只能一个号领一次吗?','优惠券数量有限,一般情况一个账号仅能领用一次。','2020-03-25 17:16:14'),
('1242742267862921218','1242741770884034562','部分商品分货较慢是什么原因?','部分商家的产品是第三方POP商家使用的是第三言主物流一般送货速度会较慢。另外在大促活动期间商家积压的订单比较多可能发货会较慢。
线950618','2020-03-25 17:17:00'),
('1242742614790582273','1242741792610529282','如何申请售后服务?','申请售后常用的2个流程
1->->->->
2APP->->','2020-03-25 17:18:23'),
('1242742683598139394','1242741792610529282','对收到的产品不满意 ','按照京东7天元理由退货政策您收到货发现有问题可以与商家协商退货和退款如协商不成您可以拨打东京客服电话950618按2进入按键导航根据语言提示按7再按1然后输入收货人手机号确认手机号按1然后再输入订单后四位等待人工客服接起。','2020-03-25 17:18:39'),
('1242742750933495809','1242741792610529282','为什么通过平台下单的商品售后问题需要联系京东处理?','平台只提供商品链接,分享商品优惠信息,并不提供下单购买等服务,您实际下单仍是在京东内完成,商品也是由京东提供,所以如果产生售后问题,需要您联系京东商场协商处理。','2020-03-25 17:18:55'),
('1242742960657084418','1242741824084586498','如何查看该订单的物流信息?','查看订单的3个途经
1->->->->->->->
2->->->->
APP订单界面查看订单
3APP->','2020-03-25 17:19:45'),
('1242743068148707330','1242741824084586498','如何知道是谁下的单?','东京注重保护客户隐私,您看不到客户姓名、电话等隐私信息。','2020-03-25 17:20:11'),
('1242743117427585025','1242741824084586498','为什么我的订单会显示“无效-取消”?','如果客户下单付款后又取消了此订单,则订单详情内会显示“无效-取消”标识。','2020-03-25 17:20:22'),
('1242743201657597954','1242741824084586498','订单中显示红色“跨店“标志是什么意思?','关于跨店的解析:
广A店铺商品的推广主链接进行东京B店铺商品','2020-03-25 17:20:42'),
('1242743268615467009','1242741824084586498','为什么订单会显示”无效-拆单”','拆单是系统根据该订单内的产品类目及仓库中无师进行拆分,已拆单导致父订单无效,但不会影响佣金收益,已拆单的订单佣金是按照拆单后形成的子订单号计算佣金的。 ','2020-03-25 17:20:58'),
('1242743319614009346','1242741824084586498','订单显示“无效-非推广商品”是什么意思?','根据京东推广规则,“无效-非推广商品”是批该商品商家没有设置佣金 或跨店佣金为0或者Plus会员购买为0的商品此类订单不会获得推广收益。','2020-03-25 17:21:11'),
('1242743382734090241','1242741824084586498','客户订单在东京已经付款,为什么在平台显示待付款','客户在京东20分钟内付款的订单状态会及时更新到小程序中如果20分钟后付款的订单状态会在次日更新可在第二天进行查看不会影响您的收益。','2020-03-25 17:21:26'),
('1242743781218136065','1242741824084586498','客户购买了商品在京东APP中可以看到订单但您在平台小程序中看不到推广订单','1平台小程序没有这个商品或活动已结束商品已经在平台为下架状态所以小程序中不会显示订单
2
35-10
4
5APP
6
7Plus会员买没佣且买了不跟单','2020-03-25 17:23:01'),
('1242743928740196354','1242741853012701185','我的收益有哪几种类型?','推广收益:您的直属会员在小程序自购,或者您分享的商品促成别人购买所得到的收益。
广
','2020-03-25 17:23:36'),
('1242743986168606721','1242741853012701185','什么是“预估收益”及“预估收益”会变少的原因是什么?','根据京东的推广规则:预估收益是根据用户一瞬间时间预估统计的推广效果数据,并非实际结算收益,取消已付款的订单或者退换货后对应的收益会相应的扣除,实际收益以订单结算为准。','2020-03-25 17:23:50'),
('1242744363194593282','1242741853012701185','为什么我的订单收益为0','1执照京东的返佣规则 ,乡村推广账号、企业账号、分期付款用户、以开具增值税运用发票的订单是没有收益的。
广 广广
Plus会员账号说明Plus账号是东京的一种会员账号类型0
2使E卡等京东虚拟货币 0.
30
4Plus会员ghuj3的订单
5','2020-03-25 17:25:19'),
('1242744421667385346','1242741853012701185','订单显示的收益和选品时看到预估“预估收益”不一样?','您选品时看到的收益金额为预估推广收益由于客户在一瞬间时可能会使用京券、余额、京豆和E卡等京东虚拟货币导致收益减少导致订单收益变少的情况发生。','2020-03-25 17:25:33'),
('1242744555805421569','1242741853012701185','每月提现金额和”预估收益“不一致?','所有的收益都是按照系统设计好的规则进行,不存在 恶意扣除,可提现收益跟预估收益不一致原因有以下两点:
1退
2 广
15 退 退 ','2020-03-25 17:26:05'),
('1242744635073572866','1242741853012701185','
','1
2广广广','2020-03-25 17:26:24'),
('1242745099500466178','1242741895224176642','为什么会有违规订单?','平台内推广的商品,有一些是商家通过打造引流爆款产品亏本促销,从而提升商品或店铺在东京内的搜索排名,促销完成后,需要长尾的带动整体销售利润。
1广
2广
广 ','2020-03-25 17:28:15'),
('1242745257789304834','1242741895224176642','我自己购买的商品被判定为”违规订单“,如何申斥?','如果对订单判断有疑问,我们可以帮您进行早逝处理,您需要提供以下三张照片,通过客服转交进行申斥。
1
2
3
35 ','2020-03-25 17:28:53'),
('1242745347664850946','1242741895224176642','如何避免”违规订单“?','1请务必不要代下单如遇首次购物用户耐心引导即可。
230','2020-03-25 17:29:14'),
('1242745460017672194','1242741930515050497','一人多微信号怎么提现?','可以绑定同一人的身份证,同一个银行卡完成提现。','2020-03-25 17:29:41'),
('1242745508176670722','1242741930515050497','更换了微信头像和昵称,小程序不同步?','小程序的微信昵称和头像微信不同步,后续会提供相应功能更新昵称头像功能。','2020-03-25 17:29:52'),
('1242745630994280450','1242741930515050497','邀请另人加入后,我们之间都有什么关系?','直属注册会员:通过您直接邀请注册的会员。
','2020-03-25 17:30:22');
DROP TABLE IF EXISTS `jd_question_category`;
CREATE TABLE `jd_question_category` (
`id` bigint(20) NOT NULL,
`name` varchar(64) NOT NULL COMMENT '分类名称',
`icon` varchar(256) NOT NULL COMMENT '小图标',
`open` tinyint(4) NOT NULL DEFAULT '1',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_question_category`(`id`,`name`,`icon`,`open`,`create_time`) values
('1242741770884034562','商品类','goodsfill',1,'2020-03-25 17:15:01'),
('1242741792610529282','售后类','servicefill',1,'2020-03-25 17:15:07'),
('1242741824084586498','订单类','shopfill',1,'2020-03-25 17:15:14'),
('1242741853012701185','收益类','moneybagfill',1,'2020-03-25 17:15:21'),
('1242741895224176642','违规订单类','warnfill',1,'2020-03-25 17:15:31'),
('1242741930515050497','其他问题','questionfill',1,'2020-03-25 17:15:39');
DROP TABLE IF EXISTS `jd_settlement_calculate_result`;
CREATE TABLE `jd_settlement_calculate_result` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`start_date` date NOT NULL COMMENT '开始时间',
`end_date` date NOT NULL COMMENT '开始时间',
`rebate_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '返利',
`award_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '奖励',
`commission_fee` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '佣金',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '成员状态(0成功1失败)',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录时间',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`start_date`,`end_date`),
KEY `index_user_id_and_start_date_and_end_date` (`user_id`,`start_date`,`end_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_share_poster`;
CREATE TABLE `jd_share_poster` (
`id` bigint(20) NOT NULL,
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '海报名称',
`icon_url` varchar(512) NOT NULL DEFAULT '' COMMENT '图标Url',
`image_url` varchar(512) NOT NULL DEFAULT '' COMMENT '分享图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '海报文字内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分享海报';
insert into `jd_share_poster`(`id`,`title`,`icon_url`,`image_url`,`content`,`create_time`) values
('1249932434573627394','尚橙优选社交电商','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/WechatIMG631.png','https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg','尚橙优选','2020-04-14 13:28:09');
DROP TABLE IF EXISTS `jd_super_member_apply`;
CREATE TABLE `jd_super_member_apply` (
`id` bigint(20) NOT NULL,
`owner_id` bigint(20) NOT NULL COMMENT '申请人',
`group_id` int(11) NOT NULL COMMENT '群组id',
`image_urls` varchar(260) NOT NULL DEFAULT '' COMMENT '申请图',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '申请状态',
`remark` varchar(64) NOT NULL DEFAULT '' COMMENT '备注信息',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '申请时间',
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='超级会员申请表';
insert into `jd_super_member_apply`(`id`,`owner_id`,`group_id`,`image_urls`,`status`,`remark`,`create_time`) values
('1249900567870836738','1249660183160819714',10007,'',1,'','2020-04-14 11:21:32'),
('1249927678744596482','1249646154606448642',10008,'',1,'','2020-04-14 13:09:15'),
('1249989614446317569','1249647766947237890',10009,'',1,'','2020-04-14 17:15:22'),
('1250799480366698498','1250327528271253505',10010,'',1,'','2020-04-16 22:53:29'),
('1251181093487382530','1251181040496545794',10011,'',1,'','2020-04-18 00:09:53');
DROP TABLE IF EXISTS `jd_team_member`;
CREATE TABLE `jd_team_member` (
`id` bigint(20) NOT NULL COMMENT 'ID',
`leader_id` bigint(20) unsigned NOT NULL COMMENT '领队id',
`member_id` bigint(20) unsigned NOT NULL COMMENT '成员id',
`level` int(11) NOT NULL COMMENT '级别',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `index_unique_leader_id_and_member_id` (`leader_id`,`member_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_team_member`(`id`,`leader_id`,`member_id`,`level`,`create_time`) values
('1249645277048999938','1249645276885422081','1249645276885422081',0,'2020-04-13 18:27:05'),
('1249646154673557505','1249646154606448642','1249646154606448642',0,'2020-04-13 18:30:35'),
('1249646154698723329','1249645276885422081','1249646154606448642',1,'2020-04-13 18:30:35'),
('1249646645688143873','1249646645646200834','1249646645646200834',0,'2020-04-13 18:32:32'),
('1249646645709115394','1249646154606448642','1249646645646200834',1,'2020-04-13 18:32:32'),
('1249646645713309698','1249645276885422081','1249646645646200834',2,'2020-04-13 18:32:32'),
('1249646801640755202','1249646801590423553','1249646801590423553',0,'2020-04-13 18:33:09'),
('1249646801661726722','1249646154606448642','1249646801590423553',1,'2020-04-13 18:33:09'),
('1249646801665921026','1249645276885422081','1249646801590423553',2,'2020-04-13 18:33:09'),
('1249647179123920898','1249647179123920897','1249647179123920897',0,'2020-04-13 18:34:39'),
('1249647179182641153','1249646645646200834','1249647179123920897',1,'2020-04-13 18:34:39'),
('1249647179186835458','1249646154606448642','1249647179123920897',2,'2020-04-13 18:34:39'),
('1249647179186835459','1249645276885422081','1249647179123920897',3,'2020-04-13 18:34:39'),
('1249647377699049475','1249647377699049474','1249647377699049474',0,'2020-04-13 18:35:26'),
('1249647377770352642','1249647179123920897','1249647377699049474',1,'2020-04-13 18:35:26'),
('1249647377774546945','1249646645646200834','1249647377699049474',2,'2020-04-13 18:35:26'),
('1249647377778741250','1249646154606448642','1249647377699049474',3,'2020-04-13 18:35:26'),
('1249647377782935553','1249645276885422081','1249647377699049474',4,'2020-04-13 18:35:26'),
('1249647766993375234','1249647766947237890','1249647766947237890',0,'2020-04-13 18:36:59'),
('1249647767018541058','1249647377699049474','1249647766947237890',1,'2020-04-13 18:36:59'),
('1249647767018541059','1249647179123920897','1249647766947237890',2,'2020-04-13 18:36:59'),
('1249647767018541060','1249646645646200834','1249647766947237890',3,'2020-04-13 18:36:59'),
('1249647767022735361','1249646154606448642','1249647766947237890',4,'2020-04-13 18:36:59'),
('1249647767022735362','1249645276885422081','1249647766947237890',5,'2020-04-13 18:36:59'),
('1249647976838598658','1249647976792461313','1249647976792461313',0,'2020-04-13 18:37:49'),
('1249647976855375874','1249647766947237890','1249647976792461313',1,'2020-04-13 18:37:49'),
('1249647976859570177','1249647377699049474','1249647976792461313',2,'2020-04-13 18:37:49'),
('1249647976863764482','1249647179123920897','1249647976792461313',3,'2020-04-13 18:37:49'),
('1249647976863764483','1249646645646200834','1249647976792461313',4,'2020-04-13 18:37:49'),
('1249647976867958786','1249646154606448642','1249647976792461313',5,'2020-04-13 18:37:49'),
('1249647976867958787','1249645276885422081','1249647976792461313',6,'2020-04-13 18:37:49'),
('1249648482097041410','1249648482063486977','1249648482063486977',0,'2020-04-13 18:39:50'),
('1249648482113818625','1249645276885422081','1249648482063486977',1,'2020-04-13 18:39:50'),
('1249649658767085570','1249649658737725441','1249649658737725441',0,'2020-04-13 18:44:30'),
('1249649658783862786','1249645276885422081','1249649658737725441',1,'2020-04-13 18:44:30'),
('1249660183160819715','1249660183160819714','1249660183160819714',0,'2020-04-13 19:26:19'),
('1249660183206957058','1249647976792461313','1249660183160819714',1,'2020-04-13 19:26:19'),
('1249660183211151361','1249647766947237890','1249660183160819714',2,'2020-04-13 19:26:19'),
('1249660183211151362','1249647377699049474','1249660183160819714',3,'2020-04-13 19:26:19'),
('1249660183211151363','1249647179123920897','1249660183160819714',4,'2020-04-13 19:26:19'),
('1249660183215345666','1249646645646200834','1249660183160819714',5,'2020-04-13 19:26:19'),
('1249660183215345667','1249646154606448642','1249660183160819714',6,'2020-04-13 19:26:19'),
('1249660183215345668','1249645276885422081','1249660183160819714',7,'2020-04-13 19:26:19'),
('1250327528296419329','1250327528271253505','1250327528271253505',0,'2020-04-15 15:38:07'),
('1250327528296419330','1249647377699049474','1250327528271253505',1,'2020-04-15 15:38:07'),
('1250327528296419331','1249647179123920897','1250327528271253505',2,'2020-04-15 15:38:07'),
('1250327528296419332','1249646645646200834','1250327528271253505',3,'2020-04-15 15:38:07'),
('1250327528296419333','1249646154606448642','1250327528271253505',4,'2020-04-15 15:38:07'),
('1250327528296419334','1249645276885422081','1250327528271253505',5,'2020-04-15 15:38:07'),
('1250335058548494337','1250335058540105729','1250335058540105729',0,'2020-04-15 16:08:02'),
('1250335058548494338','1249647377699049474','1250335058540105729',1,'2020-04-15 16:08:02'),
('1250335058548494339','1249647179123920897','1250335058540105729',2,'2020-04-15 16:08:02'),
('1250335058548494340','1249646645646200834','1250335058540105729',3,'2020-04-15 16:08:02'),
('1250335058548494341','1249646154606448642','1250335058540105729',4,'2020-04-15 16:08:02'),
('1250335058548494342','1249645276885422081','1250335058540105729',5,'2020-04-15 16:08:02'),
('1250348825478959106','1250348825445404674','1250348825445404674',0,'2020-04-15 17:02:45'),
('1250348825491542017','1249646645646200834','1250348825445404674',1,'2020-04-15 17:02:45'),
('1250348825495736321','1249646154606448642','1250348825445404674',2,'2020-04-15 17:02:45'),
('1250348825495736322','1249645276885422081','1250348825445404674',3,'2020-04-15 17:02:45'),
('1250354910906552322','1250354910881386498','1250354910881386498',0,'2020-04-15 17:26:55'),
('1250354910923329538','1249647377699049474','1250354910881386498',1,'2020-04-15 17:26:55'),
('1250354910923329539','1249647179123920897','1250354910881386498',2,'2020-04-15 17:26:55'),
('1250354910923329540','1249646645646200834','1250354910881386498',3,'2020-04-15 17:26:55'),
('1250354910923329541','1249646154606448642','1250354910881386498',4,'2020-04-15 17:26:55'),
('1250354910923329542','1249645276885422081','1250354910881386498',5,'2020-04-15 17:26:55'),
('1250362253052481537','1250362253027315714','1250362253027315714',0,'2020-04-15 17:56:06'),
('1250362253081841665','1249647377699049474','1250362253027315714',1,'2020-04-15 17:56:06'),
('1250362253081841666','1249647179123920897','1250362253027315714',2,'2020-04-15 17:56:06'),
('1250362253081841667','1249646645646200834','1250362253027315714',3,'2020-04-15 17:56:06'),
('1250362253081841668','1249646154606448642','1250362253027315714',4,'2020-04-15 17:56:06'),
('1250362253081841669','1249645276885422081','1250362253027315714',5,'2020-04-15 17:56:06'),
('1250382285237129218','1250382285216157697','1250382285216157697',0,'2020-04-15 19:15:42'),
('1250382285245517826','1249646645646200834','1250382285216157697',1,'2020-04-15 19:15:42'),
('1250382285249712130','1249646154606448642','1250382285216157697',2,'2020-04-15 19:15:42'),
('1250382285249712131','1249645276885422081','1250382285216157697',3,'2020-04-15 19:15:42'),
('1250383191181627394','1250383191160655874','1250383191160655874',0,'2020-04-15 19:19:18'),
('1250383191194210306','1249647377699049474','1250383191160655874',1,'2020-04-15 19:19:18'),
('1250383191194210307','1249647179123920897','1250383191160655874',2,'2020-04-15 19:19:18'),
('1250383191194210308','1249646645646200834','1250383191160655874',3,'2020-04-15 19:19:18'),
('1250383191194210309','1249646154606448642','1250383191160655874',4,'2020-04-15 19:19:18'),
('1250383191194210310','1249645276885422081','1250383191160655874',5,'2020-04-15 19:19:18'),
('1250644514909982722','1250644514880622594','1250644514880622594',0,'2020-04-16 12:37:42'),
('1250644514918371330','1250382285216157697','1250644514880622594',1,'2020-04-16 12:37:42'),
('1250644514918371331','1249646645646200834','1250644514880622594',2,'2020-04-16 12:37:42'),
('1250644514918371332','1249646154606448642','1250644514880622594',3,'2020-04-16 12:37:42'),
('1250644514918371333','1249645276885422081','1250644514880622594',4,'2020-04-16 12:37:42'),
('1250646779901251586','1250646779880280065','1250646779880280065',0,'2020-04-16 12:46:42'),
('1250646779909640194','1250382285216157697','1250646779880280065',1,'2020-04-16 12:46:42'),
('1250646779913834498','1249646645646200834','1250646779880280065',2,'2020-04-16 12:46:42'),
('1250646779913834499','1249646154606448642','1250646779880280065',3,'2020-04-16 12:46:42'),
('1250646779918028801','1249645276885422081','1250646779880280065',4,'2020-04-16 12:46:42'),
('1250825513887338497','1250825513870561281','1250825513870561281',0,'2020-04-17 00:36:56'),
('1250825513891532802','1250327528271253505','1250825513870561281',1,'2020-04-17 00:36:56'),
('1250825513891532803','1249647377699049474','1250825513870561281',2,'2020-04-17 00:36:56'),
('1250825513891532804','1249647179123920897','1250825513870561281',3,'2020-04-17 00:36:56'),
('1250825513891532805','1249646645646200834','1250825513870561281',4,'2020-04-17 00:36:56'),
('1250825513891532806','1249646154606448642','1250825513870561281',5,'2020-04-17 00:36:56'),
('1250825513891532807','1249645276885422081','1250825513870561281',6,'2020-04-17 00:36:56'),
('1250996158046670849','1250996157996339202','1250996157996339202',0,'2020-04-17 11:55:01'),
('1250996158063448065','1249646154606448642','1250996157996339202',1,'2020-04-17 11:55:01'),
('1250996158063448066','1249645276885422081','1250996157996339202',2,'2020-04-17 11:55:01'),
('1250996511056072705','1250996511001546754','1250996511001546754',0,'2020-04-17 11:56:25'),
('1250996511064461314','1249646154606448642','1250996511001546754',1,'2020-04-17 11:56:25'),
('1250996511068655617','1249645276885422081','1250996511001546754',2,'2020-04-17 11:56:25'),
('1251052016986230786','1251052016969453569','1251052016969453569',0,'2020-04-17 15:36:58'),
('1251052016994619393','1250327528271253505','1251052016969453569',1,'2020-04-17 15:36:58'),
('1251052016998813697','1249647377699049474','1251052016969453569',2,'2020-04-17 15:36:58'),
('1251052016998813698','1249647179123920897','1251052016969453569',3,'2020-04-17 15:36:58'),
('1251052016998813699','1249646645646200834','1251052016969453569',4,'2020-04-17 15:36:58'),
('1251052016998813700','1249646154606448642','1251052016969453569',5,'2020-04-17 15:36:58'),
('1251052016998813701','1249645276885422081','1251052016969453569',6,'2020-04-17 15:36:58'),
('1251155008590712833','1251155008557158401','1251155008557158401',0,'2020-04-17 22:26:14'),
('1251155008599101442','1249647377699049474','1251155008557158401',1,'2020-04-17 22:26:14'),
('1251155008603295745','1249647179123920897','1251155008557158401',2,'2020-04-17 22:26:14'),
('1251155008603295746','1249646645646200834','1251155008557158401',3,'2020-04-17 22:26:14'),
('1251155008603295747','1249646154606448642','1251155008557158401',4,'2020-04-17 22:26:14'),
('1251155008603295748','1249645276885422081','1251155008557158401',5,'2020-04-17 22:26:14'),
('1251159499113238530','1251159499092267009','1251159499092267009',0,'2020-04-17 22:44:04'),
('1251159499113238531','1250327528271253505','1251159499092267009',1,'2020-04-17 22:44:04'),
('1251159499113238532','1249647377699049474','1251159499092267009',2,'2020-04-17 22:44:04'),
('1251159499113238533','1249647179123920897','1251159499092267009',3,'2020-04-17 22:44:04'),
('1251159499113238534','1249646645646200834','1251159499092267009',4,'2020-04-17 22:44:04'),
('1251159499113238535','1249646154606448642','1251159499092267009',5,'2020-04-17 22:44:04'),
('1251159499113238536','1249645276885422081','1251159499092267009',6,'2020-04-17 22:44:04'),
('1251181040538488834','1251181040496545794','1251181040496545794',0,'2020-04-18 00:09:40'),
('1251181040546877441','1249646154606448642','1251181040496545794',1,'2020-04-18 00:09:40'),
('1251181040546877442','1249645276885422081','1251181040496545794',2,'2020-04-18 00:09:40'),
('1251311243789078529','1251311243747135490','1251311243747135490',0,'2020-04-18 08:47:03'),
('1251311243805855745','1251181040496545794','1251311243747135490',1,'2020-04-18 08:47:03'),
('1251311243810050049','1249646154606448642','1251311243747135490',2,'2020-04-18 08:47:03'),
('1251311243814244353','1249645276885422081','1251311243747135490',3,'2020-04-18 08:47:03'),
('1251364397679382529','1251364397654216705','1251364397654216705',0,'2020-04-18 12:18:16'),
('1251364397687771138','1249647766947237890','1251364397654216705',1,'2020-04-18 12:18:16'),
('1251364397687771139','1249647377699049474','1251364397654216705',2,'2020-04-18 12:18:16'),
('1251364397700354050','1249647179123920897','1251364397654216705',3,'2020-04-18 12:18:16'),
('1251364397700354051','1249646645646200834','1251364397654216705',4,'2020-04-18 12:18:16'),
('1251364397700354052','1249646154606448642','1251364397654216705',5,'2020-04-18 12:18:16'),
('1251364397700354053','1249645276885422081','1251364397654216705',6,'2020-04-18 12:18:16'),
('1251476785493708801','1251476785481125889','1251476785481125889',0,'2020-04-18 19:44:51'),
('1251476785502097410','1249647766947237890','1251476785481125889',1,'2020-04-18 19:44:51'),
('1251476785502097411','1249647377699049474','1251476785481125889',2,'2020-04-18 19:44:51'),
('1251476785502097412','1249647179123920897','1251476785481125889',3,'2020-04-18 19:44:51'),
('1251476785502097413','1249646645646200834','1251476785481125889',4,'2020-04-18 19:44:51'),
('1251476785502097414','1249646154606448642','1251476785481125889',5,'2020-04-18 19:44:51'),
('1251476785502097415','1249645276885422081','1251476785481125889',6,'2020-04-18 19:44:51');
DROP TABLE IF EXISTS `jd_timeline_goods`;
CREATE TABLE `jd_timeline_goods` (
`id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
`sku_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品id',
`publisher_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '发布人id',
`image_url` varchar(1024) NOT NULL DEFAULT '' COMMENT '分享图',
`content` varchar(1024) NOT NULL DEFAULT '' COMMENT '发圈内容',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_user`;
CREATE TABLE `jd_user` (
`id` bigint(20) NOT NULL,
`nick_name` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名',
`avatar_url` varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享图',
`phone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
`identify` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户身份(导师,合伙人)',
`invitation_code` varchar(10) NOT NULL DEFAULT '' COMMENT '邀请码',
`inviter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '邀请人用户id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
`role_name` varchar(32) NOT NULL DEFAULT 'MEMBER' COMMENT '成员角色',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_invitation_code` (`invitation_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_user`(`id`,`nick_name`,`avatar_url`,`phone`,`identify`,`invitation_code`,`inviter_id`,`create_time`,`role_name`) values
('1249645276885422081','系统用户','','',1,'PBP1TP',0,'2020-04-13 18:27:05','MEMBER'),
('1249646154606448642','惊天霸戈','https://wx.qlogo.cn/mmopen/vi_32/LCEZLO6xdqicB6bB2wQHLdTbDnCmicLqu7ibnAs4yib3iaee2VZXZrszm9ZvicyUPhFy3kxPUKxqZWUh0sPFq5nhEeQg/132','18817096723',3,'AS3PSV','1249645276885422081','2020-04-13 18:44:30','ADMIN'),
('1249646645646200834','NULL NULL bug','https://wx.qlogo.cn/mmopen/vi_32/w9Qqaicic2vnrD4xmQ4VU8licdXqQUlEGjOgdNcO4LWiaaic1fZTys9IiaMsqEwtmfrdajlA4jWFq9GKvkLCuRZMBPYg/132','15700701570',3,'0XPZ6R','1249646154606448642','2020-04-13 18:32:32','MEMBER'),
('1249647179123920897','漫步天空的鱼 ','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83ep1J5W23GsduT7eoxB0VUH12nzYYJicxj3T5Z7Vnf6d8eSaCAhUV5UqgCd3ZdmCWqrK0EzphaU0ewg/132','15674980439',3,'BXW8N2','1249646645646200834','2020-04-13 18:34:39','MEMBER'),
('1249647377699049474','大灰狼᭄ꫛꪝ','https://wx.qlogo.cn/mmopen/vi_32/Cp6oMCj4n8d2icpSMZeuQLa2gwXEgibVH2r5b9vibm8mnSIOTbb38tjgDkTJ9y5GBDX8WMuCgQkZmeibt0Kuia4Q9hA/132','18073692882',3,'GTXY4M','1249647179123920897','2020-04-13 18:35:26','MEMBER'),
('1249647766947237890','伍星','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKeBn4LFgzpXMBmrAcMRvOl0vibkYDAMibbpIchCBJoaPUT8ePlicEH58RWaiadXJSBtyHF9JubGlPyvg/132','15576622046',2,'CZZ47L','1249647377699049474','2020-04-13 18:36:59','MEMBER'),
('1249647976792461313','🐭','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJZFvrWqkibKOtTYsBl7Ovq6JVuYHibWwicyibZL1SicIqHOCaGhMAxAEVY8Hg2gpKkelMmxCSricR45wqg/132','15367842658',2,'BVPERE','1249647766947237890','2020-04-13 18:37:49','MEMBER'),
('1249660183160819714','佰创科技,专业软件定制','https://wx.qlogo.cn/mmopen/vi_32/9MjR2XUtd7RibDUm3p2hoJutquAfmPH5rSlWGoa0vsZKhDfIhrZZA4BdiaibAT1yFV8vA8LsicMuDnIgicmHXXIkbxg/132','15399928823',1,'YDYFVZ','1249647976792461313','2020-04-13 19:26:19','MEMBER'),
('1250327528271253505','有生命的线条','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKM6n8DJtQwNLBFDlZTVRZ69AhYlGAOQTSibBhFP4gCBsHcoicNUAjddHG99342liaIiaCXtzATRwGonQ/132','15243677665',3,'P33119','1249647377699049474','2020-04-15 15:38:07','MEMBER'),
('1250335058540105729','不过平头百姓而已','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83epu2ts9GReslKtLh9mgIUBJMp0vROg7fAn89HicPkaawrARIibBZPAKmaUuATasEwbWvlk4cWxdUmXA/132','13507431619',1,'BP8MNU','1249647377699049474','2020-04-15 16:08:02','MEMBER'),
('1250348825445404674','快乐2020🐁','https://wx.qlogo.cn/mmopen/vi_32/6PbKL8YRE2zFwvqvkfMpSAVc9ibd3lb8haZqZDTdLZ8BtuBia6Xtp3JHibzVxNTddl9YNMibWSPyxuVesynPxBNfTQ/132','15217585808',1,'2JFJ1L','1249646645646200834','2020-04-15 17:02:45','MEMBER'),
('1250354910881386498','Ther','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLJzrtHs9DeaJkkFn4QBJxNJiao5pDfujRREywE4riaFIZN4iaRcSJHVl0fZOI74FOPtIWUpqD6OAmag/132','18350247600',1,'6WYAZV','1249647377699049474','2020-04-15 17:26:55','MEMBER'),
('1250362253027315714','兴腾站刘新¹⁸⁶⁹²²⁶⁵⁷⁴⁷','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eofl7wbZfn2ODj2zxiaYIdDNp4FIe7oW3bicZLeoyzfOBT6AXtSIZtLI578QWAyKAq9kV25mE9CHOBQ/132','18692265747',1,'JWFR5P','1249647377699049474','2020-04-15 17:56:06','MEMBER'),
('1250382285216157697','香草味布丁','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKaVsd5xbNGt9JNDNYPrtk723R3HfpecTwl34XR2NmbqZmwibficOicsIZpvSPZshjfqLKjAPypib39pw/132','13272480847',1,'R691T4','1249646645646200834','2020-04-15 19:15:42','MEMBER'),
('1250383191160655874','曾小敏','https://wx.qlogo.cn/mmopen/vi_32/JeagDnsoReLIW9m05pEG8kGf3xhXlDvyvnLRZP9GtYicibbsxWmIMlK4gAASOYKotxHEayCYCkM0aqGGE3HdkJcQ/132','16680919892',1,'QF3QYK','1249647377699049474','2020-04-15 19:19:18','MEMBER'),
('1250644514880622594','灿烂阳光','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoiab8HO17eD4YJA7ux5z6lKlpUAOyGkfVk3TrVR8jVCZnicBPlckDicmXOibD0PZaHFibhWiaDGRkvIfGQ/132','17873634335',1,'SJMNAK','1250382285216157697','2020-04-16 12:37:42','MEMBER'),
('1250646779880280065','王运街','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLosbX33zKcpgrEFIpUIpvYGqj6SXzibWaeRfDD2ITtdev2GsiaMzfeXw8yAUjXRmqEzar9ibPrLKfvQ/132','13054049621',1,'7T9E9S','1250382285216157697','2020-04-16 12:46:42','MEMBER'),
('1250825513870561281','毛丽琼','https://wx.qlogo.cn/mmopen/vi_32/dliaGpsxSic6ITW76R5I4TPUHibVNuAkvfnoKxFR399o03HtxLno5WDuMVWnl8ergLnlqOvLwsleibx9X8icovOPApw/132','18073622100',1,'TRVQWU','1250327528271253505','2020-04-17 00:36:56','MEMBER'),
('1250996157996339202','刘栋财','https://wx.qlogo.cn/mmopen/vi_32/dicCNxib8B5xJkUNaZlqUsibjk5B7Hk0fPAQGBj929FrFUUxNH0wqHAeVrK7qobcIfdcoe1aqB7VaA9f2ToqmXLgg/132','18073684790',1,'07BRL3','1249646154606448642','2020-04-17 11:55:01','MEMBER'),
('1250996511001546754','LF','https://wx.qlogo.cn/mmopen/vi_32/JLDdiba5ia9FibcIxNoWS5gFNmsXLuou6hoARCDnqtUezO20LyhpmL12I22qUlEzMZ08yhItib21tZcxmWPCcoZZoQ/132','15367740153',1,'GTZRZL','1249646154606448642','2020-04-17 11:56:25','MEMBER'),
('1251052016969453569','','https://wx.qlogo.cn/mmopen/vi_32/9jLGxrIYxWobrrotSJeFqDATic7aFfARFBI84qjOccYHo4Q8QzLbpW9wsltR30F02Ga1KANl2E3sWjPQEug4T3w/132','13975150979',1,'ZSZR6C','1250327528271253505','2020-04-17 15:36:58','MEMBER'),
('1251155008557158401','飞来的海豚🐬 (IRIS)','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoabIUTANY5ypElA44vJs5xC9lr5FQhhcJ6FvMo5sMElObicDKGW75RZeFKMIUjLV0XBXncJic34Chw/132','15880778201',1,'RLULP0','1249647377699049474','2020-04-17 22:26:14','MEMBER'),
('1251159499092267009','A常德市汉寿县皇家花园13875088060','https://wx.qlogo.cn/mmopen/vi_32/RE9hVpGRhc9HIal5p7LrXlg7ZsdZiaavicLGyAI69hDHqe0oDVGVHD9BKc3BHcLickaSiakXAm8kCb6AbxdlVicRw5Q/132','13875088060',1,'MA2G1W','1250327528271253505','2020-04-17 22:44:04','MEMBER'),
('1251181040496545794','小金木','https://wx.qlogo.cn/mmopen/vi_32/N1cac8muiaqp6vaMUFUViaibVtMBYVont2GqmyM4SJCAOCD1eaiaHyBvXPPS49jPIHTNtn9tfCjSM4GtFloSPxPcjg/132','18182141340',1,'JE10DA','1249646154606448642','2020-04-18 00:09:40','MEMBER'),
('1251311243747135490','1906','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLPBAo3d2YgLe3Wzicw7VZQARTpt2bG2maLSORVvzumCnypqZtgNAddibB8OgZLXFZtKAnu6eG6B3JQ/132','18175629623',1,'QPPSDX','1251181040496545794','2020-04-18 08:47:03','MEMBER'),
('1251364397654216705','骑猪野人','https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIYlggyUrP7E5D3ATMA3llfsfVDs7ZHLZYOFVGFOUSY9PRpVRHrFg1w2YWWw9QDWIQ61icTdowHibTQ/132','18610795059',1,'R8LVG3','1249647766947237890','2020-04-18 12:18:16','MEMBER'),
('1251476785481125889','YunSani','https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83epfLnJeIlkrEu47VKCmPY3ZCAPM6kYeWjfPnQXiarGXiaDU6HYd68hfJZKHKY3kBjvlkXwU0Qg6oK5w/132','17608448169',1,'3X4J88','1249647766947237890','2020-04-18 19:44:51','MEMBER');
DROP TABLE IF EXISTS `jd_wallet`;
CREATE TABLE `jd_wallet` (
`id` bigint(20) NOT NULL,
`balance` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '钱包余额',
`balance_freeze` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '已被冻结的金额',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '钱包状态',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_wallet_transaction_flow`;
CREATE TABLE `jd_wallet_transaction_flow` (
`id` bigint(20) NOT NULL COMMENT '记录id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`amount` decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '费用数量',
`order_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '交易id',
`transaction_time` datetime NOT NULL COMMENT '交易时间',
`transaction_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '交易类型(0 未知1收入2支出 ',
`transaction_biz` tinyint(4) NOT NULL DEFAULT '0' COMMENT '交易业务类型 ',
`remark` varchar(255) NOT NULL DEFAULT '' COMMENT '流水备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `jd_wechat_group`;
CREATE TABLE `jd_wechat_group` (
`id` bigint(20) NOT NULL,
`group_id` int(11) NOT NULL COMMENT '群组id',
`group_name` varchar(64) NOT NULL COMMENT '组名称',
`owner_id` bigint(20) NOT NULL COMMENT '归属人id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间',
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='分享海报';
DROP TABLE IF EXISTS `jd_wechat_user`;
CREATE TABLE `jd_wechat_user` (
`id` bigint(20) NOT NULL COMMENT 'id',
`user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '用户id',
`session_key` varchar(255) NOT NULL DEFAULT '' COMMENT '会话密钥',
`wechat_id` varchar(255) NOT NULL DEFAULT '' COMMENT '微信号',
`open_id` varchar(255) NOT NULL DEFAULT '' COMMENT '用户唯一标识',
`union_id` varchar(255) NOT NULL DEFAULT '' COMMENT '用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `jd_wechat_user`(`id`,`user_id`,`session_key`,`wechat_id`,`open_id`,`union_id`,`create_time`) values
('1249646645721698306','1249646645646200834','4kQYZ7lznf2EfzWAQHRaDA==','wuli_wuxiansen','ostG55SIgJGucXBPW9FF4kXUvQDE','oNCj5w_TGlfVSWPJVgnncYT5BgQI','2020-04-13 18:32:32'),
('1249647179195224066','1249647179123920897','jViV0l9+/YddpRH9rWGdmg==','crystal9524','ostG55cqGSeXyqOlcxpDFQz-p76Q','','2020-04-13 18:34:39'),
('1249647377791324162','1249647377699049474','bjQub77/qEYbIApPilk9qw==','Shoujijadt','ostG55UrBsInb1B8UQNUSvaNZUBo','','2020-04-13 18:35:26'),
('1249647767035318273','1249647766947237890','wHOKh8AMwQlMNPXyM1Hgow==','wuxing','ostG55cOduWJjfpmtxikQAS9shcg','oNCj5w2w7m6NyyL4Lq7IyfXyk7ak','2020-04-13 18:36:59'),
('1249647976880541697','1249647976792461313','2Nb6oPFGv0CfNzdBqapOEw==','laoshuzi-777','ostG55bEOkbmR-EFWDIB7-7mlyzk','oNCj5w1dBjMturL8--k0NK5UcISQ','2020-04-13 18:37:49'),
('1249649658788057090','1249646154606448642','ayPSkiSwp2hV3uW//9EE5A==','head_main','ostG55bDoaEKkwSn3qgN1Ubncj6U','oNCj5w1xr4Ho1Tj7OFE0-NdiUH6s','2020-04-13 18:44:30'),
('1249660183227928578','1249660183160819714','K+NfN5tFjfMTGZE1PSiloQ==','csbaic','ostG55b6yIdcTtht2gOv-61tlXjA','oNCj5w8a9qLSiPVDYoixvisRM4dc','2020-04-13 19:26:19'),
('1250327528409665538','1250327528271253505','GMqPiMDsldIcwGLST/xQGw==','h1017247134','ostG55SwVQj2K5PuWPnuO__EKTmA','','2020-04-15 15:38:07'),
('1250335058548494343','1250335058540105729','x6Anti6QK2gM1kbhavy9kA==','','ostG55Z25hERr0UHekxFTHSpvykk','','2020-04-15 16:08:02'),
('1250348825499930625','1250348825445404674','tEZMlQainW6XxQwHU8Jxpw==','','ostG55ecDv2829a_CONBAyz3Q3_8','','2020-04-15 17:02:45'),
('1250354910935912450','1250354910881386498','4SoYVh+cRQ1nCjCmqtuH+Q==','','ostG55YTZLnrFAiIGzgOZ4a7_xsM','','2020-04-15 17:26:55'),
('1250362253081841670','1250362253027315714','TLi8lMYGxGB2P+7BKKLgzQ==','','ostG55REHHWXGin7DTUsVEv0rQLA','','2020-04-15 17:56:06'),
('1250382285258100737','1250382285216157697','Q5CeKv3TvTcIqaIxC+o6dw==','','ostG55fa3XE_5T7escJc-zIPH6X8','','2020-04-15 19:15:42'),
('1250383191206793217','1250383191160655874','5fY45eHmSY51Xuk/mmnGWA==','','ostG55c86JZyM71KqgIpQZz7-ao4','','2020-04-15 19:19:18'),
('1250644514926759938','1250644514880622594','xvWXr6CVdNwaE+qVDM7LGQ==','','ostG55Zy7IY6uZ9euXsAVDvMd4dY','','2020-04-16 12:37:42'),
('1250646779926417410','1250646779880280065','5sT4ag5oSaFLzZGNw9LJWA==','','ostG55VjwWUQDiMwMiWS5jrBzDjg','','2020-04-16 12:46:42'),
('1250825513904115713','1250825513870561281','evCH6Rdqx/rQkvQ4GsmW3w==','','ostG55Y0vsqRd6YQZnEiPM3F4ZXg','','2020-04-17 00:36:56'),
('1250996158080225282','1250996157996339202','BDS2DhMiE3HlufImSvmtXg==','','ostG55Zyqgc9KqDz16Dk6ThuGYHE','','2020-04-17 11:55:01'),
('1250996511072849921','1250996511001546754','mwJBhu18FtEAPv65c9nckg==','LFang_','ostG55XNzqN5XOk2bfEMZT31cuNo','','2020-04-17 11:56:25'),
('1251052017007202305','1251052016969453569','nZPuqXH0WQL+Ab9SdAvQOA==','','ostG55W4QAwr8rf81TyQaZ34RUVw','','2020-04-17 15:36:58'),
('1251155008611684354','1251155008557158401','Q2Af7kpnaxcJaG+kiHjQXQ==','','ostG55Twg9P6oE_NVYZQFUWuxPK0','','2020-04-17 22:26:14'),
('1251159499134210049','1251159499092267009','Jl1qAL6G9Gi6JOi84yV5yQ==','','ostG55aefzDxRt0O6PRJsUA-LRZM','','2020-04-17 22:44:04'),
('1251181040551071745','1251181040496545794','TSELzm6v2Fdg8pXORabU3A==','','ostG55VkyNgFw08YzMT_ElPFP0wE','','2020-04-18 00:09:40'),
('1251311243822632962','1251311243747135490','JWBIrBIZBDrjLV1a0CXFiw==','','ostG55TP-s7PB6UOLpHOtcU1kHxU','','2020-04-18 08:47:03'),
('1251364397708742658','1251364397654216705','yBtYiKGrVvnYfsfcIEx1kQ==','','ostG55XDeZ0LOucEaTNSJrJtMd2g','','2020-04-18 12:18:16'),
('1251476785510486018','1251476785481125889','zmIkdqH9yrrPtykos8+DXQ==','','ostG55XH6ZJEZFxy3oOIpWm-sZhw','','2020-04-18 19:44:51');
DROP TABLE IF EXISTS `jd_withdraw_order_payment`;
CREATE TABLE `jd_withdraw_order_payment` (
`id` bigint(20) NOT NULL COMMENT 'id',
`partner_trade_no` varchar(32) NOT NULL DEFAULT '' COMMENT '商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)',
`payment_no` varchar(64) NOT NULL DEFAULT '' COMMENT '企业付款成功,返回的微信付款单号',
`payment_time` varchar(32) NOT NULL DEFAULT '' COMMENT '企业付款成功时间',
`amount` int(11) NOT NULL COMMENT '支付金额(单位:分)',
`device_info` varchar(32) NOT NULL DEFAULT '' COMMENT '微信支付分配的终端设备号',
`payment_desc` varchar(100) NOT NULL DEFAULT '' COMMENT '支付备注',
`result_code` varchar(16) NOT NULL COMMENT 'SUCCESS/FAIL注意当状态为FAIL时存在业务结果未明确的情况。如果状态为FAIL请务必关注错误代码err_code字段通过查询查询接口确认此次付款的结果。',
`err_code` varchar(32) NOT NULL DEFAULT '' COMMENT '错误码信息注意出现未明确的错误码时SYSTEMERROR等请务必用原商户订单号重试或通过查询接口确认此次付款的结果。',
`err_code_des` varchar(128) NOT NULL DEFAULT '' COMMENT '结果信息描述',
PRIMARY KEY (`id`),
UNIQUE KEY `partner_trade_no` (`partner_trade_no`),
UNIQUE KEY `payment_no` (`payment_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='提现支付操作记录';
SET FOREIGN_KEY_CHECKS = 1;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
scp ~/Desktop/jd-coupon-backend/jd-union-com.csbaic.rbac.dao.service/target/jd-union-com.csbaic.rbac.dao.service-0.0.1-SNAPSHOT.jar root@www.csbaic.com:/root/jd-union-com.csbaic.rbac.dao.service-0.0.1-SNAPSHOT.jar

View File

@ -0,0 +1,27 @@
# 添加微信群组表
DROP table if exists jd_wechat_group;
create table if not exists jd_wechat_group
(
id bigint not null primary key ,
group_id int NOT NULL UNIQUE COMMENT '群组id',
group_name varchar(64) not null COMMENT '组名称',
owner_id bigint NOT NULL COMMENT '归属人id',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '发布时间'
)
COMMENT '分享海报';
# 超级会员申请表
DROP table if exists jd_super_member_apply;
create table if not exists jd_super_member_apply
(
id bigint not null primary key ,
owner_id bigint not null COMMENT '申请人',
group_id int NOT NULL UNIQUE COMMENT '群组id',
image_urls VARCHAR(260) NOT NULL DEFAULT '' COMMENT '申请图',
status tinyint NOT NULL DEFAULT 1 COMMENT '申请状态',
remark varchar(64) NOT NULL DEFAULT '' COMMENT '备注信息',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '申请时间'
)
COMMENT '超级会员申请表';

View File

@ -0,0 +1,128 @@
# 海报文字长度增加到1024
ALTER TABLE jd_share_poster MODIFY content varchar(1024) NOT NULL DEFAULT '' COMMENT '海报文字内容';
# 活动添加status字段
ALTER TABLE jd_activity ADD status tinyint DEFAULT 1 NOT NULL AFTER end_time;
# 重建订单表sku表修改主键
# 重建jd_news
# 重建jd_banner
# 添加常见问题
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741770884034562, '商品类', 'goodsfill', 1, '2020-03-25 17:15:01');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741792610529282, '售后类', 'servicefill', 1, '2020-03-25 17:15:07');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741824084586498, '订单类', 'shopfill', 1, '2020-03-25 17:15:14');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741853012701185, '收益类', 'moneybagfill', 1, '2020-03-25 17:15:21');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741895224176642, '违规订单类', 'warnfill', 1, '2020-03-25 17:15:31');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741930515050497, '其他问题', 'questionfill', 1, '2020-03-25 17:15:39');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742075793158145, 1242741770884034562, '优惠券只能一个号领一次吗?', '优惠券数量有限,一般情况一个账号仅能领用一次。', '2020-03-25 17:16:14');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742267862921218, 1242741770884034562, '部分商品分货较慢是什么原因?', '部分商家的产品是第三方POP商家使用的是第三言主物流一般送货速度会较慢。另外在大促活动期间商家积压的订单比较多可能发货会较慢。
线950618', '2020-03-25 17:17:00');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742614790582273, 1242741792610529282, '如何申请售后服务?', '申请售后常用的2个流程
1->->->->
2APP->->', '2020-03-25 17:18:23');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742683598139394, 1242741792610529282, '对收到的产品不满意 ', '按照京东7天元理由退货政策您收到货发现有问题可以与商家协商退货和退款如协商不成您可以拨打东京客服电话950618按2进入按键导航根据语言提示按7再按1然后输入收货人手机号确认手机号按1然后再输入订单后四位等待人工客服接起。', '2020-03-25 17:18:39');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742750933495809, 1242741792610529282, '为什么通过平台下单的商品售后问题需要联系京东处理?', '平台只提供商品链接,分享商品优惠信息,并不提供下单购买等服务,您实际下单仍是在京东内完成,商品也是由京东提供,所以如果产生售后问题,需要您联系京东商场协商处理。', '2020-03-25 17:18:55');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742960657084418, 1242741824084586498, '如何查看该校是的物流信息?', '查看订单的3个途经
1->->->->->->->
2->->->->
APP订单界面查看订单
3APP->', '2020-03-25 17:19:45');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743068148707330, 1242741824084586498, '如何知道是谁下的单?', '东京注重保护客户隐私,您看不到客户姓名、电话等隐私信息。', '2020-03-25 17:20:11');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743117427585025, 1242741824084586498, '为什么我的订单会显示“无效-取消”?', '如果客户下单付款后又取消了此订单,则订单详情内会显示“无效-取消”标识。', '2020-03-25 17:20:22');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743201657597954, 1242741824084586498, '订单中显示红色“跨店“标志是什么意思?', '关于跨店的解析:
广A店铺商品的推广主链接进行东京B店铺商品', '2020-03-25 17:20:42');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743268615467009, 1242741824084586498, '为什么订单会显示”无效-拆单”', '拆单是系统根据该订单内的产品类目及仓库中无师进行拆分,已拆单导致父订单无效,但不会影响佣金收益,已拆单的订单佣金是按照拆单后形成的子订单号计算佣金的。 ', '2020-03-25 17:20:58');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743319614009346, 1242741824084586498, '订单显示“无效-非推广商品”是什么意思?', '根据京东推广规则,“无效-非推广商品”是批该商品商家没有设置佣金 或跨店佣金为0或者Plus会员购买为0的商品此类订单不会获得推广收益。', '2020-03-25 17:21:11');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743382734090241, 1242741824084586498, '客户订单在东京已经付款,为什么在平台显示待付款', '客户在京东20分钟内付款的订单状态会及时更新到小程序中如果20分钟后付款的订单状态会在次日更新可在第二天进行查看不会影响您的收益。', '2020-03-25 17:21:26');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743781218136065, 1242741824084586498, '客户购买了商品在京东APP中可以看到订单但您在平台小程序中看不到推广订单', '1平台小程序没有这个商品或活动已结束商品已经在平台为下架状态所以小程序中不会显示订单
2
35-10
4
5APP
6
7Plus会员买没佣且买了不跟单', '2020-03-25 17:23:01');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743928740196354, 1242741853012701185, '我的收益有哪几种类型?', '推广收益:您的直属会员在小程序自购,或者您分享的商品促成别人购买所得到的收益。
广
', '2020-03-25 17:23:36');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743986168606721, 1242741853012701185, '什么是“预估收益”及“预估收益”会变少的原因是什么?', '根据京东的推广规则:预估收益是根据用户一瞬间时间预估统计的推广效果数据,并非实际结算收益,取消已付款的订单或者退换货后对应的收益会相应的扣除,实际收益以订单结算为准。', '2020-03-25 17:23:50');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744363194593282, 1242741853012701185, '为什么我的订单收益为0', '1执照京东的返佣规则 ,乡村推广账号、企业账号、分期付款用户、以开具增值税运用发票的订单是没有收益的。
广 广广
Plus会员账号说明Plus账号是东京的一种会员账号类型0
2使E卡等京东虚拟货币 0.
30
4Plus会员ghuj3的订单
5', '2020-03-25 17:25:19');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744421667385346, 1242741853012701185, '订单显示的收益和选品时看到预估“预估收益”不一样?', '您选品时看到的收益金额为预估推广收益由于客户在一瞬间时可能会使用京券、余额、京豆和E卡等京东虚拟货币导致收益减少导致订单收益变少的情况发生。', '2020-03-25 17:25:33');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744555805421569, 1242741853012701185, '每月提现金额和”预估收益“不一致?', '所有的收益都是按照系统设计好的规则进行,不存在 恶意扣除等总是,可提现收益跟预估收益不一致原因有以下两点:
1退
2 广
15 退 退 ', '2020-03-25 17:26:05');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744635073572866, 1242741853012701185, '#### 同一个商品链接,同种商品计佣金额,佣金 怎么算的不同?', '1同店同种商品也会因为商品规格 不同有不同的商品编码,故设置的佣金不同,可能商家设置的佣金也不同。
2广广广', '2020-03-25 17:26:24');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745099500466178, 1242741895224176642, '为什么会有违规订单?', '平台内推广的商品,有一些是商家通过打造引流爆款产品亏本促销,从而提升商品或店铺在东京内的搜索排名,促销完成后,需要长尾的带动整体销售利润。
1广
2广
广 ', '2020-03-25 17:28:15');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745257789304834, 1242741895224176642, '我自己购买的商品被判定为”违规订单“,如何申斥?', '如果对订单判断有疑问,我们可以帮您进行早逝处理,您需要提供以下三张照片,通过客服转交进行申斥。
1
2
3
35 ', '2020-03-25 17:28:53');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745347664850946, 1242741895224176642, '如何避免”违规订单“?', '1请务必不要代下单如遇首次购物用户耐心引导即可。
230', '2020-03-25 17:29:14');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745460017672194, 1242741930515050497, '一人多微信号怎么提现?', '可以绑定同一人的身份证,同一个银行卡完成提现。', '2020-03-25 17:29:41');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745508176670722, 1242741930515050497, '更换了微信头像和昵称,小程序不同步?', '小程序的微信昵称和头像微信不同步,后续会提供相应功能更新昵称头像功能。', '2020-03-25 17:29:52');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745630994280450, 1242741930515050497, '邀请另人加入后,我们之间都有什么关系?', '直属注册会员:通过您直接邀请注册的会员。
', '2020-03-25 17:30:22');

View File

@ -0,0 +1,15 @@
# 消息
DROP TABLE if exists jd_message;
create table if not exists jd_message
(
id bigint not null primary key ,
title varchar(255) NOT NULL DEFAULT '' COMMENT '消息标题',
content VARCHAR(1024) NOT NULL DEFAULT '' COMMENT '消息内容',
start_time datetime not null comment '消息开始时间',
end_time datetime not null comment '消息结束时间',
type tinyint NOT NULL DEFAULT 0 COMMENT '消息类型',
status TINYINT NOT NULL DEFAULT 0 COMMENT '消息状态1: 自动2显示3未显示',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
)
COMMENT '新闻';

View File

@ -0,0 +1,22 @@
ALTER TABLE jd_wallet_transaction_flow CHANGE fee_amount amount decimal(9,4) NOT NULL DEFAULT '0.0000' COMMENT '费用数量';
ALTER TABLE jd_wallet_transaction_flow CHANGE transaction_id order_id bigint(20) NOT NULL DEFAULT '0' COMMENT '交易id';
DROP TABLE if exists jd_withdraw_order_payment;
CREATE TABLE IF NOT EXISTS jd_withdraw_order_payment(
id bigint NOT NULL PRIMARY KEY COMMENT 'id',
partner_trade_no VARCHAR(32) not null UNIQUE DEFAULT '' COMMENT '商户订单号,需保持历史全局唯一性(只能是字母或者数字,不能包含有其它字符)',
payment_no VARCHAR(64) NOT NULL UNIQUE DEFAULT '' COMMENT '企业付款成功,返回的微信付款单号',
payment_time VARCHAR(32) NOT NULL DEFAULT '' COMMENT '企业付款成功时间',
amount int NOT NULL COMMENT '支付金额(单位:分)',
device_info VARCHAR(32) NOT NULL DEFAULT '' COMMENT '微信支付分配的终端设备号',
payment_desc varchar(100) NOT NULL DEFAULT '' COMMENT '支付备注',
result_code VARCHAR(16) NOT NULL COMMENT 'SUCCESS/FAIL注意当状态为FAIL时存在业务结果未明确的情况。如果状态为FAIL请务必关注错误代码err_code字段通过查询查询接口确认此次付款的结果。',
err_code VARCHAR(32) NOT NULL DEFAULT '' COMMENT '错误码信息注意出现未明确的错误码时SYSTEMERROR等请务必用原商户订单号重试或通过查询接口确认此次付款的结果。',
err_code_des VARCHAR(128) NOT NULL DEFAULT '' COMMENT '结果信息描述'
) COMMENT '提现支付操作记录'

View File

@ -0,0 +1,19 @@
# 新人上手
DROP TABLE IF EXISTS jd_member_quick_start;
CREATE TABLE IF NOT EXISTS jd_member_quick_start(
id BIGINT PRIMARY KEY COMMENT '记录id',
title VARCHAR(32) NOT NULL DEFAULT '' COMMENT '新人上路标题',
content VARCHAR(512) NOT NULL DEFAULT '' COMMENT '新人上路说明',
video_url VARCHAR(256) NOT NULL DEFAULT '' COMMENT '视频地址',
type tinyint NOT NULL DEFAULT 1 COMMENT '跳转页面、复制、显示图片',
style tinyint NOT NULL DEFAULT 1 COMMENT '显示样式',
action VARCHAR(16) NOT NULL DEFAULT '' COMMENT '操作提示',
data VARCHAR(256) NOT NULL DEFAULT '' COMMENT '操作内容',
sort tinyint NOT NULL DEFAULT 1 COMMENT '显示顺序',
create_time datetime NOT NULL DEFAULT now() COMMENT '创建时间'
) COMMENT '新人上手';

View File

@ -0,0 +1 @@
ALTER TABLE jd_order_sku CHANGE sub_unionId sub_union_id varchar(255) NOT NULL DEFAULT '' COMMENT '子联盟ID(需要联系运营开放白名单才能拿到数据)';

View File

@ -0,0 +1 @@
ALTER TABLE jd_member_commission ADD fee_type tinyint NOT NULL DEFAULT 0 AFTER actual_commission_fee;

View File

@ -0,0 +1,16 @@
# 问题分组添加是否展开列
ALTER TABLE jd_question_category ADD open tinyint DEFAULT 1 NOT NULL AFTER icon ;
# 添加分享海报功能
DROP table if exists jd_share_poster;
create table if not exists jd_share_poster
(
id bigint not null primary key ,
title VARCHAR(64) NOT NULL DEFAULT '' COMMENT '海报名称',
icon_url varchar(512) not null default '' COMMENT '图标Url',
image_url varchar(512) NOT NULL default '' COMMENT '分享图',
content varchar(256) NOT NULL default '' COMMENT '海报文字内容',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '发布时间'
)
COMMENT '分享海报';

View File

@ -0,0 +1,384 @@
drop database if exists `jd_union`;
create DATABASE if not exists `jd_union` DEFAULT CHARSET utf8mb4;
USE `jd_union`;
DROP table if exists jd_question_category ;
CREATE TABLE if not exists jd_question_category (
id bigint not null primary key,
name VARCHAR(64) NOT NULL UNIQUE COMMENT '分类名称',
icon VARCHAR(256) NOT NULL COMMENT '小图标',
open tinyint NOT NULL DEFAULT 1 COMMENT '菜单是否展开',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
);
# 添加分享海报功能
DROP table if exists jd_share_poster;
create table if not exists jd_share_poster
(
id bigint not null primary key ,
title VARCHAR(64) NOT NULL DEFAULT '' COMMENT '海报名称',
icon_url varchar(512) not null default '' COMMENT '图标Url',
image_url varchar(512) NOT NULL default '' COMMENT '分享图',
content varchar(1024) NOT NULL default '' COMMENT '海报文字内容',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '发布时间'
)
COMMENT '分享海报';
DROP table if exists jd_question ;
CREATE TABLE if not exists jd_question (
id bigint not null primary key,
cid bigint NOT NULL COMMENT '问题分类ID',
title VARCHAR(64) NOT NULL COMMENT '问题标题',
answer VARCHAR(1024) NOT NULL COMMENT '问题回答',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间',
index index_category(cid)
);
DROP table if exists jd_feedback;
CREATE TABLE if not exists jd_feedback (
id bigint not null primary key,
submitter_id bigint NOT NULL DEFAULT 0 COMMENT '提交人',
content VARCHAR (1024) NOT NULL DEFAULT '' COMMENT '選項的值',
status tinyint NOT NULL default 1 COMMENT '反馈状态'
);
DROP table if exists jd_option;
CREATE TABLE if not exists jd_option (
id bigint not null primary key,
option_name VARCHAR(128) NOT NULL UNIQUE COMMENT '選項key',
option_value VARCHAR(255) NOT NULL COMMENT '選項的值',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
);
DROP table if exists jd_wallet ;
create TABLE if not exists jd_wallet (
id bigint not null primary key,
balance DECIMAL(9,4) NOT NULL DEFAULT 0 COMMENT '钱包余额',
balance_freeze DECIMAL(9,4) NOT NULL DEFAULT 0 COMMENT '已被冻结的金额',
user_id BIGINT NOT NULL DEFAULT 0 COMMENT '用户id',
status tinyint NOT NULL DEFAULT 0 COMMENT '钱包状态',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
);
DROP table if exists jd_apply_withdraw_order;
CREATE table if not exists jd_apply_withdraw_order (
id bigint not null primary key,
applier_id BIGINT NOT NULL DEFAULT 0 COMMENT '申请人用户id',
amount DECIMAL(9,4) NOT NULL DEFAULT 0 COMMENT '申请提现金额',
wechat_id VARCHAR(255) NOT NULL DEFAULT '' COMMENT '收款人微信号',
payee_name VARCHAR(255) NOT NULL DEFAULT '' COMMENT '收款人姓名',
payee_card_id VARCHAR(255) NOT NULL DEFAULT '' COMMENT '收款人身份证号',
status tinyint NOT NULL DEFAULT 0 COMMENT '提现单状态',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
) COMMENT '提现申请单';
DROP table if exists jd_apply_withdraw_order_operate_record;
CREATE table if not exists jd_apply_withdraw_order_operate_record (
id bigint not null primary key,
withdraw_order_id bigint not null DEFAULT 0 COMMENT '提现申请单id',
operator_id bigint not null DEFAULT 0 COMMENT '操作人id',
operator_name VARCHAR(255) NOT NULL DEFAULT '' COMMENT '操作人名称',
operate_time DATETIME NOT NULL DEFAULT now() COMMENT '操作时间',
remark VARCHAR(1014) NOT NULL DEFAULT '' COMMENT '备注'
) COMMENT '提现申请单';
drop table if exists jd_banner;
create table if not exists jd_banner
(
id bigint not null primary key ,
location varchar(2048) NOT NULL DEFAULT '' COMMENT 'banner跳转页面',
cover_url varchar(255) NOT NULL DEFAULT '' COMMENT 'banner封面图',
end_time DATETIME NOT NULL COMMENT '结束时间',
start_time DATETIME NOT NULL COMMENT '开始时间',
status tinyint NOT NULL DEFAULT 0 COMMENT '状态1: 自动2显示3未显示',
title varchar(255) NOT NULL DEFAULT '' COMMENT '标题'
)
COMMENT 'banner表'
;
drop table if exists jd_activity;
create table if not exists jd_activity
(
id bigint not null primary key ,
title varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
share_image varchar(255) NOT NULL DEFAULT '' COMMENT '活动分享图',
logo_image varchar(255) NOT NULL DEFAULT '' COMMENT '活动logo图',
content VARCHAR(1024) NOT NULL DEFAULT '' COMMENT '活动分享文本',
start_time datetime not null DEFAULT now() comment '活动开始时间',
end_time datetime not null DEFAULT now() comment '活动结束时间',
status tinyint NOT NULL DEFAULT 0 COMMENT '状态1: 自动2显示3未显示',
# sku_ids varchar(512) NOT NULL DEFAULT '' COMMENT '商品活动skuId以,号分隔',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
)
COMMENT '活动表';
DROP TABLE if exists jd_news;
create table if not exists jd_news
(
id bigint not null primary key ,
title varchar(255) NOT NULL DEFAULT '' COMMENT '活动标题',
location varchar(2048) NOT NULL DEFAULT '' COMMENT '跳转页面',
start_time datetime not null comment '活动开始时间',
end_time datetime not null comment '活动结束时间',
status TINYINT NOT NULL DEFAULT 0 COMMENT '快报状态1: 自动2显示3未显示',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '创建时间'
)
COMMENT '新闻';
drop table if exists jd_user;
create table if not exists jd_user
(
id bigint not null primary key ,
nick_name varchar(255) NOT NULL DEFAULT '' COMMENT '用户名',
avatar_url varchar(1024) NOT NULL DEFAULT '' COMMENT '活动分享图',
phone varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
identify tinyint not null default 0 comment '用户身份(导师,合伙人)',
invitation_code VARCHAR(10) not null DEFAULT '' comment '邀请码',
inviter_id BIGINT not null DEFAULT 0 comment '邀请人用户id',
role_name VARCHAR(32) NOT NULL DEFAULT 'MEMBER' COMMENT '角色名称',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '注册时间'
);
drop table if exists jd_wechat_user;
create table if not exists jd_wechat_user
(
id BIGINT NOT NULL PRIMARY KEY NOT NULL COMMENT 'id',
user_id BIGINT NOT NULL DEFAULT 0 COMMENT '用户id',
session_key varchar(255) NOT NULL DEFAULT '' COMMENT '会话密钥',
wechat_id varchar(255) NOT NULL DEFAULT '' COMMENT '微信号',
open_id varchar(255) NOT NULL DEFAULT '' COMMENT '用户唯一标识',
union_id varchar(255) not null default '' comment '用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '注册时间'
)
COMMENT '微信信息表';
drop table if exists jd_timeline_goods;
create table if not exists jd_timeline_goods
(
id bigint not null primary key ,
title VARCHAR(255) NOT NULL DEFAULT '' COMMENT '商品名称',
sku_id BIGINT not null default 0 COMMENT '商品id',
publisher_id BIGINT not null default 0 COMMENT '发布人id',
image_url varchar(1024) NOT NULL default '' COMMENT '分享图',
content varchar(1024) NOT NULL default '' COMMENT '发圈内容',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '注册时间'
)
COMMENT '发圈必备';
DROP TABLE if exists jd_order_detail;
create table if not exists jd_order_detail (
id BIGINT NOT NULL PRIMARY KEY NOT NULL COMMENT 'id',
order_id BIGINT not null unique COMMENT '订单ID',
finish_time DATETIME null comment '完成时间',
order_emt tinyint not null default 1 comment '下单设备(1:PC,2:无线)',
order_time DATETIME not null comment '下单时间(时间戳,毫秒)',
owner_id BIGINT not null DEFAULT 0 comment '推广人id',
buyer_id BIGINT not null DEFAULT 0 comment '购买人id',
parent_id BIGINT not null DEFAULT 0 COMMENT '父单的订单ID仅当发生订单拆分时返回 0未拆分有值则表示此订单为子订单',
pay_month VARCHAR(19) not null default '0' COMMENT '订单维度预估结算时间,不建议使用可以用订单行sku维度paymonth字段参考格式yyyyMMdd0未结算订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
plus tinyint not null default '0' comment '下单用户是否为PLUS会员 01',
pop_id bigint not null default 0 comment '订单维度商家ID不建议使用可以用订单行sku维度popId参考',
union_id bigint not null default 0 comment '推客的联盟ID',
ext1 varchar(255) not null default '' comment '订单维度的推客生成推广链接时传入的扩展字段不建议使用可以用订单行sku维度ext1参考,(需要联系运营开放白名单才能拿到数据)',
valid_code tinyint not null default -1 comment '订单维度的有效码不建议使用可以用订单行sku维度validCode参考,-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
update_time DATETIME NOT NULL DEFAULT now() on update now() comment '订单更新时间',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '订单创建时间'
) comment '订单记录';
DROP TABLE if exists jd_order_sku;
create table if not exists jd_order_sku (
id BIGINT NOT NULL PRIMARY KEY NOT NULL COMMENT 'id',
sku_id bigint not null comment '商品ID',
order_id BIGINT not null comment '京东订单id',
owner_id BIGINT not null DEFAULT 0 comment '推广人id',
buyer_id BIGINT not null DEFAULT 0 comment '购买人id',
actual_cos_price decimal(9,4) not null DEFAULT 0 COMMENT '实际计算佣金的金额。订单完成后,会将误扣除的运费券金额更正。如订单完成后发生退款,此金额会更新。',
actual_fee decimal(9,4) not null default 0 comment ' 推客获得的实际佣金(实际计佣金额*佣金比例*最终比例)。如订单完成后发生退款,此金额会更新。',
commission_rate decimal(9,4) not null default 0 comment '佣金比例',
estimate_cos_price decimal(9,4) not null default 0 comment '预估计佣金额,即用户下单的金额(已扣除优惠券、白条、支付优惠、进口税,未扣除红包和京豆),有时会误扣除运费券金额,完成结算时会在实际计佣金额中更正。如订单完成前发生退款,此金额也会更新。',
estimate_fee decimal(9,4) not null DEFAULT 0 COMMENT '推客的预估佣金(预估计佣金额*佣金比例*最终比例),如订单完成前发生退款,此金额也会更新。',
final_rate decimal(9,4) not null DEFAULT 0 COMMENT '最终比例(分成比例+补贴比例)',
cid1 bigint not null default 0 COMMENT '一级类目ID',
frozen_sku_nnum bigint not null default 0 comment '商品售后中数量',
pid varchar(128) default '' comment '联盟子站长身份标识格式子站长ID_子站长网站ID_子站长推广位ID',
position_id bigint not null default 0 comment '推广位ID,0代表无推广位',
site_id bigint not null default 0 comment '网站ID0无网站',
sku_name varchar(1024) not null default '' comment '商品名称',
sku_num bigint not null default 0 comment '商品数量',
sku_image varchar(1024) not null default '' comment '商品主图',
sku_return_num bigint not null default 0 comment '商品已退货数量',
sub_side_rate decimal(9,4) not null default 0 comment '分成比例',
subsidy_rate decimal(9,4) not null default 0 comment '补贴比例',
cid3 bigint not null default 0 comment '三级类目ID',
union_alias varchar(255) not null default '' comment ' PID所属母账号平台名称原第三方服务商来源',
union_tag varchar(255) not null default '' comment '联盟标签数据整型的二进制字符串目前返回16位0000000000000001。数据从右向左进行每一位为1表示符合联盟的标签特征第1位红包第2位组合推广第3位拼购第5位有效首次购0000000000011XXX表示有效首购最终奖励活动结算金额会结合订单状态判断以联盟后台对应活动效果数据报表https://union.jd.com/active为准,第8位复购订单第9位礼金第10位联盟礼金第11位推客礼金。例如0000000000000001:红包订单0000000000000010:组合推广订单0000000000000100:拼购订单0000000000011000:有效首购0000000000000111红包+组合推广+拼购等)',
union_traffic_group tinyint not null default 0 comment '渠道组 11号店其他京东',
valid_code tinyint not null default -1 comment 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
sub_unionId varchar(255) not null default '' comment '子联盟ID(需要联系运营开放白名单才能拿到数据)',
trace_type tinyint not null default 2 comment '2同店3跨店',
pay_month int not null default 0 comment '订单行维度预估结算时间格式yyyyMMdd 0未结算。订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
pop_id bigint not null default 0 comment ' 商家ID。''订单行维度''',
ext1 varchar(255) not null default '' comment ' 推客生成推广链接时传入的扩展字段(需要联系运营开放白名单才能拿到数据)。''订单行维度''',
cp_act_id bigint not null default 0 comment '招商团活动id正整数为0时表示无活动',
union_role tinyint not null default 1 comment '站长角色1 推客、 2 团长',
gift_coupon_key varchar(255) not null default '' comment '礼金批次ID',
gift_coupon_ocs_amount decimal(9,4) not null default 0 comment '礼金分摊金额',
update_time DATETIME NOT NULL DEFAULT now() on update now() comment 'sku更新时间',
create_time DATETIME NOT NULL DEFAULT now() COMMENT 'sdu创建时间',
unique unique_order_id_and_sku_id(order_id, sku_id)
) comment '佣金商品记录';
drop table if exists jd_member_commission;
create table if not exists jd_member_commission (
id BIGINT NOT NULL PRIMARY KEY COMMENT '记录id',
user_id BIGINT NOT NULL DEFAULT 0 COMMENT '用户id',
identify tinyint NOT NULL DEFAULT 0 COMMENT '用户等级',
level tinyint NOT NULL DEFAULT 0 COMMENT '记录深度',
batch_id BIGINT not null DEFAULT 0 COMMENT '批次Id',
sku_id bigint not null comment '商品ID',
order_id BIGINT not null DEFAULT 0 comment '京东订单id',
finish_time DATETIME null comment '完成时间',
order_time DATETIME not null comment '下单时间(时间戳,毫秒)',
estimate_rebate_fee decimal(9,4) not null default 0 comment '预估返利(卖货)',
actual_rebate_fee decimal(9,4) not null default 0 comment '实际返利(卖货)',
estimate_award_fee decimal(9,4) not null default 0 comment '预估奖励',
actual_award_fee decimal(9,4) not null default 0 comment '实际奖励',
estimate_commission_fee decimal(9,4) not null default 0 comment '预估佣金',
actual_commission_fee decimal(9,4) not null default 0 comment '实际佣金',
sku_name varchar(1024) not null default '' comment '商品名称',
valid_code tinyint not null default -1 comment 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
remark varchar(256) NOT NULL DEFAULT '' COMMENT '佣金备注',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '记录创建时间',
index index_user_id(user_id),
index index_batch_id(batch_id),
index index_sku_id(sku_id),
index index_order_id(order_id),
index index_order_time(order_time),
index order_finish_time(finish_time)
) comment '佣金商品记录';
DROP TABLE if exists jd_settlement_calculate_result;
create table if not exists jd_settlement_calculate_result (
id BIGINT NOT NULL KEY COMMENT '记录id',
user_id BIGINT NOT NULL DEFAULT 0 COMMENT '用户id',
start_date DATE NOT NULL COMMENT '开始时间',
end_date DATE NOT NULL COMMENT '开始时间',
rebate_fee decimal(9,4) not null default 0 comment '返利',
award_fee decimal(9,4) not null default 0 comment '奖励',
commission_fee decimal(9,4) not null default 0 comment '佣金',
status tinyint NOT NULL DEFAULT 0 COMMENT '成员状态(0成功1失败)',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '记录时间',
unique (user_id, start_date, end_date),
index index_user_id_and_start_date_and_end_date(user_id, start_date, end_date)
) COMMENT '用户账单计算状态记录';
# 用户30天单量
DROP VIEW IF EXISTS jd_member_commission_per_user_for_30_day;
CREATE VIEW jd_member_commission_per_user_for_30_day AS
SELECT
user_id,
SUM(estimate_rebate_fee) AS estimate_rebate_fee, SUM(actual_rebate_fee) AS actual_rebate_fee,
SUM(estimate_award_fee) AS estimate_award_fee, SUM(actual_award_fee) AS actual_award_fee,
SUM(estimate_commission_fee) AS estimate_commission_fee, SUM(actual_commission_fee) AS actual_commission_fee
FROM
jd_member_commission
WHERE order_time >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
GROUP BY user_id;
DROP TABLE if exists jd_order_sync_record;
create table if not exists jd_order_sync_record (
id BIGINT NOT NULL PRIMARY KEY COMMENT '记录id',
order_id BIGINT not null DEFAULT 0 comment '京东订单id',
status TINYINT NOT NULL DEFAULT 0 COMMENT '是否成功0成功1失败'
) comment '佣金商品同步记录';
# 保存商品每天的同步时间
# DROP TABLE if exists jd_order_sync_date;
# create table if not exists jd_order_sync_date(
# id BIGINT NOT NULL PRIMARY KEY COMMENT '记录id',
# sync_date date NOT NULL COMMENT '记录时间,按天为单位',
# sync_minutes_of_day int NOT NULL DEFAULT 0 COMMENT '同步分钟',
# sync_status tinyint NOT NULL DEFAULT 0 COMMENT '同步状态(0,成功1失败',
# create_time DATETIME NOT NULL DEFAULT now() COMMENT '注册时间',
#
# unique unique_index_sync_date_and_sync_minute_of_day(sync_date,sync_minutes_of_day)
#
# ) COMMENT '保存商品每天的同步时间';
# 用户的交易流水
DROP table if exists jd_wallet_transaction_flow;
create table if not exists jd_wallet_transaction_flow(
id BIGINT NOT NULL PRIMARY KEY COMMENT '记录id',
user_id BIGINT NOT NULL DEFAULT 0 COMMENT '用户id',
fee_amount decimal(9,4) not null default 0 comment '费用数量',
transaction_id BIGINT NOT NULL DEFAULT 0 COMMENT '交易id',
transaction_time DATETIME NOT NULL COMMENT '交易时间',
transaction_type TINYINT NOT NULL DEFAULT 0 COMMENT '交易类型(0 未知1收入2支出 ',
transaction_biz TINYINT NOT NULL DEFAULT 0 COMMENT '交易业务类型 ',
remark VARCHAR(255) NOT NULL DEFAULT '' COMMENT '流水备注',
create_time DATETIME NOT NULL DEFAULT now() COMMENT '注册时间'
) COMMENT '保存商品每天的同步时间';
#
# create table if not exists category_mapping (
#
# id bigint NOT NULL primary key auto_increment,
# name varchar(10) NOT NULL DEFAULT '' comment '分类名称',
# jid bigint NOT NULL default -1 comment '京东分类名称'
#
#
# ) COMMENT '映射应用类别与京东类型';
drop table if exists jd_team_member;
create table if not exists jd_team_member
(
id bigint not null comment 'ID'
primary key ,
leader_id BIGINT UNSIGNED not null comment '领队id',
member_id BIGINT UNSIGNED not null comment '成员id',
level INT not null comment '级别',
create_time timestamp default CURRENT_TIMESTAMP not null comment '记录创建时间',
UNIQUE index_unique_leader_id_and_member_id(leader_id, member_id)
)
comment '团队人员关系表';

View File

@ -0,0 +1,281 @@
CREATE TABLE jd_union.jd_activity
(
id bigint(20) PRIMARY KEY NOT NULL,
title varchar(255) DEFAULT '' NOT NULL COMMENT '活动标题',
share_image varchar(255) DEFAULT '' NOT NULL COMMENT '活动分享图',
logo_image varchar(255) DEFAULT '' NOT NULL COMMENT '活动logo图',
content varchar(1024) DEFAULT '' NOT NULL COMMENT '活动分享文本',
start_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '活动开始时间',
end_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '活动结束时间',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '创建时间'
);
INSERT INTO jd_union.jd_activity (id, title, share_image, logo_image, content, start_time, end_time, create_time) VALUES (1239491671735222274, '医疗器械 守护健康', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_share.jpg', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg', '[Smile]型格男装闪耀新品
[Smile]
[Smile]https://u.jd.com/EqPd29
[Smile]Dickies 58
[Smile]https://u.jd.com/YY4C6u
[Smile]69
[Smile]https://u.jd.com/Xl8we8
[Smile]STARTER5
[Smile]https://u.jd.com/U8btgt
[Smile]dangerouspeople4
[Smile]https://u.jd.com/HTo25e
[Smile] 28.8
[Smile] https://u.jd.com/ukDode', '2020-02-20 00:00:00', '2020-03-31 23:59:59', '2020-03-16 18:00:17');
CREATE TABLE jd_union.jd_apply_withdraw_order
(
id bigint(20) PRIMARY KEY NOT NULL,
applier_id bigint(20) DEFAULT '0' NOT NULL COMMENT '申请人用户id',
amount decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '申请提现金额',
wechat_id varchar(255) DEFAULT '' NOT NULL COMMENT '收款人微信号',
payee_name varchar(255) DEFAULT '' NOT NULL COMMENT '收款人姓名',
payee_card_id varchar(255) DEFAULT '' NOT NULL COMMENT '收款人身份证号',
status tinyint(4) DEFAULT '0' NOT NULL COMMENT '提现单状态',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '创建时间'
);
CREATE TABLE jd_union.jd_apply_withdraw_order_operate_record
(
id bigint(20) PRIMARY KEY NOT NULL,
withdraw_order_id bigint(20) DEFAULT '0' NOT NULL COMMENT '提现申请单id',
operator_id bigint(20) DEFAULT '0' NOT NULL COMMENT '操作人id',
operator_name varchar(255) DEFAULT '' NOT NULL COMMENT '操作人名称',
operate_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '操作时间',
remark varchar(1014) DEFAULT '' NOT NULL COMMENT '备注'
);
CREATE TABLE jd_union.jd_banner
(
id bigint(20) PRIMARY KEY NOT NULL,
location varchar(2048) DEFAULT '' NOT NULL COMMENT 'banner跳转页面',
cover_url varchar(255) DEFAULT '' NOT NULL COMMENT 'banner封面图',
end_time datetime COMMENT '结束时间',
start_time datetime NOT NULL COMMENT '开始时间',
status tinyint(4) DEFAULT '0' NOT NULL COMMENT '状态',
title varchar(255) DEFAULT '' NOT NULL COMMENT '标题'
);
INSERT INTO jd_union.jd_banner (id, location, cover_url, end_time, start_time, status, title) VALUES (1239492746609483778, '/activities?id=1239491671735222274', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/3qSSRdvGAxvwARTmak2oEprLSR7J_logo.jpg', '2020-03-31 23:59:59', '2020-02-20 00:00:00', 1, '医疗器械 守护健康');
CREATE TABLE jd_union.jd_member_commission
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT '记录id',
user_id bigint(20) DEFAULT '0' NOT NULL COMMENT '用户id',
identify tinyint(4) DEFAULT '0' NOT NULL COMMENT '用户等级',
level tinyint(4) DEFAULT '0' NOT NULL COMMENT '记录深度',
batch_id bigint(20) DEFAULT '0' NOT NULL COMMENT '批次Id',
sku_id bigint(20) NOT NULL COMMENT '商品ID',
order_id bigint(20) DEFAULT '0' NOT NULL COMMENT '京东订单id',
finish_time datetime COMMENT '完成时间',
order_time datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
estimate_rebate_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '预估返利(卖货)',
actual_rebate_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '实际返利(卖货)',
estimate_award_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '预估奖励',
actual_award_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '实际奖励',
estimate_commission_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '预估佣金',
actual_commission_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '实际佣金',
sku_name varchar(1024) DEFAULT '' NOT NULL COMMENT '商品名称',
valid_code tinyint(4) DEFAULT '-1' NOT NULL COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
remark varchar(256) DEFAULT '' NOT NULL COMMENT '佣金备注',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '记录创建时间'
);
CREATE INDEX index_user_id ON jd_union.jd_member_commission (user_id);
CREATE INDEX index_batch_id ON jd_union.jd_member_commission (batch_id);
CREATE INDEX index_sku_id ON jd_union.jd_member_commission (sku_id);
CREATE INDEX index_order_id ON jd_union.jd_member_commission (order_id);
CREATE INDEX order_finish_time ON jd_union.jd_member_commission (finish_time);
CREATE INDEX index_order_time ON jd_union.jd_member_commission (order_time);
CREATE TABLE jd_union.jd_news
(
id bigint(20) PRIMARY KEY NOT NULL,
title varchar(255) DEFAULT '' NOT NULL COMMENT '活动标题',
location varchar(2048) DEFAULT '' NOT NULL COMMENT '跳转页面',
status tinyint(4) DEFAULT '0' NOT NULL COMMENT '快报状态0显示1不显示',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '创建时间'
);
CREATE TABLE jd_union.jd_option
(
id bigint(20) PRIMARY KEY NOT NULL,
option_name varchar(128) NOT NULL COMMENT '選項key',
option_value varchar(255) NOT NULL COMMENT '選項的值',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '创建时间'
);
CREATE UNIQUE INDEX option_name ON jd_union.jd_option (option_name);
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766565834754, 'app_force_login', 'false', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766574223361, 'sys_default_user_name', '系统用户', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766574223362, 'sys_current_sync_start_time', '20200215000000', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766582611970, 'sys_order_sync_start_time', '20200215000000', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766582611971, 'sys_register_user_identify', '1', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766586806274, 'sys_default_user_identify', '1', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239385766586806275, 'sys_order_sync_delay', '2', '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239413786118815746, 'sys_order_sync_retry_interval', '2000', '2020-03-16 12:50:48');
INSERT INTO jd_union.jd_option (id, option_name, option_value, create_time) VALUES (1239413786123010049, 'sys_order_sync_retry_count', '3', '2020-03-16 12:50:48');
CREATE TABLE jd_union.jd_order_detail
(
order_id bigint(20) PRIMARY KEY NOT NULL COMMENT '订单ID',
finish_time datetime COMMENT '完成时间',
order_emt tinyint(4) DEFAULT '1' NOT NULL COMMENT '下单设备(1:PC,2:无线)',
order_time datetime NOT NULL COMMENT '下单时间(时间戳,毫秒)',
owner_id bigint(20) DEFAULT '0' NOT NULL COMMENT '推广人id',
buyer_id bigint(20) DEFAULT '0' NOT NULL COMMENT '购买人id',
parent_id bigint(20) DEFAULT '0' NOT NULL COMMENT '父单的订单ID仅当发生订单拆分时返回 0未拆分有值则表示此订单为子订单',
pay_month varchar(19) DEFAULT '0' NOT NULL COMMENT '订单维度预估结算时间,不建议使用可以用订单行sku维度paymonth字段参考格式yyyyMMdd0未结算订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
plus tinyint(4) DEFAULT '0' NOT NULL COMMENT '下单用户是否为PLUS会员 01',
pop_id bigint(20) DEFAULT '0' NOT NULL COMMENT '订单维度商家ID不建议使用可以用订单行sku维度popId参考',
union_id bigint(20) DEFAULT '0' NOT NULL COMMENT '推客的联盟ID',
ext1 varchar(255) DEFAULT '' NOT NULL COMMENT '订单维度的推客生成推广链接时传入的扩展字段不建议使用可以用订单行sku维度ext1参考,(需要联系运营开放白名单才能拿到数据)',
valid_code tinyint(4) DEFAULT '-1' NOT NULL COMMENT '订单维度的有效码不建议使用可以用订单行sku维度validCode参考,-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
update_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '订单更新时间',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '订单创建时间'
);
CREATE TABLE jd_union.jd_order_sku
(
sku_id bigint(20) PRIMARY KEY NOT NULL COMMENT '商品ID',
order_id bigint(20) DEFAULT '0' NOT NULL COMMENT '京东订单id',
owner_id bigint(20) DEFAULT '0' NOT NULL COMMENT '推广人id',
buyer_id bigint(20) DEFAULT '0' NOT NULL COMMENT '购买人id',
actual_cos_price decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '实际计算佣金的金额。订单完成后,会将误扣除的运费券金额更正。如订单完成后发生退款,此金额会更新。',
actual_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT ' 推客获得的实际佣金(实际计佣金额*佣金比例*最终比例)。如订单完成后发生退款,此金额会更新。',
commission_rate decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '佣金比例',
estimate_cos_price decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '预估计佣金额,即用户下单的金额(已扣除优惠券、白条、支付优惠、进口税,未扣除红包和京豆),有时会误扣除运费券金额,完成结算时会在实际计佣金额中更正。如订单完成前发生退款,此金额也会更新。',
estimate_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '推客的预估佣金(预估计佣金额*佣金比例*最终比例),如订单完成前发生退款,此金额也会更新。',
final_rate decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '最终比例(分成比例+补贴比例)',
cid1 bigint(20) DEFAULT '0' NOT NULL COMMENT '一级类目ID',
frozen_sku_nnum bigint(20) DEFAULT '0' NOT NULL COMMENT '商品售后中数量',
pid varchar(128) DEFAULT '' COMMENT '联盟子站长身份标识格式子站长ID_子站长网站ID_子站长推广位ID',
position_id bigint(20) DEFAULT '0' NOT NULL COMMENT '推广位ID,0代表无推广位',
site_id bigint(20) DEFAULT '0' NOT NULL COMMENT '网站ID0无网站',
sku_name varchar(1024) DEFAULT '' NOT NULL COMMENT '商品名称',
sku_num bigint(20) DEFAULT '0' NOT NULL COMMENT '商品数量',
sku_image varchar(1024) DEFAULT '' NOT NULL COMMENT '商品主图',
sku_return_num bigint(20) DEFAULT '0' NOT NULL COMMENT '商品已退货数量',
sub_side_rate decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '分成比例',
subsidy_rate decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '补贴比例',
cid3 bigint(20) DEFAULT '0' NOT NULL COMMENT '三级类目ID',
union_alias varchar(255) DEFAULT '' NOT NULL COMMENT ' PID所属母账号平台名称原第三方服务商来源',
union_tag varchar(255) DEFAULT '' NOT NULL COMMENT '联盟标签数据整型的二进制字符串目前返回16位0000000000000001。数据从右向左进行每一位为1表示符合联盟的标签特征第1位红包第2位组合推广第3位拼购第5位有效首次购0000000000011XXX表示有效首购最终奖励活动结算金额会结合订单状态判断以联盟后台对应活动效果数据报表https://union.jd.com/active为准,第8位复购订单第9位礼金第10位联盟礼金第11位推客礼金。例如0000000000000001:红包订单0000000000000010:组合推广订单0000000000000100:拼购订单0000000000011000:有效首购0000000000000111红包+组合推广+拼购等)',
union_traffic_group tinyint(4) DEFAULT '0' NOT NULL COMMENT '渠道组 11号店其他京东',
valid_code tinyint(4) DEFAULT '-1' NOT NULL COMMENT 'sku维度的有效码-1未知,2.无效-拆单,3.无效-取消,4.无效-京东帮帮主订单,5.无效-账号异常,6.无效-赠品类目不返佣,7.无效-校园订单,8.无效-企业订单,9.无效-团购订单,10.无效-开增值税专用发票订单,11.无效-乡村推广员下单,12.无效-自己推广自己下单,13.无效-违规订单,14.无效-来源与备案网址不符,15.待付款,16.已付款,17.已完成,18.已结算5.9号不再支持结算状态回写展示))',
sub_unionId varchar(255) DEFAULT '' NOT NULL COMMENT '子联盟ID(需要联系运营开放白名单才能拿到数据)',
trace_type tinyint(4) DEFAULT '2' NOT NULL COMMENT '2同店3跨店',
pay_month int(11) DEFAULT '0' NOT NULL COMMENT '订单行维度预估结算时间格式yyyyMMdd 0未结算。订单''预估结算时间''仅供参考。账号未通过资质审核或订单发生售后,会影响订单实际结算时间。',
pop_id bigint(20) DEFAULT '0' NOT NULL COMMENT ' 商家ID。''订单行维度''',
ext1 varchar(255) DEFAULT '' NOT NULL COMMENT ' 推客生成推广链接时传入的扩展字段(需要联系运营开放白名单才能拿到数据)。''订单行维度''',
cp_act_id bigint(20) DEFAULT '0' NOT NULL COMMENT '招商团活动id正整数为0时表示无活动',
union_role tinyint(4) DEFAULT '1' NOT NULL COMMENT '站长角色1 推客、 2 团长',
gift_coupon_key varchar(255) DEFAULT '' NOT NULL COMMENT '礼金批次ID',
gift_coupon_ocs_amount decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '礼金分摊金额',
update_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT 'sku更新时间',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT 'sdu创建时间'
);
CREATE TABLE jd_union.jd_order_sync_record
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT '记录id',
order_id bigint(20) DEFAULT '0' NOT NULL COMMENT '京东订单id',
status tinyint(4) DEFAULT '0' NOT NULL COMMENT '是否成功0成功1失败'
);
CREATE TABLE jd_union.jd_settlement_calculate_result
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT '记录id',
user_id bigint(20) DEFAULT '0' NOT NULL COMMENT '用户id',
start_date date NOT NULL COMMENT '开始时间',
end_date date NOT NULL COMMENT '开始时间',
rebate_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '返利',
award_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '奖励',
commission_fee decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '佣金',
status tinyint(4) DEFAULT '0' NOT NULL COMMENT '成员状态(0成功1失败)',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '记录时间'
);
CREATE UNIQUE INDEX user_id ON jd_union.jd_settlement_calculate_result (user_id, start_date, end_date);
CREATE INDEX index_user_id_and_start_date_and_end_date ON jd_union.jd_settlement_calculate_result (user_id, start_date, end_date);
INSERT INTO jd_union.jd_settlement_calculate_result (id, user_id, start_date, end_date, rebate_fee, award_fee, commission_fee, status, create_time) VALUES (1239494021384298497, 1239388993403297793, '2020-02-01', '2020-02-29', 0.0000, 0.8715, 0.0000, 0, '2020-03-16 18:09:38');
CREATE TABLE jd_union.jd_team_member
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT 'ID',
leader_id bigint(20) unsigned NOT NULL COMMENT '领队id',
member_id bigint(20) unsigned NOT NULL COMMENT '成员id',
level int(11) NOT NULL COMMENT '级别',
create_time timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '记录创建时间'
);
CREATE UNIQUE INDEX index_unique_leader_id_and_member_id ON jd_union.jd_team_member (leader_id, member_id);
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239385766737801217, 1239385766674886657, 1239385766674886657, 0, '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239388993445240833, 1239388993403297793, 1239388993403297793, 0, '2020-03-16 11:12:17');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239388993462018049, 1239385766674886657, 1239388993403297793, 1, '2020-03-16 11:12:17');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239404324511358978, 1239404324494581762, 1239404324494581762, 0, '2020-03-16 12:13:12');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239404324523941890, 1239388993403297793, 1239404324494581762, 1, '2020-03-16 12:13:12');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239404324561690626, 1239385766674886657, 1239404324494581762, 2, '2020-03-16 12:13:12');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239405702487023618, 1239405702461857794, 1239405702461857794, 0, '2020-03-16 12:18:41');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239405702495412226, 1239404324494581762, 1239405702461857794, 1, '2020-03-16 12:18:41');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239405702499606529, 1239388993403297793, 1239405702461857794, 2, '2020-03-16 12:18:41');
INSERT INTO jd_union.jd_team_member (id, leader_id, member_id, level, create_time) VALUES (1239405702503800833, 1239385766674886657, 1239405702461857794, 3, '2020-03-16 12:18:41');
CREATE TABLE jd_union.jd_timeline_goods
(
id bigint(20) PRIMARY KEY NOT NULL,
title varchar(255) DEFAULT '' NOT NULL COMMENT '商品名称',
sku_id bigint(20) DEFAULT '0' NOT NULL COMMENT '商品id',
publisher_id bigint(20) DEFAULT '0' NOT NULL COMMENT '发布人id',
image_url varchar(1024) DEFAULT '' NOT NULL COMMENT '分享图',
content varchar(1024) DEFAULT '' NOT NULL COMMENT '发圈内容',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '注册时间'
);
CREATE TABLE jd_union.jd_user
(
id bigint(20) PRIMARY KEY NOT NULL,
nick_name varchar(255) DEFAULT '' NOT NULL COMMENT '用户名',
avatar_url varchar(1024) DEFAULT '' NOT NULL COMMENT '活动分享图',
phone varchar(20) DEFAULT '' NOT NULL COMMENT '手机号',
identify tinyint(4) DEFAULT '0' NOT NULL COMMENT '用户身份(导师,合伙人)',
invitation_code varchar(10) DEFAULT '' NOT NULL COMMENT '邀请码',
inviter_id bigint(20) DEFAULT '0' NOT NULL COMMENT '邀请人用户id',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '注册时间'
);
INSERT INTO jd_union.jd_user (id, nick_name, avatar_url, phone, identify, invitation_code, inviter_id, create_time) VALUES (1239385766674886657, '系统用户', '', '', 1, 'DLNWEF', 0, '2020-03-16 10:59:28');
INSERT INTO jd_union.jd_user (id, nick_name, avatar_url, phone, identify, invitation_code, inviter_id, create_time) VALUES (1239388993403297793, '惊天霸戈', 'https://wx.qlogo.cn/mmopen/vi_32/LCEZLO6xdq9b8PE8tKnRiaRQN5eCosBoOjhPNB3xZETsJ8DODuapKO6OlUAGAbbPSFxjX55ic5kSYp4mB0icXSV4A/132', '18817096723', 2, 'CMSC07', 1239385766674886657, '2020-03-16 11:12:17');
INSERT INTO jd_union.jd_user (id, nick_name, avatar_url, phone, identify, invitation_code, inviter_id, create_time) VALUES (1239404324494581762, '伍星', 'https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKKwXg2w9OV1iavRD0d49BB7N4D35dhQJD5pMSUcfXYlicL7dsPgW9WciaSJHqrFDEyJDs84KeMpdO1w/132', '15576622046', 1, 'VL2Y1X', 1239388993403297793, '2020-03-16 12:13:12');
INSERT INTO jd_union.jd_user (id, nick_name, avatar_url, phone, identify, invitation_code, inviter_id, create_time) VALUES (1239405702461857794, '🐭', 'https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLFiaIPFibGeGHdFiabT54l02yicZIBMbNzuerdx5O3cCmWQia3kiajncjCb2J2bWpYu5FXzkmH6HsXLEvQ/132', '15367842658', 1, 'T1WM0X', 1239404324494581762, '2020-03-16 12:18:41');
CREATE TABLE jd_union.jd_wallet
(
id bigint(20) PRIMARY KEY NOT NULL,
balance decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '钱包余额',
balance_freeze decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '已被冻结的金额',
user_id bigint(20) DEFAULT '0' NOT NULL COMMENT '用户id',
status tinyint(4) DEFAULT '0' NOT NULL COMMENT '钱包状态',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '创建时间'
);
INSERT INTO jd_union.jd_wallet (id, balance, balance_freeze, user_id, status, create_time) VALUES (1239494021795340290, 0.8715, 0.0000, 1239388993403297793, 0, '2020-03-16 18:09:38');
CREATE TABLE jd_union.jd_wallet_transaction_flow
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT '记录id',
user_id bigint(20) DEFAULT '0' NOT NULL COMMENT '用户id',
fee_amount decimal(9,4) DEFAULT '0.0000' NOT NULL COMMENT '费用数量',
transaction_id bigint(20) DEFAULT '0' NOT NULL COMMENT '交易id',
transaction_time datetime NOT NULL COMMENT '交易时间',
transaction_type tinyint(4) DEFAULT '0' NOT NULL COMMENT '交易类型(0 未知1收入2支出 ',
transaction_biz tinyint(4) DEFAULT '0' NOT NULL COMMENT '交易业务类型 ',
remark varchar(255) DEFAULT '' NOT NULL COMMENT '流水备注',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '注册时间'
);
CREATE TABLE jd_union.jd_wechat_user
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT 'id',
user_id bigint(20) DEFAULT '0' NOT NULL COMMENT '用户id',
session_key varchar(255) DEFAULT '' NOT NULL COMMENT '会话密钥',
wechat_id varchar(255) DEFAULT '' NOT NULL COMMENT '微信号',
open_id varchar(255) DEFAULT '' NOT NULL COMMENT '用户唯一标识',
union_id varchar(255) DEFAULT '' NOT NULL COMMENT '用户在开放平台的唯一标识符,在满足 UnionID 下发条件的情况下会返回,详见 UnionID 机制说明。',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '注册时间'
);
INSERT INTO jd_union.jd_wechat_user (id, user_id, session_key, wechat_id, open_id, union_id, create_time) VALUES (1239388993470406657, 1239388993403297793, 'OCzACMF/WJOpTT9aRxVCUg==', '', 'oMTE85Bvh30JFB5WXRjBRNdZMv5g', '', '2020-03-16 11:12:17');
INSERT INTO jd_union.jd_wechat_user (id, user_id, session_key, wechat_id, open_id, union_id, create_time) VALUES (1239404324565884930, 1239404324494581762, 'Eq4JKgG1NRPlNH117WT+rQ==', 'wuxing07240011', 'oMTE85EX-6wYAQKdhKrQtmOao9Ww', '', '2020-03-16 12:13:12');
INSERT INTO jd_union.jd_wechat_user (id, user_id, session_key, wechat_id, open_id, union_id, create_time) VALUES (1239405702507995137, 1239405702461857794, 'tkeW/ef1dH6UECnthbXBJg==', '', 'oMTE85KhfuwTaXsfA8Qfql09NHLE', '', '2020-03-16 12:18:41');
CREATE TABLE jd_union.jd_member_commission_per_user_for_30_day
(
user_id bigint(20) NOT NULL COMMENT '用户id',
estimate_rebate_fee decimal(31,4),
actual_rebate_fee decimal(31,4),
estimate_award_fee decimal(31,4),
actual_award_fee decimal(31,4),
estimate_commission_fee decimal(31,4),
actual_commission_fee decimal(31,4)
);

View File

@ -0,0 +1,22 @@
CREATE TABLE jd_union.jd_member_quick_start
(
id bigint(20) PRIMARY KEY NOT NULL COMMENT '记录id',
title varchar(32) DEFAULT '' NOT NULL COMMENT '新人上路标题',
content varchar(512) DEFAULT '' NOT NULL COMMENT '新人上路说明',
video_url varchar(256) DEFAULT '' NOT NULL COMMENT '视频地址',
type tinyint(4) DEFAULT '1' NOT NULL COMMENT '跳转页面、复制、显示图片',
style tinyint(4) DEFAULT '1' NOT NULL COMMENT '显示样式',
action varchar(16) DEFAULT '' NOT NULL COMMENT '操作提示',
data varchar(256) DEFAULT '' NOT NULL COMMENT '操作内容',
sort tinyint(4) DEFAULT '1' NOT NULL COMMENT '显示顺序',
create_time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '创建时间'
);
INSERT INTO jd_union.jd_member_quick_start (id, title, content, video_url, type, style, action, data, sort, create_time) VALUES (1249952388481380354, '成长任务1升级超级会员省得多赚的多', '&lt;p&gt;建立一个大于&lt;span style=&quot;color:#E53333;&quot;&gt;50人的微信群&lt;/span&gt;完成升级,即可省得更多,分享赚钱之路。&lt;/p&gt;', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/video/mda-kddfyxzrasacwkv5.mp4
', 1, 1, '', '/page_package/apply-vip/apply-vip', 1, '2020-04-14 16:04:20');
INSERT INTO jd_union.jd_member_quick_start (id, title, content, video_url, type, style, action, data, sort, create_time) VALUES (1249964797954703361, '成长任务2掌握选爆品和会卖货的技巧', '&lt;p&gt;了解小程序内重要的选品频道,掌握更多的发品方式和技巧,为亲朋好友带来优惠。&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#E53333;&quot;&gt;&lt;br /&gt;想学习更多一定添加专属导师微信!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;导师微信号:#{#wechat.wechatId}&lt;/p&gt;', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/video/mda-kddfyxzrasacwkv5.mp4
', 2, 1, '', '#{#wechat.wechatId}', 2, '2020-04-14 16:04:20');
INSERT INTO jd_union.jd_member_quick_start (id, title, content, video_url, type, style, action, data, sort, create_time) VALUES (1249967624462594050, '成长任务4: 进官方爆款群选取更多爆单素材', '&lt;p&gt;官方爆款九是重要的选器渠道之一,这里是全网爆款商品。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#E53333;&quot;&gt;注:推广商品需要先转链哦!&lt;/span&gt;&lt;/p&gt;', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/video/mda-kddfyxzrasacwkv5.mp4
', 3, 1, '', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg', 4, '2020-04-14 16:04:20');
INSERT INTO jd_union.jd_member_quick_start (id, title, content, video_url, type, style, action, data, sort, create_time) VALUES (1249968644873842689, '成长任务3进培训群实现收益技能双增长', '官方培训群,全方位的学习课程,更有大咖导师独家分享,帮助大家提升收益。', '', 3, 1, '获取进群二维码', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/activity/257051586654096_.pic_hd_default.jpg', 3, '2020-04-14 16:04:20');
INSERT INTO jd_union.jd_member_quick_start (id, title, content, video_url, type, style, action, data, sort, create_time) VALUES (1249974375077449729, '成长任务5邀请小伙伴加入一起赚钱', '学会邀请小伙伴加入的3种方式帮助小伙伴少钱赚钱的同时还能获得平台额外奖励邀请越多赚得越多~', 'https://csbaic-jd-coupon.oss-cn-beijing.aliyuncs.com/video/mda-kddfyxzrasacwkv5.mp4
', 4, 1, '', '', 5, '2020-04-14 16:14:49');

View File

@ -0,0 +1,105 @@
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742075793158145, 1242741770884034562, '优惠券只能一个号领一次吗?', '优惠券数量有限,一般情况一个账号仅能领用一次。', '2020-03-25 17:16:14');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742267862921218, 1242741770884034562, '部分商品分货较慢是什么原因?', '部分商家的产品是第三方POP商家使用的是第三言主物流一般送货速度会较慢。另外在大促活动期间商家积压的订单比较多可能发货会较慢。
线950618', '2020-03-25 17:17:00');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742614790582273, 1242741792610529282, '如何申请售后服务?', '申请售后常用的2个流程
1->->->->
2APP->->', '2020-03-25 17:18:23');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742683598139394, 1242741792610529282, '对收到的产品不满意 ', '按照京东7天元理由退货政策您收到货发现有问题可以与商家协商退货和退款如协商不成您可以拨打东京客服电话950618按2进入按键导航根据语言提示按7再按1然后输入收货人手机号确认手机号按1然后再输入订单后四位等待人工客服接起。', '2020-03-25 17:18:39');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742750933495809, 1242741792610529282, '为什么通过平台下单的商品售后问题需要联系京东处理?', '平台只提供商品链接,分享商品优惠信息,并不提供下单购买等服务,您实际下单仍是在京东内完成,商品也是由京东提供,所以如果产生售后问题,需要您联系京东商场协商处理。', '2020-03-25 17:18:55');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242742960657084418, 1242741824084586498, '如何查看该校是的物流信息?', '查看订单的3个途经
1->->->->->->->
2->->->->
APP订单界面查看订单
3APP->', '2020-03-25 17:19:45');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743068148707330, 1242741824084586498, '如何知道是谁下的单?', '东京注重保护客户隐私,您看不到客户姓名、电话等隐私信息。', '2020-03-25 17:20:11');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743117427585025, 1242741824084586498, '为什么我的订单会显示“无效-取消”?', '如果客户下单付款后又取消了此订单,则订单详情内会显示“无效-取消”标识。', '2020-03-25 17:20:22');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743201657597954, 1242741824084586498, '订单中显示红色“跨店“标志是什么意思?', '关于跨店的解析:
广A店铺商品的推广主链接进行东京B店铺商品', '2020-03-25 17:20:42');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743268615467009, 1242741824084586498, '为什么订单会显示”无效-拆单”', '拆单是系统根据该订单内的产品类目及仓库中无师进行拆分,已拆单导致父订单无效,但不会影响佣金收益,已拆单的订单佣金是按照拆单后形成的子订单号计算佣金的。 ', '2020-03-25 17:20:58');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743319614009346, 1242741824084586498, '订单显示“无效-非推广商品”是什么意思?', '根据京东推广规则,“无效-非推广商品”是批该商品商家没有设置佣金 或跨店佣金为0或者Plus会员购买为0的商品此类订单不会获得推广收益。', '2020-03-25 17:21:11');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743382734090241, 1242741824084586498, '客户订单在东京已经付款,为什么在平台显示待付款', '客户在京东20分钟内付款的订单状态会及时更新到小程序中如果20分钟后付款的订单状态会在次日更新可在第二天进行查看不会影响您的收益。', '2020-03-25 17:21:26');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743781218136065, 1242741824084586498, '客户购买了商品在京东APP中可以看到订单但您在平台小程序中看不到推广订单', '1平台小程序没有这个商品或活动已结束商品已经在平台为下架状态所以小程序中不会显示订单
2
35-10
4
5APP
6
7Plus会员买没佣且买了不跟单', '2020-03-25 17:23:01');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743928740196354, 1242741853012701185, '我的收益有哪几种类型?', '推广收益:您的直属会员在小程序自购,或者您分享的商品促成别人购买所得到的收益。
广
', '2020-03-25 17:23:36');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242743986168606721, 1242741853012701185, '什么是“预估收益”及“预估收益”会变少的原因是什么?', '根据京东的推广规则:预估收益是根据用户一瞬间时间预估统计的推广效果数据,并非实际结算收益,取消已付款的订单或者退换货后对应的收益会相应的扣除,实际收益以订单结算为准。', '2020-03-25 17:23:50');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744363194593282, 1242741853012701185, '为什么我的订单收益为0', '1执照京东的返佣规则 ,乡村推广账号、企业账号、分期付款用户、以开具增值税运用发票的订单是没有收益的。
广 广广
Plus会员账号说明Plus账号是东京的一种会员账号类型0
2使E卡等京东虚拟货币 0.
30
4Plus会员ghuj3的订单
5', '2020-03-25 17:25:19');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744421667385346, 1242741853012701185, '订单显示的收益和选品时看到预估“预估收益”不一样?', '您选品时看到的收益金额为预估推广收益由于客户在一瞬间时可能会使用京券、余额、京豆和E卡等京东虚拟货币导致收益减少导致订单收益变少的情况发生。', '2020-03-25 17:25:33');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744555805421569, 1242741853012701185, '每月提现金额和”预估收益“不一致?', '所有的收益都是按照系统设计好的规则进行,不存在 恶意扣除等总是,可提现收益跟预估收益不一致原因有以下两点:
1退
2 广
15 退 退 ', '2020-03-25 17:26:05');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242744635073572866, 1242741853012701185, '#### 同一个商品链接,同种商品计佣金额,佣金 怎么算的不同?', '1同店同种商品也会因为商品规格 不同有不同的商品编码,故设置的佣金不同,可能商家设置的佣金也不同。
2广广广', '2020-03-25 17:26:24');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745099500466178, 1242741895224176642, '为什么会有违规订单?', '平台内推广的商品,有一些是商家通过打造引流爆款产品亏本促销,从而提升商品或店铺在东京内的搜索排名,促销完成后,需要长尾的带动整体销售利润。
1广
2广
广 ', '2020-03-25 17:28:15');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745257789304834, 1242741895224176642, '我自己购买的商品被判定为”违规订单“,如何申斥?', '如果对订单判断有疑问,我们可以帮您进行早逝处理,您需要提供以下三张照片,通过客服转交进行申斥。
1
2
3
35 ', '2020-03-25 17:28:53');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745347664850946, 1242741895224176642, '如何避免”违规订单“?', '1请务必不要代下单如遇首次购物用户耐心引导即可。
230', '2020-03-25 17:29:14');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745460017672194, 1242741930515050497, '一人多微信号怎么提现?', '可以绑定同一人的身份证,同一个银行卡完成提现。', '2020-03-25 17:29:41');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745508176670722, 1242741930515050497, '更换了微信头像和昵称,小程序不同步?', '小程序的微信昵称和头像微信不同步,后续会提供相应功能更新昵称头像功能。', '2020-03-25 17:29:52');
INSERT INTO jd_union.jd_question (id, cid, title, answer, create_time) VALUES (1242745630994280450, 1242741930515050497, '邀请另人加入后,我们之间都有什么关系?', '直属注册会员:通过您直接邀请注册的会员。
', '2020-03-25 17:30:22');

View File

@ -0,0 +1,6 @@
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741770884034562, '商品类', 'goodsfill', 1, '2020-03-25 17:15:01');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741792610529282, '售后类', 'servicefill', 1, '2020-03-25 17:15:07');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741824084586498, '订单类', 'shopfill', 1, '2020-03-25 17:15:14');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741853012701185, '收益类', 'moneybagfill', 1, '2020-03-25 17:15:21');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741895224176642, '违规订单类', 'warnfill', 1, '2020-03-25 17:15:31');
INSERT INTO jd_union.jd_question_category (id, name, icon, open, create_time) VALUES (1242741930515050497, '其他问题', 'questionfill', 1, '2020-03-25 17:15:39');

File diff suppressed because it is too large Load Diff

275
jd-union-service/pom.xml Normal file
View File

@ -0,0 +1,275 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.csbaic</groupId>
<artifactId>jd-union-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>com.csbaic</groupId>
<artifactId>csbaic-dependencies</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.csbaic</groupId>
<artifactId>csbaic-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.csbaic</groupId>
<artifactId>csbaic-auth-boot-starter</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.csbaic</groupId>
<artifactId>csbaic-web-boot-starter</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>org.junit.vintage</groupId>-->
<!-- <artifactId>junit-vintage-engine</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
</dependency>
<!--
mvn install:install-file -Dfile=./jd-cps-client-2.2.jar -DgroupId=com.jingdong -Dpackaging=jar -DartifactId=jd-cps-client -Dversion=2.2 -->
<dependency>
<groupId>com.jingdong</groupId>
<artifactId>jd-cps-client</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!--<dependency>-->
<!--<groupId>com.nimbusds</groupId>-->
<!--<artifactId>nimbus-jose-jwt</artifactId>-->
<!--</dependency>-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
<!--<dependency>-->
<!--<groupId>org.springframework.security.oauth.boot</groupId>-->
<!--<artifactId>spring-security-oauth2-autoconfigure</artifactId>-->
<!--<version>2.2.4.RELEASE</version>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.springframework.security</groupId>-->
<!--<artifactId>spring-security-jwt</artifactId>-->
<!--<version>1.0.11.RELEASE</version>-->
<!--</dependency>-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<!--<dependency>-->
<!--<groupId>commons-io</groupId>-->
<!--<artifactId>commons-io</artifactId>-->
<!--</dependency>-->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-miniapp</artifactId>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-mp</artifactId>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-pay</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>3.8.0</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.yaml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.yaml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.png</include>
<include>**/*.p12</include>
<include>static/**</include>
<include>templates/**</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.5.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,26 @@
package com.csbaic.jd;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
@SpringBootApplication
@EnableScheduling
@MapperScan("com.csbaic.jd.mapper")
public class JdSocialApplication
{
public static void main(String[] args){
SpringApplication.run(JdSocialApplication.class);
}
}

View File

@ -0,0 +1,19 @@
package com.csbaic.jd;
import com.csbaic.auth.accesstoken.AccessTokenService;
import com.csbaic.auth.security.jwt.JWTAccessTokenService;
import java.util.HashMap;
import java.util.Map;
public class TokenBuilder {
public static void main(String[] args){
AccessTokenService accessTokenService = new JWTAccessTokenService("jwt:key:jd-union-xxxxxxxxxxxxxxxx", "HS256");
Map<String, Object> obj = new HashMap<>();
obj.put("user_id", 1243810041125154818L);
String token = accessTokenService.encode(obj);
System.out.print(token);
}
}

View File

@ -0,0 +1,41 @@
package com.csbaic.jd.config;
/**
* 小程序常量
*/
public interface MiniAppConstants {
/**
* 小程序首页
*/
String HOME_PAGE = "/pages/index/index";
/**
* 超级会员申请页
*/
String SUPER_MEMBER_APPLY = "/page_package/apply-vip/apply-vip";
/**
* 活动详情
*/
String ACTIVITY_DETAIL = "/page_package/activity/activity";
/**
* 消息详情
*/
String MESSAGE_DETAIL = "/page_package/news-details/news-details";
/**
* 京东跳转连接项目页
*/
String JD_APP_ITEM = "/pages/union/item/item.html";
/**
* 京东跳转连接详情页
*/
String JD_APP_DETAIL = "/pages/item/detail/detail.html";
}

View File

@ -0,0 +1,25 @@
package com.csbaic.jd.config;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//Spring boot方式
@EnableTransactionManagement
@Configuration
public class MybatisPlusConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
// 设置请求的页面大于最大页后操作 true调回到首页false 继续请求 默认false
paginationInterceptor.setOverflow(false);
// 设置最大单页限制数量默认 500 -1 不受限制
paginationInterceptor.setLimit(500);
paginationInterceptor.setDbType(DbType.MYSQL);
return paginationInterceptor;
}
}

View File

@ -0,0 +1,89 @@
package com.csbaic.jd.config;
import com.csbaic.jd.config.application.ApplicationProperties;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.*;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spi.service.contexts.SecurityContext;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import java.util.Collections;
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Autowired
private ApplicationProperties applicationProperties;
@Bean
public Docket createAdminRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.securitySchemes(Collections.singletonList(securityScheme()))
.securityContexts(Collections.singletonList(securityContext()))
.apiInfo(apiInfo())
.host(applicationProperties.getApiHost())
// .groupName("user-com.csbaic.rbac.dto.service")
.groupName("Admin")
.select()
.apis(RequestHandlerSelectors.basePackage("com.csbaic.jd.controller.admin"))
.apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.paths(PathSelectors.any())
.build();
}
@Bean
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.securitySchemes(Collections.singletonList(securityScheme()))
.securityContexts(Collections.singletonList(securityContext()))
.apiInfo(apiInfo())
.host(applicationProperties.getApiHost())
// .groupName("user-com.csbaic.rbac.dto.service")
.groupName("App")
.select()
.apis(RequestHandlerSelectors.basePackage("com.csbaic.jd.controller.app"))
.apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.paths(PathSelectors.any())
.build();
}
@Bean
SecurityScheme securityScheme() {
return new ApiKey("bearer", "Authorization", "header");
}
@Bean
SecurityContext securityContext() {
SecurityReference securityReference = SecurityReference.builder()
.reference("bearer")
.scopes(new AuthorizationScope[]{})
.build();
return SecurityContext.builder()
.securityReferences(Collections.singletonList(securityReference))
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("API文档")
.description("京东联盟社交电商")
.termsOfServiceUrl("")
.version("1.0")
.build();
}
}

View File

@ -0,0 +1,123 @@
package com.csbaic.jd.config;
import cn.binarywang.wx.miniapp.api.WxMaService;
import com.csbaic.auth.security.authentication.ResponseResultAuthenticationAccessDeniedHandler;
import com.csbaic.auth.security.authentication.ResponseResultAuthenticationEndpoint;
import com.csbaic.auth.security.authentication.ResponseResultAuthenticationFailureHandler;
import com.csbaic.auth.security.jwt.JwtSecurityConfigurer;
import com.csbaic.jd.extend.authentication.jwt.JWTResponseResultAuthenticationEndpoint;
import com.csbaic.jd.extend.authentication.jwt.JwtAuthenticationConverter;
import com.csbaic.jd.extend.authentication.wechat.WechatAuthenticationConfigurer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
import org.springframework.web.cors.CorsConfiguration;
@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
private final String WECHAT_LOGIN_ENDPOINT = "/login/wechat";
@Override
public void init(WebSecurity web) throws Exception {
super.init(web);
web.ignoring(). antMatchers("/swagger-ui.html")
.antMatchers("/webjars/**")
.antMatchers("/v2/**")
.antMatchers("/swagger-resources/**");
}
@Override
protected void configure(HttpSecurity http) throws Exception {
ApplicationContext applicationContext = getApplicationContext();
WxMaService wxMaService = applicationContext.getBean(WxMaService.class);
JwtAuthenticationConverter jwtAuthenticationConverter = applicationContext.getBean(JwtAuthenticationConverter.class);
http.logout().disable()
.formLogin().disable()
.httpBasic().disable()
.csrf().disable()
.cors(httpSecurityCorsConfigurer -> httpSecurityCorsConfigurer.configurationSource(request -> {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.addAllowedOrigin(CorsConfiguration.ALL);
corsConfiguration.addAllowedMethod(CorsConfiguration.ALL);
corsConfiguration.addAllowedHeader(CorsConfiguration.ALL);
corsConfiguration.setAllowCredentials(true);
return corsConfiguration;
}))
.exceptionHandling()
.accessDeniedHandler(new ResponseResultAuthenticationAccessDeniedHandler())
.authenticationEntryPoint(new ResponseResultAuthenticationEndpoint())
.and()
.apply(new WechatAuthenticationConfigurer())
.wxMaService(wxMaService)
.failureHandler(new ResponseResultAuthenticationFailureHandler())
.requiresAuthenticationRequestMatcher(new AntPathRequestMatcher(WECHAT_LOGIN_ENDPOINT, "POST"))
.and()
.apply(new JwtSecurityConfigurer())
.authenticationEntryPoint(new JWTResponseResultAuthenticationEndpoint())
.jwtAuthenticationConverter(jwtAuthenticationConverter)
.and()
.authorizeRequests()
//任何人都可以访问
.mvcMatchers(HttpMethod.POST, WECHAT_LOGIN_ENDPOINT).permitAll()
.mvcMatchers(HttpMethod.GET, "/login/wechat/web/authorize_url").permitAll()
.mvcMatchers(HttpMethod.GET, "/login/wechat/web").permitAll()
.mvcMatchers(HttpMethod.POST, "/users/wechat").permitAll()
.mvcMatchers(HttpMethod.POST, "/users/get_by_invitation_code/{code}").permitAll()
.mvcMatchers(HttpMethod.POST, "/users/{userId}").permitAll()
.antMatchers("/goods/**").permitAll()
.antMatchers("/categories/**").permitAll()
.mvcMatchers(HttpMethod.GET, "/banners/**").permitAll()
.mvcMatchers(HttpMethod.GET,"/timeline_goods/**").permitAll()
.mvcMatchers(HttpMethod.GET, "/news").permitAll()
.mvcMatchers(HttpMethod.GET, "/options/app").permitAll() //App配置获取
.mvcMatchers(HttpMethod.GET, "/activities/{id}/goods").permitAll()
.mvcMatchers(HttpMethod.GET, "/activities/{id}").permitAll()
.mvcMatchers(HttpMethod.GET, "/faq/**").permitAll()
.mvcMatchers(HttpMethod.GET, "/admin/index.html").permitAll()
.mvcMatchers(HttpMethod.GET, "/admin").permitAll()
.mvcMatchers(HttpMethod.GET, "/posters").permitAll()
.mvcMatchers(HttpMethod.GET, "/messages/{id}").permitAll()
.antMatchers("/static/**").permitAll()
.mvcMatchers(HttpMethod.GET, "/quick_start").permitAll()
//会员可访问
.antMatchers("/users/**").fullyAuthenticated()
.antMatchers("/wallet/**").fullyAuthenticated()
.antMatchers("/qrcode/**").fullyAuthenticated()
.antMatchers("/order/**").fullyAuthenticated()
.antMatchers("/members/**").fullyAuthenticated()
.antMatchers("/goods_url/**").fullyAuthenticated()
.mvcMatchers(HttpMethod.POST, "/feedback").fullyAuthenticated()
.antMatchers("/super_members/**").fullyAuthenticated()
.mvcMatchers(HttpMethod.POST, "/upload/app").fullyAuthenticated()
//管理员全部可以访问
.anyRequest()
.hasRole("ADMIN");
}
}

View File

@ -0,0 +1,62 @@
package com.csbaic.jd.config;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
import com.csbaic.jd.config.application.ApplicationProperties;
import com.csbaic.jd.config.application.WechatPay;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.github.binarywang.wxpay.service.WxPayService;
import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Created by yjwfn on 2020/2/14.
*/
@Configuration
public class WechatConfiguration {
@Bean
public WxMaService wxMaService(ApplicationProperties properties){
WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl();
config.setAppid(properties.getMiniApp().getAppid());
config.setSecret(properties.getMiniApp().getSecret());
WxMaService service = new WxMaServiceImpl();
service.setWxMaConfig(config);
return service;
}
@Bean
public WxPayService wxPayService(ApplicationProperties properties){
WechatPay wechatPay = properties.getWechatPay();
WxPayConfig payConfig = new WxPayConfig();
payConfig.setKeyPath(wechatPay.getCert());
payConfig.setMchKey(wechatPay.getSignKey());
payConfig.setAppId(wechatPay.getAppid());
payConfig.setMchId(wechatPay.getMchid());
// payConfig.setNotifyUrl(wechatPay.getNotifyUrl());
WxPayService wxPayService = new WxPayServiceImpl();
wxPayService.setConfig(payConfig);
return wxPayService;
}
//
// @Bean
// public WxMpService wxMpService(ApplicationProperties properties){
//
// WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
// configStorage.setAppId(properties.getWebApp().getAppid());
// configStorage.setSecret(properties.getWebApp().getSecret());
// WxMpService wxMpService = new WxMpServiceImpl();
// wxMpService.setWxMpConfigStorage(configStorage);
//
// return wxMpService;
// }
}

View File

@ -0,0 +1,14 @@
package com.csbaic.jd.config.application;
import lombok.Data;
@Data
public class AliSms {
private String accessKeyId;
private String accessSecret;
private String signName;
private String templateCode;
}

View File

@ -0,0 +1,24 @@
package com.csbaic.jd.config.application;
import com.csbaic.jd.service.goods.impl.GoodsHandlerConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
/**
* Created by yjwfn on 2020/2/14.
*/
@Configuration
public class ApplicationConfiguration {
@Bean
@ConfigurationProperties("application")
public ApplicationProperties applicationProperties(){
return new ApplicationProperties();
}
}

View File

@ -0,0 +1,14 @@
package com.csbaic.jd.config.application;
public interface ApplicationConstants {
/**
* 前端金额显示精度
*/
int AMOUNT_PRECISION_FOR_GOODS = 2;
/**
* 前端收益金额显示精度
*/
int AMOUNT_PRECISION_FOR_FEE = 2;
}

View File

@ -0,0 +1,49 @@
package com.csbaic.jd.config.application;
import lombok.Data;
/**
* App 属性配置
*/
@Data
public class ApplicationProperties {
/**
* jwt token生成key
*/
private String jwtKeyValue;
/**
* api文档访问地址
*/
private String apiHost = "localhost";
/**
* 小程序配置
*/
private MiniApp miniApp = new MiniApp();
/**
* 微信网站应用
*/
private WebApp webApp = new WebApp();
/***
* 微信支付
*/
private WechatPay WechatPay = new WechatPay();
/**
* 短信配置
*/
private AliSms sms = new AliSms();
/**
* 商品二维码图片位置
*/
private String goodsQrcodeLogo;
}

View File

@ -0,0 +1,11 @@
package com.csbaic.jd.config.application;
import lombok.Data;
@Data
public class MiniApp {
private String appid;
private String secret;
}

View File

@ -0,0 +1,15 @@
package com.csbaic.jd.config.application;
import lombok.Data;
@Data
public class WebApp {
private String appid = "wx19a253443fee0c0c";
private String secret = "8f273b3f6de89d69614cecfbef557ad6";
private String redirectUri = "https://jd-api.csbaic.com/login/wechat/web";
}

View File

@ -0,0 +1,38 @@
package com.csbaic.jd.config.application;
import lombok.Data;
/**
* 微信支付配置
*/
@Data
public class WechatPay {
/**
* 证书路径
*/
private String cert = "classpath:/apiclient_cert.p12";
/**
* 应用id
*/
private String appid = "wxf9ea0760e7c44b57";
/**
* API签名
*/
private String signKey = "替换成自己的密钥";
/**
* 商户id
*/
private String mchid = "1556276181";
/***
* 支付回调
*/
private String notifyUrl;
}

View File

@ -0,0 +1,32 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.Activity;
import com.csbaic.jd.dto.CreateActivity;
import com.csbaic.jd.service.IActivityService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/admin/activities")
@Api(value = "活动管理", tags = "活动管理")
@ResponseResult
public class AdminActivityController {
@Autowired
private IActivityService activityService;
/**
* 创建新的活动
* @param activity
* @return
*/
@PostMapping
@ApiOperation("创建活动")
public Activity createActivity(@RequestBody CreateActivity activity){
return activityService.createActivity(activity);
}
}

View File

@ -0,0 +1,50 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.Banner;
import com.csbaic.jd.dto.CreateBanner;
import com.csbaic.jd.dto.CreateBannerByActivity;
import com.csbaic.jd.service.IBannerService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/admin/banners")
@Api(value = "滚动图", tags = "滚动图")
@ResponseResult
public class AdminBannerController {
@Autowired
private IBannerService bannerService;
/**
* 创建一个新的banner
* @param banner
* @return
*/
@PostMapping
@ApiOperation("创建banner")
public Banner createBanner(@RequestBody CreateBanner banner){
return bannerService.createBanner(banner);
}
/**
* 创建一个新的banner
* @param banner
* @return
*/
@PostMapping("/by_activity")
@ApiOperation("通过活动Id创建Banner")
public List<Banner> createBannerByActivity(@RequestBody CreateBannerByActivity banner){
return bannerService.createBannerByActivity(banner);
}
}

View File

@ -0,0 +1,23 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.service.LoginService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/admin/login")
@Api(value = "管理员登陆", tags = "管理员登陆")
@ResponseResult
public class AdminLoginController {
@Autowired
private LoginService loginService;
}

View File

@ -0,0 +1,42 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.MemberQuickStart;
import com.csbaic.jd.service.IMemberQuickStartService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* <p>
* 新人上手 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-04-14
*/
@Api(value = "新手上路管理", tags = "新手上路管理")
@RequestMapping("/admin/quick_start")
@RestController
@ResponseResult
public class AdminMemberQuickStartController {
private final IMemberQuickStartService quickStartService;
@Autowired
public AdminMemberQuickStartController(IMemberQuickStartService quickStartService) {
this.quickStartService = quickStartService;
}
@ApiOperation(("创建新手上路"))
@PostMapping
public void getQuickStart(@RequestBody MemberQuickStart quickStart){
quickStartService.save(quickStart);
}
}

View File

@ -0,0 +1,37 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.admin.Menu;
import com.csbaic.jd.service.admin.AdminWebService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/admin/routes")
@Api(value = "后台菜单", tags = "后台菜单")
@ResponseResult
public class AdminMenuController {
@Autowired
private AdminWebService menuService;
/**
* 获取管理平台菜单
*/
@ApiOperation("添加快报")
@PostMapping()
public List<Menu> getMenu(@AuthenticationPrincipal(expression = "id") Long userId){
return menuService.getMenu(userId);
}
}

View File

@ -0,0 +1,40 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.CreateMessage;
import com.csbaic.jd.dto.Message;
import com.csbaic.jd.service.IMessageService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* <p>
* 新闻 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-26
*/
@RestController
@RequestMapping("/admin/messages")
@Api(value = "消息管理", tags = "消息管理")
@ResponseResult
public class AdminMessageController {
@Autowired
private IMessageService messageService;
@ApiOperation("创建消息")
@PostMapping("/")
Message createMessage(@RequestBody CreateMessage message){
return messageService.createMessage(message);
}
}

View File

@ -0,0 +1,57 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.CreateNews;
import com.csbaic.jd.dto.CreateNewsByActivity;
import com.csbaic.jd.dto.Ids;
import com.csbaic.jd.dto.News;
import com.csbaic.jd.service.INewsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/admin/news")
@Api(value = "快报", tags = "快报")
@ResponseResult
public class AdminNewsController {
@Autowired
private INewsService newsService;
/**
* 添加一条
*/
@ApiOperation("添加快报")
@PostMapping()
public News createNews(@RequestBody CreateNews news){
return newsService.createNews(news);
}
/**
* 添加一条
*/
@ApiOperation("使用活动创建快报")
@PostMapping("/news_by_activities")
public List<News> createNews(@RequestBody CreateNewsByActivity createNewsByActivity){
return newsService.createNewsByActivity(createNewsByActivity);
}
/**
* 添加一条
*/
@ApiOperation("使用消息创建快报")
@PostMapping("/news_by_messages")
public List<News> createNews(@RequestBody Ids createNewsByMessage){
return newsService.createNewsByMessage(createNewsByMessage);
}
}

View File

@ -0,0 +1,47 @@
package com.csbaic.jd.controller.admin;
import com.csbaic.jd.dto.CreateSharePoster;
import com.csbaic.jd.service.ISharePosterService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 分享海报 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-23
*/
@Api(value = "管理海报", tags = "海报管理")
@RequestMapping("/admin/posters")
@RestController
@ResponseResult
public class AdminSharePosterController {
@Autowired
private ISharePosterService sharePosterService;
/**
* 获取海报
* @param userId
* @param poster
*/
@ApiOperation("创建分享海报")
@PostMapping
public void createPoster(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,@RequestBody CreateSharePoster poster){
sharePosterService.createPoster(userId, poster);
}
}

View File

@ -0,0 +1,61 @@
package com.csbaic.jd.controller.admin;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.RejectSuperMemberApply;
import com.csbaic.jd.dto.SuperMemberApplyOrderInfo;
import com.csbaic.jd.service.ISuperMemberApplyService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
/**
* <p>
* 超级会员申请表 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-24
*/
@RestController
@RequestMapping("/admin/super_members")
@Api(value = "超级会员申请处理", tags = "超级会员申请处理")
@ResponseResult
public class AdminSuperMemberApplyController {
@Autowired
ISuperMemberApplyService superMemberApplyService;
@ApiOperation("获取超级会员申请单")
@GetMapping("/")
public IPage<SuperMemberApplyOrderInfo> getSuperMemberApplyOrderInfo(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,
@ApiParam(value = "申请状态2已提交3通过4拒绝", allowableValues = "2, 3, 4") @RequestParam(value = "status", required = false) Integer status,
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
@RequestParam(value = "pageSize", defaultValue = "20") int pageSize
){
return superMemberApplyService.getSuperMemberApplyOrderInfo(userId, status, pageIndex, pageSize );
}
@ApiOperation("同意群组申请")
@PostMapping("/approve/{id}")
public void approveSuperMemberApply(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @PathVariable("id") Long applyId){
superMemberApplyService.approveSuperMemberApply(userId, applyId);
}
@ApiOperation("拒绝群组申请")
@PostMapping("/reject/{id}")
public void rejectSuperMemberApply(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,
@PathVariable("id") Long applyId,
@RequestBody RejectSuperMemberApply rejectSuperMemberApply
){
superMemberApplyService.rejectSuperMemberApply(userId, applyId ,rejectSuperMemberApply);
}
}

View File

@ -0,0 +1,58 @@
package com.csbaic.jd.controller.admin;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.UpdateWithDrawOrder;
import com.csbaic.jd.dto.WithdrawOrderInfo;
import com.csbaic.jd.service.IApplyWithdrawOrderService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/admin")
@Api(value = "管理钱包", tags = "钱包管理")
@ResponseResult
public class AdminWalletController {
@Autowired
private IApplyWithdrawOrderService withdrawOrderService;
@PutMapping("/wallet/apply_withdraw")
@ApiOperation("更新申请提现单状态")
public void updateApplyWithdraw(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody UpdateWithDrawOrder info){
withdrawOrderService.updateApplyWithdrawOrder(userId,info);
}
@GetMapping("/wallet/apply_withdraw")
@ApiOperation("获取申请提现单")
public IPage<WithdrawOrderInfo> updateApplyWithdraw(
@ApiParam(value = "申请单状态", allowableValues = "range[1, 9]")
@RequestParam(value = "status", required = false) Integer status,
@RequestParam(value = "pageIndex", required = false) Integer pageIndex,
@RequestParam(value = "pageSize", required = false) Integer pageSize){
return withdrawOrderService.getWithdrawOrders(pageIndex, pageSize, status);
}
/**
* 添加一条
*/
@ApiOperation("零钱打款")
@PostMapping("/wallet/withdraw_payment/{id}")
public void pay(
@ApiParam(hidden = true)
@AuthenticationPrincipal(expression = "id") Long userId, @PathVariable("id") Long orderId){
withdrawOrderService.payForWithdraw(userId, orderId);
}
}

View File

@ -0,0 +1,35 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.Activity;
import com.csbaic.jd.service.IActivityService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/activities")
@Api(value = "活动", tags = "活动")
@ResponseResult
public class ActivityController {
@Autowired
private IActivityService activityService;
/**
* 获取活动详情
* @return banner列表
*/
@ApiOperation("获取活动详情")
@GetMapping("/{id}")
public Activity getActivityById(@PathVariable("id") Long id){
return activityService.getActivityById(id);
}
}

View File

@ -0,0 +1,35 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.Banner;
import com.csbaic.jd.dto.CreateBanner;
import com.csbaic.jd.dto.CreateBannerByActivity;
import com.csbaic.jd.service.IBannerService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/banners")
@Api(value = "滚动图", tags = "滚动图")
@ResponseResult
public class BannerController {
@Autowired
private IBannerService bannerService;
/**
* 获取可用的Banners
* @return banner列表
*/
@ApiOperation("获取可用的banner")
@GetMapping
public List<Banner> getAvailableBanners(){
return bannerService.getAvailableBanners();
}
}

View File

@ -0,0 +1,38 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.GoodsCategory;
import com.csbaic.jd.service.GoodsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@Api(value = "分类", tags = "商品分类")
@RequestMapping("/categories")
@ResponseResult
public class CategoryController {
@Autowired
private GoodsService goodsService;
@ApiOperation("获取商品分类")
@GetMapping("")
public List<GoodsCategory> getCategories(@ApiParam("父类目id(一级父类目为0)") @RequestParam(value = "parentId", defaultValue = "0") Integer parentId, @ApiParam("类目级别(类目级别 012 代表一、二、三级类目)") @RequestParam(value = "grade", defaultValue = "0") Integer grade){
return goodsService.getCategories(parentId, grade);
}
}

View File

@ -0,0 +1,64 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.CreateQuesCategory;
import com.csbaic.jd.dto.CreateQuestion;
import com.csbaic.jd.dto.GroupQuestion;
import com.csbaic.jd.service.IQuestionCategoryService;
import com.csbaic.jd.service.IQuestionService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/faq")
@Api(value = "常见问题", tags = "常见问题")
@ResponseResult
public class FAQController {
@Autowired
private IQuestionCategoryService questionCategoryService;
@Autowired
private IQuestionService questionService;
/**
* 创建问题分类
*/
@PostMapping("/categories")
@ApiOperation("创建问题分类")
public void addCategory(@RequestBody CreateQuesCategory body){
questionCategoryService.addCategory( body);
}
/**
* 添加问题
*/
@PostMapping("/questions")
@ApiOperation("创建问题")
public void addQuestion(@RequestBody CreateQuestion question){
questionService.create(question);
}
/**
* 获取分组后问题
*/
@GetMapping("")
@ApiOperation("获取分组后问题")
public List<GroupQuestion> getGroupQuestion(@RequestParam(value = "cid", required = false) Long cid){
return questionCategoryService.getGroupQuestion(cid);
}
}

View File

@ -0,0 +1,36 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.CreateFeedback;
import com.csbaic.jd.service.IFeedbackService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/feedback")
@Api(value = "反馈", tags = "反馈")
@ResponseResult
public class FeedbackController {
@Autowired
private IFeedbackService feedbackService;
/**
* 创建反馈
*/
@ApiOperation("添加反馈信息")
@PostMapping("/")
public void createFeedback(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody CreateFeedback feedback){
feedbackService.createFeedback(userId, feedback);
}
}

View File

@ -0,0 +1,35 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.FileInfo;
import com.csbaic.jd.service.uploader.FileUploadService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@RestController
@RequestMapping("/upload")
@Api(value = "文件上传", tags = "文件上传")
@ResponseResult
public class FileUploadController {
@Autowired
private FileUploadService uploader;
@ApiOperation("上传图片")
@PostMapping(value = "/app", consumes = "multipart/form-data", produces = "application/json")
@ResponseBody
public FileInfo upload(
@ApiParam(allowableValues = "1超级会员申请图上传", example = "1")
@RequestParam(value = "type") Integer type, @RequestParam(value = "file") MultipartFile file){
return uploader.upload(type, file);
}
}

View File

@ -0,0 +1,208 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.*;
import com.csbaic.jd.service.GoodsService;
import com.csbaic.jd.service.ITimelineGoodsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api(value = "商品接口", tags = "商品接口")
@RequestMapping("/goods")
@RestController
@ResponseResult
public class GoodsController {
@Autowired
private GoodsService goodsService;
@ApiOperation("热门商品")
@PostMapping("/hot")
public IPage<Goods> queryHotGoods(@RequestBody PageQuery query){
GoodsQuery goodsQuery = new GoodsQuery();
// goodsQuery.setOwner("g");
goodsQuery.setPageIndex(query.getPageIndex());
goodsQuery.setPageSize(query.getPageSize());
goodsQuery.setIsHot(1);
return goodsService.queryGoods(goodsQuery);
}
@ApiOperation("自营商品(京东发货)")
@PostMapping("/deliver_by_jd")
public IPage<Goods> queryGoodsForJdDeliver(@RequestBody PageQuery query){
GoodsQuery goodsQuery = new GoodsQuery();
goodsQuery.setPageIndex(query.getPageIndex());
goodsQuery.setPageSize(query.getPageSize());
goodsQuery.setOwner("g");
return goodsService.queryGoods(goodsQuery);
}
@ApiOperation("王牌商品(品牌专区)")
@PostMapping("/brand")
public IPage<Goods> queryGoodsForBrand(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(32);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("好券商品(优惠券)")
@PostMapping("/coupons")
public IPage<Goods> queryGoodsForCoupon(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(1);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("今日必推(发圈必备)")
@PostMapping("/today")
public IPage<Goods> queryGoodsForToday(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(31);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("搜罗全球好货")
@PostMapping("/global")
public IPage<Goods> queryGoodsForGlobal(@RequestBody PageQuery query){
GoodsQuery goodsQuery = new GoodsQuery();
goodsQuery.setPageIndex(query.getPageIndex());
goodsQuery.setPageSize(query.getPageSize());
return goodsService.queryGoods(goodsQuery);
}
@ApiOperation("专属高佣商品")
@PostMapping("/high_commission")
public IPage<Goods> queryGoodsForCommission(@RequestBody PageQuery query){
GoodsQuery goodsQuery = new GoodsQuery();
goodsQuery.setPageIndex(query.getPageIndex());
goodsQuery.setPageSize(query.getPageSize());
return goodsService.queryGoods(goodsQuery);
}
@ApiOperation("热销爆品(爆品推荐)")
@PostMapping("/top")
public IPage<Goods> queryGoodsForTop(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(22);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("超市(居家必备)")
@PostMapping("/home_ownership")
public IPage<Goods> queryGoodsForHome(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(25);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("按分类查找商品")
@PostMapping("/by_category")
public IPage<Goods> queryGoodsByCategory(@RequestBody QueryByCategory query){
GoodsQuery goodsQuery = new GoodsQuery();
goodsQuery.setPageIndex(query.getPageIndex());
goodsQuery.setPageSize(query.getPageSize());
goodsQuery.setCid1(query.getCid1());
goodsQuery.setCid2(query.getCid2());
goodsQuery.setCid3(query.getCid3());
return goodsService.queryGoods(goodsQuery);
}
@ApiOperation("好评之王")
@PostMapping("/good_comment")
public IPage<Goods> queryGoodsForComment(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(22);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("爆款9块9")
@PostMapping("/hot_low_price")
public IPage<Goods> queryGoodsForLowPrice(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(10);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("2小时榜")
@PostMapping("/two_hours_rank")
public IPage<Goods> queryGoods(@RequestBody PageQuery query){
JFGoodsQuery jfGoodsQuery = new JFGoodsQuery();
jfGoodsQuery.setPageIndex(query.getPageIndex());
jfGoodsQuery.setPageSize(query.getPageSize());
jfGoodsQuery.setEliteId(10);
return goodsService.queryJFGoods(jfGoodsQuery);
}
@ApiOperation("关键查询商品")
@PostMapping("/")
public IPage<Goods> queryGoodsForKeyword(@RequestBody GoodsQuery query){
return goodsService.queryGoods(query);
}
@ApiOperation("查询秒杀商品")
@PostMapping("/query_for_sec_kill")
public IPage<SecKillGoods> querySecKillGoods(@RequestBody SecKillGoodsQuery query){
return goodsService.querySecKillGoods(query);
}
@ApiOperation("查询学生价商品")
@PostMapping("/query_for_student")
public IPage<StuGoods> queryStudentGoods(@RequestBody StuGoodsQuery query){
return goodsService.queryStuGoods(query);
}
@ApiOperation("查询商品详情")
@GetMapping("/query_goods_detail")
public List<Goods> queryGoodsDetail(@RequestParam("skuIds") String skuIds){
return goodsService.queryGoodsDetail(skuIds);
}
// @ApiOperation("通过subUnionId获取商品推广链接")
// @PostMapping("/get_goods_url")
// public GoodsRecUrl getRecUrlBySubUnionId(@RequestBody GetRecUrl params){
// return goodsService.getRecUrlBySubUnionId(params);
// }
}

View File

@ -0,0 +1,46 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.*;
import com.csbaic.jd.service.GoodsUrlService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(value = "商品链接接口", tags = "商品链接接口")
@RequestMapping("/goods_url")
@RestController
@ResponseResult
public class GoodsUrlController {
@Autowired
private GoodsUrlService goodsUrlService;
@ApiOperation("获取商品推广连接(短链接)")
@PostMapping("/short_url")
public GoodsRecUrl createShortUrl(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody CreateGoodsShortUrl shortUrl){
return goodsUrlService.createGoodsShortUrl(userId, shortUrl);
}
@ApiOperation("生成商品购买链接(短链接)")
@PostMapping("/purchase_url")
public GoodsRecUrl createPurchaseShortUrl(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody CreatePurchaseShortUrl shortUrl){
return goodsUrlService.createPurchaseShortUrl(userId, shortUrl);
}
@ApiOperation("商品转链")
@PostMapping("/convert")
public ConvertUrlResult getConvertedUrl(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody ConvertUrlContent convertUrlContent){
return goodsUrlService.createConvertedUrl(userId, convertUrlContent);
}
}

View File

@ -0,0 +1,49 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.LoginInfo;
import com.csbaic.jd.dto.OAuthAuthorizeUrl;
import com.csbaic.jd.dto.WechatLogin;
import com.csbaic.jd.dto.WechatOAuthLogin;
import com.csbaic.jd.service.LoginService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
@Api(tags = "登陆")
@RestController
@Controller
@RequestMapping("/login")
@ResponseResult
public class LoginController {
@Autowired
private LoginService loginService;
@ResponseResult
@ApiOperation("微信小程序登陆")
@PostMapping("/wechat")
public LoginInfo loginByWechat(@RequestBody WechatLogin wechatLogin){
return loginService.loginByWechat(wechatLogin);
}
@ApiOperation("获取微信网站应用授权地址")
@GetMapping("/wechat/web/authorize_url")
public OAuthAuthorizeUrl getWechatWebAuthorizeUrl(@RequestParam(value = "redirect_url", required = false) String url){
String authorizationUrl = loginService.createWechatOAuth2AuthorizationUrl(url);
return new OAuthAuthorizeUrl(authorizationUrl);
}
@ResponseResult
@ApiOperation("微信Web登陆")
@GetMapping("/wechat/web")
public LoginInfo getAccessTokenByWechatCode(@RequestParam("code") String code, @RequestParam(value = "state", required = false) String state){
return loginService.loginWithOAuth2ByWechat(new WechatOAuthLogin(code, state));
}
}

View File

@ -0,0 +1,61 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.GradeMemberInfo;
import com.csbaic.jd.dto.MemberFeeSegments;
import com.csbaic.jd.dto.QueryMember;
import com.csbaic.jd.dto.SimpleMemberUserInfo;
import com.csbaic.jd.service.user.MemberService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
@Api(value = "会员中心", tags = "会员中心")
@RequestMapping("/members")
@RestController
@ResponseResult
public class MemberController {
@Autowired
private MemberService memberService;
/**
* 获取会员信息
* @return
*/
@ApiOperation("获取会员信息")
@GetMapping("/info")
public GradeMemberInfo getMemberInfo(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId){
return memberService.getGradeMemberInfo(userId);
}
/**
* 查询用户的成员列表信息
* @return
*/
@ApiOperation("查询用户的成员列表信息")
@PostMapping("/")
public IPage<SimpleMemberUserInfo> getMembersOf(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody QueryMember queryMember){
return memberService.getMembersOf(userId, queryMember);
}
/**
* 获取我的收益
* @return
*/
@ApiOperation("用户收益详情")
@PostMapping("/fee_data")
public MemberFeeSegments getFeeData(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId){
return memberService.getMemberFeeBlocks(userId);
}
}

View File

@ -0,0 +1,48 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.MemberQuickStart;
import com.csbaic.jd.service.IMemberQuickStartService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 新人上手 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-04-14
*/
@Api( tags = "新手上路")
@RequestMapping("/quick_start")
@RestController
@ResponseResult
public class MemberQuickStartController {
private final IMemberQuickStartService quickStartService;
@Autowired
public MemberQuickStartController(IMemberQuickStartService quickStartService) {
this.quickStartService = quickStartService;
}
@ApiOperation(("获取新手上路"))
@GetMapping
public IPage<MemberQuickStart> getQuickStart(
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize
) {
return quickStartService.getQuickStart(pageIndex, pageSize);
}
}

View File

@ -0,0 +1,39 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.Message;
import com.csbaic.jd.service.IMessageService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 新闻 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-26
*/
@RestController
@RequestMapping("/messages")
@Api(value = "消息", tags = "消息")
@ResponseResult
public class MessageController {
@Autowired
private IMessageService messageService;
@ApiOperation("获取消息详情")
@GetMapping("/{id}")
Message getMessageById(@PathVariable("id") Long id){
return messageService.getValidMessage(id);
}
}

View File

@ -0,0 +1,37 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.News;
import com.csbaic.jd.service.INewsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/news")
@Api(value = "快报", tags = "快报")
@ResponseResult
public class NewsController {
@Autowired
private INewsService newsService;
/**
* 获取可见新闻
* @return 快报
*/
@ApiOperation("获取可见的新闻列表")
@GetMapping()
public List<News> getNews(){
return newsService.getVisibleNews();
}
}

View File

@ -0,0 +1,38 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.News;
import com.csbaic.jd.dto.Option;
import com.csbaic.jd.service.IOptionService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/options")
@Api(value = "配置項", tags = "配置項")
@ResponseResult
public class OptionController {
@Autowired
private IOptionService optionService;
/**
* 獲取配置項
* @return 配置項列表
*/
@ApiOperation("獲取配置項")
@GetMapping("/app")
public List<Option> getAppOptions(){
return optionService.getAppOptions();
}
}

View File

@ -0,0 +1,37 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.OrderInfo;
import com.csbaic.jd.dto.QueryOrder;
import com.csbaic.jd.service.IOrderDetailService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/order")
@Api(value = "订单管理", tags = "订单管理")
@ResponseResult
public class OrderController {
@Autowired
private IOrderDetailService orderDetailService;
/**
* 按时间维度查询订单
* @return 订单信息
*/
@ApiOperation("按时间维度查询订单")
@PostMapping("/by_time")
public IPage<OrderInfo> queryOrderByTime(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody QueryOrder queryOrder){
return orderDetailService.queryOrderByTime(userId, queryOrder);
}
}

View File

@ -0,0 +1,21 @@
package com.csbaic.jd.controller.app;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 订单记录 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-25
*/
@Controller
@RequestMapping("/orderDetailEntity")
public class OrderDetailController {
}

View File

@ -0,0 +1,21 @@
package com.csbaic.jd.controller.app;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 佣金商品记录 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-25
*/
@Controller
@RequestMapping("/orderSkuEntity")
public class OrderSkuController {
}

View File

@ -0,0 +1,60 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.Base64QRCode;
import com.csbaic.jd.dto.CreateGoodsQRCode;
import com.csbaic.jd.dto.CreateMiniAppQRCode;
import com.csbaic.jd.service.qrcode.QRCodeService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/qrcode")
@Api(value = "二维码", tags = "二维码")
@ResponseResult
public class QRCodeController {
@Autowired
private QRCodeService qrCodeService;
/**
* 创建商品二维码
* @return 快报
*/
@ApiOperation("创建商品海报二维码")
@PostMapping("/goods")
public Base64QRCode createQRCodeForGoods(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody CreateGoodsQRCode createGoodsQRCode){
return qrCodeService.createQRCodeForGoods(userId, createGoodsQRCode);
}
/**
* 创建小程序推广二维码
* @return
*/
@ApiOperation("创建小程序海报二维码")
@PostMapping("/mini_app")
public Base64QRCode createQRCodeForGoods(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,@RequestBody CreateMiniAppQRCode createGoodsQRCode){
return qrCodeService.createQRCodeForMiniApp(userId, createGoodsQRCode);
}
/**
* 创建小程序推广二维码
* @return
*/
@ApiOperation("创建推广海报二维码")
@PostMapping("/rec_mini_app")
public Base64QRCode createQRCodeForMiniApp(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,@RequestBody CreateMiniAppQRCode createGoodsQRCode){
return qrCodeService.createQRCodeForMiniApp(userId, createGoodsQRCode);
}
}

View File

@ -0,0 +1,46 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.SharePoster;
import com.csbaic.jd.service.ISharePosterService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 分享海报 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-23
*/
@Api(value = "分享海报", tags = "分享海报")
@RequestMapping("/posters")
@RestController
@ResponseResult
public class SharePosterController {
@Autowired
private ISharePosterService sharePosterService;
/**
* 获取海报
*/
@ApiOperation("获取分享海报")
@GetMapping
public IPage<SharePoster> getSharePosters(@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize ){
return sharePosterService.getPosters(pageIndex, pageSize);
}
}

View File

@ -0,0 +1,37 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.*;
import com.csbaic.jd.extend.sms.validate.ValidateArgs;
import com.csbaic.jd.service.sms.SmsBiz;
import com.csbaic.jd.service.sms.SmsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/sms")
@Api(value = "短信", tags = "短信")
@ResponseResult
public class SmsController {
@Autowired
private SmsService smsService;
@ApiOperation("发送验证手机号验证码")
@PostMapping("/send_validate_phone_code")
public void sendValidatePhoneCode(@RequestBody PhoneNumber phoneNumber){
smsService.send(phoneNumber.getPhoneExt(), phoneNumber.getPhone(), SmsBiz.VALIDATE_PHONE);
}
@ApiOperation("验证手机号验证码")
@PostMapping("/validate_phone")
public void validatePhoneCode(@RequestBody ValidatePhoneNumber phoneNumber){
smsService.validate(new ValidateArgs(phoneNumber.getPhoneExt(), phoneNumber.getPhone(), phoneNumber.getCode(), SmsBiz.VALIDATE_PHONE.name()));
}
}

View File

@ -0,0 +1,46 @@
package com.csbaic.jd.controller.app;
import com.csbaic.jd.dto.ApplySuperMember;
import com.csbaic.jd.dto.SuperMemberApplyInfo;
import com.csbaic.jd.service.ISuperMemberApplyService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
/**
* <p>
* 超级会员申请表 前端控制器
* </p>
*
* @author yjwfn
* @since 2020-03-24
*/
@RestController
@RequestMapping("/super_members")
@Api(value = "超级会员申请", tags = "超级会员申请")
@ResponseResult
public class SuperMemberApplyController {
@Autowired
ISuperMemberApplyService superMemberApplyService;
@ApiOperation("获取群组信息(预申请)")
@GetMapping("")
public SuperMemberApplyInfo getSuperMemberApplyInfo(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId){
return superMemberApplyService.getSuperMemberApplyInfo(userId);
}
@ApiOperation("提交/更新群组申请")
@PostMapping("")
public void submitSuperMemberApply(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,@RequestBody ApplySuperMember applySuperMember){
superMemberApplyService.submitApplySuperMember(userId, applySuperMember);
}
}

View File

@ -0,0 +1,43 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.CreateTimelineGoods;
import com.csbaic.jd.dto.PageQuery;
import com.csbaic.jd.dto.TimelineGoods;
import com.csbaic.jd.service.ITimelineGoodsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@Api(value = "朋友圈必推", tags = "朋友圈必推")
@RequestMapping("/timeline_goods")
@RestController
@ResponseResult
public class TimelineGoodsController {
@Autowired
private ITimelineGoodsService timelineGoodsService;
/**
* 查询发圈商品
* @return
*/
@ApiOperation("查询发圈商品")
@PostMapping("/get_timeline_goods")
public IPage<TimelineGoods> getTimelineGoods(@RequestBody PageQuery query){
return timelineGoodsService.getTimelineGoods(query.getPageIndex(),query.getPageSize());
}
@ApiOperation("登陆发圈商品")
@PostMapping
public void createTimelineGoods(@RequestBody CreateTimelineGoods goods){
timelineGoodsService.createTimelineGoods(goods);
}
}

View File

@ -0,0 +1,17 @@
package com.csbaic.jd.controller.app;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/usage")
@Api(value = "攻略", tags = "攻略")
@ResponseResult
public class UsageController {
}

View File

@ -0,0 +1,112 @@
package com.csbaic.jd.controller.app;
import com.csbaic.auth.accesstoken.AccessTokenService;
import com.csbaic.common.result.Result;
import com.csbaic.jd.dto.*;
import com.csbaic.jd.service.IUserService;
import com.csbaic.jd.service.user.MemberService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.Map;
@RestController
@ResponseResult
@RequestMapping("/users")
@Api(value = "用户接口", tags = "用户接口")
public class UserController {
@Autowired
private IUserService userService;
@Autowired
private AccessTokenService accessTokenService;
@Autowired
private MemberService memberService;
/**
* 更新用户信息
* @param user 用户信息
* @return
*/
@ApiOperation("更新用户信息")
@PutMapping("/update_user_info")
public void updateUserInfo(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody UpdateUserInfo user){
userService.updateUserInfo(userId, user);
}
/**
* 获取用户信息
* @return
*/
@ApiOperation("获取我的用户信息")
@GetMapping("/mine")
public MineUserInfo getMyUserInfo(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId){
return userService.getMyUserInfo(userId);
}
/**
* 注册用户
* @param user 用户信息
* @return
*/
@ApiOperation("用户注册")
@PostMapping("/wechat")
public LoginInfo createUserByWechat(@RequestBody CreateWechatUser user){
return userService.createUserByWechat(user);
}
/**
* 查询用户通讯录
* @return
*/
@ApiOperation("查询用户通讯录")
@PostMapping("/contacts")
public UserContacts getMembersOf(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,@RequestBody QueryContacts contacts){
return memberService.getUserContacts(userId, contacts);
}
/**
* 使用code获取用户信息
* @param code 邀请码
* @return
*/
@ApiOperation("使用邀请码获取用户信息")
@PostMapping("/get_by_invitation_code/{code}")
public SimpleUserInfo createUserByWechat(@PathVariable("code") String code){
return userService.getUserInfoByInvitationCode(code);
}
//
// /**
// * 查询用户通讯录
// * @return
// */
// @ApiOperation("生成token测试")
// @PostMapping("/{userId}")
// public Result createToken(@PathVariable("userId") Long userId){
// Map<String, Object> p = new HashMap<>();
// p.put("user_id", userId);
// return Result.ok(accessTokenService.encode(p));
// }
}

View File

@ -0,0 +1,101 @@
package com.csbaic.jd.controller.app;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.csbaic.jd.dto.*;
import com.csbaic.jd.service.IApplyWithdrawOrderService;
import com.csbaic.jd.service.ISettlementCalculateResultService;
import com.csbaic.jd.service.settlement.SettlementService;
import com.csbaic.jd.service.sms.SmsBiz;
import com.csbaic.jd.service.sms.SmsService;
import com.csbaic.web.annotation.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/wallet")
@Api(value = "钱包", tags = "钱包")
@ResponseResult
public class WalletController {
@Autowired
private IApplyWithdrawOrderService withdrawOrderService;
@Autowired
private SettlementService settlementService;
@Autowired
private ISettlementCalculateResultService settlementCalculateResultService;
@Autowired
private SmsService smsService;
@GetMapping("/settle_once_for_month")
@ApiOperation("执行一次结算")
public void settleOnce( @RequestParam("witch") int witchMonth){
settlementService.settlementMonthly( witchMonth);
}
@GetMapping
@ApiOperation("获取提现账号信息")
public WithdrawAccountInfo getWithdrawInfo(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId){
return withdrawOrderService.getWithdrawAccountInfo(userId);
}
@PostMapping("/apply_withdraw")
@ApiOperation("申请提现")
public void applyWithdraw(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody ApplyWithdrawInfo info){
withdrawOrderService.createApplyWithdrawOrder(userId,info);
}
@PostMapping("/apply_withdraw_cancel/{id}")
@ApiOperation("取消申请提现")
public void cancelWithdraw(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @PathVariable("id") Long orderId ){
withdrawOrderService.cancelApplyWithdrawOrder(userId, orderId);
}
@PostMapping("/send_apply_withdraw_code")
@ApiOperation("发送申请提现验证码")
public void sendApplyWithdrawCode(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId, @RequestBody PhoneNumber phoneNumber){
smsService.send(phoneNumber.getPhoneExt(), phoneNumber.getPhone(), SmsBiz.APPLY_WITHDRAW);
}
@GetMapping("/withdraw_records")
@ApiOperation("提现记录")
public IPage<WithdrawOrderInfo> getWithdrawRecords(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
@RequestParam(value = "pageSize", defaultValue = "20") int pageSize ){
return withdrawOrderService.getWithdrawOrders(userId, pageIndex, pageSize);
}
@GetMapping("/billings")
@ApiOperation("结算记录")
public IPage<SettlementCalculateInfo> getBillingRecords(@ApiParam(hidden = true) @AuthenticationPrincipal(expression = "id") Long userId,
@RequestParam(value = "pageIndex", defaultValue = "1") int pageIndex,
@RequestParam(value = "pageSize", defaultValue = "20") int pageSize
){
return settlementCalculateResultService.getSettlementCalculateRecords(userId, pageIndex, pageSize);
}
}

View File

@ -0,0 +1,60 @@
package com.csbaic.jd.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
@ApiModel
@Data
public class Activity {
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 活动标题
*/
@ApiModelProperty("活动标题")
private String title;
/**
* 活动分享图
*/
@ApiModelProperty("活动分享图")
private String shareImage;
/**
* 活动logo图
*/
@ApiModelProperty("活动logo图")
private String logoImage;
/**
* 活动分享文本
*/
@ApiModelProperty("活动分享文本")
private String content;
/**
* 活动开始时间
*/
@ApiModelProperty("活动开始时间")
private LocalDateTime startTime;
/**
* 活动状态
*/
@ApiModelProperty("活动状态")
private Integer status;
/**
* 活动结束时间
*/
@ApiModelProperty("活动结束时间")
private LocalDateTime endTime;
}

View File

@ -0,0 +1,13 @@
package com.csbaic.jd.dto;
import lombok.Data;
import java.util.List;
@Data
public class ActivityDetail {
private Activity activity;
private List<Goods> goods;
}

View File

@ -0,0 +1,14 @@
package com.csbaic.jd.dto;
import lombok.Data;
import java.util.List;
@Data
public class ApplySuperMember {
/**
* 验证图片
*/
private List<String> imageUrls;
}

View File

@ -0,0 +1,41 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.math.BigDecimal;
/**
* 提现信息
*/
@ApiModel
@Data
public class ApplyWithdrawInfo {
/**
* 申请提现金额
*/
private BigDecimal amount;
/**
* 收款人微信号
*/
private String wechatId;
/**
* 收款人姓名
*/
private String payeeName;
/**
* 收款人身份证号
*/
private String payeeCardId;
/**
* 短信验证码
*/
private String code;
}

View File

@ -0,0 +1,50 @@
package com.csbaic.jd.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class Banner {
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 标题
*/
private String title;
/***
* Banner跳转位置
*/
private String location;
/**
* Banner封面图片地址
*/
private String coverUrl;
/**
* 开始时间
*/
private LocalDateTime startTime;
/**
* 结束时间
*/
private LocalDateTime endTime;
/**
* 是否启用
*/
private Integer status;
}

View File

@ -0,0 +1,20 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 二维码
*/
@Data
@ApiModel
public class Base64QRCode {
/**
* 二维码base64编码
*/
@ApiModelProperty("二维码base64编码")
private String content;
}

View File

@ -0,0 +1,14 @@
package com.csbaic.jd.dto;
import lombok.Data;
@Data
public class CategoryInfo {
private Long cid1;
private String cid1Name;
private Long cid2;
private String cid2Name;
private Long cid3;
private String cid3Name;
}

View File

@ -0,0 +1,30 @@
package com.csbaic.jd.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CategoryMapping {
private Long id;
/**
* 京东分类ID;
*/
private Long jid;
/**
* 分类名称
*/
private String name;
}

View File

@ -0,0 +1,39 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class CommissionInfo {
/***
* 佣金
*/
@ApiModelProperty(value = "佣金")
private Double commission;
// /**
// *
// * 佣金比例
// */
// @ApiModelProperty(value = "佣金比例")
// private Double commissionShare;
/**
*
* 佣金
*/
@ApiModelProperty(value = "佣金")
private Double couponCommission;
/**
*
* 佣金
*/
@ApiModelProperty(value = "返利提示字段")
private String rebateHint;
@ApiModelProperty(value = "会员佣金提示字段")
private String commissionHint;
}

View File

@ -0,0 +1,23 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
public class ConvertUrlContent {
/***
* 内容
*/
@ApiModelProperty("需要转换的内容")
private String content;
// /**
// * 推广人邀请码
// */
// @ApiModelProperty(" 推广人邀请码,为空则为当前登陆用户")
// private String invitationCode;
}

View File

@ -0,0 +1,12 @@
package com.csbaic.jd.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
@AllArgsConstructor
@Data
public class ConvertUrlResult {
private String content;
}

View File

@ -0,0 +1,50 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class Coupon {
/**
* 券种类 (优惠券种类0 - 全品类1 - 限品类自营商品2 - 限店铺3 - 店铺限商品券)
*/
@ApiModelProperty("券种类 (优惠券种类0 - 全品类1 - 限品类自营商品2 - 限店铺3 - 店铺限商品券)")
private Integer bindType;
/**
* 优惠券值折扣
*/
@ApiModelProperty("优惠券值折扣")
private Double discount;
private Long getEndTime;
private Long getStartTime;
/**
* 是否是最好的
*/
@ApiModelProperty("是否是最好的")
private Integer isBest;
/**
* 优惠券链接
*/
@ApiModelProperty("优惠券链接")
private String link;
/***
*
* 券使用平台 (平台类型0 - 全平台券1 - 限平台券)
*/
@ApiModelProperty("券使用平台 (平台类型0 - 全平台券1 - 限平台券)")
private Integer platformType;
/**
* 优惠券值面额
*/
@ApiModelProperty("优惠券值面额")
private Double quota;
private Long useEndTime;
private Long useStartTime;
}

View File

@ -0,0 +1,62 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel
@Data
public class CreateActivity {
/**
* 活动标题
*/
@ApiModelProperty("活动标题")
private String title;
/**
* 活动分享图
*/
@ApiModelProperty("活动分享图")
private String shareImage;
/**
* 活动logo图
*/
@ApiModelProperty("活动logo图")
private String logoImage;
/**
* 活动分享文本
*/
@ApiModelProperty("活动分享文本")
private String content;
/**
* 活动开始时间
*/
@ApiModelProperty(value = "活动开始时间(不传为当前时间)", example = "20200302120000")
private String startTime;
/**
* 活动结束时间
*/
@ApiModelProperty(value = "活动结束时间(如果不传为当前时间+1年", example = "20200402120000")
private String endTime;
/**
* 活动状态
*/
@ApiModelProperty(value = "状态1: 自动2显示3未显示")
private Integer status;
}

View File

@ -0,0 +1,47 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class CreateBanner {
/**
* 标题
*/
@ApiModelProperty(value = "banner标题")
private String title;
/***
* Banner跳转位置
*/
@ApiModelProperty(value = "跳转位置")
private String location;
/**
* Banner封面图片地址
*/
@ApiModelProperty(value = "封面图")
private String coverUrl;
/**
* 开始时间
*/
@ApiModelProperty(value = "活动开始时间(不传为当前时间)", example = "20200302120000")
private String startTime;
/**
* 结束时间
*/
@ApiModelProperty(value = "活动结束时间(不传为当前时间 + 1年", example = "20200402120000")
private String endTime;
@ApiModelProperty(value = "状态1: 自动2显示3未显示")
private Integer status;
}

View File

@ -0,0 +1,14 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
public class CreateBannerByActivity {
@ApiModelProperty("活动id")
private List<Long> activities;
}

View File

@ -0,0 +1,10 @@
package com.csbaic.jd.dto;
import lombok.Data;
@Data
public class CreateFeedback {
private String content;
}

View File

@ -0,0 +1,29 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel
public class CreateGoodsQRCode {
/**
* 商品链接
*/
@ApiModelProperty("商品链接")
private String materialUrl;
/**
* 优惠券链接
*/
@ApiModelProperty("优惠券链接")
private String couponUrl;
/**
* 二维宽高大小
*/
@ApiModelProperty("二维宽高大小")
private Integer size;
}

View File

@ -0,0 +1,24 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class CreateGoodsShortUrl {
/**
* 商品满地页
*/
@ApiModelProperty(" 商品满地页")
private String materialId;
/**
* 优惠券url
*/
@ApiModelProperty("优惠券url")
private String couponUrl;
}

View File

@ -0,0 +1,53 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel
@Data
public class CreateMessage {
/**
* 活动标题
*/
@ApiModelProperty("消息标题")
private String title;
/**
* 消息分享文本
*/
@ApiModelProperty("消息分享文本")
private String content;
/**
* 消息开始时间
*/
@ApiModelProperty(value = "活动开始时间(不传为当前时间)", example = "20200302120000")
private String startTime;
/**
* 消息结束时间
*/
@ApiModelProperty(value = "活动结束时间(如果不传为当前时间+1年", example = "20200402120000")
private String endTime;
/**
* 消息状态
*/
@ApiModelProperty(value = "状态1: 自动2显示3未显示")
private Integer status;
/**
* 消息状态
*/
@ApiModelProperty(value = "类型1: 促销消息2系统消息")
private Integer type;
}

View File

@ -0,0 +1,46 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Map;
@Data
@ApiModel
public class CreateMiniAppQRCode {
/**
* 最大32个可见字符只支持数字大小写英文以及部分特殊字符!#$&'()*+,/:;=?@-._~其它字符请自行编码为合法字符因不支持%中文无法使用 urlencode 处理请使用其他编码方式
*/
@ApiModelProperty(required = true,value = "最大32个可见字符只支持数字大小写英文以及部分特殊字符!#$&'()*+,/:;=?@-._~,其它字符请自行编码为合法字符(因不支持%,中文无法使用 urlencode 处理,请使用其他编码方式) ")
private Map<String, Object> scene;
/**
* 必须是已经发布的小程序存在的页面否则报错例如 pages/index/index, 根路径前不要填加 /,不能携带参数参数请放在scene字段里如果不填写这个字段默认跳主页面
*/
@ApiModelProperty("必须是已经发布的小程序存在的页面(否则报错),例如 pages/index/index, 根路径前不要填加 /,不能携带参数参数请放在scene字段里如果不填写这个字段默认跳主页面")
private String page;
/**
* 是否需要透明底色 true 生成透明底色的小程序
*/
@ApiModelProperty("是否需要透明底色,为 true 时,生成透明底色的小程序")
private Boolean isHyaline;
@ApiModelProperty("自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调,默认 false")
private Boolean autoColor;
@ApiModelProperty("auto_color 为 false 时生效,使用 rgb 设置颜色 例如 {\"r\":\"xxx\",\"g\":\"xxx\",\"b\":\"xxx\"} 十进制表示")
private RGBColor lineColor;
/**
* 二维宽高大小
*/
@ApiModelProperty("小程序码宽高大小")
private Integer size = 280;
}

View File

@ -0,0 +1,54 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* <p>
* 新闻
* </p>
*
* @author yjwfn
* @since 2020-02-14
*/
@Data
public class CreateNews implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 活动标题
*/
@ApiModelProperty("活动标题")
private String title;
/**
* 跳转页面
*/
@ApiModelProperty("快报跳转路径")
private String location;
/**
* 活动开始时间
*/
@ApiModelProperty(value = "快报开始时间(不传为当前时间)", example = "20200302120000")
private String startTime;
/**
* 活动结束时间
*/
@ApiModelProperty(value = "快报结束时间(不传为当前时间 + 1年", example = "20200402120000")
private String endTime;
@ApiModelProperty(value = "快报状态", example = "1自动,2显示,3隐藏", allowableValues = "1,2,3")
private Integer status;
}

View File

@ -0,0 +1,14 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
public class CreateNewsByActivity {
@ApiModelProperty("活动id")
private List<Long> activities;
}

View File

@ -0,0 +1,28 @@
package com.csbaic.jd.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class CreatePurchaseShortUrl {
/**
* 商品满地页
*/
@ApiModelProperty(" 商品满地页")
private String materialId;
/**
* 优惠券url
*/
@ApiModelProperty("优惠券url")
private String couponUrl;
/**
* 推广人邀请码
*/
@ApiModelProperty(" 推广人邀请码,为空则为当前登陆用户")
private String invitationCode;
}

View File

@ -0,0 +1,17 @@
package com.csbaic.jd.dto;
import lombok.Data;
@Data
public class CreateQuesCategory {
/**
* 分类名称
*/
private String name;
/**
* 分类图标
*/
private String icon;
}

View File

@ -0,0 +1,24 @@
package com.csbaic.jd.dto;
import lombok.Data;
@Data
public class CreateQuestion {
/**
* 分类名称
*/
private Long cid;
/**
* 问题标题
*/
private String title;
/**
* 解答
*/
private String answer;
}

View File

@ -0,0 +1,30 @@
package com.csbaic.jd.dto;
import lombok.Data;
@Data
public class CreateSharePoster {
/**
* 海报名称
*/
private String title;
/**
* 图片Url
*/
private String iconUrl;
/**
* 分享图
*/
private String imageUrl;
/**
* 海报文字内容
*/
private String content;
}

Some files were not shown because too many files have changed in this diff Show More