22 Commits

Author SHA1 Message Date
wol
52772c4e13 上传文件至 sql脚本/客户管理完整sql 2025-01-12 23:44:16 +08:00
wol
2cb02bc4c7 上传文件至 sql脚本 2025-01-12 23:43:56 +08:00
wol
e4d2affa2c 上传文件至 sql脚本 2025-01-12 23:43:31 +08:00
wol
44fa58536a 上传文件至 面试题 2025-01-12 23:43:01 +08:00
wol
8decbd4df0 上传文件至 讲义 2025-01-12 23:41:17 +08:00
wol
caec81c767 上传文件至 讲义 2025-01-12 23:40:42 +08:00
wol
f06af34163 添加 ReadMe.md 2025-01-12 23:39:20 +08:00
JIAN
921a83d5c3 Merge branch 'dev_market' 2024-10-01 15:57:17 +08:00
JIAN
652acfea14 feat(market):新增优惠卷回退的功能 2024-10-01 15:53:44 +08:00
JIAN
75ab9620f4 feat(market):新增优惠卷核销的功能 2024-10-01 14:27:39 +08:00
JIAN
a355354d5f feat(orders.manager):新增查询用户可用优惠卷的功能 2024-10-01 12:57:58 +08:00
JIAN
34c78b0d62 feat(market):新增查询用户可用优惠卷的功能 2024-10-01 12:42:06 +08:00
JIAN
31b5b7c8f2 feat(market):新增持久化Redis抢卷信息的功能 2024-09-27 20:21:09 +08:00
JIAN
136715846c refactor(market):优化代码结构 2024-09-26 23:31:08 +08:00
JIAN
c09e6bf680 feat(market):新增缓存库存和用户端抢卷的功能 2024-09-26 23:29:23 +08:00
JIAN
cea88fc351 feat(market):新增缓存活动信息和查询缓存的活动信息的功能 2024-09-24 22:54:46 +08:00
JIAN
b98ff8fdf3 feat(market):新增自动修改活动状态和自动失效过期优惠卷的功能 2024-09-23 22:52:07 +08:00
JIAN
3a5882268d feat(market):新增查询优惠卷信息的相关功能 2024-09-23 22:07:04 +08:00
JIAN
f6238fbca7 feat(market):新增运营端的活动管理的相关功能
1. 查询活动信息 2. 新增/更新活动信息 3. 撤销活动信息
2024-09-23 21:19:33 +08:00
JIAN
d4c244701b refactor(market):导入项目优惠卷模块初始工程 2024-09-20 11:18:53 +08:00
JIAN
0d8561edc7 Merge branch 'dev_health' 2024-09-20 11:00:33 +08:00
JIAN
554aa38576 fix(orders.manager):修复支付接口的调用参数错误的bug 2024-09-20 10:58:43 +08:00
88 changed files with 7991 additions and 27 deletions

3
ReadMe.md Normal file
View File

@@ -0,0 +1,3 @@
## 云岚到家
飞书讲义https://mx67xggunk5.feishu.cn/wiki/P93bwwgNoihG7yk7PEzcpKn6nbZ

View File

@@ -0,0 +1,39 @@
package com.jzo2o.api.market;
import com.jzo2o.api.market.dto.request.CouponUseBackReqDTO;
import com.jzo2o.api.market.dto.request.CouponUseReqDTO;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.api.market.dto.response.CouponUseResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.math.BigDecimal;
import java.util.List;
/**
* 内部接口 - 优惠卷相关接口
* @author JIAN
*/
@FeignClient(contextId = "jzo2o-market", value = "jzo2o-market", path = "/market/inner/coupon")
public interface CouponApi {
/**
* 根据订单金额获取当前用户可用优惠卷
*/
@GetMapping("/getAvailable")
List<AvailableCouponsResDTO> getAvailableCoupon(@RequestParam BigDecimal totalAmount);
/**
* 用户核销优惠卷返回优惠金额
*/
@PostMapping("/use")
CouponUseResDTO useCoupon(@RequestBody CouponUseReqDTO couponUseReqDTO);
/**
* 用户取消订单退回使用优惠卷
*/
@PostMapping("/useBack")
void useBack(@RequestBody CouponUseBackReqDTO couponUseBackReqDTO);
}

View File

@@ -4,8 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel("优惠券使用退回请求模型")
@Data
@ApiModel("优惠券使用退回请求模型")
public class CouponUseBackReqDTO {
@ApiModelProperty("优惠券id")
private Long id;

View File

@@ -2,11 +2,13 @@ package com.jzo2o.api.market.dto.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import java.math.BigDecimal;
@Data
@Builder
@ApiModel("优惠券使用模型")
public class CouponUseReqDTO {
@ApiModelProperty("优惠券id")

View File

@@ -3,12 +3,17 @@ package com.jzo2o.api.market.dto.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* @author JIAN
*/
@Data
@ApiModel("优惠券信息")
@Accessors(chain = true)
public class AvailableCouponsResDTO {
@ApiModelProperty("优惠券id")
private Long id;
@@ -16,34 +21,34 @@ public class AvailableCouponsResDTO {
/**
* 优惠券名称
*/
@ApiModelProperty(value = "活动名称",required = true)
@ApiModelProperty(value = "活动名称", required = true)
private String name;
/**
* 活动id
*/
@ApiModelProperty(value = "活动id",required = true)
@ApiModelProperty(value = "活动id", required = true)
private Long activityId;
@ApiModelProperty(value = "使用类型1满减2折扣",required = true)
@ApiModelProperty(value = "使用类型1满减2折扣", required = true)
private Integer type;
/**
* 折扣
*/
@ApiModelProperty(value = "折扣",required = false)
@ApiModelProperty(value = "折扣")
private Integer discountRate;
/**
* 优惠金额
*/
@ApiModelProperty(value = "优惠金额",required = false)
@ApiModelProperty(value = "优惠金额")
private BigDecimal discountAmount;
/**
* 满减金额
*/
@ApiModelProperty(value = "满减条件,0:表示无门槛",required = true)
@ApiModelProperty(value = "满减条件,0:表示无门槛", required = true)
private BigDecimal amountCondition;
/**

View File

@@ -2,12 +2,16 @@ package com.jzo2o.api.market.dto.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@ApiModel("优惠券使用返回信息模型")
@NoArgsConstructor
@AllArgsConstructor
public class CouponUseResDTO {
@ApiModelProperty("优惠金额")
private BigDecimal discountAmount;

9
jzo2o-market/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM openjdk:11-jdk
LABEL maintainer="研究院研发组 <research-maint@itcast.cn>"
RUN echo "Asia/Shanghai" > /etc/timezone
ARG PACKAGE_PATH=./target/jzo2o-market.jar
ADD ${PACKAGE_PATH:-./} app.jar
EXPOSE 11510
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS app.jar"]

103
jzo2o-market/pom.xml Normal file
View File

@@ -0,0 +1,103 @@
<?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>
<artifactId>jzo2o-market</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
<artifactId>jzo2o-parent</artifactId>
<groupId>com.jzo2o</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-mvc</artifactId>
</dependency>
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-knife4j-web</artifactId>
</dependency>
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-mysql</artifactId>
</dependency>
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-api</artifactId>
</dependency>
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-redis</artifactId>
</dependency>
<!--单元测试-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--canal-->
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-canal-sync</artifactId>
</dependency>
<dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-xxl-job</artifactId>
</dependency>
<!-- <dependency>
<groupId>com.jzo2o</groupId>
<artifactId>jzo2o-seata</artifactId>
</dependency>-->
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.jzo2o.market.MarketApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,20 @@
package com.jzo2o.market;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@EnableAspectJAutoProxy
@SpringBootApplication
@Slf4j
@MapperScan("com.jzo2o.market.mapper")
public class MarketApplication {
public static void main(String[] args) {
new SpringApplicationBuilder(MarketApplication.class)
.build(args)
.run(args);
log.info("家政服务-营销中心启动");
}
}

View File

@@ -0,0 +1,23 @@
package com.jzo2o.market.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.data.redis.core.script.DefaultRedisScript;
import org.springframework.scripting.support.ResourceScriptSource;
/**
* 加载Redis的Lua脚本配置类
* @author JIAN
*/
@Configuration
public class RedisLuaConfiguration {
@Bean("seizeCouponScript")
public DefaultRedisScript<Integer> seizeCouponScript() {
DefaultRedisScript<Integer> redisScript = new DefaultRedisScript<>();
// resource目录下的scripts文件下的seizeCouponScript.lua文件
redisScript.setScriptSource(new ResourceScriptSource(new ClassPathResource("scripts/seizeCouponScript.lua")));
redisScript.setResultType(Integer.class);
return redisScript;
}
}

View File

@@ -0,0 +1,28 @@
package com.jzo2o.market.config;
import com.jzo2o.redis.properties.RedisSyncProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* 线程池配置
* @author JIAN
*/
@Configuration
public class TreadPoolConfiguration {
@Bean("syncThreadPool")
public ThreadPoolExecutor threadPoolExecutor(RedisSyncProperties redisSyncProperties) {
return new ThreadPoolExecutor(
1,
redisSyncProperties.getQueueNum(),
120,
TimeUnit.SECONDS,
new SynchronousQueue<>(),
new ThreadPoolExecutor.DiscardPolicy()
);
}
}

View File

@@ -0,0 +1,8 @@
package com.jzo2o.market.constants;
public class ErrorInfo {
public static class Msg {
public static final String SEIZE_COUPON_FAILD = "单子已经被抢走了";
}
}

View File

@@ -0,0 +1,52 @@
package com.jzo2o.market.constants;
public class RedisConstants {
public static final class RedisKey {
/**
* 优惠券库存表 由Canal同步程序写入
* redis key格式COUPON:RESOURCE:STOCK:{序号} 序号=活动id% 10
* hash结构 (hashKey:活动id,hashValue:库存数量)
*/
public static final String COUPON_RESOURCE_STOCK = "COUPON:RESOURCE:STOCK:{%s}";
/**
* 抢券同步队列,存储抢券成功记录由抢券程序(Lua)写入
* redis key格式 QUEUE:COUPON:SEIZE:SYNC:{序号} 序号=活动id% 10
* hash结构 (hashKey:活动id,hashValue:用户id)
*/
public static final String COUPON_SEIZE_SYNC_QUEUE_NAME = "COUPON:SEIZE:SYNC";
/**
* 抢券成功列表,用户抢券成功写入记录
* redis key格式 COUPON:SEIZE:LIST:活动id_{序号} 序号=活动id% 10
* hash结构 (hashKey:用户id,hashValue:1)
*/
public static final String COUPON_SEIZE_LIST = "COUPON:SEIZE:LIST:%s_{%s}";
/**
* 活动列表 由于活动预热程序写入,待开始及进行中的活动
* redis key格式:ACTIVITY:LIST
* string 结构: value=活动列表json串
*/
public static final String ACTIVITY_CACHE_LIST = "ACTIVITY:LIST";
}
public static final class Formatter {
/**
* 优惠券抢券同步
*/
public static final String COUPON_SEIZE_HANDLE_LOCK = "COUPON:SEIZE:RESULT_PROCESS";
/**
* 活动预热
*/
public static final String ACTIVITY_PREHEAT = "ACTIVITY:PREHEAT";
/**
* 活动结束
*/
public static final String ACTIVITY_FINISHED = "ACTIVITY:FINISHED";
}
}

View File

@@ -0,0 +1,13 @@
package com.jzo2o.market.constants;
public class TabTypeConstants {
/**
* 抢单中
*/
public static final int SEIZING = 1;
/**
* 未开始
*/
public static final int NO_START = 2;
}

View File

@@ -0,0 +1,44 @@
package com.jzo2o.market.controller.consumer;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.market.enums.ActivityStatusEnum;
import com.jzo2o.market.model.dto.response.SeizeCouponInfoResDTO;
import com.jzo2o.market.service.IActivityService;
import lombok.extern.slf4j.Slf4j;
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 javax.annotation.Resource;
import java.util.List;
/**
* 用户端 - 活动管理控制器
* @author JIAN
*/
@Slf4j
@RestController("consumerActivityController")
@RequestMapping("/consumer/activity")
public class ActivityController {
@Resource
private IActivityService activityService;
/**
* 用户端查询缓存中的活动信息
* @param tabType 1 进行中 2 待生效
*/
@GetMapping("/list")
public List<SeizeCouponInfoResDTO> listActivity(@RequestParam Integer tabType) {
ActivityStatusEnum activityStatusEnum;
if (tabType == 1) {
activityStatusEnum = ActivityStatusEnum.DISTRIBUTING;
} else if (tabType == 2) {
activityStatusEnum = ActivityStatusEnum.NO_DISTRIBUTE;
} else {
throw new BadRequestException("请求的状态出错");
}
return activityService.getCachedActivity(activityStatusEnum);
}
}

View File

@@ -0,0 +1,50 @@
package com.jzo2o.market.controller.consumer;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.common.utils.ObjectUtils;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.model.dto.request.SeizeCouponReqDTO;
import com.jzo2o.market.model.dto.response.CouponSimpleInfoResDTO;
import com.jzo2o.market.service.IActivityService;
import com.jzo2o.market.service.ICouponService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 用户端 - 优惠卷管理控制器
* @author JIAN
*/
@Slf4j
@RestController("consumerCouponController")
@RequestMapping("/consumer/coupon")
public class CouponController {
@Resource
private IActivityService activityService;
@Resource
private ICouponService couponService;
/**
* 获取当前用户的优惠卷(滚动查询)
*/
@GetMapping("/my")
public List<CouponSimpleInfoResDTO> currentUserCoupon(@RequestParam Integer status,
@RequestParam(required = false) Integer lastId) {
CouponStatusEnum couponStatusEnum = CouponStatusEnum.statusOf(status);
if (ObjectUtils.isEmpty(couponStatusEnum)) {
throw new BadRequestException("优惠卷状态出错");
}
return couponService.getCurrentUserCoupon(couponStatusEnum, lastId);
}
/**
* 用户抢卷接口
*/
@PostMapping("/seize")
public void seizeCoupon(@RequestBody SeizeCouponReqDTO seizeCouponReqDTO) {
activityService.seizeCoupon(seizeCouponReqDTO);
}
}

View File

@@ -0,0 +1,59 @@
package com.jzo2o.market.controller.inner;
import com.jzo2o.api.market.CouponApi;
import com.jzo2o.api.market.dto.request.CouponUseBackReqDTO;
import com.jzo2o.api.market.dto.request.CouponUseReqDTO;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.api.market.dto.response.CouponUseResDTO;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.market.service.ICouponUseBackService;
import com.jzo2o.market.service.ICouponWriteOffService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
/**
* 内部接口 - 优惠卷管理控制器
* @author JIAN
*/
@Slf4j
@RestController("innerCouponController")
@RequestMapping("/inner/coupon")
public class CouponController implements CouponApi {
@Resource
private ICouponService couponService;
@Resource
private ICouponWriteOffService couponWriteOffService;
@Resource
private ICouponUseBackService couponUseBackService;
/**
* 根据订单金额获取当前用户可用优惠卷
*/
@Override
@GetMapping("/getAvailable")
@ApiOperation("获取可用优惠券列表")
@ApiImplicitParam(name = "totalAmount", value = "总金额,单位分", required = true, dataTypeClass = BigDecimal.class)
public List<AvailableCouponsResDTO> getAvailableCoupon(@RequestParam BigDecimal totalAmount) {
return couponService.getAvailableCoupon(totalAmount);
}
@Override
@PostMapping("/use")
@ApiOperation("使用优惠卷并返回优惠金额")
public CouponUseResDTO useCoupon(@RequestBody CouponUseReqDTO couponUseReqDTO) {
return couponWriteOffService.use(couponUseReqDTO);
}
@Override
@PostMapping("/useBack")
@ApiOperation("优惠券退回接口")
public void useBack(@RequestBody CouponUseBackReqDTO couponUseBackReqDTO) {
couponUseBackService.useBack(couponUseBackReqDTO);
}
}

View File

@@ -0,0 +1,43 @@
package com.jzo2o.market.controller.operation;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.model.dto.request.ActivityPageQueryDTO;
import com.jzo2o.market.model.dto.request.ActivitySaveReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import com.jzo2o.market.service.IActivityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
* 运营端 - 活动管理控制器
* @author JIAN
*/
@Slf4j
@RestController("operationActivityController")
@RequestMapping("/operation/activity")
public class ActivityController {
@Resource
private IActivityService activityService;
@GetMapping("/page")
public PageResult<ActivityInfoResDTO> pageActivity(ActivityPageQueryDTO activityPageQueryDTO) {
return activityService.page(activityPageQueryDTO);
}
@GetMapping("/{id}")
public ActivityInfoResDTO getActivity(@PathVariable Long id) {
return activityService.getDetailById(id);
}
@PostMapping("/save")
public void saveOrUpdateActivity(@RequestBody ActivitySaveReqDTO activitySaveReqDTO) {
activityService.saveOrUpdate(activitySaveReqDTO);
}
@PostMapping("/revoke/{id}")
public void revokeActivity(@PathVariable Long id) {
activityService.revoke(id);
}
}

View File

@@ -0,0 +1,29 @@
package com.jzo2o.market.controller.operation;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.model.dto.request.CouponPageQueryDTO;
import com.jzo2o.market.model.dto.response.CouponPageInfoResDTO;
import com.jzo2o.market.service.ICouponService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* 运营端 - 优惠卷管理控制器
* @author JIAN
*/
@Slf4j
@RestController("operationCouponController")
@RequestMapping("/operation/coupon")
public class CouponController {
@Resource
private ICouponService couponService;
@GetMapping("/page")
public PageResult<CouponPageInfoResDTO> pageCoupon(CouponPageQueryDTO couponPageQueryDTO) {
return couponService.page(couponPageQueryDTO);
}
}

View File

@@ -0,0 +1,28 @@
package com.jzo2o.market.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 活动状态枚举类
* @author JIAN
*/
@Getter
@AllArgsConstructor
public enum ActivityStatusEnum {
NO_DISTRIBUTE(1, "待生效"),
DISTRIBUTING(2, "进行中"),
LOSE_EFFICACY(3, "已失效"),
VOIDED(4, "作废");
@EnumValue
@JsonValue
private int status;
private String name;
public boolean equals(Integer status) {
return status != null && this.status == status;
}
}

View File

@@ -0,0 +1,39 @@
package com.jzo2o.market.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 优惠卷状态枚举类
* @author JIAN
*/
@Getter
@AllArgsConstructor
public enum CouponStatusEnum {
NO_USE(1, "未使用"),
USED(2, "已使用"),
INVALID(3, "已失效"),
VOIDED(4, "已作废");
@EnumValue
@JsonValue
private int status;
private String name;
public static CouponStatusEnum statusOf(Integer status) {
if (status == null) {
return null;
}
for (CouponStatusEnum couponStatusEnum : CouponStatusEnum.values()) {
if (couponStatusEnum.getStatus() == status) {
return couponStatusEnum;
}
}
// not found
return null;
}
}

View File

@@ -0,0 +1,41 @@
package com.jzo2o.market.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 优惠券类型枚举类
* @author JIAN
*/
@Getter
@AllArgsConstructor
public enum CouponTypeEnum {
AMOUNT_DISCOUNT(1, "满减"),
RATE_DISCOUNT(2, "打折");
@EnumValue
@JsonValue
private int type;
private String name;
public boolean equals(Integer type) {
return type != null && type.equals(this.type);
}
public static CouponTypeEnum typeOf(Integer type) {
if (type == null) {
return null;
}
for (CouponTypeEnum couponTypeEnum : CouponTypeEnum.values()) {
if (couponTypeEnum.getType() == type) {
return couponTypeEnum;
}
}
// not found
return null;
}
}

View File

@@ -0,0 +1,38 @@
package com.jzo2o.market.handler;
import com.jzo2o.common.expcetions.CommonException;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.redis.handler.SyncProcessHandler;
import com.jzo2o.redis.model.SyncMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.List;
import static com.jzo2o.market.constants.RedisConstants.RedisKey.COUPON_SEIZE_SYNC_QUEUE_NAME;
/**
* 抢卷同步队列同步处理器
* @author JIAN
*/
@Slf4j
@Component(COUPON_SEIZE_SYNC_QUEUE_NAME)
public class SeizeCouponSyncProcessHandler implements SyncProcessHandler<Object> {
@Resource
private ICouponService couponService;
@Override
public void batchProcess(List<SyncMessage<Object>> multiData) {
throw new CommonException("不支持批量处理");
}
@Override
public void singleProcess(SyncMessage<Object> singleData) {
long userId = Long.parseLong(singleData.getKey());
long activityId = Long.parseLong(singleData.getValue().toString());
log.info("同步优惠卷信息, 活动id: {}, 用户id: {}", activityId, userId);
couponService.syncCouponRecord(activityId, userId);
}
}

View File

@@ -0,0 +1,77 @@
package com.jzo2o.market.handler;
import com.jzo2o.market.service.IActivityService;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.redis.sync.SyncManager;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.concurrent.ThreadPoolExecutor;
import static com.jzo2o.market.constants.RedisConstants.RedisKey.COUPON_SEIZE_SYNC_QUEUE_NAME;
import static com.jzo2o.redis.constants.RedisSyncQueueConstants.MODE_SINGLE;
import static com.jzo2o.redis.constants.RedisSyncQueueConstants.STORAGE_TYPE_HASH;
/**
* XxlJob任务处理器
* @author JIAN
*/
@Slf4j
@Component
@SuppressWarnings("unused")
public class XxlJobHandler {
@Resource
private IActivityService activityService;
@Resource
private ICouponService couponService;
@Resource(name = "syncThreadPool")
private ThreadPoolExecutor syncThreadPool;
@Resource
private SyncManager syncManager;
/**
* 自动修改活动状态(1分钟1次)
* 1.活动进行中状态修改
* 2.活动已失效状态修改
*/
@XxlJob("updateActivityStatus")
@Transactional
public void updateActivityStatus() {
log.info("自动修改活动状态任务开始");
activityService.updateActivityStatus();
log.info("自动修改活动状态任务完成");
}
/**
* 自动过期已领取优惠券(1小时1次)
*/
@XxlJob("processExpireCoupon")
public void processExpireCoupon() {
log.info("自动过期已领取优惠券任务开始");
couponService.invalidExpiredCoupon();
log.info("自动过期已领取优惠券任务完成");
}
/**
* 自动预热(缓存)1个月内的活动
*/
@XxlJob("activityPreheat")
public void activityPreheat() {
log.info("自动预热1个月内的活动任务开始");
activityService.cacheComingActivity();
log.info("自动预热1个月内的活动任务完成");
}
/**
* 自动从Redis同步抢卷结果到数据库
*/
@XxlJob("seizeCouponSyncJob")
public void seizeCouponSyncJob() {
log.info("自动从Redis同步抢卷结果到数据库任务开始");
syncManager.start(COUPON_SEIZE_SYNC_QUEUE_NAME, STORAGE_TYPE_HASH, MODE_SINGLE, syncThreadPool);
}
}

View File

@@ -0,0 +1,16 @@
package com.jzo2o.market.mapper;
import com.jzo2o.market.model.domain.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author itcast
* @since 2023-09-16
*/
public interface ActivityMapper extends BaseMapper<Activity> {
}

View File

@@ -0,0 +1,16 @@
package com.jzo2o.market.mapper;
import com.jzo2o.market.model.domain.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author itcast
* @since 2023-09-16
*/
public interface CouponMapper extends BaseMapper<Coupon> {
}

View File

@@ -0,0 +1,16 @@
package com.jzo2o.market.mapper;
import com.jzo2o.market.model.domain.CouponUseBack;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 优惠券使用回退记录 Mapper 接口
* </p>
*
* @author itcast
* @since 2023-09-18
*/
public interface CouponUseBackMapper extends BaseMapper<CouponUseBack> {
}

View File

@@ -0,0 +1,16 @@
package com.jzo2o.market.mapper;
import com.jzo2o.market.model.domain.CouponWriteOff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 优惠券核销表 Mapper 接口
* </p>
*
* @author itcast
* @since 2023-09-22
*/
public interface CouponWriteOffMapper extends BaseMapper<CouponWriteOff> {
}

View File

@@ -0,0 +1,113 @@
package com.jzo2o.market.model.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.jzo2o.market.enums.ActivityStatusEnum;
import com.jzo2o.market.enums.CouponTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 活动实体类
* @author itcast
* @since 2023-09-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Activity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 优惠券配置id
*/
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 优惠券名称,可以和活动名称保持一致
*/
private String name;
/**
* 使用类型1满减2折扣
*/
private CouponTypeEnum type;
/**
* 使用条件0表示无门槛其他值最低消费金额
*/
private BigDecimal amountCondition;
/**
* 折扣率折扣类型的折扣率8折就是存80
*/
private Integer discountRate;
/**
* 优惠金额,满减或无门槛的优惠金额
*/
private BigDecimal discountAmount;
/**
* 优惠券有效期天数
*/
private Integer validityDays;
/**
* 发放开始时间
*/
private LocalDateTime distributeStartTime;
/**
* 发放结束时间
*/
private LocalDateTime distributeEndTime;
/**
* 优惠券配置状态1待生效2进行中3已失效
*/
private ActivityStatusEnum status;
/**
* 发放数量0表示无限量其他正数表示最大发放量
*/
private Integer totalNum;
/**
* 库存数量
*/
private Integer stockNum;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private Long createBy;
/**
* 更新人
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Long updateBy;
/**
* 逻辑删除
*/
private Integer isDeleted;
}

View File

@@ -0,0 +1,116 @@
package com.jzo2o.market.model.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jzo2o.market.enums.CouponTypeEnum;
import com.jzo2o.market.enums.CouponStatusEnum;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* <p>
*
* </p>
* @author itcast
* @since 2023-09-16
*/
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Coupon implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 优惠券id
*/
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 优惠券名称
*/
private String name;
/**
* 优惠券的拥有者
*/
private Long userId;
/**
* 用户姓名
*/
private String userName;
/**
* 用户手机号
*/
private String userPhone;
/**
* 活动id
*/
private Long activityId;
/**
* 使用类型1满减2折扣
*/
private CouponTypeEnum type;
/**
* 折扣
*/
private Integer discountRate;
/**
* 优惠金额
*/
private BigDecimal discountAmount;
/**
* 满减金额
*/
private BigDecimal amountCondition;
/**
* 有效期
*/
private LocalDateTime validityTime;
/**
* 使用时间
*/
private LocalDateTime useTime;
/**
* 优惠券状态1:未使用2:已使用3:已过期
*/
private CouponStatusEnum status;
/**
* 订单id
*/
private String ordersId;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
/**
* 逻辑删除
*/
private Integer isDeleted;
}

View File

@@ -0,0 +1,53 @@
package com.jzo2o.market.model.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 优惠券使用回退记录
* </p>
* @author itcast
* @since 2023-09-18
*/
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CouponUseBack implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 回退记录id
*/
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 用户id
*/
private Long userId;
/**
* 回退时间
*/
private LocalDateTime useBackTime;
/**
* 核销时间
*/
private LocalDateTime writeOffTime;
}

View File

@@ -0,0 +1,65 @@
package com.jzo2o.market.model.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 优惠券核销表
* </p>
* @author itcast
* @since 2023-09-22
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CouponWriteOff implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 用户id
*/
private Long userId;
/**
* 核销时使用的订单号
*/
private Long ordersId;
/**
* 活动id
*/
private Long activityId;
/**
* 核销时间
*/
private LocalDateTime writeOffTime;
/**
* 核销人手机号
*/
private String writeOffManPhone;
/**
* 核销人姓名
*/
private String writeOffManName;
}

View File

@@ -0,0 +1,21 @@
package com.jzo2o.market.model.dto.request;
import com.jzo2o.common.model.dto.PageQueryDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@ApiModel("活动分页查询模型")
@EqualsAndHashCode(callSuper = true)
public class ActivityPageQueryDTO extends PageQueryDTO {
@ApiModelProperty("活动id")
private Long id;
@ApiModelProperty("活动名称")
private String name;
@ApiModelProperty("类型1满减2折扣")
private Integer type;
@ApiModelProperty("优惠券配置状态1待生效2进行中3已失效")
private Integer status;
}

View File

@@ -0,0 +1,85 @@
package com.jzo2o.market.model.dto.request;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.common.utils.DateUtils;
import com.jzo2o.common.utils.ObjectUtils;
import com.jzo2o.market.enums.CouponTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Min;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@ApiModel("活动保存请求模型")
@Validated
public class ActivitySaveReqDTO {
@ApiModelProperty(value = "活动id,新增时不填,修改时必填")
private Long id;
@ApiModelProperty(value = "活动名称", required = true)
@Size(max = 20, message = "活动名称超出20个字符无法输入")
@Null(message = "活动名称为空,请输入活动名称")
private String name;
@ApiModelProperty(value = "优惠券类型1满减2折扣", required = true)
private Integer type;
@ApiModelProperty(value = "满减限额0表示无门槛其他值最低消费金额")
@Min(value = 0, message = "满额限制请输入大于/等于 0的整数")
@Null(message = "满额限制为空,请输入满额限制")
private BigDecimal amountCondition;
@ApiModelProperty(value = "折扣率折扣类型的折扣率例如8,打8折, type为2时必填")
private Integer discountRate;
@ApiModelProperty(value = "优惠金额,满减或无门槛的优惠金额", required = true)
private BigDecimal discountAmount;
@ApiModelProperty(value = "发放开始时间", required = true)
@Null(message = "发放时间为空,请输入发放时间")
private LocalDateTime distributeStartTime;
@Null(message = "发放时间为空,请输入发放时间")
@ApiModelProperty(value = "发放结束时间", required = true)
private LocalDateTime distributeEndTime;
@ApiModelProperty(value = "发放数量0表示无限量其他正数表示最大发放量")
private Integer totalNum = 0;
@ApiModelProperty(value = "有效期天数", required = true)
@Null(message = "使用期限请输入大于0的整数")
@Min(value = 0, message = "使用期限请输入大于0的整数")
private Integer validityDays;
public void check() {
if (CouponTypeEnum.AMOUNT_DISCOUNT.equals(type)) {
// 满减
//discountAmount字段不能为空且值为正数
if (ObjectUtils.isNull(discountAmount)) {
throw new BadRequestException("折扣金额为空,请输入折扣金额");
} else if (discountAmount.compareTo(BigDecimal.ZERO) < 0) {
throw new BadRequestException("折扣金额请输入大于0的整数");
}
} else if (CouponTypeEnum.RATE_DISCOUNT.equals(type)) {
// 折扣
if (ObjectUtils.isNull(discountRate)) {
throw new BadRequestException("折扣比例为空,请输入折扣比例");
} else if (discountRate.compareTo(0) < 0 || discountRate.compareTo(100) > 0) {
throw new BadRequestException("折扣比例请输入大于0小于10的整数");
}
} else {
throw new BadRequestException("优惠券类型不存在");
}
// 发放时间
if (distributeStartTime.isAfter(distributeEndTime)) {
throw new BadRequestException("结束时间不能早于开始时间");
}
if (distributeEndTime.isBefore(DateUtils.now())) {
throw new BadRequestException("发放时间已过期");
}
}
}

View File

@@ -0,0 +1,20 @@
package com.jzo2o.market.model.dto.request;
import com.jzo2o.common.model.dto.PageQueryDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Null;
@Data
@EqualsAndHashCode(callSuper = true)
@Validated
@ApiModel("运营端优惠券查询模型")
public class CouponPageQueryDTO extends PageQueryDTO {
@ApiModelProperty(value = "活动id",required = true)
@Null(message = "请先选择活动")
private Long activityId;
}

View File

@@ -0,0 +1,15 @@
package com.jzo2o.market.model.dto.request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Null;
@Data
@ApiModel
public class SeizeCouponReqDTO {
@ApiModelProperty("活动id")
@Null(message = "请求失败")
private Long id;
}

View File

@@ -0,0 +1,47 @@
package com.jzo2o.market.model.dto.response;
import com.jzo2o.market.enums.ActivityStatusEnum;
import com.jzo2o.market.enums.CouponTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@ApiModel("活动分页字段模型")
@Accessors(chain = true)
public class ActivityInfoResDTO {
@ApiModelProperty("活动id")
private Long id;
@ApiModelProperty("活动名称")
private String name;
@ApiModelProperty("优惠券类型1满减2折扣")
private CouponTypeEnum type;
@ApiModelProperty("满减限额0表示无门槛其他值最低消费金额")
private BigDecimal amountCondition;
@ApiModelProperty("折扣率折扣类型的折扣率例如8,打8折")
private Integer discountRate;
@ApiModelProperty("优惠金额,满减或无门槛的优惠金额")
private BigDecimal discountAmount;
@ApiModelProperty("发放开始时间")
private LocalDateTime distributeStartTime;
@ApiModelProperty("发放结束时间")
private LocalDateTime distributeEndTime;
@ApiModelProperty("优惠券配置状态1待生效2进行中3已失效")
private ActivityStatusEnum status;
@ApiModelProperty("发放数量0表示无限量其他正数表示最大发放量")
private Integer totalNum;
@ApiModelProperty("领取数量")
private Integer receiveNum;
@ApiModelProperty("核销数量")
private Integer writeOffNum;
@ApiModelProperty("有效期天数")
private Integer validityDays;
@ApiModelProperty("创建时间")
private LocalDateTime createTime;
@ApiModelProperty("更新时间")
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,57 @@
package com.jzo2o.market.model.dto.response;
import com.jzo2o.market.enums.CouponStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 优惠卷分页模型
* @author itcast
* @since 2023-09-16
*/
@Data
public class CouponPageInfoResDTO implements Serializable {
@ApiModelProperty(value = "优惠券id", required = true)
private Long id;
@ApiModelProperty("用户姓名")
private String userName;
@ApiModelProperty("用户手机号")
private String userPhone;
/**
* 活动id
*/
@ApiModelProperty(value = "活动id", required = true)
private Long activityId;
@ApiModelProperty("使用时间")
private LocalDateTime useTime;
/**
* 优惠券状态1:未使用2:已使用3:已过期
*/
@ApiModelProperty("优惠券状态1:未使用2:已使用3:已过期")
private CouponStatusEnum status;
/**
* 订单id
*/
private String ordersId;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间", required = true)
private LocalDateTime createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间", required = true)
private LocalDateTime updateTime;
}

View File

@@ -0,0 +1,48 @@
package com.jzo2o.market.model.dto.response;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.enums.CouponTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 优惠卷用户查询模型
* @author itcast
* @since 2023-09-16
*/
@Data
public class CouponSimpleInfoResDTO implements Serializable {
@ApiModelProperty(value = "优惠券id", required = true)
private Long id;
@ApiModelProperty(value = "活动名称", required = true)
private String name;
@ApiModelProperty(value = "活动id", required = true)
private Long activityId;
@ApiModelProperty(value = "使用类型1满减2折扣", required = true)
private CouponTypeEnum type;
@ApiModelProperty(value = "折扣")
private Integer discountRate;
@ApiModelProperty(value = "优惠金额")
private BigDecimal discountAmount;
@ApiModelProperty(value = "满减条件,0:表示无门槛", required = true)
private BigDecimal amountCondition;
@ApiModelProperty("优惠券过期时间")
private LocalDateTime validityTime;
@ApiModelProperty("使用时间")
private LocalDateTime useTime;
@ApiModelProperty("优惠券状态1:未使用2:已使用3:已过期")
private CouponStatusEnum status;
}

View File

@@ -0,0 +1,39 @@
package com.jzo2o.market.model.dto.response;
import com.jzo2o.market.enums.ActivityStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@ApiModel("抢券列表信息")
@Accessors(chain = true)
public class SeizeCouponInfoResDTO implements Serializable {
@ApiModelProperty("活动id")
private Long id;
@ApiModelProperty("活动名称")
private String name;
@ApiModelProperty("优惠券类型1满减2折扣")
private Integer type;
@ApiModelProperty("满减限额0表示无门槛其他值最低消费金额")
private BigDecimal amountCondition;
@ApiModelProperty("折扣率折扣类型的折扣率例如8,打8折")
private Integer discountRate;
@ApiModelProperty("优惠金额,满减或无门槛的优惠金额")
private BigDecimal discountAmount;
@ApiModelProperty("发放开始时间")
private LocalDateTime distributeStartTime;
@ApiModelProperty("发放结束时间")
private LocalDateTime distributeEndTime;
@ApiModelProperty("优惠券配置状态1待生效2进行中3已失效")
private ActivityStatusEnum status;
@ApiModelProperty("发放数量")
private Integer totalNum;
@ApiModelProperty("优惠券剩余数量(库存数量)")
private Integer remainNum;
}

View File

@@ -0,0 +1,63 @@
package com.jzo2o.market.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.enums.ActivityStatusEnum;
import com.jzo2o.market.model.domain.Activity;
import com.jzo2o.market.model.dto.request.ActivityPageQueryDTO;
import com.jzo2o.market.model.dto.request.ActivitySaveReqDTO;
import com.jzo2o.market.model.dto.request.SeizeCouponReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import com.jzo2o.market.model.dto.response.SeizeCouponInfoResDTO;
import java.util.List;
/**
* <p>
* 服务类
* </p>
* @author itcast
* @since 2023-09-16
*/
public interface IActivityService extends IService<Activity> {
/**
* 分页查询活动数据
*/
PageResult<ActivityInfoResDTO> page(ActivityPageQueryDTO activityPageQueryDTO);
/**
* 查询活动详细数据
*/
ActivityInfoResDTO getDetailById(Long id);
/**
* 获取缓存的活动信息
* @param status 筛选的活动状态
*/
List<SeizeCouponInfoResDTO> getCachedActivity(ActivityStatusEnum status);
/**
* 新增/插入活动信息
*/
void saveOrUpdate(ActivitySaveReqDTO activitySaveReqDTO);
/**
* 撤销活动
*/
void revoke(Long id);
/**
* 根据当前时间更新活动状态
*/
void updateActivityStatus();
/**
* 缓存近1个月生效的活动信息
*/
void cacheComingActivity();
/**
* 用户端进行抢卷操作
*/
void seizeCoupon(SeizeCouponReqDTO seizeCouponReqDTO);
}

View File

@@ -0,0 +1,54 @@
package com.jzo2o.market.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.dto.request.CouponPageQueryDTO;
import com.jzo2o.market.model.dto.response.CouponPageInfoResDTO;
import com.jzo2o.market.model.dto.response.CouponSimpleInfoResDTO;
import java.math.BigDecimal;
import java.util.List;
/**
* <p>
* 服务类
* </p>
* @author itcast
* @since 2023-09-16
*/
public interface ICouponService extends IService<Coupon> {
/**
* 分页查询优惠卷信息(通过活动id)
*/
PageResult<CouponPageInfoResDTO> page(CouponPageQueryDTO couponPageQueryDTO);
/**
* 用户端滚动查询(抢卷时间降序)
*/
List<CouponSimpleInfoResDTO> getCurrentUserCoupon(CouponStatusEnum status, Integer lastId);
/**
* 更新过期优惠卷的状态为失效中
*/
void invalidExpiredCoupon();
/**
* 同步优惠卷数据到数据库中
*/
void syncCouponRecord(long activityId, long userId);
/**
* 根据订单金额获取当前用户可用优惠卷
*/
List<AvailableCouponsResDTO> getAvailableCoupon(BigDecimal totalAmount);
/**
* 计算优惠卷的优惠价格
* @param coupon 优惠卷信息
* @param totalAmount 订单总金额
*/
BigDecimal calcDiscountAmount(Coupon coupon, BigDecimal totalAmount);
}

View File

@@ -0,0 +1,19 @@
package com.jzo2o.market.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.api.market.dto.request.CouponUseBackReqDTO;
import com.jzo2o.market.model.domain.CouponUseBack;
/**
* <p>
* 优惠券使用回退记录 服务类
* </p>
* @author itcast
* @since 2023-09-18
*/
public interface ICouponUseBackService extends IService<CouponUseBack> {
/**
* 用户退回优惠卷
*/
void useBack(CouponUseBackReqDTO couponUseBackReqDTO);
}

View File

@@ -0,0 +1,20 @@
package com.jzo2o.market.service;
import com.jzo2o.api.market.dto.request.CouponUseReqDTO;
import com.jzo2o.api.market.dto.response.CouponUseResDTO;
import com.jzo2o.market.model.domain.CouponWriteOff;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 优惠券核销表 服务类
* </p>
* @author itcast
* @since 2023-09-22
*/
public interface ICouponWriteOffService extends IService<CouponWriteOff> {
/**
* 核销指定的优惠卷并返回优惠金额
*/
CouponUseResDTO use(CouponUseReqDTO couponUseReqDTO);
}

View File

@@ -0,0 +1,296 @@
package com.jzo2o.market.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.toolkit.ChainWrappers;
import com.jzo2o.common.constants.ErrorInfo;
import com.jzo2o.common.expcetions.CommonException;
import com.jzo2o.common.expcetions.DBException;
import com.jzo2o.common.expcetions.ForbiddenOperationException;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.common.utils.BeanUtils;
import com.jzo2o.common.utils.CollUtils;
import com.jzo2o.common.utils.JsonUtils;
import com.jzo2o.market.constants.RedisConstants;
import com.jzo2o.market.enums.ActivityStatusEnum;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.enums.CouponTypeEnum;
import com.jzo2o.market.mapper.ActivityMapper;
import com.jzo2o.market.model.domain.Activity;
import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.dto.request.ActivityPageQueryDTO;
import com.jzo2o.market.model.dto.request.ActivitySaveReqDTO;
import com.jzo2o.market.model.dto.request.SeizeCouponReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import com.jzo2o.market.model.dto.response.SeizeCouponInfoResDTO;
import com.jzo2o.market.service.IActivityService;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.mvc.utils.UserContext;
import com.jzo2o.mysql.utils.PageUtils;
import com.jzo2o.redis.properties.RedisSyncProperties;
import com.jzo2o.redis.utils.RedisSyncQueueUtils;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.script.RedisScript;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import static com.jzo2o.market.constants.RedisConstants.RedisKey.*;
/**
* <p>
* 服务实现类
* </p>
* @author itcast
* @since 2023-09-16
*/
@Service
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> implements IActivityService {
@Resource
private ICouponService couponService;
@Resource
private RedisTemplate<String, Object> redisTemplate;
@Resource(name = "seizeCouponScript")
private RedisScript<Integer> seizeCouponScript;
@Resource
private RedisSyncProperties redisSyncProperties;
@Override
@SuppressWarnings("unchecked")
public PageResult<ActivityInfoResDTO> page(ActivityPageQueryDTO activityPageQueryDTO) {
// 分页查询
Page<Activity> activityPage = PageUtils.parsePageQuery(activityPageQueryDTO, Activity.class);
LambdaQueryWrapper<Activity> queryWrapper = Wrappers.<Activity>lambdaQuery()
.eq(ObjectUtils.isNotEmpty(activityPageQueryDTO.getId()), Activity::getId, activityPageQueryDTO.getId())
.like(ObjectUtils.isNotEmpty(activityPageQueryDTO.getName()), Activity::getName, activityPageQueryDTO.getName())
.eq(ObjectUtils.isNotEmpty(activityPageQueryDTO.getType()), Activity::getType, activityPageQueryDTO.getType())
.eq(ObjectUtils.isNotEmpty(activityPageQueryDTO.getStatus()), Activity::getStatus, activityPageQueryDTO.getStatus())
// 新创建的活动显示在列表前面
.orderByDesc(Activity::getCreateTime);
Page<Activity> pageAns = baseMapper.selectPage(activityPage, queryWrapper);
return PageUtils.toPage(pageAns, ActivityInfoResDTO.class);
}
@Override
public ActivityInfoResDTO getDetailById(Long id) {
Activity activity = baseMapper.selectById(id);
if (ObjectUtils.isEmpty(activity)) {
return new ActivityInfoResDTO();
}
ActivityInfoResDTO activityInfoResDTO = BeanUtils.toBean(activity, ActivityInfoResDTO.class);
List<Coupon> coupons = couponService.lambdaQuery()
.eq(Coupon::getActivityId, id)
.select(Coupon::getStatus)
.list();
activityInfoResDTO.setReceiveNum(coupons.size());
activityInfoResDTO.setWriteOffNum((int) coupons.stream()
.filter(coupon -> coupon.getStatus() == CouponStatusEnum.USED)
.count());
return activityInfoResDTO;
}
@Override
public List<SeizeCouponInfoResDTO> getCachedActivity(ActivityStatusEnum status) {
List<SeizeCouponInfoResDTO> couponInfoList = JsonUtils.toList((String) redisTemplate.opsForValue()
.get(ACTIVITY_CACHE_LIST), SeizeCouponInfoResDTO.class);
if (CollUtils.isEmpty(couponInfoList)) {
return new ArrayList<>();
}
LocalDateTime nowTime = LocalDateTime.now();
return couponInfoList.stream()
.peek(coupon -> {
// 防止缓存中的状态出错
if (coupon.getDistributeEndTime().isBefore(nowTime)) {
coupon.setStatus(ActivityStatusEnum.LOSE_EFFICACY);
} else if (coupon.getDistributeStartTime().isBefore(nowTime)) {
coupon.setStatus(ActivityStatusEnum.DISTRIBUTING);
}
})
.filter(coupon -> coupon.getStatus() == status)
.collect(Collectors.toList());
}
@Override
@Transactional
public void saveOrUpdate(ActivitySaveReqDTO activitySaveReqDTO) {
// 参数检验
activitySaveReqDTO.check();
Activity activity = BeanUtils.toBean(activitySaveReqDTO, Activity.class);
activity.setType(CouponTypeEnum.typeOf(activitySaveReqDTO.getType()));
if (ObjectUtils.isEmpty(activity.getId())) {
// 新增记录初始化相关状态
activity.setStatus(ActivityStatusEnum.NO_DISTRIBUTE)
.setStockNum(activity.getTotalNum());
} else {
// 更新需要检查活动状态
Activity activityInDb = baseMapper.selectById(activity.getId());
if (ObjectUtils.isEmpty(activityInDb)) {
throw new ForbiddenOperationException("活动不存在无法修改");
} else if (activityInDb.getStatus() != ActivityStatusEnum.NO_DISTRIBUTE) {
throw new ForbiddenOperationException("活动状态错误无法修改");
}
}
if (!this.saveOrUpdate(activity)) {
throw new DBException("新增/更新活动信息失败");
}
}
@Override
@Transactional
public void revoke(Long id) {
Activity activityInDb = baseMapper.selectById(id);
if (ObjectUtils.isEmpty(activityInDb)) {
throw new ForbiddenOperationException("活动不存在无法撤销");
} else if (activityInDb.getStatus() != ActivityStatusEnum.NO_DISTRIBUTE
&& activityInDb.getStatus() != ActivityStatusEnum.DISTRIBUTING) {
throw new ForbiddenOperationException("活动状态错误无法撤销");
}
if (!lambdaUpdate()
.eq(Activity::getId, id)
.set(Activity::getStatus, ActivityStatusEnum.VOIDED)
.update()) {
throw new DBException("更新活动表失败");
}
// 优惠卷可能没有发放 -> 更新0行
ChainWrappers.lambdaUpdateChain(couponService.getBaseMapper())
.eq(Coupon::getActivityId, id)
.set(Coupon::getStatus, CouponStatusEnum.VOIDED)
.update();
}
@Override
public void updateActivityStatus() {
LocalDateTime nowTime = LocalDateTime.now();
List<Activity> activityList = lambdaQuery()
.in(Activity::getStatus, ActivityStatusEnum.NO_DISTRIBUTE, ActivityStatusEnum.DISTRIBUTING)
// 不处理还没有发生的活动
.le(Activity::getDistributeStartTime, nowTime)
.list();
if (CollUtils.isEmpty(activityList)) {
return;
}
for (Activity activity : activityList) {
ActivityStatusEnum status;
if (activity.getDistributeEndTime().isBefore(nowTime)) {
// 活动结束
status = ActivityStatusEnum.LOSE_EFFICACY;
} else if (activity.getDistributeStartTime().isBefore(nowTime)) {
// 活动开始
status = ActivityStatusEnum.DISTRIBUTING;
} else {
continue;
}
if (!lambdaUpdate()
.eq(Activity::getId, activity.getId())
.set(Activity::getStatus, status)
.update()) {
throw new DBException("更新活动状态失败");
}
}
}
@Override
public void cacheComingActivity() {
LocalDateTime nowTime = LocalDateTime.now();
// 获取近一个月未开始/已开始的活动
@SuppressWarnings("unchecked")
List<Activity> activityList = lambdaQuery()
.le(Activity::getDistributeStartTime, nowTime.plusDays(30))
.in(Activity::getStatus, Arrays.asList(ActivityStatusEnum.NO_DISTRIBUTE, ActivityStatusEnum.DISTRIBUTING))
.orderByAsc(Activity::getDistributeStartTime)
.list();
if (CollUtils.isEmpty(activityList)) {
activityList = new ArrayList<>();
}
List<SeizeCouponInfoResDTO> couponInfoList = activityList.stream()
.map(activity -> BeanUtils
.toBean(activity, SeizeCouponInfoResDTO.class)
.setRemainNum(activity.getStockNum())
.setType(activity.getType().getType()))
.collect(Collectors.toList());
// 缓存活动列表
redisTemplate.opsForValue().set(RedisConstants.RedisKey.ACTIVITY_CACHE_LIST, JsonUtils.toJsonStr(couponInfoList));
// 缓存优惠卷库存
HashOperations<String, Object, Object> hashOperations = redisTemplate.opsForHash();
couponInfoList.forEach(coupon -> {
String key = String.format(RedisConstants.RedisKey.COUPON_RESOURCE_STOCK, coupon.getId() % redisSyncProperties.getQueueNum());
// 防止进行中的活动的库存被覆盖
if (coupon.getStatus() == ActivityStatusEnum.NO_DISTRIBUTE) {
hashOperations.put(key, coupon.getId(), coupon.getRemainNum());
} else {
hashOperations.putIfAbsent(key, coupon.getId(), coupon.getRemainNum());
}
});
}
@Override
public void seizeCoupon(SeizeCouponReqDTO seizeCouponReqDTO) {
Long activityId = seizeCouponReqDTO.getId();
Activity activity = lambdaQuery()
.eq(Activity::getId, activityId)
.select(Activity::getDistributeStartTime, Activity::getDistributeEndTime)
.one();
int seizeCouponFailedCode = ErrorInfo.Code.SEIZE_COUPON_FAILD;
if (ObjectUtils.isEmpty(activity)) {
throw new CommonException(seizeCouponFailedCode, "活动不存在无法抢卷");
} else if (activity.getDistributeStartTime().isAfter(LocalDateTime.now())) {
throw new CommonException(seizeCouponFailedCode, "活动未开始无法抢卷");
} else if (activity.getDistributeEndTime().isBefore(LocalDateTime.now())) {
throw new CommonException(seizeCouponFailedCode, "活动已结束无法抢卷");
}
Long userId = UserContext.currentUserId();
if (ObjectUtils.isEmpty(userId)) {
throw new CommonException(seizeCouponFailedCode, "用户信息不存在无法抢卷");
}
int activityTag = (int) (activityId % redisSyncProperties.getQueueNum());
String syncQueueKey = RedisSyncQueueUtils.getQueueRedisKey(COUPON_SEIZE_SYNC_QUEUE_NAME, activityTag);
String stockTable = String.format(COUPON_RESOURCE_STOCK, activityTag);
String seizeSuccessList = String.format(COUPON_SEIZE_LIST, activityId, activityTag);
List<String> keys = Arrays.asList(syncQueueKey, stockTable, seizeSuccessList);
// 调用抢卷脚本
int state = Optional
.ofNullable(redisTemplate.execute(seizeCouponScript, keys, activityId, userId))
.orElseThrow(() -> new CommonException(seizeCouponFailedCode, "抢卷失败"));
if (state < 0) {
String failMag = state == -1 ? "请勿重复抢卷" :
(state == -2 || state == -4 ? "库存不足抢卷失败" : "内部错误抢卷失败");
throw new CommonException(seizeCouponFailedCode, failMag);
}
}
}

View File

@@ -0,0 +1,197 @@
package com.jzo2o.market.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.api.customer.CommonUserApi;
import com.jzo2o.api.customer.dto.response.CommonUserResDTO;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.common.expcetions.CommonException;
import com.jzo2o.common.expcetions.DBException;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.common.utils.BeanUtils;
import com.jzo2o.common.utils.CollUtils;
import com.jzo2o.common.utils.ObjectUtils;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.enums.CouponTypeEnum;
import com.jzo2o.market.mapper.CouponMapper;
import com.jzo2o.market.model.domain.Activity;
import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.dto.request.CouponPageQueryDTO;
import com.jzo2o.market.model.dto.response.CouponPageInfoResDTO;
import com.jzo2o.market.model.dto.response.CouponSimpleInfoResDTO;
import com.jzo2o.market.service.IActivityService;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.mvc.utils.UserContext;
import com.jzo2o.mysql.utils.PageUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
/**
* <p>
* 服务实现类
* </p>
* @author itcast
* @since 2023-09-16
*/
@Service
@Slf4j
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements ICouponService {
@Resource
private CommonUserApi commonUserApi;
@Resource
private IActivityService activityService;
@Override
public PageResult<CouponPageInfoResDTO> page(CouponPageQueryDTO couponPageQueryDTO) {
if (ObjectUtils.isEmpty(couponPageQueryDTO.getActivityId())) {
return new PageResult<>(0L, 0L, new ArrayList<>());
}
Page<Coupon> couponPage = PageUtils.parsePageQuery(couponPageQueryDTO, Coupon.class);
LambdaQueryWrapper<Coupon> queryWrapper = Wrappers.<Coupon>lambdaQuery()
.eq(Coupon::getActivityId, couponPageQueryDTO.getActivityId());
return PageUtils.toPage(baseMapper.selectPage(couponPage, queryWrapper), CouponPageInfoResDTO.class);
}
@Override
@SuppressWarnings("unchecked")
public List<CouponSimpleInfoResDTO> getCurrentUserCoupon(CouponStatusEnum status, Integer lastId) {
Long userId = UserContext.currentUserId();
if (ObjectUtils.isEmpty(userId)) {
throw new BadRequestException("用户未授权");
}
List<Coupon> coupons = lambdaQuery()
.eq(Coupon::getUserId, userId)
.eq(Coupon::getStatus, status)
.lt(ObjectUtils.isNotEmpty(lastId), Coupon::getId, lastId)
.orderByDesc(Coupon::getCreateTime)
.last("LIMIT 10")
.list();
return CollUtils.isEmpty(coupons) ? new ArrayList<>() :
coupons.stream()
.map(coupon -> BeanUtils.toBean(coupon, CouponSimpleInfoResDTO.class))
.collect(Collectors.toList());
}
@Override
@Transactional
public void invalidExpiredCoupon() {
List<Coupon> couponList = lambdaQuery()
.eq(Coupon::getStatus, CouponStatusEnum.NO_USE)
// 不处理还没到有效期的优惠卷
.le(Coupon::getValidityTime, LocalDateTime.now())
.select(Coupon::getId)
.list();
if (CollUtils.isEmpty(couponList)) {
return;
}
// 设置状态已失效
couponList = couponList.stream()
.map(coupon -> coupon.setStatus(CouponStatusEnum.INVALID))
.collect(Collectors.toList());
if (!this.updateBatchById(couponList)) {
throw new DBException("更新优惠卷状态失败");
}
}
@Override
@Transactional
public void syncCouponRecord(long activityId, long userId) {
Activity activity = activityService.getById(activityId);
CommonUserResDTO user = commonUserApi.findById(userId);
if (!this.save(Coupon.builder()
.userId(userId)
.userName(user.getNickname())
.userPhone(user.getPhone())
.activityId(activityId)
.name(activity.getName())
.type(activity.getType())
.amountCondition(activity.getAmountCondition())
.discountRate(activity.getDiscountRate())
.discountAmount(activity.getDiscountAmount())
.validityTime(LocalDateTime.now().plusDays(activity.getValidityDays()))
.status(CouponStatusEnum.NO_USE)
.build())) {
throw new DBException("插入优惠卷表失败");
}
if (!activityService.lambdaUpdate()
.setSql("stock_num = stock_num - 1")
.eq(Activity::getId, activityId)
.gt(Activity::getStockNum, 0)
.update()) {
throw new DBException("更新活动库存失败");
}
}
@Override
public List<AvailableCouponsResDTO> getAvailableCoupon(BigDecimal totalAmount) {
Long userId = Optional
.ofNullable(UserContext.currentUserId())
.orElseThrow(() -> new CommonException("用户信息不存在"));
List<Coupon> couponList = lambdaQuery()
.eq(Coupon::getUserId, userId)
.le(Coupon::getAmountCondition, totalAmount)
.eq(Coupon::getStatus, CouponStatusEnum.NO_USE)
.ge(Coupon::getValidityTime, LocalDateTime.now())
.and(and -> and
.isNull(Coupon::getDiscountAmount)
.or(or -> or.le(Coupon::getDiscountAmount, totalAmount)))
.list();
if (CollUtils.isEmpty(couponList)) {
return new ArrayList<>();
}
return couponList.stream()
.map(coupon -> BeanUtils
.toBean(coupon, AvailableCouponsResDTO.class)
.setType(coupon.getType().getType())
.setDiscountAmount(this.calcDiscountAmount(coupon, totalAmount)))
// 默认BigDecimal的比较器排序从小到大 需要按优惠金额从大到小排序
.sorted(Comparator.comparing(AvailableCouponsResDTO::getDiscountAmount).reversed())
.collect(Collectors.toList());
}
/**
* 计算优惠卷的优惠价格
* @param coupon 优惠卷信息
* @param totalAmount 订单总金额
*/
@Override
public BigDecimal calcDiscountAmount(Coupon coupon, BigDecimal totalAmount) {
CouponTypeEnum type = coupon.getType();
BigDecimal discountAmount = BigDecimal.ZERO;
if (type == CouponTypeEnum.AMOUNT_DISCOUNT) {
discountAmount = coupon.getDiscountAmount();
} else if (type == CouponTypeEnum.RATE_DISCOUNT) {
// 1 <= coupon.getDiscountRate() <= 99
BigDecimal discountRate = new BigDecimal(String.format("0.%02d", 100 - coupon.getDiscountRate()));
discountAmount = totalAmount.multiply(discountRate);
}
return discountAmount;
}
}

View File

@@ -0,0 +1,69 @@
package com.jzo2o.market.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.api.market.dto.request.CouponUseBackReqDTO;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.common.expcetions.DBException;
import com.jzo2o.common.utils.ObjectUtils;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.mapper.CouponUseBackMapper;
import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.domain.CouponUseBack;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.market.service.ICouponUseBackService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.time.LocalDateTime;
/**
* <p>
* 优惠券使用回退记录 服务实现类
* </p>
* @author itcast
* @since 2023-09-18
*/
@Service
public class CouponUseBackServiceImpl extends ServiceImpl<CouponUseBackMapper, CouponUseBack> implements ICouponUseBackService {
@Resource
private ICouponService couponService;
@Override
@Transactional
public void useBack(CouponUseBackReqDTO couponUseBackReqDTO) {
Long couponId = couponUseBackReqDTO.getId();
Long userId = couponUseBackReqDTO.getUserId();
Long ordersId = couponUseBackReqDTO.getOrdersId();
Coupon coupon = couponService.getById(couponId);
if (ObjectUtils.isEmpty(coupon) || ObjectUtils.notEqual(coupon.getUserId(), userId)) {
throw new BadRequestException("优惠卷不存在");
} else if (coupon.getStatus() != CouponStatusEnum.USED) {
throw new BadRequestException("优惠卷未使用");
} else if (ObjectUtils.notEqual(coupon.getOrdersId(), ordersId)) {
throw new BadRequestException("优惠券对应订单错误");
}
LocalDateTime nowTime = LocalDateTime.now();
CouponStatusEnum status = coupon.getValidityTime().isAfter(nowTime) ? CouponStatusEnum.NO_USE : CouponStatusEnum.INVALID;
if (!couponService.lambdaUpdate()
.eq(Coupon::getId, couponId)
.set(Coupon::getUseTime, null)
.set(Coupon::getStatus, status)
.set(Coupon::getOrdersId, null)
.update()) {
throw new DBException("更新优惠卷表失败");
}
if (!this.save(CouponUseBack.builder()
.couponId(couponId)
.userId(userId)
.useBackTime(nowTime)
.writeOffTime(coupon.getUseTime())
.build())) {
throw new DBException("更新退回表失败");
}
}
}

View File

@@ -0,0 +1,77 @@
package com.jzo2o.market.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.api.market.dto.request.CouponUseReqDTO;
import com.jzo2o.api.market.dto.response.CouponUseResDTO;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.common.expcetions.DBException;
import com.jzo2o.common.utils.ObjectUtils;
import com.jzo2o.market.enums.CouponStatusEnum;
import com.jzo2o.market.mapper.CouponWriteOffMapper;
import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.domain.CouponWriteOff;
import com.jzo2o.market.service.ICouponService;
import com.jzo2o.market.service.ICouponWriteOffService;
import com.jzo2o.mvc.utils.UserContext;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* <p>
* 优惠券核销表 服务实现类
* </p>
* @author itcast
* @since 2023-09-22
*/
@Service
public class CouponWriteOffServiceImpl extends ServiceImpl<CouponWriteOffMapper, CouponWriteOff> implements ICouponWriteOffService {
@Resource
private ICouponService couponService;
@Override
@Transactional
public CouponUseResDTO use(CouponUseReqDTO couponUseReqDTO) {
Long couponId = couponUseReqDTO.getId();
BigDecimal totalAmount = couponUseReqDTO.getTotalAmount();
Long userId = UserContext.currentUserId();
LocalDateTime nowTime = LocalDateTime.now();
Coupon coupon = couponService.getById(couponId);
if (ObjectUtils.isEmpty(coupon) || ObjectUtils.notEqual(coupon.getUserId(), userId)) {
throw new BadRequestException("优惠卷不存在");
} else if (coupon.getStatus() != CouponStatusEnum.NO_USE
|| coupon.getValidityTime().isBefore(nowTime)) {
throw new BadRequestException("优惠卷已使用/已失效");
} else if (coupon.getAmountCondition().compareTo(totalAmount) > 0) {
throw new BadRequestException("订单金额未达到满减金额");
}
Long ordersId = couponUseReqDTO.getOrdersId();
if (!couponService.lambdaUpdate()
.eq(Coupon::getId, couponId)
.set(Coupon::getUseTime, nowTime)
.set(Coupon::getStatus, CouponStatusEnum.USED)
.set(Coupon::getOrdersId, ordersId)
.update()) {
throw new DBException("更新优惠卷表失败");
}
if (!this.save(CouponWriteOff.builder()
.couponId(couponId)
.userId(userId)
.ordersId(ordersId)
.activityId(coupon.getActivityId())
.writeOffTime(nowTime)
.writeOffManName(coupon.getUserName())
.writeOffManPhone(coupon.getUserPhone())
.build())) {
throw new DBException("更新核销表失败");
}
return new CouponUseResDTO(couponService.calcDiscountAmount(coupon, totalAmount));
}
}

View File

@@ -0,0 +1,18 @@
spring:
cloud:
nacos:
username: nacos
password: nacos
server-addr: 192.168.122.135:8848
config:
namespace: 75a593f5-33e6-4c65-b2a0-18c403d20f63
file-extension: yaml
discovery:
namespace: 75a593f5-33e6-4c65-b2a0-18c403d20f63
ip: ${ACCESS_IP:}
################# 日志配置 #################
logging:
level:
com.jzo2o: debug
org.mongodb.driver: info

View File

@@ -0,0 +1,14 @@
spring:
cloud:
nacos:
username: ${NACOS_USERNAME}
password: ${NACOS_PASSWORD}
server-addr: ${NACOS_ADDR}
config:
namespace: ${NACOS_NAMESPACE}
file-extension: yaml
discovery:
namespace: ${NACOS_NAMESPACE}
logging:
level:
com.jzo2o: debug

View File

@@ -0,0 +1,14 @@
spring:
cloud:
nacos:
username: ${NACOS_USERNAME}
password: ${NACOS_PASSWORD}
server-addr: ${NACOS_ADDR}
config:
namespace: ${NACOS_NAMESPACE}
file-extension: yaml
discovery:
namespace: ${NACOS_NAMESPACE}
logging:
level:
com.jzo2o: debug

View File

@@ -0,0 +1,76 @@
################# 服务器配置 #################
server:
port: 11510
undertow:
accesslog:
enabled: true
pattern: "%t %a &quot;%r&quot; %s (%D ms)"
dir: /data/logs/undertow/${spring.application.name}/access-logs/
servlet:
context-path: /market
################# spring公共配置 #################
spring:
mvc:
path-match:
matching-strategy: ant_path_matcher
format:
date: yyyy-MM-dd HH:mm:ss
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
profiles:
active: dev
application:
name: jzo2o-market
main:
# 支持循环依赖注入
allow-circular-references: true
# bean名相同覆盖
allow-bean-definition-overriding: true
cloud:
nacos:
username: ${NACOS_USERNAME}
password: ${NACOS_PASSWORD}
server-addr: ${NACOS_ADDR}
discovery:
namespace: ${NACOS_NAMESPACE}
config:
namespace: ${NACOS_NAMESPACE}
file-extension: yaml
shared-configs: # 共享配置
- data-id: shared-redis-cluster.yaml # 共享redis集群配置
refresh: false
- data-id: shared-xxl-job.yaml # xxl-job配置
refresh: false
- data-id: shared-rabbitmq.yaml # rabbitmq配置
refresh: false
- data-id: shared-mysql.yaml # mysql配置
refresh: false
# - data-id: shared-spring-seata.yaml # seata
# refresh: false
################# 项目独有配置 #################
mysql:
db-name: jzo2o-market
mybatis:
mapper-locations: mapper/*.xml
type-aliases-package: com.jzo2o.market.mapper
swagger:
enable: true
package-path: com.jzo2o.market.controller
title: 家政服务-促销中心接口文档
description: 用于活动优惠券的管理和使用
contact-name: 传智教育·研究院
contact-url: http://www.itcast.cn/
contact-email: yjy@itcast.cn
version: v1.0
################# 日志配置 #################
logging:
level:
com.jzo2o: debug
org.mongodb.driver: info
feign:
enable: true

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jzo2o.market.mapper.ActivityMapper">
</mapper>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jzo2o.market.mapper.CouponMapper">
</mapper>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jzo2o.market.mapper.CouponUseBackMapper">
</mapper>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jzo2o.market.mapper.CouponWriteOffMapper">
</mapper>

View File

@@ -0,0 +1,36 @@
-- 抢券lua实现
-- key: 抢券同步队列, 资源库存, 抢券成功列表
-- argv活动id, 用户id
-- 优惠券是否已经抢过
local couponNum = redis.call("HGET", KEYS[3], ARGV[2])
-- hget 获取不到数据返回false而不是nil
if couponNum ~= false and tonumber(couponNum) >= 1
then
return "-1"; -- 已抢卷
end
-- 库存是否充足校验
local stockNum = redis.call("HGET", KEYS[2], ARGV[1])
if stockNum == false or tonumber(stockNum) < 1
then
return "-2"; -- 库存不足抢卷失败
end
-- 抢券成功列表
local listNum = redis.call("HSET", KEYS[3], ARGV[2], 1)
if listNum == false or tonumber(listNum) < 1
then
return "-3"; -- 写入抢卷成功列表失败
end
-- 减少库存
stockNum = redis.call("HINCRBY", KEYS[2], ARGV[1], -1)
if tonumber(stockNum) < 0
then
return "-4" -- 库存不足抢卷失败
end
-- 抢卷结果写入同步队列
local result = redis.call("HSETNX", KEYS[1], ARGV[2], ARGV[1])
if result > 0
then
return "100" -- 抢卷成功返回活动id
end
return "-5" -- 写入同步队列失败

View File

@@ -1,5 +1,6 @@
package com.jzo2o.orders.manager.controller.consumer;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.api.orders.dto.request.OrderCancelReqDTO;
import com.jzo2o.api.orders.dto.response.OrderResDTO;
import com.jzo2o.api.orders.dto.response.OrderSimpleResDTO;
@@ -104,4 +105,15 @@ public class ConsumerOrdersController {
.currentUserType(currentUser.getUserType())
.build());
}
@GetMapping("/getAvailableCoupons")
@ApiOperation("获取可用优惠券")
@ApiImplicitParams({
@ApiImplicitParam(name = "serveId", value = "服务id", required = true, dataTypeClass = Integer.class),
@ApiImplicitParam(name = "purNum", value = "购买数量默认1", dataTypeClass = Long.class)
})
public List<AvailableCouponsResDTO> getAvailableCoupons(@RequestParam Long serveId,
@RequestParam(required = false, defaultValue = "1") Integer purNum) {
return ordersCreateService.getAvailableCoupons(serveId, purNum);
}
}

View File

@@ -41,7 +41,7 @@ public class OrderCancelJob {
// 取消所有超时未支付订单
transactionTemplate.executeWithoutResult(status ->
orderList.forEach(order -> ordersCanceledService.cancelPayOverTimeOrder(order.getId())));
orderList.forEach(order -> ordersCanceledService.cancelPayOverTimeOrder(order)));
}
@XxlJob("handlerRefundOrder")

View File

@@ -1,6 +1,7 @@
package com.jzo2o.orders.manager.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.orders.base.model.domain.Orders;
import com.jzo2o.orders.base.model.domain.OrdersCanceled;
import com.jzo2o.orders.manager.model.dto.OrderCancelDTO;
@@ -22,5 +23,5 @@ public interface IOrdersCanceledService extends IService<OrdersCanceled> {
* 系统取消超时订单(无前置判断)
* <br><b>仅内部使用!!!</b>
*/
void cancelPayOverTimeOrder(Long id);
void cancelPayOverTimeOrder(Orders order);
}

View File

@@ -1,12 +1,15 @@
package com.jzo2o.orders.manager.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.orders.base.model.domain.Orders;
import com.jzo2o.orders.manager.model.dto.request.OrdersPayReqDTO;
import com.jzo2o.orders.manager.model.dto.request.PlaceOrderReqDTO;
import com.jzo2o.orders.manager.model.dto.response.OrdersPayResDTO;
import com.jzo2o.orders.manager.model.dto.response.PlaceOrderResDTO;
import java.util.List;
/**
* <p>
* 下单服务类
@@ -35,4 +38,9 @@ public interface IOrdersCreateService extends IService<Orders> {
* 客户端获取支付状态
*/
OrdersPayResDTO getPayResult(Long id);
/**
* 客户端获取可用优惠卷
*/
List<AvailableCouponsResDTO> getAvailableCoupons(Long serveId, Integer purNum);
}

View File

@@ -0,0 +1,38 @@
package com.jzo2o.orders.manager.service.client;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.jzo2o.api.foundations.ServeApi;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* 自定义Feign客户端用于熔断降级
* @author JIAN
*/
@Slf4j
@Component
@SuppressWarnings("unused")
public class FoundationClient {
@Resource
private ServeApi serveApi;
@SentinelResource(value = "serveById",
fallback = "getServeByIdFallback", blockHandler = "getServeByIdBlockHandler")
public ServeAggregationResDTO getServeById(Long id) {
return serveApi.findById(id);
}
public ServeAggregationResDTO getServeByIdFallback(Long id, Throwable throwable) {
log.warn("服务信息接口异常(未触发熔断), 服务id: {}", id, throwable);
return null;
}
public ServeAggregationResDTO getServeByIdBlockHandler(Long id, BlockException blockException) {
log.warn("服务信息接口异常(触发熔断降级), 服务id: {}", id, blockException);
return null;
}
}

View File

@@ -0,0 +1,58 @@
package com.jzo2o.orders.manager.service.client;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.jzo2o.api.market.CouponApi;
import com.jzo2o.api.market.dto.request.CouponUseReqDTO;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.api.market.dto.response.CouponUseResDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
/**
* 自定义Feign客户端用于熔断降级
* @author JIAN
*/
@Slf4j
@Component
@SuppressWarnings("unused")
public class MarketClient {
@Resource
private CouponApi couponApi;
@SentinelResource(value = "availableCoupon",
fallback = "getAvailableCouponFallback", blockHandler = "getAvailableCouponBlockHandler")
public List<AvailableCouponsResDTO> getAvailableCoupon(BigDecimal totalAmount) {
return couponApi.getAvailableCoupon(totalAmount);
}
public List<AvailableCouponsResDTO> getAvailableCouponFallback(BigDecimal totalAmount, Throwable throwable) {
log.warn("优惠卷接口异常(未触发熔断), 总金额: {}", totalAmount, throwable);
return null;
}
public List<AvailableCouponsResDTO> getAvailableCouponBlockHandler(BigDecimal totalAmount, BlockException blockException) {
log.warn("优惠卷接口异常(触发熔断降级), 总金额: {}", totalAmount, blockException);
return null;
}
@SentinelResource(value = "useCoupon",
fallback = "useCouponFallback", blockHandler = "useCouponBlockHandler")
public CouponUseResDTO useCoupon(CouponUseReqDTO couponUseReqDTO) {
return couponApi.useCoupon(couponUseReqDTO);
}
public CouponUseResDTO useCouponFallback(CouponUseReqDTO couponUseReqDTO, Throwable throwable) {
log.warn("优惠卷接口异常(未触发熔断), 相关信息: {}", couponUseReqDTO, throwable);
return null;
}
public CouponUseResDTO useCouponBlockHandler(CouponUseReqDTO couponUseReqDTO, BlockException blockException) {
log.warn("优惠卷接口异常(触发熔断降级), 相关信息: {}", couponUseReqDTO, blockException);
return null;
}
}

View File

@@ -74,18 +74,24 @@ public class OrdersCanceledServiceImpl extends ServiceImpl<OrdersCanceledMapper,
}
@Override
public void cancelPayOverTimeOrder(Long id) {
public void cancelPayOverTimeOrder(Orders order) {
// 二次确认防止在此期间支付
TradingResDTO tradingResDTO = tradingApi.findTradResultByTradingOrderNo(id);
if (ObjectUtils.isEmpty(tradingResDTO) || tradingResDTO.getTradingState() != TradingStateEnum.YJS) {
cancelNoPayOrder(OrderCancelDTO.builder()
.id(id)
.cancelReason("订单超时未支付自动取消")
.currentUserId(-1L)
.currentUserName("SYSTEM")
.currentUserType(UserType.SYSTEM)
.build());
Long tradingOrderNo = order.getTradingOrderNo();
if (ObjectUtils.isNotEmpty(tradingOrderNo)) {
// 再次请求防止已支付
TradingResDTO tradingResDTO = tradingApi.findTradResultByTradingOrderNo(tradingOrderNo);
if (ObjectUtils.isNotEmpty(tradingResDTO) && tradingResDTO.getTradingState() == TradingStateEnum.YJS) {
return;
}
}
cancelNoPayOrder(OrderCancelDTO.builder()
.id(order.getId())
.cancelReason("订单超时未支付自动取消")
.currentUserId(-1L)
.currentUserName("SYSTEM")
.currentUserType(UserType.SYSTEM)
.build());
}
private void cancelNoPayOrder(OrderCancelDTO orderCancelDTO) {

View File

@@ -3,6 +3,9 @@ package com.jzo2o.orders.manager.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.api.customer.dto.response.AddressBookResDTO;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.api.market.dto.request.CouponUseReqDTO;
import com.jzo2o.api.market.dto.response.AvailableCouponsResDTO;
import com.jzo2o.api.market.dto.response.CouponUseResDTO;
import com.jzo2o.api.trade.NativePayApi;
import com.jzo2o.api.trade.TradingApi;
import com.jzo2o.api.trade.dto.request.NativePayReqDTO;
@@ -10,6 +13,7 @@ import com.jzo2o.api.trade.dto.response.NativePayResDTO;
import com.jzo2o.api.trade.dto.response.TradingResDTO;
import com.jzo2o.api.trade.enums.PayChannelEnum;
import com.jzo2o.api.trade.enums.TradingStateEnum;
import com.jzo2o.common.expcetions.BadRequestException;
import com.jzo2o.common.expcetions.CommonException;
import com.jzo2o.common.expcetions.ForbiddenOperationException;
import com.jzo2o.common.utils.BeanUtils;
@@ -30,6 +34,8 @@ import com.jzo2o.orders.manager.model.dto.response.PlaceOrderResDTO;
import com.jzo2o.orders.manager.porperties.TradeProperties;
import com.jzo2o.orders.manager.service.IOrdersCreateService;
import com.jzo2o.orders.manager.service.client.CustomerClient;
import com.jzo2o.orders.manager.service.client.FoundationClient;
import com.jzo2o.orders.manager.service.client.MarketClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
@@ -38,6 +44,9 @@ import org.springframework.transaction.support.TransactionTemplate;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
/**
* <p>
@@ -49,6 +58,10 @@ import java.time.LocalDateTime;
@Slf4j
@Service
public class OrdersCreateServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements IOrdersCreateService {
@Resource
private MarketClient marketClient;
@Resource
private FoundationClient foundationClient;
@Resource
private CustomerClient customerClient;
@Resource
@@ -87,10 +100,22 @@ public class OrdersCreateServiceImpl extends ServiceImpl<OrdersMapper, Orders> i
}
// 获取订单id
Long orderId = generateOrderId();
// TODO 获取优惠卷相关信息
BigDecimal discountAmount = BigDecimal.ZERO;
// 计算价格
// 计算总金额
BigDecimal totalAmount = serve.getPrice().multiply(BigDecimal.valueOf(placeOrderReqDTO.getPurNum()));
// 计算优惠卷相关金额
BigDecimal discountAmount = BigDecimal.ZERO;
Long couponId = placeOrderReqDTO.getCouponId();
if (ObjectUtils.isNotEmpty(couponId)) {
CouponUseResDTO couponUseResDTO = Optional
.ofNullable(marketClient.useCoupon(CouponUseReqDTO.builder()
.ordersId(orderId)
.id(couponId)
.totalAmount(totalAmount)
.build()))
.orElseThrow(() -> new ForbiddenOperationException("优惠卷核销失败下单失败"));
discountAmount = couponUseResDTO.getDiscountAmount();
}
// 计算实际金额
BigDecimal realPayAmount = totalAmount.subtract(discountAmount);
// 组装订单信息插入数据库完成下单
@@ -224,4 +249,17 @@ public class OrdersCreateServiceImpl extends ServiceImpl<OrdersMapper, Orders> i
return ordersPayResDTO;
}
@Override
public List<AvailableCouponsResDTO> getAvailableCoupons(Long serveId, Integer purNum) {
ServeAggregationResDTO serve = foundationClient.getServeById(serveId);
if (ObjectUtils.isEmpty(serve) || serve.getSaleStatus() != 2) {
throw new BadRequestException("服务不可用");
}
BigDecimal totalAmount = serve.getPrice().multiply(BigDecimal.valueOf(purNum));
return Optional
.ofNullable(marketClient.getAvailableCoupon(totalAmount))
.orElseGet(ArrayList::new);
}
}

View File

@@ -93,7 +93,7 @@ public class OrdersManagerServiceImpl extends ServiceImpl<OrdersMapper, Orders>
// 订单超过15分钟未支付则自动取消
if (OrderStatusEnum.NO_PAY.getStatus().equals(orders.getOrdersStatus())
&& orders.getCreateTime().isBefore(LocalDateTime.now().minusMinutes(PAY_OVERTIME_MINUTE))) {
ordersCanceledService.cancelPayOverTimeOrder(id);
ordersCanceledService.cancelPayOverTimeOrder(orders);
orderResDTO.setOrdersStatus(OrderStatusEnum.CANCELED.getStatus());
}

View File

@@ -0,0 +1,487 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: jzo2o-customer
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `jzo2o-customer`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `jzo2o-customer` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `jzo2o-customer`;
--
-- Table structure for table `address_book`
--
DROP TABLE IF EXISTS `address_book`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `address_book` (
`id` bigint NOT NULL COMMENT '主键',
`user_id` bigint NOT NULL COMMENT '用户id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '名称',
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '电话',
`province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '省份',
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '市级',
`county` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '区/县',
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '详细地址',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`is_default` int NOT NULL DEFAULT '0' COMMENT '是否为默认地址01',
`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='地址薄';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `address_book`
--
LOCK TABLES `address_book` WRITE;
/*!40000 ALTER TABLE `address_book` DISABLE KEYS */;
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1694341433495945217,1694325482809589760,'老王','13551231121','北京','北京市','东城区','3333333333',NULL,NULL,1,0,'2023-08-23 21:30:51',1694325482809589760,'2023-08-23 21:30:51',1694325482809589760);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1694341433495945218,1,'老王','13551231121','北京','北京市','东城区','3333333333',NULL,NULL,1,0,'2023-08-23 21:30:51',1694325482809589760,'2023-08-23 21:30:51',1694325482809589760);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695254148737626114,1694250327664218112,'张三','18620577287','北京市','北京市','昌平区','三旗百汇市场',116.34446,40.06300,0,0,'2023-08-26 09:57:38',1694250327664218112,'2023-08-26 10:00:11',1694250327664218112);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695254933185720322,1694250327664218112,'李四','18620577287','北京市','北京市','昌平区','建材城西路金燕龙办公楼',116.34351,40.06024,1,0,'2023-08-26 10:00:45',1694250327664218112,'2023-09-04 06:28:59',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695262575308075010,1695071168260947968,'老王八','13512121111','北京','北京市','东城区','金燕龙科研楼',116.34394,40.06110,0,0,'2023-08-26 10:31:09',1695071168260947968,'2023-08-29 18:30:12',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695262878241681410,1695071168260947968,'孙悟饭','13512121121','北京','北京市','东城区','收拾收拾',116.41636,39.92835,0,1,'2023-08-26 10:32:21',1695071168260947968,'2023-08-26 10:33:37',1695071168260947968);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695262970289876994,1695071168260947968,'孙悟天','18512121211','北京','北京市','东城区','说是啥是啥是所所所所所',116.41636,39.92835,1,1,'2023-08-26 10:32:43',1695071168260947968,'2023-08-26 10:33:37',1695071168260947968);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695353353577459714,1695339358949949440,'武松松','18810966207','北京','北京市','昌平区','金燕龙传智播客',116.34344,40.06029,1,0,'2023-08-26 16:31:52',1695339358949949440,'2023-08-26 16:31:52',1695339358949949440);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696349420666253314,1696348358902497280,'吴彦祖','18888888888','北京','北京市','昌平区','金燕龙',116.34326,40.06137,1,0,'2023-08-29 10:29:53',1696348358902497280,'2023-08-29 10:29:53',1696348358902497280);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696470297961590785,1695071168260947968,'吴彦祖','18888888888','北京','北京市','昌平区','田园风光雅园',116.35202,40.08859,0,0,'2023-08-29 18:30:12',1695071168260947968,'2023-08-30 18:58:54',1695071168260947968);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696839911014952962,1695071168260947968,'搜索','13512121221','北京市','北京市','昌平区','北京市昌平区城北街道中共北京市昌平区委员会北京市昌平区人民政府',116.23244,40.21801,1,0,'2023-08-30 18:58:55',1695071168260947968,'2023-09-11 11:09:08',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696849760507424770,1694250327664218112,'张三','14512345678','重庆市','重庆市','渝北区','重庆市渝北区两路街道地道重庆小吃重庆江北国际机场T3A航站楼',106.65476,29.71591,0,0,'2023-08-30 19:38:03',1694250327664218112,'2023-09-04 06:28:59',1694250327664218112);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1701076314360180738,1701074772546342912,'吕女士','13333333333','北京市','北京市','昌平区','北京市昌平区回龙观街道金燕龙科研楼',116.34395,40.06115,1,0,'2023-09-11 03:33:44',1701074772546342912,'2023-09-11 03:34:11',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1716368429008928770,1716346406098296832,'苗先生','18888888888','河南省','郑州市','新郑市','河南省郑州市新郑市郑港街道黑马程序员航投大厦',113.83892,34.57203,1,1,'2023-10-23 08:19:08',1716346406098296832,'2023-10-23 11:49:01',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1716420348645588994,1716346406098296832,'苗先生','13333333333','河南省','郑州市','新郑市','河南省郑州市新郑市郑港街道黑马程序员航投大厦',113.83892,34.57203,0,1,'2023-10-23 11:45:27',1716346406098296832,'2023-10-23 11:49:01',1716346406098296832);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1716421318502891521,1716346406098296832,'苗先生','13333333333','北京市','北京市','昌平区','北京市昌平区回龙观街道弘文恒瑞文化传播公司正泽商务中心',116.34351,40.06024,0,0,'2023-10-23 11:49:18',1716346406098296832,'2023-11-15 15:05:24',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1718186270158749698,1716346406098296832,'苗先生','13333333333','北京市','北京市','昌平区','北京市昌平区回龙观街道黑马程序员(昌平校区)正泽商务中心',116.34337,40.06022,1,1,'2023-10-28 08:42:35',1716346406098296832,'2023-10-28 08:42:44',1716346406098296832);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1727539234670714882,1716346406098296832,'苗先生','13333333333','北京市','北京市','昌平区','北京市昌平区城北街道北京市昌平区政府信息公开办公室北京市昌平区人民政府',116.23189,40.22100,1,0,'2023-11-23 12:07:58',1716346406098296832,'2023-11-23 12:07:58',1716346406098296832);
/*!40000 ALTER TABLE `address_book` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `agency_certification`
--
DROP TABLE IF EXISTS `agency_certification`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `agency_certification` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '机构id',
`name` varchar(50) DEFAULT NULL COMMENT '企业名称',
`id_number` varchar(50) DEFAULT NULL COMMENT '统一社会信用代码',
`legal_person_name` varchar(50) DEFAULT NULL COMMENT '法人姓名',
`legal_person_id_card_no` varchar(50) DEFAULT NULL COMMENT '法人身份证号',
`business_license` varchar(100) DEFAULT NULL COMMENT '营业执照',
`certification_status` int NOT NULL DEFAULT '0' COMMENT '认证状态0初始态1认证中2认证成功3认证失败',
`certification_time` datetime DEFAULT NULL COMMENT '认证时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1716434046437146627 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='机构认证信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `agency_certification`
--
LOCK TABLES `agency_certification` WRITE;
/*!40000 ALTER TABLE `agency_certification` DISABLE KEYS */;
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1694955099182362626,'机构00','110101199307282600','法人00','110101199307282600','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:13','2023-09-06 20:31:12','2023-09-06 20:31:12');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1695628302246506498,'机构01','110101199307282601','法人01','110101199307282601','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:13','2023-09-06 20:31:12','2023-09-06 20:31:12');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696363919163170818,'机构02','110101199307282602','法人02','110101199307282602','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:13','2023-09-06 20:31:13','2023-09-06 20:31:13');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696706462195150849,'机构03','110101199307282603','法人03','110101199307282603','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:14','2023-09-06 20:31:13','2023-09-06 20:31:13');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1697864361936187393,'机构04','110101199307282604','法人04','110101199307282604','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',3,'2023-09-08 16:14:55','2023-09-06 20:31:13','2023-09-08 16:23:25');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1700056628117663746,NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-08 16:01:00','2023-09-08 16:01:00');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1700056806312669186,NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-08 16:01:42','2023-09-08 16:01:42');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1716434046437146626,'北京黑马程序员','11111111111111','黑马程序员','101223143453222','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/16269f8b-b8b3-4088-9fec-cd4e4d4dc618.png',3,'2023-10-23 20:50:59','2023-10-23 12:41:26','2023-10-24 08:57:09');
/*!40000 ALTER TABLE `agency_certification` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `common_user`
--
DROP TABLE IF EXISTS `common_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `common_user` (
`id` bigint NOT NULL COMMENT '用户id',
`status` int NOT NULL DEFAULT '0' COMMENT '状态0正常1冻结',
`nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '昵称',
`phone` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '电话',
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '头像',
`open_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`account_lock_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '账号冻结原因',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` int NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `common_user`
--
LOCK TABLES `common_user` WRITE;
/*!40000 ALTER TABLE `common_user` DISABLE KEYS */;
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1694250327664218112,0,'微信用户','18860355196','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4upfdyC_MH5OkzEKbhViNTU','2000000000','2023-08-23 15:28:50','2023-08-26 09:16:26',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695052533074100224,0,'微信用户',NULL,'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',NULL,NULL,'2023-08-25 20:36:30','2023-08-25 20:36:30',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695052599264411648,0,'何刚',NULL,'http://dummyimage.com/100x100',NULL,NULL,'2023-08-25 20:36:46','2023-08-25 20:36:46',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695054371269771264,0,'微信用户',NULL,'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',NULL,NULL,'2023-08-25 20:43:48','2023-08-25 20:43:48',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695055440972480512,0,'abc',NULL,'abc',NULL,NULL,'2023-08-25 20:48:03','2023-08-25 20:48:03',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695063742786781184,0,'abc',NULL,'abc',NULL,NULL,'2023-08-25 21:21:03','2023-08-25 21:21:03',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695064056785940480,0,'abc',NULL,'abc',NULL,NULL,'2023-08-25 21:22:17','2023-08-25 21:22:17',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695070649215827968,0,'微信用户',NULL,'11',NULL,NULL,'2023-08-25 21:48:30','2023-08-25 21:48:30',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071158647603200,0,'微信',NULL,'11',NULL,NULL,'2023-08-25 21:50:31','2023-08-25 21:50:31',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071168260947968,0,'微信用户','15538396657','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4nI1UnfERxi9MSJ2_9Jzu00',NULL,'2023-08-25 21:50:34','2023-08-26 10:10:36',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071290109673472,0,'微11',NULL,'11',NULL,NULL,'2023-08-25 21:51:03','2023-08-25 21:51:03',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071373085589504,0,'信11',NULL,'11',NULL,NULL,'2023-08-25 21:51:22','2023-08-25 21:51:22',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071498423975936,0,'服务',NULL,'11',NULL,NULL,'2023-08-25 21:51:52','2023-08-25 21:51:52',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071705995886592,0,'',NULL,'11',NULL,NULL,'2023-08-25 21:52:42','2023-08-25 21:52:42',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071846819643392,0,'功嘉赐',NULL,'11',NULL,NULL,'2023-08-25 21:53:15','2023-08-25 21:53:15',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695072571297579008,0,'云岚到家001',NULL,'11',NULL,NULL,'2023-08-25 21:56:08','2023-08-25 21:56:08',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695073029575622656,0,'诸葛平文',NULL,'11',NULL,NULL,'2023-08-25 21:57:57','2023-08-25 21:57:57',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695339358949949440,0,'微信用户','18810966207','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4g4yRTtMnw8iqkw6RI4pJKg',NULL,'2023-08-26 15:36:15','2023-08-26 15:36:16',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695967381785100288,0,'诸葛平文',NULL,'11',NULL,NULL,'2023-08-28 09:11:48','2023-08-28 09:11:48',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1696348358902497280,0,'微信用户','18539220118','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4nhtTsP0E_YUVrO6sFEwezA',NULL,'2023-08-29 10:25:40','2023-08-29 10:25:41',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1701074772546342912,0,'微信用户','18703810075','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o5CqM6KHYi6o0mX5M23vFx9SBhiQ',NULL,'2023-09-11 03:27:37','2023-09-11 03:27:37',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1716346406098296832,0,'普通用户72135',NULL,'https://yjy-oss-videos.oss-accelerate.aliyuncs.com/tx.png','oyzCx6wPZJENUA4gSgLgvq_trtVs',NULL,'2023-10-23 06:51:38','2023-10-23 06:51:38',0);
/*!40000 ALTER TABLE `common_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `fail_msg`
--
DROP TABLE IF EXISTS `fail_msg`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `fail_msg` (
`id` bigint NOT NULL COMMENT '消息id',
`exchange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '交换机',
`routing_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '路由key',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '消息',
`reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '原因',
`delay_msg_execute_time` int NOT NULL COMMENT '延迟消息执行时间',
`next_fetch_time` int DEFAULT NULL COMMENT '下次拉取时间',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='rabbitm发送失败消息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `fail_msg`
--
LOCK TABLES `fail_msg` WRITE;
/*!40000 ALTER TABLE `fail_msg` DISABLE KEYS */;
/*!40000 ALTER TABLE `fail_msg` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `institution_staff`
--
DROP TABLE IF EXISTS `institution_staff`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `institution_staff` (
`id` bigint NOT NULL COMMENT '主键',
`institution_id` bigint DEFAULT NULL COMMENT '服务机构id',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '编号',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '名称',
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '电话',
`id_card_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '身份证号',
`certification_imgs` json DEFAULT NULL COMMENT '证明资料列表',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='机构下属服务人员';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `institution_staff`
--
LOCK TABLES `institution_staff` WRITE;
/*!40000 ALTER TABLE `institution_staff` DISABLE KEYS */;
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1694976080089214977,1694955099182362626,'1694976080063184896','3','13515551111','144122121212121212','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/533dda9f-67f3-4f0d-99ec-d3681474df87.png\"]','2023-08-25 15:32:43','2023-08-25 15:33:35',1);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1694978252793212929,1694955099182362626,'1694978252792348672','测试','13584451121','441212121215121212','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/2da97cee-c9a1-4aaa-b41e-80e4c30c6d0d.png\"]','2023-08-25 15:41:21','2023-08-25 15:41:21',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1695002536508944385,1694955099182362626,'1695002536508080128','123','13551212122','252312212222222222','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/51fb378c-b818-448e-bbc4-fb04a46f31fa.png\"]','2023-08-25 17:17:50','2023-08-25 17:17:50',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1695630550498308098,1695628302246506498,'1695630550501638144','张三','18888888888','360921199901014581','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00a4b3ee-49fa-4c3c-a151-6357bb587a59.png\"]','2023-08-27 10:53:21','2023-08-27 10:53:21',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1696442084803973122,1696363919163170818,'1696442084745252864','张三','16712345678','412867123412341234','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4866ee52-2289-48e2-b466-f77feffc8070.jpeg\"]','2023-08-29 16:38:06','2023-08-29 16:38:06',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1701055493029523457,1696706462195150849,'1701055493020778496','','13851212111','145512121212122121','[]','2023-09-11 10:10:08','2023-09-11 10:10:08',0);
/*!40000 ALTER TABLE `institution_staff` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider`
--
DROP TABLE IF EXISTS `serve_provider`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider` (
`id` bigint NOT NULL COMMENT '主键',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '编号',
`type` int NOT NULL COMMENT '类型2服务人员3服务机构',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '姓名',
`phone` varchar(255) NOT NULL COMMENT '电话',
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '头像',
`status` int NOT NULL COMMENT '状态0正常1冻结',
`settings_status` int DEFAULT '0' COMMENT '首次设置状态0未完成设置1已完成设置',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构登录密码',
`account_lock_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '账号冻结原因',
`score` double DEFAULT NULL COMMENT '综合评分',
`good_level_rate` varchar(50) DEFAULT NULL COMMENT '好评率',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `serve_provider_phone_type_uindex` (`phone`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务人员/机构表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider`
--
LOCK TABLES `serve_provider` WRITE;
/*!40000 ALTER TABLE `serve_provider` DISABLE KEYS */;
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1694955099182362626,'1694955099160526848',3,'机构00','18810966207',NULL,0,1,'$2a$10$QiglPrZ/6xxCBnaJXHojz.DGdp4O/KF3qcCecWnyXo6lLTalYFTrG','额度的多多多多多多多多多多多多多',NULL,NULL,'2023-08-25 14:09:21','2023-09-06 20:31:53',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1695006954969133057,'1695006954951491584',2,'服务人员00','18912345678',NULL,1,0,NULL,'哒哒哒哒哒哒多多多',NULL,NULL,'2023-08-25 17:35:24','2023-09-08 11:31:32',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1695007144950132737,'1695007144953462784',2,'服务人员01','18212345678',NULL,0,0,NULL,'2333333333',NULL,NULL,'2023-08-25 17:36:09','2023-09-06 20:21:34',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1695628302246506498,'1695628302237253632',3,'机构01','18810966904',NULL,0,1,'$2a$10$v633CoJ.eIMA8sTuZxN5fOkmls5K8JmyVa6LEOptHl80bs/JA4JxO',NULL,NULL,NULL,'2023-08-27 10:44:25','2023-09-06 20:32:07',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696338624494202882,'1696338624497532928',2,'服务人员02','15066699132',NULL,0,1,NULL,'测试测试测试',NULL,NULL,'2023-08-29 09:46:59','2023-10-17 12:31:29',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696363919163170818,'1696363919112839168',3,'机构02','18812345678',NULL,0,1,'$2a$10$KstuMypos1IimZlVpNAB7OwluzyPQ0jqfaYRfwNp8Lfkes6WTZnUO',NULL,NULL,NULL,'2023-08-29 11:27:27','2023-09-06 20:32:20',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696462691331239937,'1696462691326181376',2,'服务人员03','15066699131',NULL,0,1,NULL,NULL,NULL,NULL,'2023-08-29 17:59:59','2023-09-08 16:16:25',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696706462195150849,'1696706462194286592',3,'机构03','15896123123',NULL,0,1,'$2a$10$H9ryMxCmbD9e4QdfKUrt3u6b42WrZN/b/YS7gpK8YWwW0wLyidL8G',NULL,NULL,NULL,'2023-08-30 10:08:38','2023-09-06 20:32:29',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1697864361936187393,'1697864361683664896',3,'机构04','18888888888',NULL,0,0,'$2a$10$22OsfxUUuG8gUYzooPh4v.qRtj2z3kXGY/lPs/d.U5MDguDG0lpwK',NULL,NULL,NULL,'2023-09-02 06:49:43','2023-09-06 20:32:33',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056628117663746,'1700056628100530176',3,NULL,'15631121121',NULL,0,0,'$2a$10$8q8augvySdRmDwUlkUGKYeM8cXbWR3PcyPHwffDq5q7u3sb3EWHhW',NULL,NULL,NULL,'2023-09-08 16:01:00','2023-09-08 16:01:00',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056806312669186,'1700056806316507136',3,NULL,'15812112112',NULL,0,0,'$2a$10$BdPkd.6V4fSjgJH7RPiNm.tWVSb8J6vZy9dLPaSsB/chIYas4Jji6',NULL,NULL,NULL,'2023-09-08 16:01:42','2023-09-08 16:01:42',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1715901715099959297,'1715901715061956608',3,NULL,'18703810075',NULL,0,0,'$2a$10$ggjdKdj8vc5ucGPg54pSe.0w3.Zq26nxvletz0bZ9Fyo9.3/Xk.u.',NULL,NULL,NULL,'2023-10-22 01:24:35','2023-10-22 01:24:35',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1716431678555406338,'1716431678550958080',2,'小明','13333333333',NULL,0,1,NULL,NULL,NULL,NULL,'2023-10-23 12:30:28','2023-11-15 11:30:38',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1716434046437146626,'1716434046436892672',3,'北京黑马程序员','13333338888',NULL,0,1,'$2a$10$dPlYrzIBiv4EZrYtvQ9q7uTMVfHSpiIyf9H6NRVwg7dBgyzIaEV2m',NULL,NULL,NULL,'2023-10-23 12:39:53','2023-10-24 02:45:07',0);
/*!40000 ALTER TABLE `serve_provider` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider_settings`
--
DROP TABLE IF EXISTS `serve_provider_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider_settings` (
`id` bigint NOT NULL COMMENT '服务人员/机构id',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '城市码',
`city_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市名称',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`intention_scope` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '意向单范围',
`have_skill` int DEFAULT '0' COMMENT '是否有技能',
`can_pick_up` int DEFAULT '-1' COMMENT '是否可以接单,-0关闭接单1开启接单',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` int DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务人员/机构附属信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider_settings`
--
LOCK TABLES `serve_provider_settings` WRITE;
/*!40000 ALTER TABLE `serve_provider_settings` DISABLE KEYS */;
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1694955099182362626,'010','',116.34381,40.06071,'金燕龙科研楼',1,1,'2023-08-25 14:09:21','2023-08-29 10:35:46',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1695006954969133057,'','',NULL,NULL,NULL,1,-1,'2023-08-25 17:35:24','2023-08-26 15:53:42',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1695007144950132737,'','',NULL,NULL,NULL,1,-1,'2023-08-25 17:36:09','2023-08-26 15:53:42',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1695628302246506498,'010','',116.46226,39.97419,'北京金燕龙联合企业总公司',1,1,'2023-08-27 10:44:25','2023-09-07 15:40:38',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696338624494202882,'010','北京市',116.43430,40.00800,'北京黑马程序员',1,1,'2023-08-29 09:46:59','2023-11-24 14:59:38',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696363919163170818,'010',NULL,116.34928,40.05997,'育新地铁站',1,1,'2023-08-29 11:27:28','2023-08-29 11:28:23',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696462691331239937,'010','北京市',116.39801,39.90930,'天安门服务部',1,1,'2023-08-29 17:59:59','2023-08-29 18:01:08',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696706462195150849,'010',NULL,116.33504,40.06092,'金燕龙',1,1,'2023-08-30 10:08:38','2023-08-31 16:18:12',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1697864361936187393,'',NULL,NULL,NULL,NULL,1,-1,'2023-09-02 06:49:43','2023-09-06 19:28:06',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056628117663746,'',NULL,NULL,NULL,NULL,1,-1,'2023-09-08 16:01:00','2023-10-24 02:38:16',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056806312669186,'',NULL,NULL,NULL,NULL,1,-1,'2023-09-08 16:01:42','2023-10-24 02:38:16',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1715901715099959297,'',NULL,NULL,NULL,NULL,1,-1,'2023-10-22 01:24:35','2023-10-24 02:38:16',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1716431678555406338,'010','北京市',116.43430,40.00800,'北京黑马程序员',1,1,'2023-10-23 12:30:28','2023-11-24 14:57:54',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1716434046437146626,'010','北京市',116.43430,40.00800,'北京黑马程序员',1,1,'2023-10-23 12:39:53','2023-10-24 08:58:13',0);
/*!40000 ALTER TABLE `serve_provider_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider_sync`
--
DROP TABLE IF EXISTS `serve_provider_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider_sync` (
`id` bigint NOT NULL COMMENT '服务人员或机构同步表',
`serve_item_ids` json DEFAULT NULL COMMENT '技能列表',
`serve_provider_type` int DEFAULT NULL COMMENT '服务者类型2服务人员3机构人员',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`pick_up` int DEFAULT NULL COMMENT '接单开关1接单开启0接单关闭',
`evaluation_score` double DEFAULT '50' COMMENT '评分,默认50分',
`setting_status` int DEFAULT NULL COMMENT '首次设置状态0未完成1已完成设置',
`status` int NOT NULL COMMENT '状态0正常1冻结',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务提供者同步表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider_sync`
--
LOCK TABLES `serve_provider_sync` WRITE;
/*!40000 ALTER TABLE `serve_provider_sync` DISABLE KEYS */;
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1694955099182362626,'[1685894105234755585, 1683432288440897537, 1685850705647194113, 1678727478181957634, 1692475107114487809]',3,116.34381,40.06071,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1695006954969133057,NULL,2,NULL,NULL,NULL,0,3,NULL,1);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1695007144950132737,NULL,2,NULL,NULL,NULL,0,3,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1695628302246506498,'[1685894105234755585, 1694549334674739202, 1683432288440897537, 1698885001328300033]',3,116.46226,39.97419,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696338624494202882,'[1685894105234755585, 1683432288440897537, 1685850705647194113, 1678727478181957634, 1692475107114487809]',2,116.43430,40.00800,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696363919163170818,'[1685894105234755585, 1683432288440897537, 1685850705647194113, 1678727478181957634, 1692475107114487809]',3,116.34928,40.05997,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696462691331239937,'[1685894105234755585]',2,116.39801,39.90930,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696706462195150849,'[1685894105234755585, 1685850705647194113, 1692475107114487809]',3,116.33504,40.06092,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1697864361936187393,NULL,3,NULL,NULL,NULL,NULL,3,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1700056628117663746,NULL,3,NULL,NULL,NULL,NULL,55,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1700056806312669186,NULL,3,NULL,NULL,NULL,NULL,55,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1715901715099959297,NULL,3,NULL,NULL,NULL,NULL,50,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1716431678555406338,'[1685894105234755585, 1683432288440897537, 1678727478181957634, 1692475107114487809]',2,116.43430,40.00800,'010',1,50,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1716434046437146626,'[1685894105234755585, 1683432288440897537]',3,116.43430,40.00800,'010',1,50,1,0);
/*!40000 ALTER TABLE `serve_provider_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_skill`
--
DROP TABLE IF EXISTS `serve_skill`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_skill` (
`id` bigint NOT NULL COMMENT '主键',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人员/机构id',
`serve_provider_type` int DEFAULT NULL COMMENT '类型2服务人员3服务机构',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务类型id',
`serve_type_name` varchar(50) DEFAULT NULL COMMENT '服务类型名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_item_name` varchar(50) DEFAULT NULL COMMENT '服务项名称',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_delete` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务技能表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_skill`
--
LOCK TABLES `serve_skill` WRITE;
/*!40000 ALTER TABLE `serve_skill` DISABLE KEYS */;
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800631533569,1694955099182362626,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-08-26 17:49:08','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800635727873,1694955099182362626,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-08-26 17:49:08','2023-09-07 11:31:41',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800639922178,1694955099182362626,3,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-08-26 17:49:08','2023-09-07 11:32:31',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800639922179,1694955099182362626,3,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-08-26 17:49:08','2023-09-07 11:33:13',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800644116481,1694955099182362626,3,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-08-26 17:49:08','2023-09-07 11:33:44',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146360229889,1696363919163170818,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-08-29 11:28:22','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146360229890,1696363919163170818,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-08-29 11:28:22','2023-09-07 11:31:41',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146368618498,1696363919163170818,3,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-08-29 11:28:22','2023-09-07 11:32:31',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146368618499,1696363919163170818,3,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-08-29 11:28:22','2023-09-07 11:33:13',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146377007106,1696363919163170818,3,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-08-29 11:28:22','2023-09-07 11:33:44',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696462990024404993,1696462691331239937,2,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-08-29 18:01:10','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062218629122,1695628302246506498,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-09-06 19:28:28','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062218629123,1695628302246506498,3,1678649931106705409,'保洁清',1694549334674739202,'测试','2023-09-06 19:28:28','2023-09-07 11:34:29',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062227017729,1695628302246506498,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-09-06 19:28:28','2023-09-07 11:31:41',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062227017730,1695628302246506498,3,1678649931106705409,'保洁清',1698885001328300033,NULL,'2023-09-06 19:28:28','2023-09-07 11:26:58',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699695762876690434,1696706462195150849,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-09-07 16:07:03','2023-09-07 16:07:03',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699695762880884737,1696706462195150849,3,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-09-07 16:07:03','2023-09-07 16:07:03',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699695762880884738,1696706462195150849,3,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-09-07 16:07:03','2023-09-07 16:07:03',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1716740634284662785,1716434046437146626,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-10-24 08:58:10','2023-10-24 08:58:10',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1716740634284662786,1716434046437146626,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-10-24 08:58:10','2023-10-24 08:58:10',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1724702004851863554,1716431678555406338,2,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-11-15 16:12:56','2023-11-15 16:12:56',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1724702004856057858,1716431678555406338,2,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-11-15 16:12:56','2023-11-15 16:12:56',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1724702004856057859,1716431678555406338,2,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-11-15 16:12:56','2023-11-15 16:12:56',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1724702004856057860,1716431678555406338,2,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-11-15 16:12:56','2023-11-15 16:12:56',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1727943235589443585,1696338624494202882,2,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-11-24 14:53:18','2023-11-24 14:53:18',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1727943235593637889,1696338624494202882,2,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-11-24 14:53:18','2023-11-24 14:53:18',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1727943235610415106,1696338624494202882,2,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-11-24 14:53:18','2023-11-24 14:53:18',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1727943235618803713,1696338624494202882,2,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-11-24 14:53:18','2023-11-24 14:53:18',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1727943235618803714,1696338624494202882,2,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-11-24 14:53:18','2023-11-24 14:53:18',0);
/*!40000 ALTER TABLE `serve_skill` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `worker_certification`
--
DROP TABLE IF EXISTS `worker_certification`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `worker_certification` (
`id` bigint NOT NULL DEFAULT '0' COMMENT '服务人员id',
`name` varchar(50) DEFAULT NULL COMMENT '姓名',
`id_card_no` varchar(50) DEFAULT NULL COMMENT '身份证号',
`front_img` varchar(100) DEFAULT NULL COMMENT '身份证正面',
`back_img` varchar(100) DEFAULT NULL COMMENT '身份证反面',
`certification_material` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '证明资料',
`certification_status` int NOT NULL DEFAULT '0' COMMENT '认证状态0初始态1认证中2认证成功3认证失败',
`certification_time` datetime DEFAULT NULL COMMENT '认证时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务人员认证信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `worker_certification`
--
LOCK TABLES `worker_certification` WRITE;
/*!40000 ALTER TABLE `worker_certification` DISABLE KEYS */;
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1695006954969133057,'服务人员00','110101199307282600','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1695007144950132737,'服务人员01','110101199307282601','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696338624494202882,'服务人员02','110101199307282602','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696462691331239937,'服务人员03','110101199307282603','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-08 16:21:28');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1716431678555406338,'小明','101132323232233','https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/87463fcc-fcf7-4280-b8d7-6864b0fb4923.png','https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/488b6b41-5327-44f4-90b1-35b171b7a4a9.png','https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/b4fff08c-366f-458c-8e6e-d74f33f40002.png',2,'2023-10-24 10:35:58','2023-10-23 12:33:16','2023-10-24 02:36:51');
/*!40000 ALTER TABLE `worker_certification` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-11-28 21:14:40

View File

@@ -0,0 +1,767 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: jzo2o-foundations
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `jzo2o-foundations`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `jzo2o-foundations` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `jzo2o-foundations`;
--
-- Table structure for table `city_directory`
--
DROP TABLE IF EXISTS `city_directory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `city_directory` (
`parent_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '上级归属',
`type` int DEFAULT NULL COMMENT '类型12',
`city_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市名称',
`city_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`sort_num` int DEFAULT NULL COMMENT '排序字段',
`pinyin_initial` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市名称拼音首字母',
`id` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='城市编码表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `city_directory`
--
LOCK TABLES `city_directory` WRITE;
/*!40000 ALTER TABLE `city_directory` DISABLE KEYS */;
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('11',2,'北京市','010',27,'B','010');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'广州市','020',88,'G','020');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('31',2,'上海市','021',241,'S','021');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('12',2,'天津市','022',271,'T','022');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('50',2,'重庆市','023',54,'C','023');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'沈阳市','024',248,'S','024');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'南京市','025',197,'N','025');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'武汉市','027',299,'W','027');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'成都市','028',46,'C','028');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'西安市','029',303,'X','029');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'邯郸市','0310',100,'H','0310');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'石家庄市','0311',251,'S','0311');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'保定市','0312',22,'B','0312');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'张家口市','0313',354,'Z','0313');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'承德市','0314',48,'C','0314');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'唐山市','0315',270,'T','0315');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'廊坊市','0316',161,'L','0316');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'沧州市','0317',34,'C','0317');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'衡水市','0318',112,'H','0318');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'邢台市','0319',321,'X','0319');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('13',2,'秦皇岛市','0335',221,'Q','0335');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'朔州市','0349',255,'S','0349');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'忻州市','0350',318,'X','0350');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'太原市','0351',269,'T','0351');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'大同市','0352',59,'D','0352');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'阳泉市','0353',332,'Y','0353');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'晋中市','0354',145,'J','0354');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'长治市','0355',42,'C','0355');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'晋城市','0356',144,'J','0356');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'临汾市','0357',173,'L','0357');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'吕梁市','0358',184,'L','0358');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('14',2,'运城市','0359',349,'Y','0359');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'商丘市','0370',240,'S','0370');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'郑州市','0371',359,'Z','0371');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'安阳市','0372',10,'A','0372');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'新乡市','0373',316,'X','0373');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'许昌市','0374',323,'X','0374');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'平顶山市','0375',209,'P','0375');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'信阳市','0376',319,'X','0376');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'南阳市','0377',201,'N','0377');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'开封市','0378',152,'K','0378');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'洛阳市','0379',185,'L','0379');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'焦作市','0391',139,'J','0391');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'鹤壁市','0392',108,'H','0392');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'濮阳市','0393',213,'P','0393');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'周口市','0394',363,'Z','0394');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'漯河市','0395',187,'L','0395');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'驻马店市','0396',366,'Z','0396');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'三门峡市','0398',232,'S','0398');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'铁岭市','0410',274,'T','0410');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'大连市','0411',57,'D','0411');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'鞍山市','0412',6,'A','0412');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'抚顺市','0413',78,'F','0413');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'本溪市','0414',29,'B','0414');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'丹东市','0415',61,'D','0415');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'锦州市','0416',143,'J','0416');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'营口市','0417',341,'Y','0417');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'阜新市','0418',80,'F','0418');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'辽阳市','0419',169,'L','0419');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'朝阳市','0421',43,'C','0421');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'盘锦市','0427',207,'P','0427');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('21',2,'葫芦岛市','0429',117,'H','0429');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'长春市','0431',40,'C','0431');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'吉林市','0432',131,'J','0432');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'四平市','0434',256,'S','0434');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'通化市','0435',276,'T','0435');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'白城市','0436',15,'B','0436');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'辽源市','0437',170,'L','0437');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'松原市','0438',257,'S','0438');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'白山市','0439',17,'B','0439');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'哈尔滨市','0451',93,'H','0451');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'齐齐哈尔市','0452',215,'Q','0452');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'牡丹江市','0453',193,'M','0453');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'佳木斯市','0454',137,'J','0454');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'绥化市','0455',262,'S','0455');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'黑河市','0456',111,'H','0456');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'大兴安岭地区','0457',60,'D','0457');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'伊春市','0458',333,'Y','0458');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'大庆市','0459',58,'D','0459');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'七台河市','0464',214,'Q','0464');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'鸡西市','0467',129,'J','0467');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'鹤岗市','0468',109,'H','0468');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('23',2,'双鸭山市','0469',254,'S','0469');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'呼伦贝尔市','0470',116,'H','0470');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'呼和浩特市','0471',115,'H','0471');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'包头市','0472',21,'B','0472');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'乌海市','0473',292,'W','0473');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'乌兰察布市','0474',293,'W','0474');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'通辽市','0475',277,'T','0475');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'赤峰市','0476',50,'C','0476');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'鄂尔多斯市','0477',72,'E','0477');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'巴彦淖尔市','0478',12,'B','0478');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'锡林郭勒盟','0479',306,'X','0479');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'兴安盟','0482',320,'X','0482');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('15',2,'阿拉善盟','0483',3,'A','0483');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'无锡市','0510',295,'W','0510');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'镇江市','0511',358,'Z','0511');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'苏州市','0512',258,'S','0512');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'南通市','0513',200,'N','0513');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'扬州市','0514',330,'Y','0514');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'盐城市','0515',327,'Y','0515');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'徐州市','0516',322,'X','0516');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'淮安市','0517',121,'H','0517');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'连云港市','0518',166,'L','0518');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'常州市','0519',39,'C','0519');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'泰州市','0523',268,'T','0523');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('32',2,'宿迁市','0527',259,'S','0527');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'菏泽市','0530',103,'H','0530');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'济南市','0531',132,'J','0531');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'青岛市','0532',222,'Q','0532');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'淄博市','0533',368,'Z','0533');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'德州市','0534',64,'D','0534');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'烟台市','0535',326,'Y','0535');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'潍坊市','0536',287,'W','0536');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'济宁市','0537',133,'J','0537');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'泰安市','0538',267,'T','0538');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'临沂市','0539',176,'L','0539');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'滨州市','0543',31,'B','0543');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'东营市','0546',69,'D','0546');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'滁州市','0550',52,'C','0550');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'合肥市','0551',105,'H','0551');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'蚌埠市','0552',20,'B','0552');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'芜湖市','0553',296,'W','0553');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'淮南市','0554',123,'H','0554');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'马鞍山市','0555',188,'M','0555');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'安庆市','0556',8,'A','0556');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'宿州市','0557',260,'S','0557');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'亳州市','0558',33,'B','0558');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'黄山市','0559',126,'H','0559');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'淮北市','0561',122,'H','0561');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'铜陵市','0562',279,'T','0562');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'宣城市','0563',324,'X','0563');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'六安市','0564',179,'L','0564');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'池州市','0566',49,'C','0566');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'衢州市','0570',229,'Q','0570');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'杭州市','0571',102,'H','0571');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'湖州市','0572',119,'H','0572');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'嘉兴市','0573',135,'J','0573');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'宁波市','0574',203,'N','0574');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'绍兴市','0575',245,'S','0575');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'台州市','0576',266,'T','0576');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'温州市','0577',289,'W','0577');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'丽水市','0578',165,'L','0578');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'金华市','0579',142,'J','0579');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('33',2,'舟山市','0580',362,'Z','0580');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'福州市','0591',77,'F','0591');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'厦门市','0592',307,'X','0592');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'宁德市','0593',204,'N','0593');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'莆田市','0594',211,'P','0594');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'泉州市','0595',228,'Q','0595');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'漳州市','0596',352,'Z','0596');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'龙岩市','0597',181,'L','0597');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'三明市','0598',233,'S','0598');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('35',2,'南平市','0599',199,'N','0599');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'威海市','0631',286,'W','0631');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'枣庄市','0632',350,'Z','0632');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'日照市','0633',231,'R','0633');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('37',2,'聊城市','0635',168,'L','0635');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'汕尾市','0660',238,'S','0660');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'阳江市','0662',331,'Y','0662');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'揭阳市','0663',140,'J','0663');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'茂名市','0668',189,'M','0668');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'西双版纳傣族自治州','0691',305,'X','0691');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'德宏傣族景颇族自治州','0692',62,'D','0692');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'鹰潭市','0701',340,'Y','0701');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'襄阳市','0710',312,'X','0710');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'鄂州市','0711',73,'E','0711');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'孝感市','0712',315,'X','0712');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'黄冈市','0713',124,'H','0713');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'黄石市','0714',127,'H','0714');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'咸宁市','0715',309,'X','0715');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'荆州市','0716',147,'J','0716');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'宜昌市','0717',336,'Y','0717');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'恩施土家族苗族自治州','0718',74,'E','0718');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'十堰市','0719',249,'S','0719');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'随州市','0722',261,'S','0722');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'荆门市','0724',146,'J','0724');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'仙桃市','0728',308,'X','0728');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'岳阳市','0730',347,'Y','0730');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'长沙市','0731',41,'C','0731');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'湘潭市','0732',313,'X','0732');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'株洲市','0733',365,'Z','0733');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'衡阳市','0734',113,'H','0734');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'郴州市','0735',45,'C','0735');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'常德市','0736',38,'C','0736');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'益阳市','0737',338,'Y','0737');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'娄底市','0738',183,'L','0738');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'邵阳市','0739',244,'S','0739');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'湘西土家族苗族自治州','0743',314,'X','0743');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'张家界市','0744',353,'Z','0744');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'怀化市','0745',120,'H','0745');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('43',2,'永州市','0746',342,'Y','0746');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'江门市','0750',138,'J','0750');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'韶关市','0751',243,'S','0751');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'惠州市','0752',128,'H','0752');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'梅州市','0753',190,'M','0753');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'汕头市','0754',237,'S','0754');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'深圳市','0755',246,'S','0755');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'珠海市','0756',364,'Z','0756');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'佛山市','0757',76,'F','0757');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'肇庆市','0758',357,'Z','0758');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'湛江市','0759',351,'Z','0759');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'中山市','0760',360,'Z','0760');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'河源市','0762',107,'H','0762');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'清远市','0763',223,'Q','0763');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'云浮市','0766',348,'Y','0766');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'潮州市','0768',44,'C','0768');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('44',2,'东莞市','0769',70,'D','0769');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'防城港市','0770',75,'F','0770');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'南宁市','0771',198,'N','0771');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'柳州市','0772',178,'L','0772');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'桂林市','0773',89,'G','0773');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'梧州市','0774',297,'W','0774');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'玉林市','0775',344,'Y','0775');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'百色市','0776',19,'B','0776');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'钦州市','0777',220,'Q','0777');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'河池市','0778',106,'H','0778');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'北海市','0779',26,'B','0779');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'新余市','0790',317,'X','0790');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'南昌市','0791',195,'N','0791');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'九江市','0792',149,'J','0792');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'上饶市','0793',242,'S','0793');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'抚州市','0794',79,'F','0794');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'宜春市','0795',337,'Y','0795');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'吉安市','0796',130,'J','0796');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'赣州市','0797',84,'G','0797');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'景德镇市','0798',148,'J','0798');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('36',2,'萍乡市','0799',208,'P','0799');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'保亭黎族苗族自治县','0801',24,'B','0801');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'白沙黎族自治县','0802',16,'B','0802');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'昌江黎族自治县','0803',37,'C','0803');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'澄迈县','0804',47,'C','0804');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'儋州市','0805',71,'D','0805');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'定安县','0806',66,'D','0806');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'东方市','0807',68,'D','0807');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'陵水黎族自治县','0809',177,'L','0809');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'攀枝花市','0812',206,'P','0812');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'自贡市','0813',369,'Z','0813');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'绵阳市','0816',192,'M','0816');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'南充市','0817',196,'N','0817');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'达州市','0818',55,'D','0818');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'遂宁市','0825',263,'S','0825');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'广安市','0826',86,'G','0826');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'巴中市','0827',14,'B','0827');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'泸州市','0830',186,'L','0830');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'宜宾市','0831',335,'Y','0831');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'资阳市','0832',367,'Z','0832');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'乐山市','0833',163,'L','0833');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'凉山彝族自治州','0834',167,'L','0834');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'雅安市','0835',325,'Y','0835');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'甘孜藏族自治州','0836',83,'G','0836');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'阿坝藏族羌族自治州','0837',0,'A','0837');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'德阳市','0838',63,'D','0838');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'广元市','0839',87,'G','0839');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'贵阳市','0851',91,'G','0851');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'遵义市','0852',370,'Z','0852');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'安顺市','0853',9,'A','0853');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'黔南布依族苗族自治州','0854',217,'Q','0854');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'黔东南苗族侗族自治州','0855',216,'Q','0855');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'铜仁市','0856',280,'T','0856');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'毕节市','0857',30,'B','0857');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'六盘水市','0858',180,'L','0858');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('52',2,'黔西南布依族苗族自治州','0859',218,'Q','0859');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'昭通市','0870',356,'Z','0870');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'昆明市','0871',156,'K','0871');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'大理白族自治州','0872',56,'D','0872');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'红河哈尼族彝族自治州','0873',114,'H','0873');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'曲靖市','0874',227,'Q','0874');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'保山市','0875',23,'B','0875');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'文山壮族苗族自治州','0876',291,'W','0876');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'玉溪市','0877',346,'Y','0877');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'楚雄彝族自治州','0878',53,'C','0878');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'普洱市','0879',212,'P','0879');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'临沧市','0883',172,'L','0883');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'怒江傈僳族自治州','0886',205,'N','0886');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'迪庆藏族自治州','0887',65,'D','0887');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('53',2,'丽江市','0888',164,'L','0888');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'拉萨市','0891',158,'L','0891');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'日喀则市','0892',230,'R','0892');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'山南市','0893',236,'S','0893');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'林芝市','0894',171,'L','0894');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'昌都市','0895',35,'C','0895');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'那曲市','0896',194,'N','0896');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('54',2,'阿里地区','0897',5,'A','0897');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'海口市','0898',97,'H','0898');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'三亚市','0899',235,'S','0899');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'塔城地区','0901',264,'T','0901');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'哈密市','0902',94,'H','0902');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'和田地区','0903',104,'H','0903');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'阿勒泰地区','0906',4,'A','0906');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'克孜勒苏柯尔克孜自治州','0908',155,'K','0908');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'博尔塔拉蒙古自治州','0909',32,'B','0909');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'咸阳市','0910',310,'X','0910');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'延安市','0911',328,'Y','0911');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'榆林市','0912',343,'Y','0912');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'渭南市','0913',288,'W','0913');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'商洛市','0914',239,'S','0914');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'安康市','0915',7,'A','0915');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'汉中市','0916',101,'H','0916');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'宝鸡市','0917',25,'B','0917');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('61',2,'铜川市','0919',278,'T','0919');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'临夏回族自治州','0930',175,'L','0930');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'兰州市','0931',160,'L','0931');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'定西市','0932',67,'D','0932');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'平凉市','0933',210,'P','0933');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'庆阳市','0934',224,'Q','0934');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'金昌市','0935',141,'J','0935');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'张掖市','0936',355,'Z','0936');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'酒泉市','0937',150,'J','0937');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'天水市','0938',273,'T','0938');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'甘南藏族自治州','0941',82,'G','0941');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'白银市','0943',18,'B','0943');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('64',2,'银川市','0951',339,'Y','0951');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('64',2,'石嘴山市','0952',252,'S','0952');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('64',2,'吴忠市','0953',298,'W','0953');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('64',2,'固原市','0954',85,'G','0954');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'海北藏族自治州','0970',95,'H','0970');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'西宁市','0971',304,'X','0971');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'海东市','0972',96,'H','0972');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'黄南藏族自治州','0973',125,'H','0973');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'海南藏族自治州','0974',98,'H','0974');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'果洛藏族自治州','0975',92,'G','0975');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'玉树藏族自治州','0976',345,'Y','0976');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('63',2,'海西蒙古族藏族自治州','0977',99,'H','0977');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'克拉玛依市','0990',154,'K','0990');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'乌鲁木齐市','0991',294,'W','0991');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'胡杨河市','0992',118,'H','0992');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'石河子市','0993',250,'S','0993');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'昌吉回族自治州','0994',36,'C','0994');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'吐鲁番市','0995',282,'T','0995');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'巴音郭楞蒙古自治州','0996',13,'B','0996');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'阿克苏地区','0997',1,'A','0997');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'喀什地区','0998',151,'K','0998');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'伊犁哈萨克自治州','0999',334,'Y','0999');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'北京市','11',2,'B','11');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'天津市','12',28,'T','12');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'河北省','13',10,'H','13');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('41',2,'济源市','1391',134,'J','1391');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'山西省','14',23,'S','14');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('22',2,'延边朝鲜族自治州','1433',329,'Y','1433');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'内蒙古自治区','15',19,'N','15');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('34',2,'阜阳市','1558',81,'F','1558');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'神农架林区','1719',247,'S','1719');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'天门市','1728',272,'T','1728');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'贵港市','1755',90,'G','1755');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'崇左市','1771',51,'C','1771');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'来宾市','1772',159,'L','1772');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('45',2,'贺州市','1774',110,'H','1774');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'内江市','1832',202,'N','1832');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('51',2,'眉山市','1833',191,'M','1833');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('81',2,'香港特别行政区','1852',311,'X','1852');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('82',2,'澳门特别行政区','1853',11,'A','1853');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('71',2,'台湾省','1886',265,'T','1886');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'屯昌县','1892',283,'T','1892');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'文昌市','1893',290,'W','1893');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'琼海市','1894',225,'Q','1894');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'临高县','1896',174,'L','1896');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'五指山市','1897',302,'W','1897');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'万宁市','1898',285,'W','1898');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'琼中黎族苗族自治县','1899',226,'Q','1899');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('90',2,'外国','1900',284,'W','1900');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'昆玉市','1903',157,'K','1903');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'北屯市','1906',28,'B','1906');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'双河市','1909',253,'S','1909');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'武威市','1935',300,'W','1935');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'嘉峪关市','1937',136,'J','1937');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('64',2,'中卫市','1953',361,'Z','1953');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'五家渠市','1994',301,'W','1994');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'铁门关市','1996',275,'T','1996');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'阿拉尔市','1997',2,'A','1997');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'图木舒克市','1998',281,'T','1998');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('65',2,'可克达拉市','1999',153,'K','1999');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'辽宁省','21',18,'L','21');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'吉林省','22',15,'J','22');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'黑龙江省','23',12,'H','23');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('42',2,'潜江市','2728',219,'Q','2728');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'乐东黎族自治县','2802',162,'L','2802');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('46',2,'三沙市','2898',234,'S','2898');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('62',2,'陇南市','2935',182,'L','2935');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'上海市','31',25,'S','31');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'江苏省','32',16,'J','32');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'浙江省','33',33,'Z','33');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'安徽省','34',0,'A','34');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'福建省','35',4,'F','35');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'江西省','36',17,'J','36');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'山东省','37',22,'S','37');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'河南省','41',11,'H','41');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'湖北省','42',13,'H','42');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'湖南省','43',14,'H','43');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'广东省','44',6,'G','44');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'广西壮族自治区','45',7,'G','45');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'海南省','46',9,'H','46');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'重庆市','50',3,'C','50');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'四川省','51',26,'S','51');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'贵州省','52',8,'G','52');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'云南省','53',32,'Y','53');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'西藏自治区','54',29,'X','54');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'陕西省','61',24,'S','61');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'甘肃省','62',5,'G','62');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'青海省','63',21,'Q','63');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'宁夏回族自治区','64',20,'N','64');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'新疆维吾尔自治区','65',31,'X','65');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'台湾省','71',27,'T','71');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'香港特别行政区','81',30,'X','81');
INSERT INTO `city_directory` (`parent_code`, `type`, `city_name`, `city_code`, `sort_num`, `pinyin_initial`, `id`) VALUES ('0',1,'澳门特别行政区','82',1,'A','82');
/*!40000 ALTER TABLE `city_directory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config_region`
--
DROP TABLE IF EXISTS `config_region`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `config_region` (
`id` bigint NOT NULL COMMENT '区域id',
`city_code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '城市编码',
`staff_receive_order_max` int DEFAULT '10' COMMENT '(个体)接单量限制',
`institution_receive_order_max` int DEFAULT '100' COMMENT '(企业)接单量限制值',
`staff_serve_radius` int DEFAULT '50' COMMENT '(个体)服务范围半径',
`institution_serve_radius` int DEFAULT '200' COMMENT '(企业)服务范围半径',
`diversion_interval` int DEFAULT NULL COMMENT '分流间隔(单位分钟),即下单时间与服务预计开始时间的间隔',
`seize_timeout_interval` int DEFAULT NULL COMMENT '抢单超时时间间隔(单位分钟),从支付成功进入抢单后超过当前时间抢单派单同步进行',
`dispatch_strategy` int DEFAULT NULL COMMENT '派单策略1距离优先策略2评分优先策略3接单量优先策略',
`dispatch_per_round_interval` int DEFAULT NULL COMMENT '派单每轮时间间隔',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='区域业务配置';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config_region`
--
LOCK TABLES `config_region` WRITE;
/*!40000 ALTER TABLE `config_region` DISABLE KEYS */;
INSERT INTO `config_region` (`id`, `city_code`, `staff_receive_order_max`, `institution_receive_order_max`, `staff_serve_radius`, `institution_serve_radius`, `diversion_interval`, `seize_timeout_interval`, `dispatch_strategy`, `dispatch_per_round_interval`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1694272956343619586,'010',10,100,50,200,180,60,1,180,'2023-08-23 16:58:45','2023-11-24 15:27:02',1674350264389750786,1674350264389750786);
INSERT INTO `config_region` (`id`, `city_code`, `staff_receive_order_max`, `institution_receive_order_max`, `staff_serve_radius`, `institution_serve_radius`, `diversion_interval`, `seize_timeout_interval`, `dispatch_strategy`, `dispatch_per_round_interval`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1716408821385113602,'0478',10,100,50,200,120,60,1,180,'2023-10-23 10:59:39','2023-10-23 10:59:39',1674350264389750786,1674350264389750786);
/*!40000 ALTER TABLE `config_region` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `operator`
--
DROP TABLE IF EXISTS `operator`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `operator` (
`id` bigint DEFAULT NULL,
`username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`phone` varchar(14) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`status` tinyint DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`create_by` bigint DEFAULT NULL,
`update_by` bigint DEFAULT NULL,
`is_deleted` tinyint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `operator`
--
LOCK TABLES `operator` WRITE;
/*!40000 ALTER TABLE `operator` DISABLE KEYS */;
INSERT INTO `operator` (`id`, `username`, `avatar`, `name`, `phone`, `password`, `status`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1,'zhangsan',NULL,NULL,'12011110000','$2a$10$v633CoJ.eIMA8sTuZxN5fOkmls5K8JmyVa6LEOptHl80bs/JA4JxO',1,'2023-06-29 06:10:31','2023-08-09 10:44:26',NULL,0,1);
INSERT INTO `operator` (`id`, `username`, `avatar`, `name`, `phone`, `password`, `status`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1674350264389750786,'xiaoyan',NULL,'萧炎',NULL,'$2a$10$v633CoJ.eIMA8sTuZxN5fOkmls5K8JmyVa6LEOptHl80bs/JA4JxO',1,'2023-06-29 09:33:04','2023-07-19 21:31:26',NULL,NULL,0);
/*!40000 ALTER TABLE `operator` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `region`
--
DROP TABLE IF EXISTS `region`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `region` (
`id` bigint NOT NULL COMMENT '区域id',
`city_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '区域名称',
`manager_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '负责人名称',
`manager_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '负责人电话',
`active_status` int NOT NULL DEFAULT '0' COMMENT '是否启用0草稿,1禁用2启用',
`sort_num` int NOT NULL DEFAULT '0' COMMENT '排序字段',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `` (`city_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='区域表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `region`
--
LOCK TABLES `region` WRITE;
/*!40000 ALTER TABLE `region` DISABLE KEYS */;
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1677152267410149378,'0997','阿克苏地区','老王','13512312312',0,0,'2023-07-07 03:07:15','2023-08-03 17:14:32',NULL,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1678648108367044609,'022','天津市','张三1','13512345678',0,0,'2023-07-11 14:11:11','2023-07-21 16:24:40',1674350264389750786,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1678654872303001601,'0556','安庆市','小孩','18600876543',0,0,'2023-07-11 14:38:04','2023-07-21 16:24:40',1674350264389750786,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1679004945467641857,'1853','澳门特别行政区','老王吧','15861231211',0,0,'2023-07-12 13:49:08','2023-07-21 16:28:25',1674350264389750786,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1683378699177644034,'0312','保定市','松松','13122132155',0,0,'2023-07-24 15:28:52','2023-07-24 16:14:09',1674350264389750786,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1683379605386383361,'0550','滁州市','帅帅','13221511211',0,0,'2023-07-24 15:32:28','2023-07-24 16:14:24',1674350264389750786,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1686303222843662337,'010','北京市','老孙','15812312112',2,0,'2023-08-01 17:09:52','2023-08-29 12:05:34',1674350264389750786,1674350264389750786);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1689579042623430657,'0594','莆田市','李四','17812345678',1,0,'2023-08-10 18:06:48','2023-08-15 16:14:33',NULL,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1691733203794628609,'021','上海市','张北大','13512312121',1,0,'2023-08-16 16:46:41','2023-08-17 15:19:50',NULL,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1692010607909900289,'023','重庆市','猪八戒','13231221212',1,0,'2023-08-17 11:08:59','2023-08-23 20:37:24',NULL,NULL);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1692472339767234562,'0371','郑州市','小红','13333333333',1,0,'2023-08-18 17:42:04','2023-10-26 14:00:12',1674350264389750786,1674350264389750786);
INSERT INTO `region` (`id`, `city_code`, `name`, `manager_name`, `manager_phone`, `active_status`, `sort_num`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1716408821385113602,'0478','巴彦淖尔市','fs','13333333333',0,12,'2023-10-23 10:59:38','2023-10-23 10:59:38',1674350264389750786,1674350264389750786);
/*!40000 ALTER TABLE `region` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve`
--
DROP TABLE IF EXISTS `serve`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve` (
`id` bigint NOT NULL COMMENT '服务id',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`region_id` bigint NOT NULL COMMENT '区域id',
`city_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`sale_status` int NOT NULL DEFAULT '0' COMMENT '售卖状态0草稿1下架2上架',
`price` decimal(10,2) NOT NULL COMMENT '价格',
`is_hot` int NOT NULL DEFAULT '0' COMMENT '是否为热门0非热门1热门',
`hot_time_stamp` bigint DEFAULT NULL COMMENT '更新为热门的时间戳',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE,
KEY `id` (`region_id`) USING BTREE,
KEY `id` (`serve_item_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve`
--
LOCK TABLES `serve` WRITE;
/*!40000 ALTER TABLE `serve` DISABLE KEYS */;
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1687401441778552834,1678727478181957634,1677152267410149378,'0997',0,5.00,0,NULL,'2023-08-04 17:53:48','2023-08-04 17:53:48',1674350264389750786,1674350264389750786);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1692475249121038338,1692475107114487809,1692472339767234562,'0371',0,10.00,0,NULL,'2023-08-18 17:53:38','2023-08-18 17:53:38',1674350264389750786,1674350264389750786);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1693543106233835521,1692475107114487809,1686303222843662337,'010',2,10.00,1,1692607169853,'2023-08-21 16:38:35','2023-10-17 09:55:27',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1693814922651181057,1678727478181957634,1692472339767234562,'0371',0,5.00,0,NULL,'2023-08-22 10:38:41','2023-08-22 10:38:41',1674350264389750786,1674350264389750786);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1693814923234189313,1685850705647194113,1692472339767234562,'0371',1,198.00,1,1692675704654,'2023-08-22 10:38:41','2023-10-26 14:00:08',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1693815623867506689,1683432288440897537,1686303222843662337,'010',2,1000.00,0,NULL,'2023-08-22 10:41:28','2023-08-26 03:48:30',1674350264389750786,1674350264389750786);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1693815623951392770,1685850371004649474,1686303222843662337,'010',0,49.00,0,NULL,'2023-08-22 10:41:28','2023-08-22 10:41:28',1674350264389750786,1674350264389750786);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1693815624114970626,1685894105234755585,1686303222843662337,'010',2,1.00,1,1692704857527,'2023-08-22 10:41:29','2023-10-17 09:55:30',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1694279289969152001,1683432288440897537,1692010607909900289,'023',2,1000.00,1,1692792962202,'2023-08-23 17:23:55','2023-08-23 20:37:09',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1694293275770982401,1692475107114487809,1692010607909900289,'023',2,10.00,1,1692792963574,'2023-08-23 18:19:30','2023-08-23 20:37:15',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1694322596350889986,1678727478181957634,1692010607909900289,'023',2,5.00,1,1692792964476,'2023-08-23 20:16:00','2023-08-23 20:37:17',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1694322596669657090,1685850705647194113,1692010607909900289,'023',2,198.00,1,1692792965365,'2023-08-23 20:16:00','2023-08-23 20:37:19',1674350264389750786,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1694336444920901634,1692475107114487809,1691733203794628609,'021',0,20.00,0,NULL,'2023-08-23 21:11:02','2023-08-23 21:11:02',NULL,NULL);
INSERT INTO `serve` (`id`, `serve_item_id`, `region_id`, `city_code`, `sale_status`, `price`, `is_hot`, `hot_time_stamp`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1715263395009191938,1685850705647194113,1686303222843662337,'010',2,17.00,0,1697794644978,'2023-10-20 07:08:10','2023-10-25 08:08:40',1674350264389750786,1674350264389750786);
/*!40000 ALTER TABLE `serve` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_item`
--
DROP TABLE IF EXISTS `serve_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_item` (
`id` bigint NOT NULL COMMENT '服务项id',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务编码',
`serve_type_id` bigint NOT NULL COMMENT '服务类型id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务名称',
`serve_item_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务图标',
`img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务图片',
`unit` int NOT NULL COMMENT '服务数量单位',
`description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务描述',
`detail_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务详图',
`reference_price` decimal(10,2) NOT NULL COMMENT '参考价格',
`sort_num` int DEFAULT NULL COMMENT '排序字段',
`active_status` int NOT NULL DEFAULT '0' COMMENT '活动状态0草稿1禁用2启用',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `` (`name`),
KEY `id` (`serve_type_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务项表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_item`
--
LOCK TABLES `serve_item` WRITE;
/*!40000 ALTER TABLE `serve_item` DISABLE KEYS */;
INSERT INTO `serve_item` (`id`, `code`, `serve_type_id`, `name`, `serve_item_icon`, `img`, `unit`, `description`, `detail_img`, `reference_price`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1678727478181957634,'1678727478190346240',1678654490336124929,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8179d29c-6b85-4c08-aa13-08429a91d86a.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9b87ab7c-9592-4090-9299-5bcf97409fb9.png',1,'测试服务','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/be1449d6-1c2d-4cca-9f8a-4b562b79998d.jpg',5.00,5,2,'2023-07-11 19:26:34','2023-08-23 16:21:58',1674350264389750786,NULL);
INSERT INTO `serve_item` (`id`, `code`, `serve_type_id`, `name`, `serve_item_icon`, `img`, `unit`, `description`, `detail_img`, `reference_price`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1683432288440897537,'1683432288403148800',1678649931106705409,'厨卫维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/3cab9e4c-40e2-49a8-9b39-44ade6031ae3.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0f2653d7-1d61-4014-9fc8-0c440f562eac.png',1,'不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,动了麻烦不要动了,','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8df4454f-4e42-4266-9bfc-34ef3f4d4443.jpg',1000.00,99,2,'2023-07-24 19:01:48','2023-08-22 10:39:05',1674350264389750786,NULL);
INSERT INTO `serve_item` (`id`, `code`, `serve_type_id`, `name`, `serve_item_icon`, `img`, `unit`, `description`, `detail_img`, `reference_price`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1685850371004649474,'1685850370996260864',1678649931106705409,'开荒保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/bd2f6ba2-68d8-4e7e-a1a8-2e9a5101e8da.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/d24573e9-d13c-416b-ade0-dc2e065ffaed.png',1,'','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/76badece-b053-492b-b6fa-0dce2dc70574.jpg',49.00,1,1,'2023-07-31 11:10:24','2023-08-23 16:48:48',1674350264389750786,NULL);
INSERT INTO `serve_item` (`id`, `code`, `serve_type_id`, `name`, `serve_item_icon`, `img`, `unit`, `description`, `detail_img`, `reference_price`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1685850705647194113,'1685850705647194112',1678654490336124929,'空调维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c70042a9-89d4-44b9-a44a-0434e5fd3217.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/71460cfd-0f49-467f-923d-1f9a02912b81.png',4,'不要乱删 乱下架','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9cb3bdb4-dfd9-489b-b660-d25dbcfbcbed.jpg',198.00,2,2,'2023-07-31 11:11:44','2023-08-22 19:21:12',1674350264389750786,NULL);
INSERT INTO `serve_item` (`id`, `code`, `serve_type_id`, `name`, `serve_item_icon`, `img`, `unit`, `description`, `detail_img`, `reference_price`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1685894105234755585,'1685894105234755584',1678649931106705409,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/072e4709-9be3-4df2-96ad-c3e2d5790556.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,'不要乱命名','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/18dca364-6b22-473c-a225-20954009c5b8.jpg',58.00,1,2,'2023-07-31 14:04:11','2023-08-22 10:39:11',1674350264389750786,NULL);
INSERT INTO `serve_item` (`id`, `code`, `serve_type_id`, `name`, `serve_item_icon`, `img`, `unit`, `description`, `detail_img`, `reference_price`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1692475107114487809,'1692475107110293504',1692473174681194497,'安装窗帘','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4327bfd0-d4dc-4d1e-a634-8835b8fc62cb.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4860042d-bcf9-4b60-b308-fb574c058db9.png',5,'提供安装窗帘服务,量身打造,保证满意。','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/efe9b6e9-e518-4862-9595-6cce7b15f82a.png',10.00,1,2,'2023-08-18 17:53:04','2023-08-18 17:53:23',1674350264389750786,NULL);
/*!40000 ALTER TABLE `serve_item` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_sync`
--
DROP TABLE IF EXISTS `serve_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_sync` (
`id` bigint NOT NULL COMMENT '服务id',
`serve_item_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务项名称',
`serve_type_id` bigint NOT NULL COMMENT '服务类型id',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`price` decimal(10,2) DEFAULT NULL COMMENT '价格',
`is_hot` int DEFAULT NULL COMMENT '是否为热门0非热门1热门',
`hot_time_stamp` bigint DEFAULT NULL COMMENT '更新为热门的时间戳',
`serve_item_sort_num` int DEFAULT NULL COMMENT '服务项排序字段',
`serve_type_sort_num` int DEFAULT NULL COMMENT '服务类型排序字段',
`serve_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型名称',
`serve_type_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型图片',
`serve_type_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型icon',
`unit` int DEFAULT NULL COMMENT '服务数量单位',
`detail_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项详情图片',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项图片',
`serve_item_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项图标',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务同步表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_sync`
--
LOCK TABLES `serve_sync` WRITE;
/*!40000 ALTER TABLE `serve_sync` DISABLE KEYS */;
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1686352662791016449,'日常维修',1678654490336124929,1678727478181957634,'010',5.00,1,1692256062300,6,2,'日常维修12','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/be1449d6-1c2d-4cca-9f8a-4b562b79998d.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9b87ab7c-9592-4090-9299-5bcf97409fb9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8179d29c-6b85-4c08-aa13-08429a91d86a.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1686645112923312129,'空调维修',1678654490336124929,1685850705647194113,'010',9999.99,1,1692607117222,NULL,2,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',NULL,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9cb3bdb4-dfd9-489b-b660-d25dbcfbcbed.jpg',NULL,NULL);
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1687401441778552834,'日常维修',1678654490336124929,1678727478181957634,'0997',5.00,NULL,NULL,6,2,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/be1449d6-1c2d-4cca-9f8a-4b562b79998d.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9b87ab7c-9592-4090-9299-5bcf97409fb9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8179d29c-6b85-4c08-aa13-08429a91d86a.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1692475249121038338,'安装窗帘',1692473174681194497,1692475107114487809,'0371',10.00,NULL,NULL,2,4,'家居服务','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/6c4fe274-c91b-414e-bb44-3515b5d1fd98.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/98a0c76d-d9e5-4ad4-9d85-852fdb3bdaa2.png',5,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/efe9b6e9-e518-4862-9595-6cce7b15f82a.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4860042d-bcf9-4b60-b308-fb574c058db9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4327bfd0-d4dc-4d1e-a634-8835b8fc62cb.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1693543106233835521,'安装窗帘',1692473174681194497,1692475107114487809,'010',10.00,1,NULL,1,4,'家居服务','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/6c4fe274-c91b-414e-bb44-3515b5d1fd98.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/98a0c76d-d9e5-4ad4-9d85-852fdb3bdaa2.png',5,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/efe9b6e9-e518-4862-9595-6cce7b15f82a.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4860042d-bcf9-4b60-b308-fb574c058db9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4327bfd0-d4dc-4d1e-a634-8835b8fc62cb.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1693814922651181057,'日常维修',1678654490336124929,1678727478181957634,'0371',5.00,NULL,NULL,6,2,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/be1449d6-1c2d-4cca-9f8a-4b562b79998d.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9b87ab7c-9592-4090-9299-5bcf97409fb9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8179d29c-6b85-4c08-aa13-08429a91d86a.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1693814923234189313,'空调维修',1678654490336124929,1685850705647194113,'0371',198.00,1,1692675704654,NULL,2,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',NULL,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9cb3bdb4-dfd9-489b-b660-d25dbcfbcbed.jpg',NULL,NULL);
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1693815623867506689,'厨卫维修',1678649931106705409,1683432288440897537,'010',1000.00,NULL,NULL,100,1,'保洁清','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/90b5ecb9-034f-4afe-95f1-66ad73a517ee.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0e687e39-19a6-4270-993c-01c626df5bad.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8df4454f-4e42-4266-9bfc-34ef3f4d4443.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0f2653d7-1d61-4014-9fc8-0c440f562eac.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/3cab9e4c-40e2-49a8-9b39-44ade6031ae3.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1693815623951392770,'开荒保洁',1678649931106705409,1685850371004649474,'010',49.00,NULL,NULL,2,1,'保洁清','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/90b5ecb9-034f-4afe-95f1-66ad73a517ee.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0e687e39-19a6-4270-993c-01c626df5bad.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/76badece-b053-492b-b6fa-0dce2dc70574.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/d24573e9-d13c-416b-ade0-dc2e065ffaed.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/bd2f6ba2-68d8-4e7e-a1a8-2e9a5101e8da.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1693815624114970626,'日常保洁',1678649931106705409,1685894105234755585,'010',1.00,1,NULL,1,1,'保洁清','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/90b5ecb9-034f-4afe-95f1-66ad73a517ee.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0e687e39-19a6-4270-993c-01c626df5bad.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/18dca364-6b22-473c-a225-20954009c5b8.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/072e4709-9be3-4df2-96ad-c3e2d5790556.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1694279289969152001,'厨卫维修',1678649931106705409,1683432288440897537,'023',1000.00,1,1692792962202,100,1,'保洁清','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/90b5ecb9-034f-4afe-95f1-66ad73a517ee.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0e687e39-19a6-4270-993c-01c626df5bad.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8df4454f-4e42-4266-9bfc-34ef3f4d4443.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0f2653d7-1d61-4014-9fc8-0c440f562eac.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/3cab9e4c-40e2-49a8-9b39-44ade6031ae3.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1694293275770982401,'安装窗帘',1692473174681194497,1692475107114487809,'023',10.00,1,1692792963574,2,4,'家居服务','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/6c4fe274-c91b-414e-bb44-3515b5d1fd98.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/98a0c76d-d9e5-4ad4-9d85-852fdb3bdaa2.png',5,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/efe9b6e9-e518-4862-9595-6cce7b15f82a.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4860042d-bcf9-4b60-b308-fb574c058db9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4327bfd0-d4dc-4d1e-a634-8835b8fc62cb.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1694322596350889986,'日常维修',1678654490336124929,1678727478181957634,'023',5.00,1,1692792964476,6,2,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',1,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/be1449d6-1c2d-4cca-9f8a-4b562b79998d.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9b87ab7c-9592-4090-9299-5bcf97409fb9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8179d29c-6b85-4c08-aa13-08429a91d86a.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1694322596669657090,'空调维修',1678654490336124929,1685850705647194113,'023',198.00,0,1692792965365,3,2,'日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png',4,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9cb3bdb4-dfd9-489b-b660-d25dbcfbcbed.jpg','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/71460cfd-0f49-467f-923d-1f9a02912b81.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c70042a9-89d4-44b9-a44a-0434e5fd3217.png');
INSERT INTO `serve_sync` (`id`, `serve_item_name`, `serve_type_id`, `serve_item_id`, `city_code`, `price`, `is_hot`, `hot_time_stamp`, `serve_item_sort_num`, `serve_type_sort_num`, `serve_type_name`, `serve_type_img`, `serve_type_icon`, `unit`, `detail_img`, `serve_item_img`, `serve_item_icon`) VALUES (1694336444920901634,'安装窗帘',1692473174681194497,1692475107114487809,'021',20.00,NULL,NULL,2,4,'家居服务','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/6c4fe274-c91b-414e-bb44-3515b5d1fd98.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/98a0c76d-d9e5-4ad4-9d85-852fdb3bdaa2.png',5,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/efe9b6e9-e518-4862-9595-6cce7b15f82a.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4860042d-bcf9-4b60-b308-fb574c058db9.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4327bfd0-d4dc-4d1e-a634-8835b8fc62cb.png');
/*!40000 ALTER TABLE `serve_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_type`
--
DROP TABLE IF EXISTS `serve_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_type` (
`id` bigint NOT NULL COMMENT '服务类型id',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务类型编码',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务类型名称',
`serve_type_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务类型图标',
`img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务类型图片',
`sort_num` int DEFAULT NULL COMMENT '排序字段',
`active_status` int NOT NULL DEFAULT '0' COMMENT '是否启用0草稿,1禁用2启用',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务类型表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_type`
--
LOCK TABLES `serve_type` WRITE;
/*!40000 ALTER TABLE `serve_type` DISABLE KEYS */;
INSERT INTO `serve_type` (`id`, `code`, `name`, `serve_type_icon`, `img`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1678649931106705409,'1678649931106705408','保洁清','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/0e687e39-19a6-4270-993c-01c626df5bad.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/90b5ecb9-034f-4afe-95f1-66ad73a517ee.png',1,1,'2023-07-11 14:18:26','2023-08-23 16:14:21',1674350264389750786,NULL);
INSERT INTO `serve_type` (`id`, `code`, `name`, `serve_type_icon`, `img`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1678654490336124929,'1678654490336124928','日常维修','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c8725882-1fa7-49a6-94ab-cac2530b3b7b.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00ba6d8a-fd7e-4691-8415-8ada95004b33.png',2,1,'2023-07-11 14:36:33','2023-08-03 16:32:05',1674350264389750786,NULL);
INSERT INTO `serve_type` (`id`, `code`, `name`, `serve_type_icon`, `img`, `sort_num`, `active_status`, `create_time`, `update_time`, `create_by`, `update_by`) VALUES (1692473174681194497,'1692473174672805888','家居服务','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/98a0c76d-d9e5-4ad4-9d85-852fdb3bdaa2.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/6c4fe274-c91b-414e-bb44-3515b5d1fd98.png',4,1,'2023-08-18 17:45:23','2023-08-18 17:49:37',1674350264389750786,NULL);
/*!40000 ALTER TABLE `serve_type` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-11-27 22:48:21

View File

@@ -0,0 +1,225 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: jzo2o-market
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `jzo2o-market`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `jzo2o-market` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `jzo2o-market`;
--
-- Table structure for table `activity`
--
DROP TABLE IF EXISTS `activity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `activity` (
`id` bigint NOT NULL COMMENT '活动id',
`name` varchar(100) NOT NULL DEFAULT '0' COMMENT '活动名称',
`type` int NOT NULL COMMENT '优惠券类型1满减2折扣',
`amount_condition` decimal(10,2) NOT NULL COMMENT '使用条件0表示无门槛其他值最低消费金额',
`discount_rate` int NOT NULL DEFAULT '0' COMMENT '折扣率折扣类型的折扣率8折就是存80',
`discount_amount` decimal(10,2) DEFAULT NULL COMMENT '优惠金额,满减或无门槛的优惠金额',
`validity_days` int NOT NULL DEFAULT '0' COMMENT '优惠券有效期天数0表示有效期是指定有效期的',
`distribute_start_time` datetime NOT NULL COMMENT '发放开始时间',
`distribute_end_time` datetime NOT NULL COMMENT '发放结束时间',
`status` int NOT NULL COMMENT '活动状态1待生效2进行中3已失效 4作废',
`total_num` int NOT NULL DEFAULT '0' COMMENT '发放数量0表示无限量其他正数表示最大发放量',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint DEFAULT NULL COMMENT '创建人',
`update_by` bigint DEFAULT NULL COMMENT '更新人',
`is_deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `activity`
--
LOCK TABLES `activity` WRITE;
/*!40000 ALTER TABLE `activity` DISABLE KEYS */;
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706183021040336896,'测试活动测试1',2,1.00,10,20.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 13:45:06','2023-10-13 12:23:35',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706183503305605120,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 13:47:01','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706190059321524224,'测试活动02',2,1.00,10,100.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 14:13:04','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706191283810828288,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 14:17:56','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706191734941777920,'测试活动02',2,1.00,10,20.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 14:19:43','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706192483608264704,'测试活动02',2,1.00,10,40.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 14:22:42','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706217591922974720,'测试活动02',2,1.00,10,100.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 16:02:28','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706220087122812928,'测试活动02',2,1.00,10,100.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 16:12:23','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706233323863891968,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 17:04:59','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706233782053855232,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 17:06:48','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706234166671532032,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 17:08:20','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706235631427346432,'测试活动02',2,1.00,10,100.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-25 17:14:09','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706501272482832384,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-26 10:49:43','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706502468744470528,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-26 10:54:28','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706511155529736192,'测试活动02',2,1.00,10,0.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-26 11:28:59','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706550497505665024,'测试活动02',2,1.00,10,20.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-26 14:05:19','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706661702914801664,'测试活动02',2,1.00,10,10.00,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-26 13:28:05','2023-10-10 06:56:33',1674350264389750786,NULL,0);
INSERT INTO `activity` (`id`, `name`, `type`, `amount_condition`, `discount_rate`, `discount_amount`, `validity_days`, `distribute_start_time`, `distribute_end_time`, `status`, `total_num`, `create_time`, `update_time`, `create_by`, `update_by`, `is_deleted`) VALUES (1706662031551102976,'测试活动02',2,1.00,10,NULL,1,'2023-09-30 00:00:01','2023-10-29 00:00:02',2,11,'2023-09-26 13:29:23','2023-10-10 06:56:33',1674350264389750786,NULL,0);
/*!40000 ALTER TABLE `activity` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `coupon`
--
DROP TABLE IF EXISTS `coupon`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `coupon` (
`id` bigint NOT NULL COMMENT '优惠券id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '优惠券名称',
`user_id` bigint NOT NULL COMMENT '优惠券的拥有者',
`user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '用户姓名',
`user_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '用户手机号',
`activity_id` bigint NOT NULL COMMENT '活动id',
`type` int NOT NULL COMMENT '使用类型1满减2折扣',
`discount_rate` int DEFAULT '0' COMMENT '折扣',
`discount_amount` decimal(10,2) DEFAULT NULL COMMENT '优惠金额',
`amount_condition` decimal(10,2) NOT NULL COMMENT '满减金额',
`validity_time` datetime DEFAULT NULL COMMENT '有效期',
`use_time` datetime DEFAULT NULL COMMENT '使用时间',
`status` tinyint NOT NULL COMMENT '优惠券状态1:未使用2:已使用3:已过期',
`orders_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '订单id',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除',
PRIMARY KEY (`id`) USING BTREE,
KEY `user_my_query_index` (`user_id`,`status`) USING BTREE COMMENT '用户查询我的优惠券快捷索引'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `coupon`
--
LOCK TABLES `coupon` WRITE;
/*!40000 ALTER TABLE `coupon` DISABLE KEYS */;
INSERT INTO `coupon` (`id`, `name`, `user_id`, `user_name`, `user_phone`, `activity_id`, `type`, `discount_rate`, `discount_amount`, `amount_condition`, `validity_time`, `use_time`, `status`, `orders_id`, `create_time`, `update_time`, `is_deleted`) VALUES (1706572794252230656,'双12五折大促a',1701074772546342912,'微信用户','18703810075',1706502468744470528,2,50,NULL,1.00,'2023-09-27 15:33:55',NULL,4,NULL,'2023-09-26 07:34:47','2023-09-26 08:40:00',0);
INSERT INTO `coupon` (`id`, `name`, `user_id`, `user_name`, `user_phone`, `activity_id`, `type`, `discount_rate`, `discount_amount`, `amount_condition`, `validity_time`, `use_time`, `status`, `orders_id`, `create_time`, `update_time`, `is_deleted`) VALUES (1706573370457325568,'个人测试活动请勿撤销a',1701074772546342912,'微信用户','18703810075',1706501272482832384,2,60,NULL,100.00,'2023-10-06 15:36:13',NULL,1,NULL,'2023-09-26 07:37:05','2023-09-26 07:37:05',0);
INSERT INTO `coupon` (`id`, `name`, `user_id`, `user_name`, `user_phone`, `activity_id`, `type`, `discount_rate`, `discount_amount`, `amount_condition`, `validity_time`, `use_time`, `status`, `orders_id`, `create_time`, `update_time`, `is_deleted`) VALUES (1706574712655577088,'尊享双十一活动',1701074772546342912,'微信用户','18703810075',1706234166671532032,2,80,NULL,1.00,'2023-10-16 15:41:33','2023-09-26 15:45:40',2,'2309260000000000064','2023-09-26 07:42:25','2023-09-26 07:46:31',0);
INSERT INTO `coupon` (`id`, `name`, `user_id`, `user_name`, `user_phone`, `activity_id`, `type`, `discount_rate`, `discount_amount`, `amount_condition`, `validity_time`, `use_time`, `status`, `orders_id`, `create_time`, `update_time`, `is_deleted`) VALUES (1712807553873780736,'测试活动测试1',1695339358949949440,'微信用户','18810966207',1706183021040336896,2,10,20.00,1.00,'2023-10-14 20:28:38',NULL,1,NULL,'2023-10-13 12:29:33','2023-10-13 12:29:33',0);
INSERT INTO `coupon` (`id`, `name`, `user_id`, `user_name`, `user_phone`, `activity_id`, `type`, `discount_rate`, `discount_amount`, `amount_condition`, `validity_time`, `use_time`, `status`, `orders_id`, `create_time`, `update_time`, `is_deleted`) VALUES (1712808672419160064,'测试活动测试1',1694250327664218112,'微信用户','18860355196',1706183021040336896,2,10,20.00,1.00,'2023-10-14 20:33:05',NULL,1,NULL,'2023-10-13 12:34:00','2023-10-13 12:34:00',0);
/*!40000 ALTER TABLE `coupon` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `coupon_use_back`
--
DROP TABLE IF EXISTS `coupon_use_back`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `coupon_use_back` (
`id` bigint NOT NULL COMMENT '回退记录id',
`coupon_id` bigint NOT NULL COMMENT '优惠券id',
`user_id` bigint NOT NULL COMMENT '用户id',
`use_back_time` datetime NOT NULL COMMENT '回退时间',
`write_off_time` datetime DEFAULT NULL COMMENT '核销时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='优惠券使用回退记录';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `coupon_use_back`
--
LOCK TABLES `coupon_use_back` WRITE;
/*!40000 ALTER TABLE `coupon_use_back` DISABLE KEYS */;
INSERT INTO `coupon_use_back` (`id`, `coupon_id`, `user_id`, `use_back_time`, `write_off_time`) VALUES (1706573094639894528,1706572794252230656,1701074772546342912,'2023-09-26 15:35:07','2023-09-26 15:34:40');
INSERT INTO `coupon_use_back` (`id`, `coupon_id`, `user_id`, `use_back_time`, `write_off_time`) VALUES (1706575665811161088,1706574712655577088,1701074772546342912,'2023-09-26 15:45:20','2023-09-26 15:44:02');
/*!40000 ALTER TABLE `coupon_use_back` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `coupon_write_off`
--
DROP TABLE IF EXISTS `coupon_write_off`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `coupon_write_off` (
`id` bigint NOT NULL,
`coupon_id` bigint NOT NULL COMMENT '优惠券id',
`user_id` bigint NOT NULL COMMENT '用户id',
`orders_id` bigint NOT NULL COMMENT '核销时使用的订单号',
`activity_id` bigint NOT NULL COMMENT '活动id',
`write_off_time` datetime NOT NULL COMMENT '核销时间',
`write_off_man_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '核销人手机号',
`write_off_man_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '核销人姓名',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='优惠券核销表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `coupon_write_off`
--
LOCK TABLES `coupon_write_off` WRITE;
/*!40000 ALTER TABLE `coupon_write_off` DISABLE KEYS */;
INSERT INTO `coupon_write_off` (`id`, `coupon_id`, `user_id`, `orders_id`, `activity_id`, `write_off_time`, `write_off_man_phone`, `write_off_man_name`) VALUES (1706572983394369536,1706572794252230656,1701074772546342912,2309260000000000062,1706502468744470528,'2023-09-26 15:34:40','18703810075','微信用户');
INSERT INTO `coupon_write_off` (`id`, `coupon_id`, `user_id`, `orders_id`, `activity_id`, `write_off_time`, `write_off_man_phone`, `write_off_man_name`) VALUES (1706575339234263040,1706574712655577088,1701074772546342912,2309260000000000063,1706234166671532032,'2023-09-26 15:44:02','18703810075','微信用户');
INSERT INTO `coupon_write_off` (`id`, `coupon_id`, `user_id`, `orders_id`, `activity_id`, `write_off_time`, `write_off_man_phone`, `write_off_man_name`) VALUES (1706575747860135936,1706574712655577088,1701074772546342912,2309260000000000064,1706234166671532032,'2023-09-26 15:45:40','18703810075','微信用户');
/*!40000 ALTER TABLE `coupon_write_off` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `undo_log`
--
DROP TABLE IF EXISTS `undo_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `undo_log` (
`id` bigint NOT NULL AUTO_INCREMENT,
`branch_id` bigint NOT NULL,
`xid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`context` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`rollback_info` longblob NOT NULL,
`log_status` int NOT NULL,
`log_created` datetime NOT NULL,
`log_modified` datetime NOT NULL,
`ext` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `undo_log`
--
LOCK TABLES `undo_log` WRITE;
/*!40000 ALTER TABLE `undo_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `undo_log` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-11-04 11:19:07

View File

@@ -0,0 +1,666 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: jzo2o-orders
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `jzo2o-orders`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `jzo2o-orders` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `jzo2o-orders`;
--
-- Table structure for table `biz_snapshot`
--
DROP TABLE IF EXISTS `biz_snapshot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `biz_snapshot` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`state_machine_name` varchar(50) DEFAULT NULL COMMENT '状态机名称',
`biz_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '业务id',
`db_shard_id` bigint DEFAULT NULL COMMENT '分库键',
`state` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '状态代码',
`biz_data` varchar(5000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '业务数据',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1720003502429724673 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='业务数据快照';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `biz_snapshot`
--
LOCK TABLES `biz_snapshot` WRITE;
/*!40000 ALTER TABLE `biz_snapshot` DISABLE KEYS */;
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1705852652602122240,NULL,'test101',1,'NO_PAY','{}','2023-09-24 07:53:15','2023-09-24 07:53:15');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1705854135619817472,NULL,'101',1,'NO_PAY','{}','2023-09-24 07:59:08','2023-09-24 07:59:08');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1705857303472787456,NULL,'101',1,'DISPATCHING','{}','2023-09-24 08:11:44','2023-09-24 08:11:44');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1705863039749840896,NULL,'102',1,'NO_PAY','{}','2023-09-24 08:34:31','2023-09-24 08:34:31');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1705863040399958016,NULL,'102',1,'DISPATCHING','{}','2023-09-24 08:34:31','2023-09-24 08:34:31');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719546870495191040,'order','103',1,'NO_PAY','{\"ordersStatus\":0,\"id\":103}','2023-11-01 02:49:12','2023-11-01 02:49:12');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719556750190964736,'order','104',1,'NO_PAY','{\"ordersStatus\":0,\"id\":104}','2023-11-01 03:28:27','2023-11-01 03:28:27');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719556750425845760,'order','104',1,'DISPATCHING','{\"ordersStatus\":100,\"id\":104}','2023-11-01 03:28:27','2023-11-01 03:28:27');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719608234639110144,'order','2311010000000000012',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698912000000,\"id\":2311010000000000012,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698792780000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698792780000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 06:53:02','2023-11-01 06:53:02');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719706855187431424,'order','2311010000000000013',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698944400000,\"id\":2311010000000000013,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698816293000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698816293000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 13:24:55','2023-11-01 13:24:55');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719708224141258752,'order','2311010000000000014',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698946200000,\"id\":2311010000000000014,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698816619000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698816619000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 13:30:22','2023-11-01 13:30:22');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719712036755095552,'order','2311010000000000015',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698948000000,\"id\":2311010000000000015,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698817528000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698817528000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 13:45:31','2023-11-01 13:45:31');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719714496093671424,'order','2311010000000000015',1716346406098296832,'DISPATCHING','{\"tradingChannel\":\"WECHAT_PAY\",\"ordersStatus\":100,\"payTime\":1698846855911,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"thirdOrderId\":\"4200001991202311013890714230\",\"realPayAmount\":1,\"serveStartTime\":1698948000000,\"id\":2311010000000000015,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698817528000,\"userId\":1716346406098296832,\"tradingOrderNo\":1719712050370170881,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698817528000,\"payStatus\":4,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 13:55:17','2023-11-01 13:55:17');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719716662040608768,'order','2311010000000000016',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1699030800000,\"id\":2311010000000000016,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698818631000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698818631000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 14:03:53','2023-11-01 14:03:53');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719717256289599488,'order','2311010000000000017',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698951600000,\"id\":2311010000000000017,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698818775000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698818775000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 14:06:15','2023-11-01 14:06:15');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719717761527070720,'order','2311010000000000018',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698859800000,\"id\":2311010000000000018,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698818896000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698818896000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 14:08:16','2023-11-01 14:08:16');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719718371076882432,'order','2311010000000000019',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1699029000000,\"id\":2311010000000000019,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698819041000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698819041000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-01 14:10:41','2023-11-01 14:10:41');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719887688292659200,'order','2311020000000000018',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1699124400000,\"id\":2311020000000000018,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698888202000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698888202000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-02 09:23:25','2023-11-02 09:23:25');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719898030552936448,'order','2311020000000000019',1716346406098296832,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698951600000,\"id\":2311020000000000019,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698890670000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698890670000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-02 10:04:30','2023-11-02 10:04:30');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1719898140426924032,'order','2311020000000000019',1716346406098296832,'DISPATCHING','{\"tradingChannel\":\"WECHAT_PAY\",\"ordersStatus\":100,\"payTime\":1698890645475,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"thirdOrderId\":\"4200001982202311024760791736\",\"realPayAmount\":1,\"serveStartTime\":1698951600000,\"id\":2311020000000000019,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698890670000,\"userId\":1716346406098296832,\"tradingOrderNo\":1719898040573366274,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698890670000,\"payStatus\":4,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-02 10:04:57','2023-11-02 10:04:57');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1720002980352122880,'order','2311020000000000020',1,'NO_PAY','{\"ordersStatus\":0,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"realPayAmount\":1,\"serveStartTime\":1698942600000,\"id\":2311020000000000020,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698915693000,\"userId\":1716346406098296832,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698915693000,\"payStatus\":2,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-02 17:01:36','2023-11-02 17:01:36');
INSERT INTO `biz_snapshot` (`id`, `state_machine_name`, `biz_id`, `db_shard_id`, `state`, `biz_data`, `create_time`, `update_time`) VALUES (1720003502429724672,'order','2311020000000000020',1,'DISPATCHING','{\"tradingChannel\":\"WECHAT_PAY\",\"ordersStatus\":100,\"payTime\":1698915765729,\"cityCode\":\"010\",\"serveItemName\":\"日常保洁\",\"serveId\":1693815624114970626,\"discountAmount\":0,\"lon\":\"113.83892\",\"serveAddress\":\"河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦\",\"contactsName\":\"苗先生\",\"serveItemId\":1685894105234755585,\"price\":1,\"serveItemImg\":\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png\",\"thirdOrderId\":\"4200001993202311024603167035\",\"realPayAmount\":1,\"serveStartTime\":1698942600000,\"id\":2311020000000000020,\"lat\":\"34.57203\",\"serveTypeId\":1678649931106705409,\"updateTime\":1698915693000,\"userId\":1716346406098296832,\"tradingOrderNo\":1720003382166687746,\"totalAmount\":1,\"unit\":1,\"contactsPhone\":\"13333333333\",\"createTime\":1698915693000,\"payStatus\":4,\"purNum\":1,\"serveTypeName\":\"保洁清\"}','2023-11-02 17:03:40','2023-11-02 17:03:40');
/*!40000 ALTER TABLE `biz_snapshot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `breach_record`
--
DROP TABLE IF EXISTS `breach_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `breach_record` (
`id` bigint NOT NULL COMMENT '违约id',
`serve_provider_id` bigint NOT NULL COMMENT '违约机构或师傅',
`serve_provider_type` int NOT NULL COMMENT '类型2师傅、3机构',
`behavior_type` int NOT NULL COMMENT '行为类型1待分配时取消2待服务时取消3服务中取消4派单拒绝5派单超时',
`breach_reason` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '违约原因',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务项名称',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务地址',
`orders_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务编码',
`served_user_id` bigint NOT NULL COMMENT '被服务人',
`served_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '被服务人员手机号,脱敏',
`breach_time` datetime NOT NULL COMMENT '违约时间',
`breach_day` int NOT NULL COMMENT '违约日格式例如20200512,2020年5月12日',
`orders_id` bigint NOT NULL COMMENT '违约单订单id',
`orders_serve_id` bigint DEFAULT NULL COMMENT '服务单id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='违约记录';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `breach_record`
--
LOCK TABLES `breach_record` WRITE;
/*!40000 ALTER TABLE `breach_record` DISABLE KEYS */;
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1704798076457275392,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-21 18:01:50',20230921,2309210000000000038,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1704850841762091008,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-21 21:31:30',20230921,2309210000000000042,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1704863326590238720,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-21 22:21:07',20230921,2309210000000000042,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1704864015693414400,1696338624494202882,2,2,'看错地址,无法服务','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-21 22:23:51',20230921,2309210000000000042,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1706554668584398848,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-26 14:21:54',20230926,2309260000000000061,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1706559218703790080,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-26 14:39:59',20230926,2309260000000000061,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1706563039525908480,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-09-26 14:55:10',20230926,2309260000000000061,NULL);
INSERT INTO `breach_record` (`id`, `serve_provider_id`, `serve_provider_type`, `behavior_type`, `breach_reason`, `serve_item_name`, `serve_address`, `orders_code`, `served_user_id`, `served_phone`, `breach_time`, `breach_day`, `orders_id`, `orders_serve_id`) VALUES (1714261707968258048,1696338624494202882,2,2,'服务地址有误','日常保洁','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼',NULL,1701074772546342912,'13333333333','2023-10-17 20:46:55',20231017,2310170000000000001,NULL);
/*!40000 ALTER TABLE `breach_record` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `history_orders_serve_sync`
--
DROP TABLE IF EXISTS `history_orders_serve_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `history_orders_serve_sync` (
`id` bigint NOT NULL COMMENT '服务单id',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人员或服务机构id',
`serve_provider_type` int DEFAULT NULL COMMENT '服务者类型2服务端服务3机构端服务',
`institution_staff_id` bigint DEFAULT NULL COMMENT '机构服务人员id',
`institution_staff_name` varchar(50) DEFAULT NULL COMMENT '机构服务人员名称',
`institution_name` varchar(100) DEFAULT NULL COMMENT '机构名称',
`orders_origin_type` int DEFAULT NULL COMMENT '订单来源类型1抢单2派单',
`contacts_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '客户姓名',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '客户电话',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务地址',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务分类id',
`serve_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务分裂名称',
`serve_start_time` datetime DEFAULT NULL COMMENT '预约时间',
`serve_item_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务图片',
`serve_status` int DEFAULT NULL COMMENT '服务单状态3服务完成4订单关闭',
`serve_provider_staff_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人姓名',
`serve_provider_staff_phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人手机号',
`canceler_name` varchar(50) DEFAULT NULL COMMENT '取消人姓名',
`cancel_time` datetime DEFAULT NULL COMMENT '退款时间',
`cancel_reason` varchar(50) DEFAULT NULL COMMENT '退款原因',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务完结时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务前照片',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务后照片',
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务前说明',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务后说明',
`orders_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额',
`pur_num` int DEFAULT NULL COMMENT '购买数量',
`serve_num` int DEFAULT NULL COMMENT '服务数量',
`unit` int DEFAULT NULL COMMENT '单位',
`display` int DEFAULT '1' COMMENT '服务端/机构端是否展示1展示0隐藏',
`is_deleted` int DEFAULT '0' COMMENT '是否是逻辑删除',
`update_by` bigint DEFAULT NULL COMMENT '更新人',
`sort_time` datetime DEFAULT NULL COMMENT '排序时间,服务单状态为服务完成,该字段是完成时间;服务单状态为订单关闭,该时间为退款时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `list_query_index` (`serve_provider_id`,`sort_time`,`serve_status`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务单';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `history_orders_serve_sync`
--
LOCK TABLES `history_orders_serve_sync` WRITE;
/*!40000 ALTER TABLE `history_orders_serve_sync` DISABLE KEYS */;
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2309210000000000036,1696706462195150849,3,NULL,NULL,'机构03',2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-09-21 22:00:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',0,NULL,NULL,'萧炎','2023-09-23 17:30:51','测试取消订单',NULL,NULL,NULL,NULL,NULL,NULL,0.10,NULL,1,1,1,0,1674350264389750786,'2023-10-08 17:30:51','2023-09-21 08:57:04');
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2309210000000000037,1696338624494202882,2,NULL,NULL,NULL,1,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-09-21 22:00:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-09-21 17:38:41','2023-09-21 17:39:01','[]','[]','非常不错','FDFDS',0.10,NULL,NULL,1,1,0,1701074772546342912,'2023-10-08 15:36:31','2023-09-21 09:39:52');
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2309210000000000039,1696338624494202882,2,NULL,NULL,NULL,2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-09-21 23:30:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-09-21 17:57:54','2023-09-21 21:02:26','[]','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9252302f-f3b5-498e-af48-c906f80e8e30.png\"]','霏霏','ffff',0.10,NULL,NULL,1,1,0,1701074772546342912,'2023-10-07 21:34:58','2023-09-21 13:03:18');
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2309210000000000041,1696338624494202882,2,NULL,NULL,NULL,2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-09-21 23:30:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,'服务人员02','15066699132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.10,NULL,NULL,1,1,0,1674350264389750786,'2023-10-07 11:05:04','2023-09-21 13:30:55');
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2309210000000000042,1696338624494202882,2,NULL,NULL,NULL,1,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-09-22 06:30:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-09-21 22:24:48','2023-09-22 10:28:11','[]','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/f8bb5160-b79e-4f4b-b0f3-3af515f0e026.png\"]','fds','aaaaaa',0.10,NULL,NULL,1,1,0,1701074772546342912,'2023-10-07 21:20:08','2023-09-22 02:29:04');
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2309230000000000043,1696338624494202882,2,NULL,NULL,NULL,1,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-09-23 22:00:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-09-23 16:31:23','2023-09-23 16:31:40','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c9641658-6d1f-418b-90d0-7913361cd7b3.jpg\"]','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8c46569e-e150-46fc-833d-cfb45d4ed501.jpg\"]','完成的非常不错','完成的非常不错11111',0.10,NULL,1,1,1,0,1701074772546342912,'2023-10-11 10:51:20','2023-09-23 08:32:31');
/*!40000 ALTER TABLE `history_orders_serve_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `history_orders_sync`
--
DROP TABLE IF EXISTS `history_orders_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `history_orders_sync` (
`id` bigint NOT NULL COMMENT '订单id',
`user_id` bigint NOT NULL COMMENT '订单所属人',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务类型id',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人',
`serve_provider_type` int DEFAULT NULL COMMENT '服务人类型2服务人员3机构',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`serve_id` bigint NOT NULL COMMENT '服务id',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`serve_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型名称',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项图片',
`unit` int DEFAULT NULL COMMENT '服务单位',
`orders_status` int NOT NULL COMMENT '订单状态500订单完成600已取消700已关闭',
`pay_status` int DEFAULT NULL COMMENT '支付状态1支付成功2已关闭',
`refund_status` int DEFAULT NULL COMMENT '退款状态',
`trade_finish_time` datetime DEFAULT NULL COMMENT '订单完成时间',
`trading_channel` varchar(255) DEFAULT NULL COMMENT '支付渠道ALI_PAY支付宝WECHAT_PAY微信',
`third_order_id` varchar(50) DEFAULT NULL COMMENT '支付流水',
`dispatch_time` datetime DEFAULT NULL COMMENT '派单时间',
`price` decimal(10,2) NOT NULL COMMENT '单价',
`pur_num` int NOT NULL DEFAULT '1' COMMENT '购买数量',
`total_amount` decimal(10,2) NOT NULL COMMENT '订单总金额',
`real_pay_amount` decimal(10,2) NOT NULL COMMENT '实际支付金额',
`third_refund_order_id` varchar(50) DEFAULT NULL COMMENT '退款流水',
`canceler_name` varchar(50) DEFAULT NULL COMMENT '取消人姓名',
`discount_amount` decimal(10,2) NOT NULL COMMENT '优惠金额',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务详细地址',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人手机号',
`contacts_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人姓名',
`serve_provider_staff_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人姓名',
`serve_provider_staff_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人手机号',
`institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构名称',
`institution_phone` varchar(20) DEFAULT NULL COMMENT '机构电话',
`place_order_time` datetime DEFAULT NULL COMMENT '下单时间',
`serve_start_time` datetime NOT NULL COMMENT '服务开始时间',
`serve_end_time` datetime DEFAULT NULL COMMENT '服务结束时间',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务结束时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务开始图片',
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务开始说明',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务完成图片',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务完成说明',
`payment_timeout` datetime DEFAULT NULL COMMENT '支付超时时间,该时间只对待支付有意义',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`pay_time` datetime DEFAULT NULL COMMENT '支付时间',
`cancel_time` datetime DEFAULT NULL COMMENT '取消/被退单时间',
`cancel_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消/被退单原因',
`year` int DEFAULT NULL COMMENT '下单年份,格式yyyy',
`month` int DEFAULT NULL COMMENT '下单月份,格式yyyyMM',
`day` int DEFAULT NULL COMMENT '下单所在日,格式yyyyMMdd',
`hour` int DEFAULT NULL COMMENT '下单所在小时格式yyyyMMddHH',
`sort_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '排序时间字段',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`sync` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='历史订单完成15天后同步到历史订单同步表中通过canal同步到历史订单库中1天后删除删除条件当天数据和历史订单库中的订单数据数量一致';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `history_orders_sync`
--
LOCK TABLES `history_orders_sync` WRITE;
/*!40000 ALTER TABLE `history_orders_sync` DISABLE KEYS */;
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309210000000000036,1701074772546342912,1678649931106705409,1696706462195150849,3,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,1,'2023-09-23 09:31:43','WECHAT_PAY',NULL,'2023-09-21 08:57:04',0.10,1,0.10,0.10,NULL,'萧炎',0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士',NULL,NULL,'机构03','15896123123','2023-09-21 08:57:04','2023-09-21 22:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,116.34395,40.06115,'2023-09-21 16:56:13','2023-09-23 17:30:51','测试取消订单',2023,202309,20230923,2023092309,'2023-10-08 17:30:51','2023-09-21 08:57:04',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309210000000000037,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-09-23 07:37:19','WECHAT_PAY',NULL,'2023-09-21 08:58:15',0.10,1,0.10,0.10,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-09-21 08:58:15','2023-09-21 22:00:00',NULL,'2023-09-21 17:38:41','2023-09-21 17:39:01','[]','非常不错','[]','FDFDS',NULL,116.34395,40.06115,'2023-09-21 16:57:23',NULL,NULL,2023,202309,20230921,2023092108,'2023-10-08 15:36:30','2023-09-21 09:39:52',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309210000000000039,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-09-22 13:35:50','WECHAT_PAY',NULL,'2023-09-21 09:49:32',0.10,1,0.10,0.10,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-09-21 09:49:32','2023-09-21 23:30:00',NULL,'2023-09-21 17:57:54','2023-09-21 21:02:26','[]','霏霏','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/9252302f-f3b5-498e-af48-c906f80e8e30.png\"]','ffff',NULL,116.34395,40.06115,'2023-09-21 17:48:41',NULL,NULL,2023,202309,20230921,2023092109,'2023-10-07 21:34:58','2023-09-21 13:03:18',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309210000000000041,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,1,'2023-09-22 03:05:56','WECHAT_PAY',NULL,'2023-09-21 09:57:53',0.10,1,0.10,0.10,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-09-21 09:57:48','2023-09-21 23:30:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,116.34395,40.06115,'2023-09-21 17:57:01',NULL,NULL,2023,202309,20230921,2023092109,'2023-10-07 11:05:04','2023-09-21 13:30:55',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309210000000000042,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-09-22 13:21:00','WECHAT_PAY',NULL,'2023-09-21 14:24:42',0.10,1,0.10,0.10,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-09-21 13:00:09','2023-09-22 06:30:00',NULL,'2023-09-21 22:24:48','2023-09-22 10:28:11','[]','fds','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/f8bb5160-b79e-4f4b-b0f3-3af515f0e026.png\"]','aaaaaa',NULL,116.34395,40.06115,'2023-09-21 20:59:17',NULL,NULL,2023,202309,20230921,2023092113,'2023-10-07 21:20:08','2023-09-22 02:29:04',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309230000000000043,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-09-26 02:52:08','WECHAT_PAY',NULL,'2023-09-23 08:19:13',0.10,1,0.10,0.10,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-09-23 08:19:08','2023-09-23 22:00:00',NULL,'2023-09-23 16:31:23','2023-09-23 16:31:40','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/c9641658-6d1f-418b-90d0-7913361cd7b3.jpg\"]','完成的非常不错','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/8c46569e-e150-46fc-833d-cfb45d4ed501.jpg\"]','完成的非常不错11111',NULL,116.34395,40.06115,'2023-09-23 16:18:20',NULL,NULL,2023,202309,20230926,2023092602,'2023-10-11 10:51:19','2023-09-23 08:32:31',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309250000000000057,1701074772546342912,1678649931106705409,NULL,NULL,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,1,'2023-09-26 05:38:06','WECHAT_PAY',NULL,NULL,0.10,1,0.10,0.10,NULL,'微信用户',0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士',NULL,NULL,NULL,NULL,'2023-09-25 06:14:39','2023-09-25 17:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,116.34395,40.06115,'2023-09-25 14:13:48','2023-09-26 13:37:14','下单地址有误',2023,202309,20230926,2023092605,'2023-10-11 13:37:14','2023-09-26 05:38:06',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309250000000000060,1701074772546342912,1678649931106705409,NULL,NULL,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,1,'2023-09-26 05:37:52','WECHAT_PAY',NULL,NULL,0.10,1,0.10,0.10,NULL,'微信用户',0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士',NULL,NULL,NULL,NULL,'2023-09-25 06:34:18','2023-09-25 17:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,116.34395,40.06115,'2023-09-25 14:33:29','2023-09-26 13:37:01','下单地址有误',2023,202309,20230926,2023092605,'2023-10-11 13:37:01','2023-09-26 05:37:52',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309260000000000062,1701074772546342912,1678649931106705409,NULL,NULL,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,1,'2023-09-26 07:35:59','WECHAT_PAY',NULL,NULL,1.00,1,1.00,0.50,NULL,'微信用户',0.50,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士',NULL,NULL,NULL,NULL,'2023-09-26 07:35:33','2023-09-27 08:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,116.34395,40.06115,'2023-09-26 15:34:41','2023-09-26 15:35:07','问题已解决,不需要了',2023,202309,20230926,2023092607,'2023-10-11 15:35:07','2023-09-26 07:35:59',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2309260000000000063,1701074772546342912,1678649931106705409,NULL,NULL,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,1,'2023-09-26 07:46:12','WECHAT_PAY',NULL,NULL,1.00,1,1.00,0.80,NULL,'微信用户',0.20,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士',NULL,NULL,NULL,NULL,'2023-09-26 07:44:54','2023-09-27 09:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,116.34395,40.06115,'2023-09-26 15:44:02','2023-09-26 15:45:20','下单地址有误',2023,202309,20230926,2023092607,'2023-10-11 15:45:20','2023-09-26 07:46:12',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2310280000000000004,1716346406098296832,1678649931106705409,NULL,NULL,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,2,'2023-10-28 09:40:35','WECHAT_PAY',NULL,NULL,1.00,1,1.00,1.00,NULL,'普通用户72135',0.00,'河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生',NULL,NULL,NULL,NULL,'2023-10-28 08:52:01','2023-10-29 10:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,113.83892,34.57203,'2023-10-28 17:03:25','2023-10-28 17:04:06','问题已解决,不需要了',2023,202310,20231028,2023102809,'2023-11-12 17:39:47','2023-10-28 09:40:35',NULL);
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`, `sync`) VALUES (2310280000000000005,1716346406098296832,1678649931106705409,NULL,NULL,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,700,4,2,'2023-10-28 13:53:51','WECHAT_PAY',NULL,NULL,1.00,1,1.00,1.00,NULL,'普通用户72135',0.00,'河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生',NULL,NULL,NULL,NULL,'2023-10-28 13:52:37','2023-10-29 13:30:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,113.83892,34.57203,'2023-10-28 21:52:17','2023-10-28 21:52:33','问题已解决,不需要了',2023,202310,20231028,2023102813,'2023-11-12 21:52:59','2023-10-28 13:53:51',NULL);
/*!40000 ALTER TABLE `history_orders_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders`
--
DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders` (
`id` bigint NOT NULL COMMENT '订单id',
`user_id` bigint NOT NULL COMMENT '订单所属人',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务类型id',
`serve_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型名称',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项图片',
`unit` int DEFAULT NULL COMMENT '服务单位',
`serve_id` bigint NOT NULL COMMENT '服务id',
`orders_status` int NOT NULL COMMENT '订单状态0待支付100派单中200待服务300服务中500订单完成600已取消700已关闭',
`pay_status` int DEFAULT NULL COMMENT '支付状态2待支付4支付成功',
`refund_status` int DEFAULT NULL COMMENT '退款状态 1退款中 2退款成功 3退款失败',
`price` decimal(10,2) NOT NULL COMMENT '单价',
`pur_num` int NOT NULL DEFAULT '1' COMMENT '购买数量',
`total_amount` decimal(10,2) NOT NULL COMMENT '订单总金额',
`real_pay_amount` decimal(10,2) NOT NULL COMMENT '实际支付金额',
`discount_amount` decimal(10,2) NOT NULL COMMENT '优惠金额',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务详细地址',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人手机号',
`contacts_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人姓名',
`serve_start_time` datetime NOT NULL COMMENT '服务开始时间',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`pay_time` datetime DEFAULT NULL COMMENT '支付时间',
`evaluation_time` datetime DEFAULT NULL COMMENT '评价时间',
`evaluation_status` int NOT NULL DEFAULT '0' COMMENT '评价状态 0:未评价 1:已评价',
`trading_order_no` bigint DEFAULT NULL COMMENT '支付服务交易单号',
`transaction_id` varchar(50) DEFAULT NULL COMMENT '第三方支付的交易号',
`refund_no` bigint DEFAULT NULL COMMENT '支付服务退款单号',
`refund_id` varchar(50) DEFAULT NULL COMMENT '第三方支付的退款单号',
`trading_channel` varchar(50) DEFAULT NULL COMMENT '支付渠道',
`display` int DEFAULT '1' COMMENT '用户端是否展示1展示0隐藏',
`sort_by` bigint DEFAULT NULL COMMENT '排序字段serve_start_time秒级时间戳+订单id后六位',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务完成时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='订单表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders`
--
LOCK TABLES `orders` WRITE;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2310290000000000006,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-10-30 09:00:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1698627600006,NULL,'2023-10-29 11:45:56','2023-10-29 11:45:56');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2310290000000000007,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-10-30 03:30:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1698607800007,NULL,'2023-10-29 12:45:36','2023-10-29 12:45:36');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2310290000000000008,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-10-30 03:30:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1698607800008,NULL,'2023-10-29 12:47:35','2023-10-29 12:47:35');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2310300000000000011,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,100,4,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-10-31 08:00:00',113.83892,34.57203,'2023-10-30 21:25:35',NULL,0,1718981758290255874,'4200001988202310308551503916',NULL,NULL,'WECHAT_PAY',1,1698710400011,NULL,'2023-10-30 13:23:25','2023-10-30 13:26:27');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2310300000000000012,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-10-31 04:00:00',113.83892,34.57203,NULL,NULL,0,1718983196756172802,NULL,NULL,NULL,'ALI_PAY',1,1698696000012,NULL,'2023-10-30 13:29:12','2023-10-30 13:38:04');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2310310000000000011,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,100,4,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-01 08:00:00',113.83892,34.57203,'2023-10-31 17:00:53',NULL,0,1719276609644908545,'4200001971202310316899459013',NULL,NULL,'WECHAT_PAY',1,1698796800011,NULL,'2023-10-31 08:49:18','2023-10-31 09:01:45');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000012,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,600,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-02 16:00:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1698912000012,NULL,'2023-11-01 06:53:00','2023-11-01 13:13:11');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000013,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,600,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-03 01:00:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1698944400013,NULL,'2023-11-01 13:24:53','2023-11-01 13:25:09');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000014,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,600,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-03 01:30:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1698946200014,NULL,'2023-11-01 13:30:19','2023-11-01 13:30:35');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000015,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,700,4,2,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-03 02:00:00',113.83892,34.57203,'2023-11-01 21:54:16',NULL,0,1719712050370170881,'4200001991202311013890714230',1719715740460109825,'50301507672023110132905200019','WECHAT_PAY',1,1698948000015,NULL,'2023-11-01 13:45:28','2023-11-01 14:00:35');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000016,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-04 01:00:00',113.83892,34.57203,NULL,NULL,0,1719716830744268802,NULL,NULL,NULL,'WECHAT_PAY',1,1699030800016,NULL,'2023-11-01 14:03:51','2023-11-01 14:04:34');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000017,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-03 03:00:00',113.83892,34.57203,NULL,NULL,0,1719717271708225538,NULL,NULL,NULL,'WECHAT_PAY',1,1698951600017,NULL,'2023-11-01 14:06:15','2023-11-01 14:06:19');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000018,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-02 01:30:00',113.83892,34.57203,NULL,NULL,0,1719717777692282881,NULL,NULL,NULL,'WECHAT_PAY',1,1698859800018,NULL,'2023-11-01 14:08:16','2023-11-01 14:08:20');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311010000000000019,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,0,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-04 00:30:00',113.83892,34.57203,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,1,1699029000019,NULL,'2023-11-01 14:10:41','2023-11-01 14:10:41');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311020000000000018,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,600,2,NULL,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-05 03:00:00',113.83892,34.57203,NULL,NULL,0,1719888545902235649,NULL,NULL,NULL,'WECHAT_PAY',1,1699124400018,NULL,'2023-11-02 09:23:22','2023-11-02 10:02:52');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311020000000000019,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,700,4,2,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-03 03:00:00',113.83892,34.57203,'2023-11-02 10:04:05',NULL,0,1719898040573366274,'4200001982202311024760791736',1719898405972742146,'50301307412023110220863640032','WECHAT_PAY',1,1698951600019,NULL,'2023-11-02 10:04:30','2023-11-02 10:08:40');
INSERT INTO `orders` (`id`, `user_id`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `serve_item_img`, `unit`, `serve_id`, `orders_status`, `pay_status`, `refund_status`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `discount_amount`, `city_code`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_start_time`, `lon`, `lat`, `pay_time`, `evaluation_time`, `evaluation_status`, `trading_order_no`, `transaction_id`, `refund_no`, `refund_id`, `trading_channel`, `display`, `sort_by`, `real_serve_end_time`, `create_time`, `update_time`) VALUES (2311020000000000020,1716346406098296832,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,1693815624114970626,700,4,2,1.00,1,1.00,1.00,0.00,'010','河南省郑州市新郑市河南省郑州市新郑市郑港街道黑马程序员航投大厦','13333333333','苗先生','2023-11-03 00:30:00',113.83892,34.57203,'2023-11-02 17:02:46',NULL,0,1720003382166687746,'4200001993202311024603167035',1720003611095994370,'50310107672023110203717204611','WECHAT_PAY',1,1698942600020,NULL,'2023-11-02 17:01:33','2023-11-02 17:04:25');
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders_canceled`
--
DROP TABLE IF EXISTS `orders_canceled`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders_canceled` (
`id` bigint NOT NULL COMMENT '订单id',
`canceller_id` bigint DEFAULT NULL COMMENT '取消人',
`canceler_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消人名称',
`canceller_type` int DEFAULT NULL COMMENT '取消人类型1普通用户4运营人员',
`cancel_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消原因',
`cancel_time` datetime DEFAULT NULL COMMENT '取消时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='订单取消表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders_canceled`
--
LOCK TABLES `orders_canceled` WRITE;
/*!40000 ALTER TABLE `orders_canceled` DISABLE KEYS */;
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309180000000000018,1701074772546342912,'微信用户',1,'问题已解决,不需要了','2023-09-20 16:33:51','2023-09-20 08:34:42','2023-09-20 08:34:42');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309190000000000032,1701074772546342912,'微信用户',1,'问题已解决,不需要了','2023-09-20 16:21:51','2023-09-20 08:22:43','2023-09-20 08:22:43');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309210000000000036,1674350264389750786,'萧炎',4,'测试取消订单','2023-09-23 17:30:51','2023-09-23 09:31:43','2023-09-23 09:31:43');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309210000000000041,1674350264389750786,'萧炎',4,'aaaaaaaaaaaa','2023-09-22 11:05:04','2023-09-22 03:05:56','2023-09-22 03:05:56');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309250000000000057,1701074772546342912,'微信用户',1,'下单地址有误','2023-09-26 13:37:14','2023-09-26 05:38:06','2023-09-26 05:38:06');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309250000000000060,1701074772546342912,'微信用户',1,'下单地址有误','2023-09-26 13:37:01','2023-09-26 05:37:52','2023-09-26 05:37:52');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309260000000000062,1701074772546342912,'微信用户',1,'问题已解决,不需要了','2023-09-26 15:35:07','2023-09-26 07:35:59','2023-09-26 07:35:59');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2309260000000000063,1701074772546342912,'微信用户',1,'下单地址有误','2023-09-26 15:45:20','2023-09-26 07:46:12','2023-09-26 07:46:12');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2310280000000000004,1716346406098296832,'普通用户72135',1,'问题已解决,不需要了','2023-10-28 17:04:06','2023-10-28 09:04:57','2023-10-28 09:04:57');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2310280000000000005,1716346406098296832,'普通用户72135',1,'问题已解决,不需要了','2023-10-28 21:52:33','2023-10-28 13:53:25','2023-10-28 13:53:25');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311010000000000012,NULL,NULL,NULL,'问题已解决,不需要了',NULL,'2023-11-01 13:13:07','2023-11-01 13:13:07');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311010000000000013,NULL,NULL,NULL,'下单地址有误',NULL,'2023-11-01 13:25:09','2023-11-01 13:25:09');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311010000000000014,1716346406098296832,'普通用户72135',1,'下单时间错误','2023-11-01 21:29:39','2023-11-01 13:30:35','2023-11-01 13:30:35');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311010000000000015,1716346406098296832,'普通用户72135',1,'商家联系不上','2023-11-01 21:59:18','2023-11-01 14:00:13','2023-11-01 14:00:13');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311020000000000018,1716346406098296832,'普通用户72135',1,'下单时间错误','2023-11-02 10:02:01','2023-11-02 10:02:52','2023-11-02 10:02:52');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311020000000000019,1716346406098296832,'普通用户72135',1,'下单时间错误','2023-11-02 10:05:09','2023-11-02 10:06:00','2023-11-02 10:06:00');
INSERT INTO `orders_canceled` (`id`, `canceller_id`, `canceler_name`, `canceller_type`, `cancel_reason`, `cancel_time`, `create_time`, `update_time`) VALUES (2311020000000000020,1716346406098296832,'普通用户72135',1,'下单时间错误','2023-11-02 17:03:12','2023-11-02 17:04:06','2023-11-02 17:04:06');
/*!40000 ALTER TABLE `orders_canceled` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders_dispatch`
--
DROP TABLE IF EXISTS `orders_dispatch`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders_dispatch` (
`id` bigint NOT NULL COMMENT '订单id',
`orders_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '订单id',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '城市编码',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务分类id',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务名称',
`serve_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务分类名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务地址',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务项目图片',
`orders_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额',
`serve_start_time` datetime NOT NULL COMMENT '服务开始时间',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`pur_num` int NOT NULL COMMENT '服务数量',
`is_transfer_manual` int DEFAULT '0' COMMENT '是否转人工',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='派单池';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders_dispatch`
--
LOCK TABLES `orders_dispatch` WRITE;
/*!40000 ALTER TABLE `orders_dispatch` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders_dispatch` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders_refund`
--
DROP TABLE IF EXISTS `orders_refund`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders_refund` (
`id` bigint NOT NULL COMMENT '订单id',
`trading_order_no` bigint DEFAULT NULL COMMENT '支付服务交易单号',
`real_pay_amount` decimal(10,2) DEFAULT NULL COMMENT '实付金额',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单退款表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders_refund`
--
LOCK TABLES `orders_refund` WRITE;
/*!40000 ALTER TABLE `orders_refund` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders_refund` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders_seize`
--
DROP TABLE IF EXISTS `orders_seize`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders_seize` (
`id` bigint NOT NULL COMMENT '订单id',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '城市编码',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务分类id',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务名称',
`serve_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务分类名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务地址',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务项目图片',
`orders_amount` decimal(10,2) DEFAULT NULL COMMENT '订单总金额',
`serve_start_time` datetime NOT NULL COMMENT '服务开始时间',
`pay_success_time` datetime DEFAULT NULL COMMENT '订单支付成功时间,用于计算是否进入派单',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`pur_num` int NOT NULL COMMENT '服务数量',
`is_time_out` int DEFAULT '0' COMMENT '抢单是否超时',
`sort_by` bigint DEFAULT NULL COMMENT '抢单列表排序字段',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `sort_by_index` (`sort_by`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='抢单池';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders_seize`
--
LOCK TABLES `orders_seize` WRITE;
/*!40000 ALTER TABLE `orders_seize` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders_seize` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders_serve`
--
DROP TABLE IF EXISTS `orders_serve`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `orders_serve` (
`id` bigint NOT NULL COMMENT '任务id',
`user_id` bigint DEFAULT NULL COMMENT '属于哪个用户',
`serve_provider_id` bigint NOT NULL COMMENT '服务人员或服务机构id',
`serve_provider_type` int DEFAULT NULL COMMENT '服务者类型2服务端服务3机构端服务',
`institution_staff_id` bigint DEFAULT NULL COMMENT '机构服务人员id',
`orders_id` bigint NOT NULL COMMENT '订单id',
`orders_origin_type` int NOT NULL COMMENT '订单来源类型1抢单2派单',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`serve_type_id` bigint NOT NULL COMMENT '服务分类id',
`serve_start_time` datetime DEFAULT NULL COMMENT '预约时间',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`serve_status` int NOT NULL COMMENT '任务状态',
`settlement_status` int NOT NULL DEFAULT '0' COMMENT '结算状态0不可结算1待结算2结算完成',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务完结时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务前照片',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务后照片',
`serve_item_img` varchar(255) DEFAULT NULL,
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务前说明',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务后说明',
`cancel_time` datetime DEFAULT NULL COMMENT '取消时间,可以是退单,可以是取消时间',
`orders_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额',
`pur_num` int DEFAULT NULL COMMENT '购买数量',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`sort_by` bigint DEFAULT NULL COMMENT '排序字段serve_start_time秒级时间戳+订单id后6位',
`display` int DEFAULT '1' COMMENT '服务端/机构端是否展示1展示0隐藏',
`update_by` bigint DEFAULT NULL COMMENT '更新人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务单表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders_serve`
--
LOCK TABLES `orders_serve` WRITE;
/*!40000 ALTER TABLE `orders_serve` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders_serve` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider_sync`
--
DROP TABLE IF EXISTS `serve_provider_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider_sync` (
`id` bigint NOT NULL,
`serve_times` json DEFAULT NULL COMMENT '服务时间段',
`acceptance_num` int DEFAULT NULL COMMENT '接单数',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务状态表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider_sync`
--
LOCK TABLES `serve_provider_sync` WRITE;
/*!40000 ALTER TABLE `serve_provider_sync` DISABLE KEYS */;
INSERT INTO `serve_provider_sync` (`id`, `serve_times`, `acceptance_num`) VALUES (1696338624494202882,'[2023101723, 2023101722]',2);
INSERT INTO `serve_provider_sync` (`id`, `serve_times`, `acceptance_num`) VALUES (1696706462195150849,'[]',2);
/*!40000 ALTER TABLE `serve_provider_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `state_persister`
--
DROP TABLE IF EXISTS `state_persister`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `state_persister` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`state_machine_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '状态机名称',
`biz_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '业务id',
`state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '状态',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `` (`state_machine_name`,`biz_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1720002969933725699 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='状态机持久化表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `state_persister`
--
LOCK TABLES `state_persister` WRITE;
/*!40000 ALTER TABLE `state_persister` DISABLE KEYS */;
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1703597113423974402,'order','2309180000000000017','DISPATCHING','2023-09-18 02:30:29','2023-09-18 02:30:32');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1703614442400677890,'order','2309180000000000018','CANCELED','2023-09-18 03:39:21','2023-09-20 08:34:42');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1703614852641415169,'order','2309180000000000019','DISPATCHING','2023-09-18 03:40:58','2023-09-18 03:41:01');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1703717277117251586,'order','2309180000000000020','DISPATCHING','2023-09-18 10:27:58','2023-09-18 10:28:01');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704036781277843457,'order','2309190000000000021','DISPATCHING','2023-09-19 07:37:34','2023-09-19 07:37:36');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704037259042623490,'order','2309190000000000022','DISPATCHING','2023-09-19 07:39:28','2023-09-19 07:39:28');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704037987173797889,'order','2309190000000000023','DISPATCHING','2023-09-19 07:42:21','2023-09-19 07:42:21');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704038886696816642,'order','2309190000000000024','DISPATCHING','2023-09-19 07:45:56','2023-09-19 07:45:56');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704039201630326785,'order','2309190000000000025','DISPATCHING','2023-09-19 07:47:11','2023-09-19 07:47:11');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704039671891574786,'order','2309190000000000026','DISPATCHING','2023-09-19 07:49:03','2023-09-19 07:49:06');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704041100601462786,'order','2309190000000000027','DISPATCHING','2023-09-19 07:54:44','2023-09-19 07:54:46');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704064867142795265,'order','2309190000000000028','DISPATCHING','2023-09-19 09:29:10','2023-09-19 09:29:30');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704065848488341505,'order','2309190000000000029','DISPATCHING','2023-09-19 09:33:04','2023-09-19 09:33:14');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704066275527208961,'order','2309190000000000030','DISPATCHING','2023-09-19 09:34:46','2023-09-19 09:34:54');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704067124496281601,'order','2309190000000000031','DISPATCHING','2023-09-19 09:38:08','2023-09-19 09:38:55');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704069905735024641,'order','2309190000000000032','CLOSED','2023-09-19 09:49:11','2023-09-20 08:22:43');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704413690130087937,'order','2309200000000000033','DISPATCHING','2023-09-20 08:35:17','2023-09-20 08:35:17');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704764690116395009,'order','2309210000000000034','NO_SERVE','2023-09-21 07:50:01','2023-09-21 08:48:52');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704780558942617602,'order','2309210000000000035','NO_SERVE','2023-09-21 08:53:05','2023-09-21 08:53:20');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704781563553923073,'order','2309210000000000036','CLOSED','2023-09-21 08:57:04','2023-09-23 09:31:43');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704781858841313281,'order','2309210000000000037','FINISHED','2023-09-21 08:58:15','2023-09-23 07:37:19');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704794391111397377,'order','2309210000000000038','DISPATCHING','2023-09-21 09:48:03','2023-09-21 10:02:41');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704794766241558529,'order','2309210000000000039','FINISHED','2023-09-21 09:49:32','2023-09-22 13:35:50');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704796846855385089,'order','2309210000000000041','CLOSED','2023-09-21 09:57:48','2023-09-22 03:05:56');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1704842734885761026,'order','2309210000000000042','FINISHED','2023-09-21 13:00:09','2023-09-22 13:21:00');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1705496792029986818,'order','2309230000000000043','FINISHED','2023-09-23 08:19:08','2023-09-26 02:52:08');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1705852641625882625,'order','test101','NO_PAY','2023-09-24 07:53:12','2023-09-24 07:53:12');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1705854124530462721,'order','101','DISPATCHING','2023-09-24 07:59:06','2023-09-24 08:11:41');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1705863029281112066,'order','102','DISPATCHING','2023-09-24 08:34:29','2023-09-24 08:34:31');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706149491759235074,'order','2309250000000000044','DISPATCHING','2023-09-25 03:32:43','2023-09-25 03:32:46');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706184714437795841,'order','2309250000000000051','DISPATCHING','2023-09-25 05:52:41','2023-09-25 05:52:41');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706190087186030594,'order','2309250000000000056','DISPATCHING','2023-09-25 06:14:02','2023-09-25 06:14:02');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706190243935559681,'order','2309250000000000057','CLOSED','2023-09-25 06:14:39','2023-09-26 05:38:06');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706195187010920449,'order','2309250000000000060','CLOSED','2023-09-25 06:34:18','2023-09-26 05:37:53');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706554508697784321,'order','2309260000000000061','NO_EVALUATION','2023-09-26 06:22:08','2023-09-26 06:59:26');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706572987001786370,'order','2309260000000000062','CLOSED','2023-09-26 07:35:33','2023-09-26 07:35:59');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706575339490430978,'order','2309260000000000063','CLOSED','2023-09-26 07:44:54','2023-09-26 07:46:12');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1706575748061777922,'order','2309260000000000064','NO_EVALUATION','2023-09-26 07:46:31','2023-09-26 07:49:33');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1714219032242339841,'order','2310170000000000001','NO_SERVE','2023-10-17 09:58:12','2023-10-17 13:01:10');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1714256780227559426,'order','2310170000000000002','NO_EVALUATION','2023-10-17 12:28:12','2023-10-17 12:49:16');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1714264289302593537,'order','2310170000000000003','NO_SERVE','2023-10-17 12:58:02','2023-10-17 12:58:10');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1718188647226114050,'order','2310280000000000004','CLOSED','2023-10-28 08:52:02','2023-10-28 09:04:57');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1718264289591660545,'order','2310280000000000005','CLOSED','2023-10-28 13:52:37','2023-10-28 13:53:25');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719546857350496258,'order','103','NO_PAY','2023-11-01 02:49:09','2023-11-01 02:49:09');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719556737713164289,'order','104','DISPATCHING','2023-11-01 03:28:24','2023-11-01 03:28:27');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719608226116538369,'order','2311010000000000012','NO_PAY','2023-11-01 06:53:00','2023-11-01 06:53:00');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719706845020692482,'order','2311010000000000013','NO_PAY','2023-11-01 13:24:53','2023-11-01 13:24:53');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719708214578499585,'order','2311010000000000014','NO_PAY','2023-11-01 13:30:19','2023-11-01 13:30:19');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719712026588356610,'order','2311010000000000015','DISPATCHING','2023-11-01 13:45:28','2023-11-01 13:55:12');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719716652444295170,'order','2311010000000000016','NO_PAY','2023-11-01 14:03:51','2023-11-01 14:03:51');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719717256277270530,'order','2311010000000000017','NO_PAY','2023-11-01 14:06:15','2023-11-01 14:06:15');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719717761518936065,'order','2311010000000000018','NO_PAY','2023-11-01 14:08:16','2023-11-01 14:08:16');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719718371072942082,'order','2311010000000000019','NO_PAY','2023-11-01 14:10:41','2023-11-01 14:10:41');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719887677958148098,'order','2311020000000000018','NO_PAY','2023-11-02 09:23:22','2023-11-02 09:23:22');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1719898030544801794,'order','2311020000000000019','DISPATCHING','2023-11-02 10:04:30','2023-11-02 10:04:57');
INSERT INTO `state_persister` (`id`, `state_machine_name`, `biz_id`, `state`, `create_time`, `update_time`) VALUES (1720002969933725698,'order','2311020000000000020','DISPATCHING','2023-11-02 17:01:33','2023-11-02 17:03:40');
/*!40000 ALTER TABLE `state_persister` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-12-03 10:59:36

View File

@@ -0,0 +1,383 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: jzo2o-orders-history
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `jzo2o-orders-history`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `jzo2o-orders-history` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `jzo2o-orders-history`;
--
-- Table structure for table `history_orders`
--
DROP TABLE IF EXISTS `history_orders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `history_orders` (
`id` bigint NOT NULL COMMENT '订单id',
`user_id` bigint NOT NULL COMMENT '订单所属人',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务类型id',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人',
`serve_provider_type` int DEFAULT NULL COMMENT '服务人类型2服务人员3机构',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`serve_id` bigint NOT NULL COMMENT '服务id',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`serve_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型名称',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项图片',
`unit` int DEFAULT NULL COMMENT '服务单位',
`orders_status` int NOT NULL COMMENT '订单状态500订单完成600已取消700已关闭',
`pay_status` int DEFAULT NULL COMMENT '支付状态1支付成功2已关闭',
`refund_status` int DEFAULT NULL COMMENT '退款状态',
`trade_finish_time` datetime DEFAULT NULL COMMENT '订单完成时间',
`trading_channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付渠道',
`third_order_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '三方支付渠道',
`dispatch_time` datetime DEFAULT NULL COMMENT '派单时间',
`price` decimal(10,2) NOT NULL COMMENT '单价',
`pur_num` int NOT NULL DEFAULT '1' COMMENT '购买数量',
`total_amount` decimal(10,2) NOT NULL COMMENT '订单总金额',
`real_pay_amount` decimal(10,2) NOT NULL COMMENT '实际支付金额',
`third_refund_order_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '三方退款流水',
`discount_amount` decimal(10,2) NOT NULL COMMENT '优惠金额',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务详细地址',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人手机号',
`contacts_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人姓名',
`canceler_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消人',
`serve_provider_staff_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人姓名',
`serve_provider_staff_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人手机号',
`institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构名称',
`institution_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构电话',
`place_order_time` datetime DEFAULT NULL COMMENT '下单时间',
`serve_start_time` datetime NOT NULL COMMENT '服务开始时间',
`serve_end_time` datetime DEFAULT NULL COMMENT '服务结束时间',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务结束时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务开始图片',
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务开始说明',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务完成图片',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务完成说明',
`payment_timeout` datetime DEFAULT NULL COMMENT '支付超时时间,该时间只对待支付有意义',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`pay_time` datetime DEFAULT NULL COMMENT '支付时间',
`cancel_time` datetime DEFAULT NULL COMMENT '取消/被退单时间',
`cancel_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消/被退单原因',
`year` int DEFAULT NULL COMMENT '完结年份格式yyyy',
`month` int DEFAULT NULL COMMENT '完结月份格式yyyyMM',
`day` int DEFAULT NULL COMMENT '完结日格式yyyyMMdd',
`hour` int DEFAULT NULL COMMENT '完结小时格式yyyyMMddHH',
`evaluation_time` datetime DEFAULT NULL COMMENT '评价时间',
`evaluation_score` double(10,2) DEFAULT NULL COMMENT '评分',
`display` int DEFAULT '1' COMMENT '用户端是否展示1展示0隐藏',
`sort_time` datetime NOT NULL COMMENT '排序时间字段',
PRIMARY KEY (`id`),
KEY `user_id_index` (`user_id`),
KEY `serve_provider_id_index` (`serve_provider_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `history_orders`
--
LOCK TABLES `history_orders` WRITE;
/*!40000 ALTER TABLE `history_orders` DISABLE KEYS */;
INSERT INTO `history_orders` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `canceler_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `evaluation_time`, `evaluation_score`, `display`, `sort_time`) VALUES (2310170000000000001,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-11-20 16:30:38','WECHAT_PAY',NULL,'2023-10-17 13:01:10',1.00,1,1.00,1.00,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼 ','13333333333','吕女士',NULL,'服务人员02','15066699132',NULL,NULL,'2023-10-17 09:58:11','2023-10-17 23:00:00',NULL,'2023-11-19 21:12:46','2023-11-20 16:29:46','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/b9498f65-7621-4d4d-9edf-0fa93cebffe6.png\\\"\"]','已按照客户要求完成服务','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/3ee3a2cb-0bb9-40ec-bbb3-d94f0b5172db.jpg\\\"\"]','',NULL,116.34395,40.06115,'2023-10-17 17:57:24',NULL,NULL,2023,202311,20231120,2023112016,NULL,NULL,1,'2023-11-19 16:29:48');
INSERT INTO `history_orders` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `canceler_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `evaluation_time`, `evaluation_score`, `display`, `sort_time`) VALUES (2310170000000000003,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-11-20 16:49:01','WECHAT_PAY',NULL,'2023-10-17 12:58:10',1.00,1,1.00,1.00,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼 ','13333333333','吕女士',NULL,'服务人员02','15066699132',NULL,NULL,'2023-10-17 12:58:02','2023-10-17 22:30:00',NULL,'2023-11-20 16:48:03','2023-11-20 16:48:10','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/0ffaa79b-1063-495f-9252-34093b5f2d42.png\\\"\"]','','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/03f8be26-3da3-49d2-aa0e-fcdd461f4fe0.png\\\"\"]','',NULL,116.34395,40.06115,'2023-10-17 20:57:11',NULL,NULL,2023,202311,20231120,2023112016,NULL,NULL,1,'2023-11-19 16:48:10');
/*!40000 ALTER TABLE `history_orders` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `history_orders_serve`
--
DROP TABLE IF EXISTS `history_orders_serve`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `history_orders_serve` (
`id` bigint NOT NULL COMMENT '服务单id',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人员或服务机构id',
`serve_provider_type` int DEFAULT NULL COMMENT '服务者类型2服务端服务3机构端服务',
`institution_staff_id` bigint DEFAULT NULL COMMENT '机构服务人员id',
`institution_staff_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构服务人员名称',
`institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构名称',
`orders_origin_type` int DEFAULT NULL COMMENT '订单来源类型1抢单2派单',
`contacts_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '客户姓名',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '客户电话',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务地址',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务分类id',
`serve_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务分裂名称',
`serve_start_time` datetime DEFAULT NULL COMMENT '预约时间',
`serve_item_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务图片',
`serve_status` int DEFAULT NULL COMMENT '服务单状态3服务完成4订单关闭',
`serve_provider_staff_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人姓名',
`serve_provider_staff_phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人手机号',
`canceler_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消人姓名',
`cancel_time` datetime DEFAULT NULL COMMENT '退款时间',
`cancel_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '退款原因',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务完结时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务前照片',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务后照片',
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务前说明',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务后说明',
`refund_time` datetime DEFAULT NULL COMMENT '退款时间',
`refund_reason` varchar(200) DEFAULT NULL COMMENT '退款原因',
`orders_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额',
`pur_num` int DEFAULT NULL COMMENT '购买数量',
`serve_num` int DEFAULT NULL COMMENT '服务数量',
`unit` int DEFAULT NULL COMMENT '单位',
`display` int DEFAULT '1' COMMENT '服务端/机构端是否展示1展示0隐藏',
`is_deleted` int DEFAULT '0' COMMENT '是否是逻辑删除',
`update_by` bigint DEFAULT NULL COMMENT '更新人',
`sort_time` datetime DEFAULT NULL COMMENT '排序时间,服务单状态为服务完成,该字段是完成时间;服务单状态为订单关闭,该时间为退款时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `list_query_index` (`serve_provider_id`,`sort_time`,`serve_status`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务单';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `history_orders_serve`
--
LOCK TABLES `history_orders_serve` WRITE;
/*!40000 ALTER TABLE `history_orders_serve` DISABLE KEYS */;
INSERT INTO `history_orders_serve` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `refund_time`, `refund_reason`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2310170000000000001,1696338624494202882,2,NULL,NULL,NULL,2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼 ','010',1678649931106705409,'保洁清','2023-10-17 23:00:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-11-19 21:12:46','2023-11-20 16:29:46','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/b9498f65-7621-4d4d-9edf-0fa93cebffe6.png\"]','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/3ee3a2cb-0bb9-40ec-bbb3-d94f0b5172db.jpg\"]','已按照客户要求完成服务','',NULL,NULL,1.00,NULL,1,1,1,0,1696338624494202882,'2023-11-19 16:29:49',NULL);
INSERT INTO `history_orders_serve` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `refund_time`, `refund_reason`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2310170000000000003,1696338624494202882,2,NULL,NULL,NULL,2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼 ','010',1678649931106705409,'保洁清','2023-10-17 22:30:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-11-20 16:48:03','2023-11-20 16:48:10','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/0ffaa79b-1063-495f-9252-34093b5f2d42.png\"]','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/03f8be26-3da3-49d2-aa0e-fcdd461f4fe0.png\"]','','',NULL,NULL,1.00,NULL,1,1,1,0,1696338624494202882,'2023-11-19 16:29:49',NULL);
/*!40000 ALTER TABLE `history_orders_serve` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `history_orders_serve_sync`
--
DROP TABLE IF EXISTS `history_orders_serve_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `history_orders_serve_sync` (
`id` bigint NOT NULL COMMENT '服务单id',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人员或服务机构id',
`serve_provider_type` int DEFAULT NULL COMMENT '服务者类型2服务端服务3机构端服务',
`institution_staff_id` bigint DEFAULT NULL COMMENT '机构服务人员id',
`institution_staff_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构服务人员名称',
`institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构名称',
`orders_origin_type` int DEFAULT NULL COMMENT '订单来源类型1抢单2派单',
`contacts_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '客户姓名',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '客户电话',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务地址',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务分类id',
`serve_type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务分裂名称',
`serve_start_time` datetime DEFAULT NULL COMMENT '预约时间',
`serve_item_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务图片',
`serve_status` int DEFAULT NULL COMMENT '服务单状态3服务完成4订单关闭',
`serve_provider_staff_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人姓名',
`serve_provider_staff_phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人手机号',
`canceler_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消人姓名',
`cancel_time` datetime DEFAULT NULL COMMENT '退款时间',
`cancel_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '退款原因',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务完结时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务前照片',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务后照片',
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务前说明',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务后说明',
`orders_amount` decimal(10,2) DEFAULT NULL COMMENT '订单金额',
`pur_num` int DEFAULT NULL COMMENT '购买数量',
`serve_num` int DEFAULT NULL COMMENT '服务数量',
`unit` int DEFAULT NULL COMMENT '单位',
`display` int DEFAULT '1' COMMENT '服务端/机构端是否展示1展示0隐藏',
`is_deleted` int DEFAULT '0' COMMENT '是否是逻辑删除',
`update_by` bigint DEFAULT NULL COMMENT '更新人',
`sort_time` datetime DEFAULT NULL COMMENT '排序时间,服务单状态为服务完成,该字段是完成时间;服务单状态为订单关闭,该时间为退款时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `list_query_index` (`serve_provider_id`,`sort_time`,`serve_status`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务单';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `history_orders_serve_sync`
--
LOCK TABLES `history_orders_serve_sync` WRITE;
/*!40000 ALTER TABLE `history_orders_serve_sync` DISABLE KEYS */;
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2310170000000000001,1696338624494202882,2,NULL,NULL,NULL,2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-10-17 23:00:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-11-19 21:12:46','2023-11-20 16:29:46','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/b9498f65-7621-4d4d-9edf-0fa93cebffe6.png\"]','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/3ee3a2cb-0bb9-40ec-bbb3-d94f0b5172db.jpg\"]','已按照客户要求完成服务','',1.00,NULL,1,1,1,0,1696338624494202882,'2023-12-05 16:29:49','2023-11-20 16:30:38');
INSERT INTO `history_orders_serve_sync` (`id`, `serve_provider_id`, `serve_provider_type`, `institution_staff_id`, `institution_staff_name`, `institution_name`, `orders_origin_type`, `contacts_name`, `contacts_phone`, `serve_address`, `city_code`, `serve_type_id`, `serve_type_name`, `serve_start_time`, `serve_item_name`, `serve_item_id`, `serve_item_img`, `serve_status`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `canceler_name`, `cancel_time`, `cancel_reason`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_after_imgs`, `serve_before_illustrate`, `serve_after_illustrate`, `orders_amount`, `pur_num`, `serve_num`, `unit`, `display`, `is_deleted`, `update_by`, `sort_time`, `update_time`) VALUES (2310170000000000003,1696338624494202882,2,NULL,NULL,NULL,2,'吕女士','13333333333','北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','010',1678649931106705409,'保洁清','2023-10-17 22:30:00','日常保洁',1685894105234755585,'https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',3,'服务人员02','15066699132',NULL,NULL,NULL,'2023-11-20 16:48:03','2023-11-20 16:48:10','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/0ffaa79b-1063-495f-9252-34093b5f2d42.png\"]','[\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/03f8be26-3da3-49d2-aa0e-fcdd461f4fe0.png\"]','','',1.00,NULL,1,1,1,0,1696338624494202882,'2023-12-05 16:48:10','2023-11-20 16:49:01');
/*!40000 ALTER TABLE `history_orders_serve_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `history_orders_sync`
--
DROP TABLE IF EXISTS `history_orders_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `history_orders_sync` (
`id` bigint NOT NULL COMMENT '订单id',
`user_id` bigint NOT NULL COMMENT '订单所属人',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务类型id',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人',
`serve_provider_type` int DEFAULT NULL COMMENT '服务人类型2服务人员3机构',
`serve_item_id` bigint NOT NULL COMMENT '服务项id',
`serve_id` bigint NOT NULL COMMENT '服务id',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市编码',
`serve_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务类型名称',
`serve_item_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项名称',
`serve_item_img` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务项图片',
`unit` int DEFAULT NULL COMMENT '服务单位',
`orders_status` int NOT NULL COMMENT '订单状态500订单完成600已取消700已关闭',
`pay_status` int DEFAULT NULL COMMENT '支付状态1支付成功2已关闭',
`refund_status` int DEFAULT NULL,
`trade_finish_time` datetime DEFAULT NULL COMMENT '订单完成时间',
`trading_channel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付渠道ALI_PAY支付宝WECHAT_PAY微信',
`third_order_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付流水',
`dispatch_time` datetime DEFAULT NULL COMMENT '派单时间',
`price` decimal(10,2) NOT NULL COMMENT '单价',
`pur_num` int NOT NULL DEFAULT '1' COMMENT '购买数量',
`total_amount` decimal(10,2) NOT NULL COMMENT '订单总金额',
`real_pay_amount` decimal(10,2) NOT NULL COMMENT '实际支付金额',
`third_refund_order_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '退款流水',
`canceler_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消人姓名',
`discount_amount` decimal(10,2) NOT NULL COMMENT '优惠金额',
`serve_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '服务详细地址',
`contacts_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人手机号',
`contacts_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '联系人姓名',
`serve_provider_staff_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人姓名',
`serve_provider_staff_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务人手机号',
`institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构名称',
`institution_phone` varchar(20) DEFAULT NULL COMMENT '机构电话',
`place_order_time` datetime DEFAULT NULL COMMENT '下单时间',
`serve_start_time` datetime NOT NULL COMMENT '服务开始时间',
`serve_end_time` datetime DEFAULT NULL COMMENT '服务结束时间',
`real_serve_start_time` datetime DEFAULT NULL COMMENT '实际服务开始时间',
`real_serve_end_time` datetime DEFAULT NULL COMMENT '实际服务结束时间',
`serve_before_imgs` json DEFAULT NULL COMMENT '服务开始图片',
`serve_before_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务开始说明',
`serve_after_imgs` json DEFAULT NULL COMMENT '服务完成图片',
`serve_after_illustrate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '服务完成说明',
`payment_timeout` datetime DEFAULT NULL COMMENT '支付超时时间,该时间只对待支付有意义',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`pay_time` datetime DEFAULT NULL COMMENT '支付时间',
`cancel_time` datetime DEFAULT NULL COMMENT '取消/被退单时间',
`cancel_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '取消/被退单原因',
`year` int DEFAULT NULL COMMENT '下单年份,格式yyyy',
`month` int DEFAULT NULL COMMENT '下单月份,格式yyyyMM',
`day` int DEFAULT NULL COMMENT '下单所在日,格式yyyyMMdd',
`hour` int DEFAULT NULL COMMENT '下单所在小时格式yyyyMMddHH',
`sort_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '排序时间字段',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='历史订单完成15天后同步到历史订单同步表中通过canal同步到历史订单库中1天后删除删除条件当天数据和历史订单库中的订单数据数量一致';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `history_orders_sync`
--
LOCK TABLES `history_orders_sync` WRITE;
/*!40000 ALTER TABLE `history_orders_sync` DISABLE KEYS */;
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`) VALUES (2310170000000000001,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-11-20 16:30:38','WECHAT_PAY',NULL,'2023-10-17 13:01:10',1.00,1,1.00,1.00,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-10-17 09:58:11','2023-10-17 23:00:00',NULL,'2023-11-19 21:12:46','2023-11-20 16:29:46','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/b9498f65-7621-4d4d-9edf-0fa93cebffe6.png\\\"\"]','已按照客户要求完成服务','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/3ee3a2cb-0bb9-40ec-bbb3-d94f0b5172db.jpg\\\"\"]','',NULL,116.34395,40.06115,'2023-10-17 17:57:24',NULL,NULL,2023,202311,20231120,2023112016,'2023-12-05 16:29:48','2023-11-20 20:49:35');
INSERT INTO `history_orders_sync` (`id`, `user_id`, `serve_type_id`, `serve_provider_id`, `serve_provider_type`, `serve_item_id`, `serve_id`, `city_code`, `serve_type_name`, `serve_item_name`, `serve_item_img`, `unit`, `orders_status`, `pay_status`, `refund_status`, `trade_finish_time`, `trading_channel`, `third_order_id`, `dispatch_time`, `price`, `pur_num`, `total_amount`, `real_pay_amount`, `third_refund_order_id`, `canceler_name`, `discount_amount`, `serve_address`, `contacts_phone`, `contacts_name`, `serve_provider_staff_name`, `serve_provider_staff_phone`, `institution_name`, `institution_phone`, `place_order_time`, `serve_start_time`, `serve_end_time`, `real_serve_start_time`, `real_serve_end_time`, `serve_before_imgs`, `serve_before_illustrate`, `serve_after_imgs`, `serve_after_illustrate`, `payment_timeout`, `lon`, `lat`, `pay_time`, `cancel_time`, `cancel_reason`, `year`, `month`, `day`, `hour`, `sort_time`, `update_time`) VALUES (2310170000000000003,1701074772546342912,1678649931106705409,1696338624494202882,2,1685894105234755585,1693815624114970626,'010','保洁清','日常保洁','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/aa6489e5-cd92-42f0-837a-952c99653b8b.png',1,500,4,NULL,'2023-11-20 16:49:01','WECHAT_PAY',NULL,'2023-10-17 12:58:10',1.00,1,1.00,1.00,NULL,NULL,0.00,'北京市北京市昌平区北京市昌平区回龙观街道金燕龙科研楼','13333333333','吕女士','服务人员02','15066699132',NULL,NULL,'2023-10-17 12:58:02','2023-10-17 22:30:00',NULL,'2023-11-20 16:48:03','2023-11-20 16:48:10','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/0ffaa79b-1063-495f-9252-34093b5f2d42.png\\\"\"]','','[\"\\\"https://jzo2o-oss.oss-cn-hangzhou.aliyuncs.com/03f8be26-3da3-49d2-aa0e-fcdd461f4fe0.png\\\"\"]','',NULL,116.34395,40.06115,'2023-10-17 20:57:11',NULL,NULL,2023,202311,20231120,2023112016,'2023-12-05 16:48:10','2023-11-20 20:49:35');
/*!40000 ALTER TABLE `history_orders_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `stat_day`
--
DROP TABLE IF EXISTS `stat_day`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `stat_day` (
`id` bigint NOT NULL,
`stat_time` int NOT NULL COMMENT '统计日期格式yyyyMMdd',
`effective_order_num` int NOT NULL DEFAULT '0' COMMENT '有效订单数',
`cancel_order_num` int NOT NULL DEFAULT '0' COMMENT '取消订单数',
`close_order_num` int NOT NULL DEFAULT '0' COMMENT '关闭订单数',
`effective_order_total_amount` decimal(10,2) NOT NULL COMMENT '有效总金额',
`real_pay_average_price` decimal(10,2) NOT NULL COMMENT '实付订单均价',
`total_order_num` int NOT NULL DEFAULT '0' COMMENT '订单总数',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='日统计表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `stat_day`
--
LOCK TABLES `stat_day` WRITE;
/*!40000 ALTER TABLE `stat_day` DISABLE KEYS */;
INSERT INTO `stat_day` (`id`, `stat_time`, `effective_order_num`, `cancel_order_num`, `close_order_num`, `effective_order_total_amount`, `real_pay_average_price`, `total_order_num`, `create_time`, `update_time`) VALUES (20231120,20231120,2,0,0,2.00,1.00,2,'2023-11-21 19:35:00','2023-11-21 19:35:00');
/*!40000 ALTER TABLE `stat_day` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `stat_hour`
--
DROP TABLE IF EXISTS `stat_hour`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `stat_hour` (
`id` bigint NOT NULL,
`stat_time` int NOT NULL COMMENT '统计日期格式yyyyMMdd',
`effective_order_num` int NOT NULL DEFAULT '0' COMMENT '有效订单数',
`cancel_order_num` int NOT NULL DEFAULT '0' COMMENT '取消订单数',
`close_order_num` int NOT NULL DEFAULT '0' COMMENT '关闭订单数',
`effective_order_total_amount` decimal(10,2) NOT NULL COMMENT '有效总金额',
`real_pay_average_price` decimal(10,2) NOT NULL COMMENT '实付订单均价',
`total_order_num` int NOT NULL DEFAULT '0' COMMENT '订单总数',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='小时统计表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `stat_hour`
--
LOCK TABLES `stat_hour` WRITE;
/*!40000 ALTER TABLE `stat_hour` DISABLE KEYS */;
INSERT INTO `stat_hour` (`id`, `stat_time`, `effective_order_num`, `cancel_order_num`, `close_order_num`, `effective_order_total_amount`, `real_pay_average_price`, `total_order_num`, `create_time`, `update_time`) VALUES (2023112016,2023112016,2,0,0,2.00,1.00,2,'2023-11-21 19:35:00','2023-11-21 19:35:00');
/*!40000 ALTER TABLE `stat_hour` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-12-24 15:18:55

File diff suppressed because it is too large Load Diff

233
sql脚本/jzo2o-trade.sql Normal file

File diff suppressed because one or more lines are too long

493
sql脚本/nacos-1.4.1.sql Normal file
View File

@@ -0,0 +1,493 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: nacos-1.4.1
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `nacos-1.4.1`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `nacos-1.4.1` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `nacos-1.4.1`;
--
-- Table structure for table `config_info`
--
DROP TABLE IF EXISTS `config_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `config_info` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'md5',
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'source user',
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'source ip',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT '租户字段',
`c_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`c_use` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`effect` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`c_schema` text CHARACTER SET utf8 COLLATE utf8_bin,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=224 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config_info`
--
LOCK TABLES `config_info` WRITE;
/*!40000 ALTER TABLE `config_info` DISABLE KEYS */;
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (1,'mp-config.properties','xc-group','#驼峰下划线转换\r\nmybatis-plus.global-config.db-column-underline = true\r\n#实体扫描多个package用逗号或者分号分隔\r\nmybatis-plus.typeAliasesPackage = com.xuecheng.*.entity\r\n#字段策略 0:\"忽略判断\",1:\"非 NULL 判断\"),2:\"非空判断\"\r\nmybatis-plus.global-config.field-strategy=2\r\n#全局地开启或关闭配置文件中的所有映射器已经配置的任何缓存,开发时不需要开启。\r\nmybatis-plus.configuration.cache-enabled = false\r\n#映射文件mapper文件存储位置\r\nmybatis-plus.mapper-locations = classpath:com.xuecheng.*.mapper/*.xml\r\n#主键类型 0:\"数据库ID自增\", 1:\"用户输入ID\",2:\"全局唯一ID (数字类型唯一ID)\", 3:\"全局唯一ID UUID\";\r\nmybatis-plus.global-config.id-type = 0\r\n#刷新mapper 调试神器\r\nmybatis-plus.global-config.refresh-mapper = true','c4830681643505108185f52cbff96453','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (2,'content-service-dev.properties','xc-group','#spring http 配置信息\nserver.servlet.context-path = /content\nserver.port=63040\n\n\n#spring druid 配置信息\nspring.datasource.url = jdbc:mysql://192.168.101.65:3306/xc2.0_content?serverTimezone=UTC&userUnicode=true&useSSL=false&characterEncoding=utf8\n\n\n#文件系统配置\n#文件系统微服务的请求地址\nfile.service.url=http://127.0.0.1:56082/farming/generatetoken?origin=qiniu\n#文件存储空间名称\nfile.service.bucket=xczx-lzy\n\n#前端上传文件需要的配置信息\n#文件存储区域的地址\nfile.service.upload.region = http://upload.qiniu.com\n#文件访问的cdn加速域名\ncdn.domain = r3zc5rung.hd-bkt.clouddn.com\n\nfile.token.type = 1\nfile.token.deadline = 3600\n\n\n#异步回调定义ConfirmCallbackMQ返回结果时会回调这个ConfirmCallback\nspring.rabbitmq.publisher-confirm-type = correlated\n#开启publish-return功能同样是基于callback机制不过是定义ReturnCallback\nspring.rabbitmq.publisher-returns = true\n#定义消息路由失败时的策略。true则调用ReturnCallbackfalse则直接丢弃消息\nspring.rabbitmq.template.mandatory = true\n\n\n# 课程发布 交互级名称\ncourse.publish.exchange = course_pub.direct\n# 课程发布 页面生成队列名称\ncourse.publish.queue = course_page.queue\ncourse.publish.routingKey= publish.course','a2962f9623381bdee92050275a3e790b','2022-08-31 13:31:52','2022-09-01 02:50:07',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (3,'spring-druid-config.properties','xc-group','#spring druid 配置信息\n#spring.datasource.driver-class-name = com.mysql.jdbc.Driver\n#spring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_content?userUnicode=true&useSSL=false&characterEncoding=utf8\nspring.datasource.username = root\nspring.datasource.password = mysql\n#初始化连接池的的连接数据量\nspring.datasource.druid.initial-size = 5\n#连接池最小连接数 \nspring.datasource.druid.min-idle = 5\n#获取连接等待超时时间 \nspring.datasource.druid.max-wait = 60000\n# 要启用PreparedStatementCache,必须配置大于0当大于0时poolPreparedStatements自动触发修改为true。\nspring.datasource.druid.max-pool-prepared-statement-per-connection-size = 20\n#连接池中最大激活连接数\nspring.datasource.druid.max-active = 20','420867ac9dff1d6f7a76bb25769ab7bf','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (4,'spring-http-config.properties','xc-group','#srpingboot http 配置信息\nspring.http.encoding.enabled = true\nspring.http.encoding.charset = UTF-8\nspring.http.encoding.force = true\nserver.use-forward-headers = true\n#server.servlet.context-path = /\n#server.port=8888\n#nacos上添加如下配置重启服务即可让我们的服务优先读取本地配置参数信息\nspring.cloud.config.allow-override=true\nspring.cloud.config.override-none=true\nspring.cloud.config.override-system-properties=false','8a44e28b630fd3aa6384d66f9c351725','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (5,'system-service-dev.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /system\nserver.port=63110\n\n#spring druid 配置信息\nspring.datasource.url = jdbc:mysql://192.168.101.65:3306/xc2.0_system?serverTimezone=UTC&userUnicode=true&useSSL=false&characterEncoding=utf8','a822e380324c0f08cb33d886a8643e5d','2022-08-31 13:31:52','2022-09-01 02:55:16',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (6,'media-service-dev.properties','xc-group','#springboot启动配置修改\nserver.servlet.context-path = /media\nserver.port=63050\n\n# 修改druid公共配置信息里的连接地址\nspring.datasource.url=jdbc:mysql://192.168.101.65:3306/xc2.0_media?serverTimezone=UTC&userUnicode=true&useSSL=false&characterEncoding=utf8\n\naliyun.region = cn-shanghai\naliyun.accessKeyId = LTAI5tPEYTyFEK1qsyyigFM7\naliyun.accessKeySecret = DGJggsZidqb6cyIhUSvZRaXQxEmHMN','9b1e3ce87f944601a2f1e086830796eb','2022-08-31 13:31:52','2022-09-01 02:56:15',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (7,'feign-config.properties','xc-group','# 开启 feign 的远程调用使用熔断\nfeign.sentinel.enabled = true\n# 配置请求GZIP压缩\nfeign.compression.request.enabled = false\n# 配置压缩数据大小的下限\nfeign.compression.request.min-request-size = 2048\n# 配置响应GZIP压缩\nfeign.compression.response.enabled = false\n# 配置压缩支持的MIME TYPE\nfeign.compression.request.mime-types[0] = text/xml\nfeign.compression.request.mime-types[1] = application/xml\nfeign.compression.request.mime-types[2] = application/json','2f3be5ae5f601d5b37e586607956770e','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (8,'ribbon-config.properties','xc-group','#对当前实例的重试次数 default 0\r\nribbon.MaxAutoRetries = 1\r\n#设置连接超时时间 default 2000\r\nribbon.ConnectTimeout = 3000\r\n#对所有操作请求都进行重试 default false\r\nribbon.OkToRetryOnAllOperations = false\r\n#设置读取超时时间 default 5000\r\nribbon.ReadTimeout = 20000\r\n#切换实例的重试次数 default 1\r\nribbon.MaxAutoRetriesNextServer = 1','95976e0fbb744e2c148d1b9a214025b3','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (9,'freemarker-config.properties','xc-group','#开启 freemarker 功能\r\nspring.freemarker.enabled = true\r\n#关闭模板缓存,方便测试\r\nspring.freemarker.cache = false\r\nspring.freemarker.settings.template_update_delay = 0\r\n#页面模板后缀名\r\nspring.freemarker.suffix = .ftl\r\nspring.freemarker.charset = UTF-8\r\n#页面模板位置(默认为 classpath:/templates/)\r\nspring.freemarker.template-loader-path = classpath:/templates/\r\n#关闭项目中的静态资源映射(static、resources文件夹下的资源)\r\nspring.resources.add-mappings = false','b922b2f76a55b5f1bb66bd0e86fd67da','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (10,'rabbitmq-config.properties','xc-group','#rabbitmq 配置信息\nspring.rabbitmq.host = 192.168.101.65\nspring.rabbitmq.port = 5672\nspring.rabbitmq.username = guest\nspring.rabbitmq.password = guest\nspring.rabbitmq.password.virtual-host = /\n\n#correlated 异步回调定义ConfirmCallbackMQ返回结果时会回调这个ConfirmCallback\nspring.rabbitmq.publisher-confirm-type = correlated\n#开启publish-return功能同样是基于callback机制需要定义ReturnCallback\nspring.rabbitmq.publisher-returns = true\n#定义消息路由失败时的策略。true则调用ReturnCallbackfalse则直接丢弃消息\nspring.rabbitmq.template.mandatory = true\n#出现异常时返回nack消息回滚到mq没有异常返回ack\nspring.rabbitmq.listener.simple.acknowledge-mode = auto\n#开启消费者失败重试\nspring.rabbitmq.listener.simple.retry.enabled = true\n#初识的失败等待时长为1秒\nspring.rabbitmq.listener.simple.retry.initial-interval = 1000ms\n#失败的等待时长倍数,下次等待时长 = multiplier * last-interval\nspring.rabbitmq.listener.simple.retry.multiplier = 1\n#最大重试次数\nspring.rabbitmq.listener.simple.retry.max-attempts = 3\n# true无状态false有状态。如果业务中包含事务这里改为false\nspring.rabbitmq.listener.simple.retry.stateless=true\n\n\n#消息队列配置\n#消息同步交换机\nxc.mq.msgsync.exchange=xc.msgsync.direct\n#课程发布消息队列\nxc.mq.msgsync.queue.coursepub=xc.course.publish.queue\n#课程发布消息队列routingkey\nxc.mq.msgsync.queue.coursepub.key=xc.course.publish.queue\n#课程发布结果消息队列\nxc.mq.msgsync.queue.coursepubresult=xc.course.publish.result.queue\n#课程发布结果消息队列routingkey\nxc.mq.msgsync.queue.coursepubresult.key=xc.course.publish.result.queue','f7df4f6cf31e7401353c013820bb555c','2022-08-31 13:31:52','2022-09-01 02:57:24',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (11,'coursepub-consumer-service-dev.properties','xc-group','#springboot server 配置\nserver.servlet.context-path = /pub_consumer\nserver.port=63333\n\n#druid 配置信息\nspring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_content?userUnicode=true&useSSL=false&characterEncoding=utf8\n\n#消费端应答模式\nspring.rabbitmq.listener.simple.acknowledge-mode = auto\n\n# 开启消费者失败重试\nspring.rabbitmq.listener.simple.retry.enabled = true\n# 初识的失败等待时长为1秒\nspring.rabbitmq.listener.simple.retry.initial-interval = 1000ms\n# 失败的等待时长倍数,下次等待时长 = multiplier * last-interval\nspring.rabbitmq.listener.simple.retry.multiplier = 1\n# 最大重试次数\nspring.rabbitmq.listener.simple.retry.max-attempts = 3\n# true无状态false有状态。如果业务中包含事务这里改为false\nspring.rabbitmq.listener.simple.retry.stateless = true\n\n# 课程发布 交换机名称\ncourse.publish.exchange = course_pub.direct\n# 课程发布 页面生成队列名称\ncourse.publish.queue = course_page.queue\ncourse.publish.routingkey= publish.course\n\n#课程发布 消费失败配置信息\ncourse.publish.error.exchange = error.course_pub.direct\ncourse.publish.error.queue = error.course_page.queue\ncourse.publish.error.routingkey = error.publish_course\n\n#生成静态化页面发布位置\ncourse.publish.position = pages/\n#七牛云的存储消息\nfile.qiniu.accessKey = C_406Zs8cIazVTGeQXLV_BVfg0hLbDgUs5J5K1ro\nfile.qiniu.secretKey = hfsJ1ypCKHOufHzk8mGuWfXACklkvSbwKyjG96RW\nfile.qiniu.bucket = xczx-lzy-static-pages','d0b03638ad59ca16bc2c9357ff406771','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (12,'search-service-dev.properties','xc-group','server.servlet.context-path = /search\nserver.port=63080\n\n# ES 配置信息\nxuecheng.elasticsearch.hostlist = 106.15.33.29:9200\nxuecheng.elasticsearch.course.index = xc2.0_course','00257720a4c531ad7c9edcf4e14da2cf','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (13,'learning-service-dev.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /learning\nserver.port=63070\n\nspring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_learning?userUnicode=true&useSSL=false&characterEncoding=utf8','1d91a8d5b2a4993061089242a2f5e52c','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (14,'teaching-service-dev.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /teaching\nserver.port=63060\n\nspring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_teaching?userUnicode=true&useSSL=false&characterEncoding=utf8','e033922e9ff1db4292280e3689cfe5d9','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (15,'uaa-gateway-server-dev.properties','xc-group','#srpingboot http 配置信息\r\nserver.servlet.context-path = /\r\nserver.port=63010','001a3d10fe3c491c0444f6dcdd6b35e8','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (16,'uaa-service-dev.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /uaa\nserver.port=63020\n\nspring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_uaa?userUnicode=true&useSSL=false&characterEncoding=utf8','bcaad64b545f0d673d52b52084270ff8','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (17,'user-service-dev.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /user\nserver.port=63130\n\n\nspring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_user?userUnicode=true&useSSL=false&characterEncoding=utf8','b3f8bbaca06c2a84c25da45217caa1c3','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (18,'order-service-dev.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /order\nserver.port=63090\n\nspring.datasource.url = jdbc:mysql://127.0.0.1:3306/xc2.0_order?userUnicode=true&useSSL=false&characterEncoding=utf8\n\n#商户微信公共号或开放平台唯一标识\nweixinpay.app-id = wx8397f8696b538317\n#商户号\nweixinpay.mch-id = 1473426802\n#商户密钥\nweixinpay.mch-key = T6m9iK73b0kn9g5v426MKfHQH7X8rKwb\n#微信回调商户的地址\nweixinpay.notify-url = http://www.xuecheng.com/api\n#商户的支付类型NATIVE 为扫码支付)\nweixinpay.trade-type = NATIVE','8c06a86939b031fb73b3d25212c06920','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (19,'seataServer.properties','xc-group','# 数据存储方式db代表数据库\nstore.mode=db\nstore.db.datasource=druid\nstore.db.dbType=mysql\nstore.db.driverClassName=com.mysql.jdbc.Driver\nstore.db.url=jdbc:mysql://127.0.0.1:3306/xc2.0_seata?useUnicode=true&rewriteBatchedStatements=true\nstore.db.user=root\nstore.db.password=itcast136\nstore.db.minConn=5\nstore.db.maxConn=30\nstore.db.globalTable=global_table\nstore.db.branchTable=branch_table\nstore.db.queryLimit=100\nstore.db.lockTable=lock_table\nstore.db.maxWait=5000\n# 事务、日志等配置\nserver.recovery.committingRetryPeriod=1000\nserver.recovery.asynCommittingRetryPeriod=1000\nserver.recovery.rollbackingRetryPeriod=1000\nserver.recovery.timeoutRetryPeriod=1000\nserver.maxCommitRetryTimeout=-1\nserver.maxRollbackRetryTimeout=-1\nserver.rollbackRetryTimeoutUnlockEnable=false\nserver.undo.logSaveDays=7\nserver.undo.logDeletePeriod=86400000\n\n# 客户端与服务端传输方式\ntransport.serialization=seata\ntransport.compressor=none\n# 关闭metrics功能提高性能\nmetrics.enabled=false\nmetrics.registryType=compact\nmetrics.exporterList=prometheus\nmetrics.exporterPrometheusPort=9898','58da867dd87f2b78b55aad31c968bcb5','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (20,'redis-config.properties','xc-group','# Redis数据库索引默认为0\nspring.redis.database=0\n# Redis服务器地址\nspring.redis.host=192.168.101.64\n# Redis服务器连接端口\nspring.redis.port=6379\n# Redis服务器连接密码默认为空\nspring.redis.password=itcast20220812\nspring.redis.lettuce.pool.max-active=20\nspring.redis.lettuce.pool.max-idle=10\nspring.redis.lettuce.pool.min-idle=0\nspring.redis.lettuce.pool.max-wait=-1\n# 连接池最大连接数(使用负值表示没有限制)\n#spring.redis.jedis.pool.max-active=20\n# 连接池最大阻塞等待时间(使用负值表示没有限制)\n#spring.redis.jedis.pool.max-wait=-1\n# 连接池中的最大空闲连接\n#spring.redis.jedis.pool.max-idle=10\n# 连接池中的最小空闲连接\n#spring.redis.jedis.pool.min-idle=0\n# 连接超时时间(毫秒)\nspring.redis.timeout=1000','179450e4e39ac7dcce283e3d80cb6d97','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (21,'comment-service.properties','xc-group','#srpingboot http 配置信息\nserver.servlet.context-path = /comment\nserver.port=63120\n\nspring.datasource.url = jdbc:mysql://192.168.101.65:3306/xc2.0_comments?userUnicode=true&useSSL=false&characterEncoding=utf8','1e6275014671ea2db7d2bff629055f56','2022-08-31 13:31:52','2022-09-01 03:14:32',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (22,'media-process-service-dev.properties','xc-group','#springboot启动配置修改\n\n# 修改druid公共配置信息里的连接地址\nspring.datasource.url=jdbc:mysql://192.168.101.65:3306/xc2.0_media?serverTimezone=UTC&userUnicode=true&useSSL=false&characterEncoding=utf8\n\n### xxl-job admin address list, such as \"http://address\" or \"http://address01,http://address02\"\nxxl.job.admin.addresses=http://192.168.101.65:8088/xxl-job-admin\n### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null\nxxl.job.executor.address=\n### xxl-job executor server-info\nxxl.job.executor.ip=\n### xxl-job, access token\nxxl.job.accessToken=default_token\n\n### xxl-job executor appname\nxxl.job.executor.appname=media-process-service\n\nxxl.job.executor.port=9999\n### xxl-job executor log-path\nxxl.job.executor.logpath=/data/applogs/xxl-job/jobhandler\n### xxl-job executor log-retention-days\nxxl.job.executor.logretentiondays=30','2ed5918632f5d7fa6ae5b2d85091a490','2022-08-31 13:31:52','2022-09-01 03:14:21',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (23,'message-process-service-dev.properties','xc-group','### xxl-job admin address list, such as \"http://address\" or \"http://address01,http://address02\"\nxxl.job.admin.addresses=http://192.168.101.65:8088/xxl-job-admin\n### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null\nxxl.job.executor.address=\n### xxl-job executor server-info\nxxl.job.executor.ip=\n### xxl-job, access token\nxxl.job.accessToken=default_token\n\n### xxl-job executor appname\nxxl.job.executor.appname=media-process-service\n\nxxl.job.executor.port=9999\n### xxl-job executor log-path\nxxl.job.executor.logpath=/data/applogs/xxl-job/jobhandler\n### xxl-job executor log-retention-days\nxxl.job.executor.logretentiondays=30','290992196277c8d37d72add540519ca0','2022-08-31 13:31:52','2022-09-01 03:13:45',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (24,'cache-service-dev.properties','xc-group','server.servlet.context-path = /\nserver.port=63035','203bcffeeca788f2e212eed4753ac81e','2022-08-31 13:31:52','2022-08-31 13:31:52',NULL,'192.168.101.1','','3adc3388-087e-4c90-a373-c5a6484752df',NULL,NULL,NULL,'properties',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (34,'system-service-prod.properties','xuecheng-plus-project','config.abc=456','7c5a17db32855013580f7998984e1f52','2022-09-11 04:25:57','2022-09-11 04:26:23',NULL,'192.168.101.1','','prod','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (35,'system-service-test.properties','xuecheng-plus-project','config.abc=789','48efd90540af953eed3dd41254495efc','2022-09-11 04:26:13','2022-09-11 04:26:35',NULL,'192.168.101.1','','test','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (81,'system-service-dev.yaml','xuecheng-plus-project','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.65:3306/xcplus_system?serverTimezone=UTC&userUnicode=true&useSSL=false&\n username: root\n password: mysql\n\n','7c166a3388dc2a93e3e6a9d2444175bc','2022-09-11 06:32:14','2022-09-11 09:13:39',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (82,'system-api-dev.yaml','xuecheng-plus-project','server:\n servlet:\n context-path: /system\n port: 63110\n\ntestconfig:\n a: 1aa','08bc232c5164645dae080a8e0574cf27','2022-09-11 06:33:06','2022-09-11 06:37:16',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (85,'content-service-dev.yaml','xuecheng-plus-project','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.65:3306/xcplus_content?serverTimezone=UTC&userUnicode=true&useSSL=false&\n username: root\n password: mysql\n\nxxl:\n job:\n admin: \n addresses: http://192.168.101.65:8088/xxl-job-admin\n executor:\n appname: coursepublish-job\n address: \n ip: \n port: 8999\n logpath: /data/applogs/xxl-job/jobhandler\n logretentiondays: 30\n accessToken: default_token\ntest_config:\n a: 2a\n b: 2b\n c: 2c','1ef8a88991220e3dfd68d53e33ceb3a8','2022-09-11 07:33:48','2022-09-22 03:09:26',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (86,'content-api-dev.yaml','xuecheng-plus-project','server:\n servlet:\n context-path: /content\n port: 63040\n\ntest_config:\n a: 3a\n b: 3b\n\n#配置本地优先\nspring:\n cloud:\n config:\n override-none: true\n','b253988f9f30d549192402cbab566a0e','2022-09-11 07:54:17','2022-09-11 09:01:41',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (88,'swagger-dev.yaml','xuecheng-plus-common','# swagger 文档配置\nswagger:\n title: \"学成在线内容管理系统\"\n description: \"内容系统管理系统对课程相关信息进行业务管理数据\"\n base-package: com.xuecheng\n enabled: true\n version: 1.0.0\n\ntest_config:\n a: 1a\n b: 1b\n c: 1c\n d: 1d','9c0d3be98c5a9ff620445bd718ea10ad','2022-09-11 08:14:16','2022-09-11 08:49:11',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (91,'logging-dev.yaml','xuecheng-plus-common','# 日志文件配置路径\nlogging:\n config: classpath:log4j2-dev.xml\n level:\n org.springframework.cloud.gateway: trace','cf8b1af28beb25b242f97519c8f2c560','2022-09-11 08:22:12','2022-09-12 13:21:52',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (105,'gateway-dev.yaml','xuecheng-plus-project','server:\n port: 63010 # 网关端口\nspring:\n cloud:\n gateway:\n# filter:\n# strip-prefix:\n# enabled: true\n routes: # 网关路由配置\n - id: content-api # 路由id自定义只要唯一即可\n # uri: http://127.0.0.1:8081 # 路由的目标地址 http就是固定地址\n uri: lb://content-api # 路由的目标地址 lb就是负载均衡后面跟服务名称\n predicates: # 路由断言,也就是判断请求是否符合路由规则的条件\n - Path=/content/** # 这个是按照路径匹配,只要以/content/开头就符合要求\n# filters:\n# - StripPrefix=1\n - id: system-api\n # uri: http://127.0.0.1:8081\n uri: lb://system-api\n predicates:\n - Path=/system/**\n# filters:\n# - StripPrefix=1\n - id: media-api\n # uri: http://127.0.0.1:8081\n uri: lb://media-api\n predicates:\n - Path=/media/**\n# filters:\n# - StripPrefix=1\n - id: search-service\n # uri: http://127.0.0.1:8081\n uri: lb://search\n predicates:\n - Path=/search/**\n# filters:\n# - StripPrefix=1\n - id: auth-service\n # uri: http://127.0.0.1:8081\n uri: lb://auth-service\n predicates:\n - Path=/auth/**\n# filters:\n# - StripPrefix=1\n - id: checkcode\n # uri: http://127.0.0.1:8081\n uri: lb://checkcode\n predicates:\n - Path=/checkcode/**\n# filters:\n# - StripPrefix=1\n - id: learning-api\n # uri: http://127.0.0.1:8081\n uri: lb://learning-api\n predicates:\n - Path=/learning/**\n# filters:\n# - StripPrefix=1\n - id: orders-api\n # uri: http://127.0.0.1:8081\n uri: lb://orders-api\n predicates:\n - Path=/orders/**\n# filters:\n# - StripPrefix=1','0aa8d36f8c1ac49485e133f43f60481b','2022-09-11 09:46:12','2022-10-03 05:20:22',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (107,'media-api-dev.yaml','xuecheng-plus-project','server:\n servlet:\n context-path: /media\n port: 63050\n\n','7e41197fdbb4b6bd1194ae292af19ff8','2022-09-11 10:05:29','2022-09-17 05:26:20',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (108,'media-service-dev.yaml','xuecheng-plus-project','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.65:3306/xcplus_media?serverTimezone=UTC&userUnicode=true&useSSL=false&\n username: root\n password: mysql\n cloud:\n config:\n override-none: true\n\nminio:\n endpoint: http://192.168.101.65:9000\n accessKey: minioadmin\n secretKey: minioadmin\n bucket:\n files: mediafiles\n videofiles: video\nxxl:\n job:\n admin: \n addresses: http://192.168.101.65:8088/xxl-job-admin\n executor:\n appname: media-process-service\n address: \n ip: \n port: 9999\n logpath: /data/applogs/xxl-job/jobhandler\n logretentiondays: 30\n accessToken: default_token\n\nvideoprocess:\n ffmpegpath: D:/soft/ffmpeg/ffmpeg.exe\n\n','7473a1104ab69e8b207abd428e2aa0cf','2022-09-11 10:05:29','2022-09-22 03:10:04',NULL,'192.168.101.1','','dev','xxl.job.admin.addresses','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (121,'freemarker-config-dev.yaml','xuecheng-plus-common','spring:\r\n freemarker:\r\n enabled: true\r\n cache: false #关闭模板缓存,方便测试\r\n settings:\r\n template_update_delay: 0\r\n suffix: .ftl #页面模板后缀名\r\n charset: UTF-8\r\n template-loader-path: classpath:/templates/ #页面模板位置(默认为 classpath:/templates/)\r\n resources:\r\n add-mappings: false #关闭项目中的静态资源映射(static、resources文件夹下的资源)\r\n ','8e97657f299e4a1a6158e8ebf4894e51','2022-09-15 11:18:37','2022-09-15 11:18:37',NULL,'192.168.101.1','','dev',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (132,'message-service-dev.yaml','xuecheng-plus-project','spring:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n primary: content #设置默认的数据源或者数据源组,默认值即为master\n strict: true #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候回抛出异常,不启动会使用默认数据源.\n druid:\n initial-size: 3\n max-active: 5\n min-idle: 5\n max-wait: 60000\n pool-prepared-statements: true\n max-pool-prepared-statement-per-connection-size: 20\n time-between-eviction-runs-millis: 60000\n min-evictable-idle-time-millis: 300000\n validation-query: SELECT 1 FROM DUAL\n test-while-idle: true\n test-on-borrow: false\n test-on-return: false\n stat-view-servlet:\n enabled: true\n url-pattern: /druid/*\n #login-username: admin\n #login-password: admin\n filter:\n stat:\n log-slow-sql: true\n slow-sql-millis: 1000\n merge-sql: true\n wall:\n config:\n multi-statement-allow: true\n datasource:\n content:\n url: jdbc:mysql://192.168.101.65:3306/xcplus_content?serverTimezone=UTC&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8\n username: root\n password: mysql\n driver-class-name: com.mysql.cj.jdbc.Driver\n media:\n url: jdbc:mysql://192.168.101.65:3306/xcplus_media?serverTimezone=UTC&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8\n username: root\n password: mysql\n driver-class-name: com.mysql.cj.jdbc.Driver\n\n','7c64bb323a1271815e8aadcd2feffbcd','2022-09-19 10:22:11','2022-09-19 10:25:17',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (134,'rabbitmq-dev.yaml','xuecheng-plus-common','spring:\n rabbitmq:\n host: 192.168.101.65\n port: 5672\n username: guest\n password: guest\n virtual-host: /\n publisher-confirm-type: correlated #correlated 异步回调定义ConfirmCallbackMQ返回结果时会回调这个ConfirmCallback\n publisher-returns: false #开启publish-return功能同样是基于callback机制需要定义ReturnCallback\n template:\n mandatory: false #定义消息路由失败时的策略。true则调用ReturnCallbackfalse则直接丢弃消息\n listener:\n simple:\n prefetch: 1 #每次只能获取一条消息,处理完成才能获取下一个消息\n acknowledge-mode: none #auto:出现异常时返回unack消息回滚到mq没有异常返回ack ,manual:手动控制,none:丢弃消息不回滚到mq\n retry:\n enabled: true #开启消费者失败重试\n initial-interval: 1000ms #初识的失败等待时长为1秒\n multiplier: 1 #失败的等待时长倍数,下次等待时长 = multiplier * last-interval\n max-attempts: 3 #最大重试次数\n stateless: true #true无状态false有状态。如果业务中包含事务这里改为false','9a2acc646d17166ee29989751faceaea','2022-09-20 02:42:44','2022-09-20 05:26:56',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (145,'feign-dev.yaml','xuecheng-plus-common','feign:\n client:\n config:\n default: # default全局的配置\n loggerLevel: BASIC # 日志级别BASIC就是基本的请求和响应信息\n hystrix:\n enabled: true\n circuitbreaker:\n enabled: true\n httpclient:\n enabled: true # 开启feign对HttpClient的支持\n max-connections: 200 # 最大的连接数\n max-connections-per-route: 50 # 每个路径的最大连接数\n','2287b4dcf1db4d243a11c74f7a2b6aff','2022-09-20 11:59:29','2022-10-03 01:07:11',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (152,'search-dev.yaml','xuecheng-plus-project','server:\n servlet:\n context-path: /search\n port: 63080\n\nelasticsearch:\n hostlist: 192.168.101.65:9200 #多个结点中间用逗号分隔\n course:\n index: course-publish\n source_fields: id,name,grade,mt,st,charge,pic,price,originalPrice,teachmode,validDays,createDate','9b90f07562994fc7295e4cb5fd43debf','2022-09-24 12:58:14','2022-09-25 02:38:46',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (158,'auth-service-dev.yaml','xuecheng-plus-project','server:\n servlet:\n context-path: /auth\n port: 63070\nspring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.65:3306/xcplus_users?serverTimezone=UTC&userUnicode=true&useSSL=false&\n username: root\n password: mysql','14b786a4aa780552864a2234cfeba924','2022-09-26 12:41:48','2022-09-28 14:56:18',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (163,'checkcode-dev.yaml','xuecheng-plus-project','server:\r\n servlet:\r\n context-path: /checkcode\r\n port: 63075','6033e8fd9f084a4e0019db05d6dc061e','2022-09-29 05:46:44','2022-09-29 05:46:44',NULL,'192.168.101.1','','dev',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (165,'learning-service-dev.yaml','xuecheng-plus-project','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.65:3306/xcplus_learning?serverTimezone=UTC&userUnicode=true&useSSL=false&\n username: root\n password: mysql','8413185b8b7606c892d694b6b9590e17','2022-10-02 02:22:18','2022-10-02 10:32:26',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (166,'orders-service-dev.yaml','xuecheng-plus-project','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.65:3306/xcplus_orders?serverTimezone=UTC&userUnicode=true&useSSL=false&\n username: root\n password: mysql\n\nxxl:\n job:\n admin: \n addresses: http://192.168.101.65:8088/xxl-job-admin\n executor:\n appname: payresultnotify-job\n address: \n ip: \n port: 8989\n logpath: /data/applogs/xxl-job/jobhandler\n logretentiondays: 30\n accessToken: default_token','8da9d76cf7f2d7042fe6fca8a0f128bd','2022-10-02 02:23:03','2022-10-04 22:17:13',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (167,'learning-api-dev.yaml','xuecheng-plus-project','server:\r\n servlet:\r\n context-path: /learning\r\n port: 63020\r\n\r\n\r\n#配置本地优先\r\nspring:\r\n cloud:\r\n config:\r\n override-none: true\r\n','8bbabf9a722ea65b49e13cdcfac95980','2022-10-02 02:23:57','2022-10-02 02:23:57',NULL,'192.168.101.1','','dev',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (168,'orders-api-dev.yaml','xuecheng-plus-project','server:\n servlet:\n context-path: /orders\n port: 63030\n\npay:\n alipay:\n APP_ID: 2016101900725017\n APP_PRIVATE_KEY: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCCek8F78Zgwdho816Xk3uS8AbR+q1c0NIsfERJjstf5bh+6x2aZUWp2iQdSR6IJVvTd0YUdjj4QyI2e0pBLEQUKO3onk+KSWXwaNSPSOlI7LqnxSUP7KzqBN8bmmZ2b5ywp6AhY9IpfRDHP1je79N0AHHht4q7nruZRLE8nUtxoiLSNRAmTH6Rn0SADT3k91zGJhumxxNDKObZ32kGOJP5GjmNayiQvxXEguPQq9Bw7myAO3eY64rImPO30Vz4VNC0zIZji2im8z5CMsTFGGwu9cJ+njB5g1kfriF1r5XXa1FwIPg64v21tMZLfT5esL8opuV5LLU6c3ZOLzxMfNEvAgMBAAECggEAcs8yp7OjaFJJnZfAPToN+25vYeblEw3AUlqKL/uRIvHdVPiHlOrV0K5dJtPHJN9SnJGQPcMFQBa6jRwRa6WKxf550T00GieZpmBn4Siz9XIwkB2eDhQg1s6wjvZegIqXYq4s7hSKwe0FjX1FMu3ur10Q2B+L2KnEwwm5tu9lijdutAUiRvIYbFFXq6Q1nwpxgbn3Os5r0PZKDO8pQomZnzl9AbAsgeA9f533o7bD2e8khFFyB02TLNTueFX+zTh0xuDyKhdD7Xje6kdGpWNnamUWRBCb9g3N3CcgGD60oZJJVo1zwte/eu9FJypR1H8qoEeJDfbA/Q/DMa5Jim/14QKBgQDTtQqUXPKCG/SR2z7BP5khpg+Fpqe1SYssxIHO2LEudovGUUkDi9u6baTie7cHtvOcD4nqcN2d/Kf8YyGxZ4Pq5EJFS0KplqDQKKxzGHV0xreCKg9iMV3sxJcnCUy5wJHyVZ0wyFopzH6jYmA9CZG0wynifS4zv/0ijCZEGNKSsQKBgQCdxqZHyxcNsg4sXCvuvkWsxAddJKeovDvU8c5ZqcIi6aUaTnL01uBHWZGT0PPPM0Y0W4SzJiEnYUl+MMZZj/VEzOfP2mPKVPH+bc7aT/42WAGpOtZSjl4mFi3KY4NPuO+9zrXlrXazZQhyaEUcFHn5ayygzG68ReSzK2CFIefZ3wKBgFww22GONEC6Yb9eZS6MPmfrw5ik4SVN2GBvVkO4EzgzgVykKxJzRgUiGApUa3jdj6onDhzcd3WD/7cliBeUB1szeTRpuKbXJEJhY+9e+E8Y9fKl1DsjWk5vsY7bOuEs3aFU7PXAWZsYJRGLFnOeBihcUJIDhyob8eSoeUVwNcqRAoGAP2lrw0cYyORbVfDlp1rJ3hoba5Aj4mllErzs1pSn9ig5t0z4XvdNxN925xYAJ7LP8JMnzmjwwkcTpqgr0CtPxIsmUB/SI6voZv3zOUMVRPoyELYZFa0qodwgI0vDpvMJSBwgd2M0Zf2hW3oU7Kg+LcSpdyczCnB87pXsgRWTfbkCgYEAkWy8MCXk0q91QCNNICSAlbvDIK/Mg+eVf1l1ilhrbELaBZlx9Tm9Jwn2Z2PRNAPDbd1FYl/5z8yAWAwf51HzlzXN4CWWCmqG/1ri/yD4geU6utepN9tVYRXLoxOPjIufPgCOSqEXde3C+lF7TleLrwjER720wUv23n/UQ/fas+Y=\n ALIPAY_PUBLIC_KEY: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoy8UIDCY2ZrrpDRbKIW/Zic3LPBXHGe5nRPLu9t1ud7PRDv5UDzwlhDRwTRnNAe8q3NZJP+ki3NzAY1Ky0QlIJZ6J9R4PRWHshR56U8kReLwuFfhQrYB5aKy8PMpRp41VT39+ywQNlD+UNbziSuRlmT0sjKPM7UCg3D9NucLKlWPfvH5mq+rWIs6pAOfcUDhSOCPS3lgHpMhpr7lYe2RFReKifFsBzEIOWBM8MGbwl0CYyASHKUtydfVDWE2k5g9N7Ypf3QgWYdNpc07vgYjSo3HPl5wLCE7bd7Haphai9gvaGFuEiscApDbQ4b2qWAIpLcwcBJnR+uQbMfYNFr2cQIDAQAB\n\n\n#配置本地优先\nspring:\n cloud:\n config:\n override-none: true\n','f048494515f317d930ce66e549e67c00','2022-10-02 02:24:29','2022-10-04 09:00:10',NULL,'192.168.101.1','','dev','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (175,'shared-mysql.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.68:3306/${mysql.db-name}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&stringtype=unspecified\n username: root\n password: mysql\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\n ','71ea171933c2919656addf475f0a6a0b','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (176,'jzo2o-gateway.yaml','DEFAULT_GROUP','jzo2o:\n token-key:\n \"1\": customer\n \"2\": customer\n \"3\": customer\n \"4\": operation\n operation-jwt-tool-key: operation\n customer-jwt-tool-key: customer\nevaluation:\n host: http://192.168.101.1:11201','f1e60f5f3d464ec89d6f319618a9942a','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (177,'jzo2o-customer.yaml','DEFAULT_GROUP','jzo2o:\n jwt-key: customer\n evaluation: \n appId: 650d6c001235c74ad5ac7bc5\n accessKeyId: 1705166852256174080\n accessKeySecret: MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALVuvx66BoXGg0aTlA+Kc1q8yystLZQ3GSP1UqqT0o+8eoxY7EKRTaIpVgmByipdfUQpQ5UcI806gf4rHbihr5cMNh9bCvM7PTUGzb6uuO904aMUuFXxKc7wX4aKcjAWbZu0qSXIovWk/LR//P3n5pnhDlII3VOB/gJxR0NfTihnAgMBAAECgYAc29UUlccMfPX2l5TOdVmXOOkhdgSGSyP5lJT7QvC+zN5lTTj59v4f6W6hASm0sWgycP8p9u7kPwaG9OQRBnl/n6M3cwAzYRRQo4xvZjo8RpBZ28NtcaBsxFmtv6RpTqaKGiE4lWvyCDl9GPnQ6taaaBVxoSHsoiMHzRnOYzQuwQJBAPcK7KWIiOU9gBjH4VmUu+YzmkghRD7FvKtIzXsPOQPhB5t4YgFLvzhiD3BbbAm9empLBH/hRHsft8Y7te/nbGECQQC8AtKd4H7iUGDWrtDygmbD+szd6a1JTXXRHYPLVSgYxBwsfkbP6i4+BXKM5SGbDCN3Y4JrML/XptVNdup6CYnHAkEAtFGJAhpyscD+KxhaaGSj8hdgWZ3OjnMOj4eIVHZ8C1TJlLV986wyWxlYY46XgVSIceVn11+5+JTiMxOKbR3igQJAO9NSHbav6WfWSLn79w8TkE0gH4UaBPdHBDG2HF+OkMLmjCnqcoJ8EHQ/TSIkHWgxaO4bM+yhPwfxW+L5HbgnRQJBAJpnkFq+pahuuoTHFI9Rm3z/1S7+5bXmQkfvVF4TZkt/wteIuUcer9DJa0Ct4IV+bnnYfsg+uHei6T5yiy2K3Rc=\n domain: http://192.168.101.1:11201\n #domain: http://192.168.101.1:11500/evaluationapi\n #domain: http://127.0.0.1:11500/evaluationapi\n serveItem:\n targetTypeId: 38\n serveProvider:\n targetTypeId: 39\namap:\n enable: true\n key: aeb0935541f2cd75ff0917323f9327c3\nali:\n oss:\n enable: true\n endpoint: oss-cn-hangzhou.aliyuncs.com \n accessKeyId: LTAI5t7zABPYmNtb4Z6a5kxQ\n accessKeySecret: HO7RBIpfBuSUGUmxbVr7cNdvuEwFiV\n bucketName: yjy-xzbjzfw-oss\nspring:\n servlet:\n multipart:\n enabled: true\n max-file-size: 20MB\n max-request-size: 30MB\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-customer\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-customer\nrabbit-mq:\n enable: true\nxxl-job:\n port: 11602','28401c19627bd5ebaa0995a40dc5b66d','2023-10-17 01:12:30','2023-10-24 10:03:21',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (178,'shared-es.yaml','DEFAULT_GROUP','jzo2o:\n es:\n host: 192.168.101.68\n port: 9200\nxpack:\n security:\n enabled: true','b6f19be77c533e9e7318f5d1944c9723','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (179,'jzo2o-data-search.yaml','DEFAULT_GROUP','xzb:\n jwt-key: customer\n\nrabbit-mq:\n enable: true\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-data-search,canal-mq-jzo2o-orders\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-data-search\nxxl-job:\n port: 11403','786b4093c09a54579b76f03cc140b72e','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (180,'shared-rabbitmq.yaml','DEFAULT_GROUP','spring:\n rabbitmq:\n host: 192.168.101.68\n username: xzb\n password: xzb\n port: 5672\n virtual-host: /xzb\n publisher-confirm-type: correlated #发送消息的异步回调,记录消息是否发送成功\n publisher-returns: true #开启publish-return功能消息到达交换机但是没有到达对列表\n template: \n #消息路由失败时的策略, true: 调用ReturnCallback, false丢弃消息\n mandatory: true\n listener:\n simple:\n acknowledge-mode: auto #出现异常时返回nack消息回滚到mq没有异常返回ack\n retry:\n enabled: true # 开启消费者失败重试\n initial-interval: 1000 # 初识的失败等待时长为1秒\n multiplier: 10 # 失败的等待时长倍数,下次等待时长 = multiplier * last-interval\n max-attempts: 90000 # 最大重试次数\n stateless: true # true无状态false有状态。如果业务中包含事务这里改为false','cbc0ddd710bf5d7d1d7d3a37c0fb9e07','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (181,'shared-redis-cluster.yaml','DEFAULT_GROUP','spring:\n redis:\n host: 192.168.101.68\n port: 6379\n password: \"redis\"\n\n\n# spring:\n# redis:\n# timeout: 6000 # 连接超时时长(毫秒)\n# password: \"xx\"\n# # database: 0\n# cluster:\n# nodes:\n# - 172.17.2.58:7000\n# - 172.17.2.58:7001\n# - 172.17.2.58:7002\n# - 172.17.2.58:7003\n# - 172.17.2.58:7004\n# - 172.17.2.58:7005\n# max-redirects: 3\n# lettuce:\n# pool:\n# max-active: 1024 # 连接池最大连接数默认为8-1表示无限制 如果pool已经分配了超过max_active个jedis实例则此时pool为耗尽\n# max-wait: 10000 #最大等待连接时间,单位毫秒 默认为-1表示永不超时超时会抛出JedisConnectionException\n# max-idle: 10\n# min-idle: 5\n# cluster:\n# refresh:\n# adaptive: true\n # shutdown-timeout: 100','ec12ead1728b9161913c1ee3d6e5263d','2023-10-17 01:12:30','2023-11-27 15:15:23',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (182,'jzo2o-acc.yaml','DEFAULT_GROUP','spring:\n servlet:\n multipart:\n enabled: true\n max-file-size: 20MB\n max-request-size: 30MB\n','a451ef1b2c6b1225f653e124e2df5d24','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (183,'jzo2o-orders-dispatch.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\n\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9997\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-dispatch\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-dispatch\nrabbit-mq:\n enable: true','d055fd119032c11bde1fef01bc4de4e6','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (184,'shared-dispatch-seize.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc.yml\n\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\n ','ccadcd6333dbf89248a9444a662e19ec','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (185,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\n# spring:\n cloud:\n sentinel:\n transport:\n # 供sentinel dashboard平台访问端口\n port: 8719\n # sentinel控制台\n dashboard: 192.168.101.1:8087\n #服务启动直接建立心跳连接\n eager: true\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: false','9fe062123de162227d7601b5b8719f68','2023-10-17 01:12:30','2023-11-15 06:24:07',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (186,'jzo2o-orders-seize.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\n\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9999\n','4949781f561ce38f574105277b8e7bb8','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (187,'shared-xxl-job.yaml','DEFAULT_GROUP','spring:\n cloud:\n inetutils.preferred-networks: 172\nxxl-job:\n enable: true\n access-token: default_token\n admin:\n address: http://192.168.101.68:8088/xxl-job-admin\n executor:\n appName: ${spring.application.name}\n #ip: 172.17.0.170\n port: ${xxl-job.port}\n # 执行器日志文件保存天数 [选填] 过期日志自动清理, 限制值大于等于3时生效; 否则, 如-1, 关闭自动清理功能\n log-retention-days: 30','a71d1ca5888ad21d56dc0bf3cfcd7743','2023-10-17 01:12:30','2023-10-17 05:55:47',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (188,'jzo2o-foundations.yaml','DEFAULT_GROUP','jzo2o:\n jwt-key: customer\n\nrabbit-mq:\n enable: true\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-data-search,canal-mq-jzo2o-order\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-data-search\nxxl-job:\n port: 11603','1873f5c015e79e5b5124abe2497be76b','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (189,'jzo2o-publics.yaml','DEFAULT_GROUP','ali:\n oss:\n enable: true\n endpoint: oss-cn-hangzhou.aliyuncs.com\n accessKeyId: xx\n accessKeySecret: xx\n bucketName: yjy-xzbjzfw-oss\nspring:\n servlet:\n multipart:\n enabled: true\n max-file-size: 20MB\n max-request-size: 30MB\ntencent:\n wechat:\n enable: true\n app-id: wx0fe49dab12497b3c\n secret: 107ec17bf25c8f35cd8e7f2500e63d52\namap:\n enable: true\n key: xx\njzo2o:\n jwt-key: operation','4a75d7a73a323670ed9ceb28acb005a0','2023-10-17 01:12:30','2023-11-27 15:14:10',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (190,'jzo2o-trade.yaml','DEFAULT_GROUP','jzo2o:\r\n job:\r\n refund:\r\n count: 100\r\n trading:\r\n count: 100\r\n qrcode:\r\n back-color: \'#ffffff\'\r\n error-correction-level: M\r\n fore-color: \'#000000\'\r\n height: 300\r\n margin: 2\r\n width: 300\r\nxxl-job:\r\n port: 11604\r\nrabbit-mq:\r\n enable: true\r\n','dfc44a5467e5551eae50342422f59930','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (191,'shared-spring-seata.yaml','DEFAULT_GROUP','seata:\n data-source-proxy-mode: AT\n registry:\n type: nacos\n nacos:\n server-addr: 192.168.101.68:8848\n namespace: 75a593f5-33e6-4c65-b2a0-18c403d20f63\n group: DEFAULT_GROUP\n application: seata-server\n username: nacos\n password: nacos\n tx-service-group: jzo2o-seata # 事务组名称\n # rm:\n # default:\n # datasource: jzo2o-orders-0\n service:\n vgroup-mapping: # 事务组与cluster的映射关系\n jzo2o-seata: default\n # tm:\n # defaultGlobalTransactionName: jzo2o-orders-0\n # jzo2o-orders-0:\n # txServiceGroup: jzo2o-seata\n # enableDegrade: false\n # disableGlobalTransaction: true\n # degradeCheck: true\n # grouplist: 172.17.2.58:8091\n # jzo2o-orders-1:\n # txServiceGroup: jzo2o-seata\n # enableDegrade: false\n # disableGlobalTransaction: true\n # degradeCheck: true\n # grouplist: 172.17.2.58:8091 \n # jzo2o-orders-2:\n # txServiceGroup: jzo2o-seata\n # enableDegrade: false\n # disableGlobalTransaction: true\n # degradeCheck: true\n # grouplist: 172.17.2.58:8091 \n ','64b524daa2c757240adcac347e50decf','2023-10-17 01:12:30','2023-10-17 08:20:05',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (192,'seata-server.properties','DEFAULT_GROUP','store.mode = db\nstore.db.datasource = druid\nstore.db.dbType = mysql\nstore.db.driverClassName = com.mysql.cj.jdbc.Driver\nstore.db.url = jdbc:mysql://192.168.101.68:3306/seata?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true&useSSL=false\nstore.db.user = root\nstore.db.password = mysql\nstore.db.minConn = 5\nstore.db.maxConn = 100\nstore.db.globalTable = global_table\nstore.db.branchTable = branch_table\nstore.db.lockTable = lock_table\nstore.db.distributedLockTable = distributed_lock\nstore.db.queryLimit = 100\nstore.db.maxWait = 5000\n#seata.tm.global_transaction_timeout = 60000\n#seata.tm.beginTimeout = 5000','ced2f1953e6fecb6475ebb912209bdf0','2023-10-17 01:12:30','2023-10-17 08:21:31',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','properties','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (193,'jzo2o-orders-history.yaml','DEFAULT_GROUP','rabbit-mq:\r\n enable: true\r\nxxl-job:\r\n executor:\r\n port: 11608','d5eac17223fdc61e7154d59cea194e13','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (194,'shared-tidb.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://192.168.101.68:3306/${mysql.db-name}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&stringtype=unspecified\n username: root\n password: mysql\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id','cfe3a33bd5165d90a4933c9c90d53f51','2023-10-17 01:12:30','2023-11-20 09:32:14',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63','','','','yaml','');
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (195,'jzo2o-test.yaml','DEFAULT_GROUP','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\n','186c66566ca9020b5e21d70eb80d9a39','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (196,'jzo2o-market.yaml','DEFAULT_GROUP','rabbit-mq:\r\n enable: true\r\nxxl-job:\r\n executor:\r\n port: 11610','9c3afb3537b24acd8b54c806527d2c8c','2023-10-17 01:12:30','2023-10-17 01:12:30',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (220,'shared-history-db.yaml','DEFAULT_GROUP','spring:\r\n datasource:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://192.168.101.68:3306/${mysql.db-name}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&stringtype=unspecified\r\n username: root\r\n password: mysql\r\nmybatis-plus:\r\n configuration:\r\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\r\n page:\r\n max-limit: 1000\r\n global-config:\r\n field-strategy: 0\r\n db-config:\r\n logic-delete-field: isDeleted\r\n id-type: assign_id','acc8b2e3353b43190d75aca26a1c4c6d','2023-11-21 00:33:41','2023-11-21 00:33:41',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
INSERT INTO `config_info` (`id`, `data_id`, `group_id`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `app_name`, `tenant_id`, `c_desc`, `c_use`, `effect`, `type`, `c_schema`) VALUES (221,'jzo2o-health.yaml','DEFAULT_GROUP','jzo2o:\r\n jwt-key: customer\r\n token-key:\r\n \"1\": customer\r\n \"2\": customer\r\n \"3\": customer\r\n \"4\": operation\r\n operation-jwt-tool-key: operation\r\n customer-jwt-tool-key: customer\r\n trade:\r\n aliEnterpriseId: 2088241317544335\r\n wechatEnterpriseId: 1561414331\r\n job:\r\n refundOrderCount: 100\r\n overTimePayOrderCount: 100\r\nxxl-job:\r\n port: 21600','addc27ba64266afd68af2f2df2769d7b','2023-11-27 01:17:44','2023-11-27 01:17:44',NULL,'192.168.101.1','','75a593f5-33e6-4c65-b2a0-18c403d20f63',NULL,NULL,NULL,'yaml',NULL);
/*!40000 ALTER TABLE `config_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config_info_aggr`
--
DROP TABLE IF EXISTS `config_info_aggr`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `config_info_aggr` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`datum_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'datum_id',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '内容',
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT '租户字段',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_configinfoaggr_datagrouptenantdatum` (`data_id`,`group_id`,`tenant_id`,`datum_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='增加租户字段';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config_info_aggr`
--
LOCK TABLES `config_info_aggr` WRITE;
/*!40000 ALTER TABLE `config_info_aggr` DISABLE KEYS */;
/*!40000 ALTER TABLE `config_info_aggr` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config_info_beta`
--
DROP TABLE IF EXISTS `config_info_beta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `config_info_beta` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'app_name',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
`beta_ips` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'betaIps',
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'md5',
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'source user',
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'source ip',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT '租户字段',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_configinfobeta_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info_beta';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config_info_beta`
--
LOCK TABLES `config_info_beta` WRITE;
/*!40000 ALTER TABLE `config_info_beta` DISABLE KEYS */;
/*!40000 ALTER TABLE `config_info_beta` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config_info_tag`
--
DROP TABLE IF EXISTS `config_info_tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `config_info_tag` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT 'tenant_id',
`tag_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_id',
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'app_name',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'content',
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'md5',
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'source user',
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'source ip',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_configinfotag_datagrouptenanttag` (`data_id`,`group_id`,`tenant_id`,`tag_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info_tag';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config_info_tag`
--
LOCK TABLES `config_info_tag` WRITE;
/*!40000 ALTER TABLE `config_info_tag` DISABLE KEYS */;
/*!40000 ALTER TABLE `config_info_tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config_tags_relation`
--
DROP TABLE IF EXISTS `config_tags_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `config_tags_relation` (
`id` bigint NOT NULL COMMENT 'id',
`tag_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'tag_name',
`tag_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'tag_type',
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'data_id',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'group_id',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT 'tenant_id',
`nid` bigint NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`nid`) USING BTREE,
UNIQUE KEY `uk_configtagrelation_configidtag` (`id`,`tag_name`,`tag_type`) USING BTREE,
KEY `idx_tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_tag_relation';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config_tags_relation`
--
LOCK TABLES `config_tags_relation` WRITE;
/*!40000 ALTER TABLE `config_tags_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `config_tags_relation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `group_capacity`
--
DROP TABLE IF EXISTS `group_capacity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `group_capacity` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Group ID空字符表示整个集群',
`quota` int unsigned NOT NULL DEFAULT '0' COMMENT '配额0表示使用默认值',
`usage` int unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
`max_size` int unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限单位为字节0表示使用默认值',
`max_aggr_count` int unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数0表示使用默认值',
`max_aggr_size` int unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限单位为字节0表示使用默认值',
`max_history_count` int unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_group_id` (`group_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='集群、各Group容量信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `group_capacity`
--
LOCK TABLES `group_capacity` WRITE;
/*!40000 ALTER TABLE `group_capacity` DISABLE KEYS */;
/*!40000 ALTER TABLE `group_capacity` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `his_config_info`
--
DROP TABLE IF EXISTS `his_config_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `his_config_info` (
`id` bigint unsigned NOT NULL,
`nid` bigint unsigned NOT NULL AUTO_INCREMENT,
`data_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`group_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`app_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'app_name',
`content` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`md5` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`src_user` text CHARACTER SET utf8 COLLATE utf8_bin,
`src_ip` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`op_type` char(10) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT '租户字段',
PRIMARY KEY (`nid`) USING BTREE,
KEY `idx_gmt_create` (`gmt_create`) USING BTREE,
KEY `idx_gmt_modified` (`gmt_modified`) USING BTREE,
KEY `idx_did` (`data_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=237 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='多租户改造';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `his_config_info`
--
LOCK TABLES `his_config_info` WRITE;
/*!40000 ALTER TABLE `his_config_info` DISABLE KEYS */;
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,225,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','08887a204eae677ff4764d7f1901e861','2023-10-29 07:03:53','2023-10-29 07:03:54',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,226,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','# spring:\n# datasource:\n# driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n# url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','d8fc64c61b778ddba8492ddd27fdd030','2023-10-29 08:43:17','2023-10-29 08:43:17',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,227,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','# spring:\n# datasource:\n# driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n# url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nspring:\n cloud:\n sentinel:\n transport:\n # 供sentinel dashboard平台访问端口\n port: 8719\n # sentinel控制台\n dashboard: 192.168.101.68:8087\n #服务启动直接建立心跳连接\n eager: true\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','25c51f5eb2b405fba1ff06335de13e85','2023-10-29 08:58:10','2023-10-29 08:58:11',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,228,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','# spring:\n# datasource:\n# driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n# url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nspring:\n cloud:\n sentinel:\n transport:\n # 供sentinel dashboard平台访问端口\n port: 8719\n # sentinel控制台\n dashboard: 192.168.101.1:8087\n #服务启动直接建立心跳连接\n eager: true\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','972209bc8e56bd59c9586cdb65a32a0e','2023-11-02 16:53:18','2023-11-02 08:53:18',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,229,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','# spring:\n# datasource:\n# driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n# url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nspring:\n cloud:\n sentinel:\n transport:\n # 供sentinel dashboard平台访问端口\n port: 8719\n # sentinel控制台\n dashboard: 192.168.101.1:8087\n #服务启动直接建立心跳连接\n eager: true\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','972209bc8e56bd59c9586cdb65a32a0e','2023-11-02 17:13:16','2023-11-02 09:13:16',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,230,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\nspring:\n cloud:\n sentinel:\n transport:\n # 供sentinel dashboard平台访问端口\n port: 8719\n # sentinel控制台\n dashboard: 192.168.101.1:8087\n #服务启动直接建立心跳连接\n eager: true\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','532530c9ecf0d1438b93f9f27340c4cf','2023-11-02 17:21:49','2023-11-02 09:21:50',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (185,231,'jzo2o-orders-manager.yaml','DEFAULT_GROUP','','spring:\n datasource:\n driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver\n url: jdbc:shardingsphere:classpath:shardingsphere-jdbc-${spring.profiles.active}.yml\n# spring:\n cloud:\n sentinel:\n transport:\n # 供sentinel dashboard平台访问端口\n port: 8719\n # sentinel控制台\n dashboard: 192.168.101.1:8087\n #服务启动直接建立心跳连接\n eager: true\nmybatis-plus:\n configuration:\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\n page:\n max-limit: 1000\n global-config:\n field-strategy: 0\n db-config:\n logic-delete-field: isDeleted\n id-type: assign_id\nxxl-job:\n port: 9998\ncanal:\n enable: true\n sync:\n application-name: ${spring.application.name}\n rabbit-mq:\n routing-keys: canal-mq-jzo2o-orders-manager\n exchange: exchange.canal-jzo2o\n queue: canal-mq-jzo2o-orders-manager\nrabbit-mq:\n enable: true\njzo2o:\n trade:\n aliEnterpriseId: 2088241317544335\n wechatEnterpriseId: 1561414331\n job:\n autoEvaluateCount: 100\n openPay: true','7f16b19fb94207c7435942048ba81c09','2023-11-15 14:24:07','2023-11-15 06:24:07',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (194,232,'shared-tidb.yaml','DEFAULT_GROUP','','spring:\r\n datasource:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://192.168.101.65:3306/${mysql.db-name}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&stringtype=unspecified\r\n username: root\r\n password: mysql\r\nmybatis-plus:\r\n configuration:\r\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\r\n page:\r\n max-limit: 1000\r\n global-config:\r\n field-strategy: 0\r\n db-config:\r\n logic-delete-field: isDeleted\r\n id-type: assign_id','8bf252f890dd84c6e283fb9997e94d2c','2023-11-20 17:32:13','2023-11-20 09:32:14',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (0,233,'shared-history-db.yaml','DEFAULT_GROUP','','spring:\r\n datasource:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://192.168.101.68:3306/${mysql.db-name}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&stringtype=unspecified\r\n username: root\r\n password: mysql\r\nmybatis-plus:\r\n configuration:\r\n default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler\r\n page:\r\n max-limit: 1000\r\n global-config:\r\n field-strategy: 0\r\n db-config:\r\n logic-delete-field: isDeleted\r\n id-type: assign_id','acc8b2e3353b43190d75aca26a1c4c6d','2023-11-21 08:33:40','2023-11-21 00:33:41',NULL,'192.168.101.1','I','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (0,234,'jzo2o-health.yaml','DEFAULT_GROUP','','jzo2o:\r\n jwt-key: customer\r\n token-key:\r\n \"1\": customer\r\n \"2\": customer\r\n \"3\": customer\r\n \"4\": operation\r\n operation-jwt-tool-key: operation\r\n customer-jwt-tool-key: customer\r\n trade:\r\n aliEnterpriseId: 2088241317544335\r\n wechatEnterpriseId: 1561414331\r\n job:\r\n refundOrderCount: 100\r\n overTimePayOrderCount: 100\r\nxxl-job:\r\n port: 21600','addc27ba64266afd68af2f2df2769d7b','2023-11-27 09:17:44','2023-11-27 01:17:44',NULL,'192.168.101.1','I','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (189,235,'jzo2o-publics.yaml','DEFAULT_GROUP','','ali:\n oss:\n enable: true\n endpoint: oss-cn-hangzhou.aliyuncs.com\n accessKeyId: LTAI5tNay2XZuSBFTXsLJRNJ\n accessKeySecret: dI9Rqo0OP2ClfCOWMKbSDZzvj04IGp\n bucketName: jzo2o-oss\nspring:\n servlet:\n multipart:\n enabled: true\n max-file-size: 20MB\n max-request-size: 30MB\ntencent:\n wechat:\n enable: true\n app-id: wx0fe49dab12497b3c\n secret: 107ec17bf25c8f35cd8e7f2500e63d52\namap:\n enable: true\n key: 0547c66c48a1e589f945e2554dcb8beb\njzo2o:\n jwt-key: operation','cd46a40c4565cfeafcd471d6b07e55f2','2023-11-27 23:14:09','2023-11-27 15:14:10',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
INSERT INTO `his_config_info` (`id`, `nid`, `data_id`, `group_id`, `app_name`, `content`, `md5`, `gmt_create`, `gmt_modified`, `src_user`, `src_ip`, `op_type`, `tenant_id`) VALUES (181,236,'shared-redis-cluster.yaml','DEFAULT_GROUP','','spring:\n redis:\n host: 192.168.101.68\n port: 6379\n password: \"redis\"\n\n\n# spring:\n# redis:\n# timeout: 6000 # 连接超时时长(毫秒)\n# password: \"HdFQyMafdZjl2nQ5\"\n# # database: 0\n# cluster:\n# nodes:\n# - 172.17.2.58:7000\n# - 172.17.2.58:7001\n# - 172.17.2.58:7002\n# - 172.17.2.58:7003\n# - 172.17.2.58:7004\n# - 172.17.2.58:7005\n# max-redirects: 3\n# lettuce:\n# pool:\n# max-active: 1024 # 连接池最大连接数默认为8-1表示无限制 如果pool已经分配了超过max_active个jedis实例则此时pool为耗尽\n# max-wait: 10000 #最大等待连接时间,单位毫秒 默认为-1表示永不超时超时会抛出JedisConnectionException\n# max-idle: 10\n# min-idle: 5\n# cluster:\n# refresh:\n# adaptive: true\n # shutdown-timeout: 100','55480e088ee0f9d96439f6f61d2bf0c8','2023-11-27 23:15:22','2023-11-27 15:15:23',NULL,'192.168.101.1','U','75a593f5-33e6-4c65-b2a0-18c403d20f63');
/*!40000 ALTER TABLE `his_config_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `permissions`
--
DROP TABLE IF EXISTS `permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `permissions` (
`role` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`resource` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`action` varchar(8) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
UNIQUE KEY `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `permissions`
--
LOCK TABLES `permissions` WRITE;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `roles` (
`username` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`role` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
UNIQUE KEY `idx_user_role` (`username`,`role`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `roles`
--
LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` (`username`, `role`) VALUES ('nacos','ROLE_ADMIN');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tenant_capacity`
--
DROP TABLE IF EXISTS `tenant_capacity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tenant_capacity` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Tenant ID',
`quota` int unsigned NOT NULL DEFAULT '0' COMMENT '配额0表示使用默认值',
`usage` int unsigned NOT NULL DEFAULT '0' COMMENT '使用量',
`max_size` int unsigned NOT NULL DEFAULT '0' COMMENT '单个配置大小上限单位为字节0表示使用默认值',
`max_aggr_count` int unsigned NOT NULL DEFAULT '0' COMMENT '聚合子配置最大个数',
`max_aggr_size` int unsigned NOT NULL DEFAULT '0' COMMENT '单个聚合数据的子配置大小上限单位为字节0表示使用默认值',
`max_history_count` int unsigned NOT NULL DEFAULT '0' COMMENT '最大变更历史数量',
`gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='租户容量信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tenant_capacity`
--
LOCK TABLES `tenant_capacity` WRITE;
/*!40000 ALTER TABLE `tenant_capacity` DISABLE KEYS */;
/*!40000 ALTER TABLE `tenant_capacity` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tenant_info`
--
DROP TABLE IF EXISTS `tenant_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tenant_info` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`kp` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'kp',
`tenant_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT 'tenant_id',
`tenant_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT '' COMMENT 'tenant_name',
`tenant_desc` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'tenant_desc',
`create_source` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'create_source',
`gmt_create` bigint NOT NULL COMMENT '创建时间',
`gmt_modified` bigint NOT NULL COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`) USING BTREE,
KEY `idx_tenant_id` (`tenant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='tenant_info';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tenant_info`
--
LOCK TABLES `tenant_info` WRITE;
/*!40000 ALTER TABLE `tenant_info` DISABLE KEYS */;
INSERT INTO `tenant_info` (`id`, `kp`, `tenant_id`, `tenant_name`, `tenant_desc`, `create_source`, `gmt_create`, `gmt_modified`) VALUES (1,'1','3adc3388-087e-4c90-a373-c5a6484752df','xc3.0_dev','xc3.0_dev','nacos',1661952703443,1661952703443);
INSERT INTO `tenant_info` (`id`, `kp`, `tenant_id`, `tenant_name`, `tenant_desc`, `create_source`, `gmt_create`, `gmt_modified`) VALUES (3,'1','dev','开发环境','开发环境','nacos',1662865995686,1662865995686);
INSERT INTO `tenant_info` (`id`, `kp`, `tenant_id`, `tenant_name`, `tenant_desc`, `create_source`, `gmt_create`, `gmt_modified`) VALUES (4,'1','test','测试环境','测试环境','nacos',1662867234159,1662867234159);
INSERT INTO `tenant_info` (`id`, `kp`, `tenant_id`, `tenant_name`, `tenant_desc`, `create_source`, `gmt_create`, `gmt_modified`) VALUES (5,'1','prod','生产环境','生产环境','nacos',1662868015781,1662868015781);
INSERT INTO `tenant_info` (`id`, `kp`, `tenant_id`, `tenant_name`, `tenant_desc`, `create_source`, `gmt_create`, `gmt_modified`) VALUES (6,'1','75a593f5-33e6-4c65-b2a0-18c403d20f63','家政o2o','家政o2o','nacos',1697505137001,1697505137001);
/*!40000 ALTER TABLE `tenant_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
`username` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`password` varchar(500) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`enabled` tinyint(1) NOT NULL,
PRIMARY KEY (`username`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`username`, `password`, `enabled`) VALUES ('nacos','$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu',1);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-11-28 8:54:00

365
sql脚本/xxl_job_2.3.1.sql Normal file
View File

@@ -0,0 +1,365 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.68 Database: xxl_job_2.3.1
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `xxl_job_2.3.1`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `xxl_job_2.3.1` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `xxl_job_2.3.1`;
--
-- Table structure for table `xxl_job_group`
--
DROP TABLE IF EXISTS `xxl_job_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_group` (
`id` int NOT NULL AUTO_INCREMENT,
`app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
`title` varchar(12) NOT NULL COMMENT '执行器名称',
`address_type` tinyint NOT NULL DEFAULT '0' COMMENT '执行器地址类型0=自动注册、1=手动录入',
`address_list` text COMMENT '执行器地址列表,多地址逗号分隔',
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_group`
--
LOCK TABLES `xxl_job_group` WRITE;
/*!40000 ALTER TABLE `xxl_job_group` DISABLE KEYS */;
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (1,'xxl-job-executor-sample','示例执行器',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (2,'media-process-service','视频处理任务',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (3,'coursepublish-job','课程发布任务',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (4,'payresultnotify-job','支付结果通知',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (5,'jzo2o-orders-seize','抢单调度器',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (6,'jzo2o-orders-dispatch','派单调度器',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (8,'jzo2o-orders-manager','订单管理',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (9,'jzo2o-trade','支付服务',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (10,'jzo2o-market','营销中心',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (11,'jzo2o-orders-history','历史订单',0,NULL,'2023-11-30 22:04:25');
INSERT INTO `xxl_job_group` (`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (12,'jzo2o-health','即刻体检',0,NULL,'2023-11-30 22:04:25');
/*!40000 ALTER TABLE `xxl_job_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_info`
--
DROP TABLE IF EXISTS `xxl_job_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_info` (
`id` int NOT NULL AUTO_INCREMENT,
`job_group` int NOT NULL COMMENT '执行器主键ID',
`job_desc` varchar(255) NOT NULL,
`add_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`author` varchar(64) DEFAULT NULL COMMENT '作者',
`alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件',
`schedule_type` varchar(50) NOT NULL DEFAULT 'NONE' COMMENT '调度类型',
`schedule_conf` varchar(128) DEFAULT NULL COMMENT '调度配置,值含义取决于调度类型',
`misfire_strategy` varchar(50) NOT NULL DEFAULT 'DO_NOTHING' COMMENT '调度过期策略',
`executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略',
`executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
`executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
`executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略',
`executor_timeout` int NOT NULL DEFAULT '0' COMMENT '任务执行超时时间,单位秒',
`executor_fail_retry_count` int NOT NULL DEFAULT '0' COMMENT '失败重试次数',
`glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型',
`glue_source` mediumtext COMMENT 'GLUE源代码',
`glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注',
`glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间',
`child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID多个逗号分隔',
`trigger_status` tinyint NOT NULL DEFAULT '0' COMMENT '调度状态0-停止1-运行',
`trigger_last_time` bigint NOT NULL DEFAULT '0' COMMENT '上次调度时间',
`trigger_next_time` bigint NOT NULL DEFAULT '0' COMMENT '下次调度时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_info`
--
LOCK TABLES `xxl_job_info` WRITE;
/*!40000 ALTER TABLE `xxl_job_info` DISABLE KEYS */;
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (1,1,'测试任务1','2018-11-03 22:21:31','2018-11-03 22:21:31','XXL','','CRON','0 0 0 * * ? *','DO_NOTHING','FIRST','demoJobHandler','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2018-11-03 22:21:31','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (2,2,'视频处理','2022-09-13 20:42:33','2022-09-13 21:14:04','xxljob','','CRON','0/3 * * * * ?','DO_NOTHING','FIRST','testJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2022-09-13 20:42:33','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (3,2,'测试分片任务','2022-09-13 21:15:18','2022-09-14 18:32:24','xxljob','','CRON','0/3 * * * * ?','DO_NOTHING','SHARDING_BROADCAST','shardingJobHandler','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2022-09-13 21:15:18','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (4,2,'视频处理','2022-09-14 18:33:41','2022-09-22 14:13:58','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','SHARDING_BROADCAST','videoJobHandler','','DISCARD_LATER',0,0,'BEAN','','GLUE代码初始化','2022-09-14 18:33:41','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (5,3,'课程发布任务','2022-09-22 10:46:22','2023-10-17 20:44:42','xxl-job','','CRON','0/10 * * * * ?','DO_NOTHING','SHARDING_BROADCAST','CoursePublishJobHandler','','DISCARD_LATER',0,0,'BEAN','','GLUE代码初始化','2022-09-22 10:46:22','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (6,4,'支付结果通知','2022-10-05 06:38:02','2023-10-17 20:44:51','xxl-job','','CRON','0/10 * * * * ?','DO_NOTHING','SHARDING_BROADCAST','NotifyPayResultJobHandler','','DISCARD_LATER',0,0,'BEAN','','GLUE代码初始化','2022-10-05 06:38:02','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (7,5,'抢单终止','2023-10-17 20:45:16','2023-11-15 17:01:19','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','arriveServeStartTimeStopSeizeJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-17 20:45:16','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (8,5,'抢单超时进入派单','2023-10-17 20:45:46','2023-11-15 17:01:16','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','seizeTimeoutIntoDispatchPoolJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-17 20:45:46','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (9,5,'抢单结果同步','2023-10-17 20:46:13','2023-11-30 21:39:22','xxljob','','CRON','0/10 * * * * ?','DO_NOTHING','FIRST','seizeSyncJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-17 20:46:13','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (10,6,'派单终止','2023-10-17 20:54:58','2023-11-24 15:42:35','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','arriveServeStartTimeStopDispatchJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-17 20:54:58','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (11,6,'派单调度任务','2023-10-17 20:55:19','2023-11-30 21:39:06','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','dispatch','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-17 20:55:19','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (13,8,'退款','2023-10-28 17:18:48','2023-11-02 18:45:16','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','handleRefundOrders','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-28 17:18:48','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (14,9,'支付通知','2023-10-31 16:21:49','2023-11-30 21:39:27','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','SHARDING_BROADCAST','tradingJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-10-31 16:21:49','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (15,10,'活动状态变更任务','2023-11-05 15:44:54','2023-11-09 21:23:31','xxljob','','CRON','0/59 * * * * ?','DO_NOTHING','FIRST','updateActivityStatus','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-11-05 15:44:54','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (17,10,'活动定时预热任务','2023-11-08 10:19:56','2023-11-09 21:23:29','xxljob','','CRON','0/5 * * * * ?','DO_NOTHING','FIRST','activityPreheat','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-11-08 10:19:56','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (18,10,'抢券结果同步任务','2023-11-09 09:12:42','2023-11-09 21:23:27','xxljob','','CRON','0/10 * * * * ?','DO_NOTHING','FIRST','seizeCouponSyncJob','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-11-09 09:12:42','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (19,11,'迁移订单信息','2023-11-20 18:45:39','2023-11-30 21:39:15','xxljob','','CRON','0/10 * * * * ?','DO_NOTHING','FIRST','migrateHistoryOrders','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-11-20 18:45:39','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (20,11,'订单统计','2023-11-20 19:34:03','2023-11-30 21:39:12','xxljob','','CRON','0/10 * * * * ?','DO_NOTHING','FIRST','statAndSaveData','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-11-20 19:34:03','',0,0,0);
INSERT INTO `xxl_job_info` (`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`) VALUES (21,12,'订单退款异步任务','2023-11-27 10:36:13','2023-11-30 21:38:57','xxljob','','CRON','0/10 * * * * ?','DO_NOTHING','FIRST','handleRefundOrders','','SERIAL_EXECUTION',0,0,'BEAN','','GLUE代码初始化','2023-11-27 10:36:13','',0,0,0);
/*!40000 ALTER TABLE `xxl_job_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_lock`
--
DROP TABLE IF EXISTS `xxl_job_lock`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_lock` (
`lock_name` varchar(50) NOT NULL COMMENT '锁名称',
PRIMARY KEY (`lock_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_lock`
--
LOCK TABLES `xxl_job_lock` WRITE;
/*!40000 ALTER TABLE `xxl_job_lock` DISABLE KEYS */;
INSERT INTO `xxl_job_lock` (`lock_name`) VALUES ('schedule_lock');
/*!40000 ALTER TABLE `xxl_job_lock` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_log`
--
DROP TABLE IF EXISTS `xxl_job_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_log` (
`id` bigint NOT NULL AUTO_INCREMENT,
`job_group` int NOT NULL COMMENT '执行器主键ID',
`job_id` int NOT NULL COMMENT '任务主键ID',
`executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
`executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
`executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
`executor_sharding_param` varchar(20) DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
`executor_fail_retry_count` int NOT NULL DEFAULT '0' COMMENT '失败重试次数',
`trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
`trigger_code` int NOT NULL COMMENT '调度-结果',
`trigger_msg` text COMMENT '调度-日志',
`handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
`handle_code` int NOT NULL COMMENT '执行-状态',
`handle_msg` text COMMENT '执行-日志',
`alarm_status` tinyint NOT NULL DEFAULT '0' COMMENT '告警状态0-默认、1-无需告警、2-告警成功、3-告警失败',
PRIMARY KEY (`id`),
KEY `I_trigger_time` (`trigger_time`),
KEY `I_handle_code` (`handle_code`)
) ENGINE=InnoDB AUTO_INCREMENT=546502 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_log`
--
LOCK TABLES `xxl_job_log` WRITE;
/*!40000 ALTER TABLE `xxl_job_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `xxl_job_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_log_report`
--
DROP TABLE IF EXISTS `xxl_job_log_report`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_log_report` (
`id` int NOT NULL AUTO_INCREMENT,
`trigger_day` datetime DEFAULT NULL COMMENT '调度-时间',
`running_count` int NOT NULL DEFAULT '0' COMMENT '运行中-日志数量',
`suc_count` int NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量',
`fail_count` int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_log_report`
--
LOCK TABLES `xxl_job_log_report` WRITE;
/*!40000 ALTER TABLE `xxl_job_log_report` DISABLE KEYS */;
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (1,'2022-09-13 00:00:00',0,126,1759,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (2,'2022-09-12 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (3,'2022-09-11 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (4,'2022-09-14 00:00:00',0,1451,4120,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (5,'2022-09-22 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (6,'2022-09-21 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (7,'2022-09-20 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (8,'2022-09-23 00:00:00',0,1067,65,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (9,'2022-09-24 00:00:00',0,103,2876,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (10,'2022-09-25 00:00:00',0,43,5120,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (11,'2022-09-26 00:00:00',0,0,3740,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (12,'2022-09-27 00:00:00',0,3966,1210,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (13,'2022-09-28 00:00:00',0,3082,2477,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (14,'2022-09-29 00:00:00',0,2140,2966,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (15,'2022-09-30 00:00:00',0,3308,1808,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (16,'2022-10-01 00:00:00',0,3118,343,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (17,'2022-10-02 00:00:00',0,2067,2037,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (18,'2022-10-03 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (19,'2022-10-04 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (20,'2022-10-05 00:00:00',0,2748,246,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (21,'2023-10-17 00:00:00',0,697,92,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (22,'2023-10-16 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (23,'2023-10-15 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (24,'2023-10-26 00:00:00',0,1132,13407,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (25,'2023-10-25 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (26,'2023-10-24 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (27,'2023-10-27 00:00:00',0,6900,31556,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (28,'2023-10-28 00:00:00',0,3056,7579,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (29,'2023-10-29 00:00:00',0,1660,30320,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (30,'2023-10-31 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (31,'2023-10-30 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (32,'2023-11-01 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (33,'2023-11-02 00:00:00',0,5815,11680,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (34,'2023-11-05 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (35,'2023-11-04 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (36,'2023-11-03 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (37,'2023-11-06 00:00:00',0,6249,32238,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (38,'2023-11-08 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (39,'2023-11-07 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (40,'2023-11-09 00:00:00',0,7892,17631,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (41,'2023-11-15 00:00:00',0,1508,3045,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (42,'2023-11-14 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (43,'2023-11-13 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (44,'2023-11-20 00:00:00',0,5537,10946,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (45,'2023-11-19 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (46,'2023-11-18 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (47,'2023-11-21 00:00:00',0,1786,8253,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (48,'2023-11-24 00:00:00',0,3971,3317,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (49,'2023-11-23 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (50,'2023-11-22 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (51,'2023-11-27 00:00:00',0,8252,34368,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (52,'2023-11-26 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (53,'2023-11-25 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (54,'2023-11-30 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (55,'2023-11-29 00:00:00',0,0,0,NULL);
INSERT INTO `xxl_job_log_report` (`id`, `trigger_day`, `running_count`, `suc_count`, `fail_count`, `update_time`) VALUES (56,'2023-11-28 00:00:00',0,0,0,NULL);
/*!40000 ALTER TABLE `xxl_job_log_report` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_logglue`
--
DROP TABLE IF EXISTS `xxl_job_logglue`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_logglue` (
`id` int NOT NULL AUTO_INCREMENT,
`job_id` int NOT NULL COMMENT '任务主键ID',
`glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
`glue_source` mediumtext COMMENT 'GLUE源代码',
`glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注',
`add_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_logglue`
--
LOCK TABLES `xxl_job_logglue` WRITE;
/*!40000 ALTER TABLE `xxl_job_logglue` DISABLE KEYS */;
/*!40000 ALTER TABLE `xxl_job_logglue` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_registry`
--
DROP TABLE IF EXISTS `xxl_job_registry`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_registry` (
`id` int NOT NULL AUTO_INCREMENT,
`registry_group` varchar(50) NOT NULL,
`registry_key` varchar(255) NOT NULL,
`registry_value` varchar(255) NOT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_registry`
--
LOCK TABLES `xxl_job_registry` WRITE;
/*!40000 ALTER TABLE `xxl_job_registry` DISABLE KEYS */;
/*!40000 ALTER TABLE `xxl_job_registry` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xxl_job_user`
--
DROP TABLE IF EXISTS `xxl_job_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `xxl_job_user` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL COMMENT '账号',
`password` varchar(50) NOT NULL COMMENT '密码',
`role` tinyint NOT NULL COMMENT '角色0-普通用户、1-管理员',
`permission` varchar(255) DEFAULT NULL COMMENT '权限执行器ID列表多个逗号分割',
PRIMARY KEY (`id`),
UNIQUE KEY `i_username` (`username`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xxl_job_user`
--
LOCK TABLES `xxl_job_user` WRITE;
/*!40000 ALTER TABLE `xxl_job_user` DISABLE KEYS */;
INSERT INTO `xxl_job_user` (`id`, `username`, `password`, `role`, `permission`) VALUES (1,'admin','e10adc3949ba59abbe56e057f20f883e',1,NULL);
/*!40000 ALTER TABLE `xxl_job_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-11-30 22:03:40

View File

@@ -0,0 +1,580 @@
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
--
-- Host: 192.168.101.65 Database: jzo2o-customer
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `jzo2o-customer`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `jzo2o-customer-all` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `jzo2o-customer-all`;
--
-- Table structure for table `address_book`
--
DROP TABLE IF EXISTS `address_book`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `address_book` (
`id` bigint NOT NULL COMMENT '主键',
`user_id` bigint NOT NULL COMMENT '用户id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '名称',
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '电话',
`province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '省份',
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '市级',
`county` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '区/县',
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '详细地址',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`is_default` int NOT NULL DEFAULT '0' COMMENT '是否为默认地址01',
`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`create_by` bigint DEFAULT NULL COMMENT '创建者',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`update_by` bigint DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='地址薄';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `address_book`
--
LOCK TABLES `address_book` WRITE;
/*!40000 ALTER TABLE `address_book` DISABLE KEYS */;
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1694341433495945217,1694325482809589760,'老王','13551231121','北京','北京市','东城区','3333333333',NULL,NULL,1,0,'2023-08-23 21:30:51',1694325482809589760,'2023-08-23 21:30:51',1694325482809589760);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1694341433495945218,1,'老王','13551231121','北京','北京市','东城区','3333333333',NULL,NULL,1,0,'2023-08-23 21:30:51',1694325482809589760,'2023-08-23 21:30:51',1694325482809589760);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695254148737626114,1694250327664218112,'张三','18620577287','北京市','北京市','昌平区','三旗百汇市场',116.34446,40.06300,0,0,'2023-08-26 09:57:38',1694250327664218112,'2023-08-26 10:00:11',1694250327664218112);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695254933185720322,1694250327664218112,'李四','18620577287','北京市','北京市','昌平区','建材城西路金燕龙办公楼',116.34351,40.06024,1,0,'2023-08-26 10:00:45',1694250327664218112,'2023-09-04 06:28:59',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695262575308075010,1695071168260947968,'老王八','13512121111','北京','北京市','东城区','金燕龙科研楼',116.34394,40.06110,0,0,'2023-08-26 10:31:09',1695071168260947968,'2023-08-29 18:30:12',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695262878241681410,1695071168260947968,'孙悟饭','13512121121','北京','北京市','东城区','收拾收拾',116.41636,39.92835,0,1,'2023-08-26 10:32:21',1695071168260947968,'2023-08-26 10:33:37',1695071168260947968);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695262970289876994,1695071168260947968,'孙悟天','18512121211','北京','北京市','东城区','说是啥是啥是所所所所所',116.41636,39.92835,1,1,'2023-08-26 10:32:43',1695071168260947968,'2023-08-26 10:33:37',1695071168260947968);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1695353353577459714,1695339358949949440,'武松松','18810966207','北京','北京市','昌平区','金燕龙传智播客',116.34344,40.06029,1,0,'2023-08-26 16:31:52',1695339358949949440,'2023-08-26 16:31:52',1695339358949949440);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696349420666253314,1696348358902497280,'吴彦祖','18888888888','北京','北京市','昌平区','金燕龙',116.34326,40.06137,1,0,'2023-08-29 10:29:53',1696348358902497280,'2023-08-29 10:29:53',1696348358902497280);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696470297961590785,1695071168260947968,'吴彦祖','18888888888','北京','北京市','昌平区','田园风光雅园',116.35202,40.08859,0,0,'2023-08-29 18:30:12',1695071168260947968,'2023-08-30 18:58:54',1695071168260947968);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696839911014952962,1695071168260947968,'搜索','13512121221','北京市','北京市','昌平区','北京市昌平区城北街道中共北京市昌平区委员会北京市昌平区人民政府',116.23244,40.21801,1,0,'2023-08-30 18:58:55',1695071168260947968,'2023-09-11 11:09:08',NULL);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1696849760507424770,1694250327664218112,'张三','14512345678','重庆市','重庆市','渝北区','重庆市渝北区两路街道地道重庆小吃重庆江北国际机场T3A航站楼',106.65476,29.71591,0,0,'2023-08-30 19:38:03',1694250327664218112,'2023-09-04 06:28:59',1694250327664218112);
INSERT INTO `address_book` (`id`, `user_id`, `name`, `phone`, `province`, `city`, `county`, `address`, `lon`, `lat`, `is_default`, `is_deleted`, `create_time`, `create_by`, `update_time`, `update_by`) VALUES (1701076314360180738,1701074772546342912,'吕女士','13333333333','北京市','北京市','昌平区','北京市昌平区回龙观街道金燕龙科研楼',116.34395,40.06115,1,0,'2023-09-11 03:33:44',1701074772546342912,'2023-09-11 03:34:11',NULL);
/*!40000 ALTER TABLE `address_book` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `agency_certification`
--
DROP TABLE IF EXISTS `agency_certification`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `agency_certification` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '机构id',
`name` varchar(50) DEFAULT NULL COMMENT '企业名称',
`id_number` varchar(50) DEFAULT NULL COMMENT '统一社会信用代码',
`legal_person_name` varchar(50) DEFAULT NULL COMMENT '法人姓名',
`legal_person_id_card_no` varchar(50) DEFAULT NULL COMMENT '法人身份证号',
`business_license` varchar(100) DEFAULT NULL COMMENT '营业执照',
`certification_status` int NOT NULL DEFAULT '0' COMMENT '认证状态0初始态1认证中2认证成功3认证失败',
`certification_time` datetime DEFAULT NULL COMMENT '认证时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1700056806312669187 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='机构认证信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `agency_certification`
--
LOCK TABLES `agency_certification` WRITE;
/*!40000 ALTER TABLE `agency_certification` DISABLE KEYS */;
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1694955099182362626,'机构00','110101199307282600','法人00','110101199307282600','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:13','2023-09-06 20:31:12','2023-09-06 20:31:12');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1695628302246506498,'机构01','110101199307282601','法人01','110101199307282601','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:13','2023-09-06 20:31:12','2023-09-06 20:31:12');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696363919163170818,'机构02','110101199307282602','法人02','110101199307282602','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:13','2023-09-06 20:31:13','2023-09-06 20:31:13');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696706462195150849,'机构03','110101199307282603','法人03','110101199307282603','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:31:14','2023-09-06 20:31:13','2023-09-06 20:31:13');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1697864361936187393,'机构04','110101199307282604','法人04','110101199307282604','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',3,'2023-09-08 16:14:55','2023-09-06 20:31:13','2023-09-08 16:23:25');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1700056628117663746,NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-08 16:01:00','2023-09-08 16:01:00');
INSERT INTO `agency_certification` (`id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1700056806312669186,NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-08 16:01:42','2023-09-08 16:01:42');
/*!40000 ALTER TABLE `agency_certification` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `agency_certification_audit`
--
DROP TABLE IF EXISTS `agency_certification_audit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `agency_certification_audit` (
`id` bigint NOT NULL COMMENT '主键',
`serve_provider_id` bigint DEFAULT NULL COMMENT '机构id',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '企业名称',
`id_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '统一社会信用代码',
`legal_person_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '法人姓名',
`legal_person_id_card_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '法人身份证号',
`business_license` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '营业执照',
`audit_status` int NOT NULL DEFAULT '0' COMMENT '审核状态0未审核1已审核',
`auditor_id` bigint DEFAULT NULL COMMENT '审核人id',
`auditor_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '审核人姓名',
`audit_time` datetime DEFAULT NULL COMMENT '审核时间',
`certification_status` int NOT NULL DEFAULT '1' COMMENT '认证状态1认证中2认证成功3认证失败',
`reject_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '驳回原因',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='机构认证审核表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `agency_certification_audit`
--
LOCK TABLES `agency_certification_audit` WRITE;
/*!40000 ALTER TABLE `agency_certification_audit` DISABLE KEYS */;
INSERT INTO `agency_certification_audit` (`id`, `serve_provider_id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (1,1694955099182362626,'机构00','110101199307282600','法人00','110101199307282600','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:31:13',2,NULL,'2023-09-06 20:31:12','2023-09-06 20:31:12');
INSERT INTO `agency_certification_audit` (`id`, `serve_provider_id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (2,1695628302246506498,'机构01','110101199307282601','法人01','110101199307282601','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:31:13',2,NULL,'2023-09-06 20:31:12','2023-09-06 20:31:12');
INSERT INTO `agency_certification_audit` (`id`, `serve_provider_id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (3,1696363919163170818,'机构02','110101199307282602','法人02','110101199307282602','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:31:13',2,NULL,'2023-09-06 20:31:13','2023-09-06 20:31:13');
INSERT INTO `agency_certification_audit` (`id`, `serve_provider_id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (4,1696706462195150849,'机构03','110101199307282603','法人03','110101199307282603','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:31:14',2,NULL,'2023-09-06 20:31:13','2023-09-06 20:31:13');
INSERT INTO `agency_certification_audit` (`id`, `serve_provider_id`, `name`, `id_number`, `legal_person_name`, `legal_person_id_card_no`, `business_license`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (5,1697864361936187393,'机构04','110101199307282604','法人04','110101199307282604','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-08 16:23:25',3,'未满足认证要求','2023-09-06 20:31:13','2023-09-08 16:23:25');
/*!40000 ALTER TABLE `agency_certification_audit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bank_account`
--
DROP TABLE IF EXISTS `bank_account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bank_account` (
`id` bigint DEFAULT NULL COMMENT '服务人员/机构id',
`type` int DEFAULT NULL COMMENT '类型2服务人员3服务机构',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '户名',
`bank_name` varchar(50) DEFAULT NULL COMMENT '银行名称',
`province` varchar(50) DEFAULT NULL COMMENT '',
`city` varchar(50) DEFAULT NULL COMMENT '',
`district` varchar(50) DEFAULT NULL COMMENT '',
`branch` varchar(50) DEFAULT NULL COMMENT '网点',
`account` varchar(50) DEFAULT NULL COMMENT '银行账号',
`account_certification` varchar(100) DEFAULT NULL COMMENT '开户证明',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='银行账户';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bank_account`
--
LOCK TABLES `bank_account` WRITE;
/*!40000 ALTER TABLE `bank_account` DISABLE KEYS */;
INSERT INTO `bank_account` (`id`, `type`, `name`, `bank_name`, `province`, `city`, `district`, `branch`, `account`, `account_certification`, `create_time`, `update_time`) VALUES (1695628302246506498,3,'张三','中国工商银行','北京市','北京市','海淀区','海淀区支行','2345678787678767','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','2023-09-07 11:00:23','2023-09-07 11:00:24');
/*!40000 ALTER TABLE `bank_account` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `common_user`
--
DROP TABLE IF EXISTS `common_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `common_user` (
`id` bigint NOT NULL COMMENT '用户id',
`status` int NOT NULL DEFAULT '0' COMMENT '状态0正常1冻结',
`nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '昵称',
`phone` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '电话',
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '头像',
`open_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`account_lock_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '账号冻结原因',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` int NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `common_user`
--
LOCK TABLES `common_user` WRITE;
/*!40000 ALTER TABLE `common_user` DISABLE KEYS */;
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1694250327664218112,0,'微信用户','18860355196','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4upfdyC_MH5OkzEKbhViNTU','2000000000','2023-08-23 15:28:50','2023-08-26 09:16:26',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695052533074100224,0,'微信用户',NULL,'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',NULL,NULL,'2023-08-25 20:36:30','2023-08-25 20:36:30',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695052599264411648,0,'何刚',NULL,'http://dummyimage.com/100x100',NULL,NULL,'2023-08-25 20:36:46','2023-08-25 20:36:46',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695054371269771264,0,'微信用户',NULL,'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',NULL,NULL,'2023-08-25 20:43:48','2023-08-25 20:43:48',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695055440972480512,0,'abc',NULL,'abc',NULL,NULL,'2023-08-25 20:48:03','2023-08-25 20:48:03',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695063742786781184,0,'abc',NULL,'abc',NULL,NULL,'2023-08-25 21:21:03','2023-08-25 21:21:03',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695064056785940480,0,'abc',NULL,'abc',NULL,NULL,'2023-08-25 21:22:17','2023-08-25 21:22:17',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695070649215827968,0,'微信用户',NULL,'11',NULL,NULL,'2023-08-25 21:48:30','2023-08-25 21:48:30',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071158647603200,0,'微信',NULL,'11',NULL,NULL,'2023-08-25 21:50:31','2023-08-25 21:50:31',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071168260947968,0,'微信用户','15538396657','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4nI1UnfERxi9MSJ2_9Jzu00',NULL,'2023-08-25 21:50:34','2023-08-26 10:10:36',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071290109673472,0,'微11',NULL,'11',NULL,NULL,'2023-08-25 21:51:03','2023-08-25 21:51:03',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071373085589504,0,'信11',NULL,'11',NULL,NULL,'2023-08-25 21:51:22','2023-08-25 21:51:22',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071498423975936,0,'服务',NULL,'11',NULL,NULL,'2023-08-25 21:51:52','2023-08-25 21:51:52',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071705995886592,0,'',NULL,'11',NULL,NULL,'2023-08-25 21:52:42','2023-08-25 21:52:42',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695071846819643392,0,'功嘉赐',NULL,'11',NULL,NULL,'2023-08-25 21:53:15','2023-08-25 21:53:15',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695072571297579008,0,'云岚到家001',NULL,'11',NULL,NULL,'2023-08-25 21:56:08','2023-08-25 21:56:08',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695073029575622656,0,'诸葛平文',NULL,'11',NULL,NULL,'2023-08-25 21:57:57','2023-08-25 21:57:57',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695339358949949440,0,'微信用户','18810966207','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4g4yRTtMnw8iqkw6RI4pJKg',NULL,'2023-08-26 15:36:15','2023-08-26 15:36:16',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1695967381785100288,0,'诸葛平文',NULL,'11',NULL,NULL,'2023-08-28 09:11:48','2023-08-28 09:11:48',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1696348358902497280,0,'微信用户','18539220118','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o-X3a4nhtTsP0E_YUVrO6sFEwezA',NULL,'2023-08-29 10:25:40','2023-08-29 10:25:41',0);
INSERT INTO `common_user` (`id`, `status`, `nickname`, `phone`, `avatar`, `open_id`, `account_lock_reason`, `create_time`, `update_time`, `is_deleted`) VALUES (1701074772546342912,0,'微信用户','18703810075','https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132','o5CqM6KHYi6o0mX5M23vFx9SBhiQ',NULL,'2023-09-11 03:27:37','2023-09-11 03:27:37',0);
/*!40000 ALTER TABLE `common_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `fail_msg`
--
DROP TABLE IF EXISTS `fail_msg`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `fail_msg` (
`id` bigint NOT NULL COMMENT '消息id',
`exchange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '交换机',
`routing_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '路由key',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '消息',
`reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '原因',
`delay_msg_execute_time` int NOT NULL COMMENT '延迟消息执行时间',
`next_fetch_time` int DEFAULT NULL COMMENT '下次拉取时间',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='rabbitm发送失败消息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `fail_msg`
--
LOCK TABLES `fail_msg` WRITE;
/*!40000 ALTER TABLE `fail_msg` DISABLE KEYS */;
/*!40000 ALTER TABLE `fail_msg` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `institution_staff`
--
DROP TABLE IF EXISTS `institution_staff`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `institution_staff` (
`id` bigint NOT NULL COMMENT '主键',
`institution_id` bigint DEFAULT NULL COMMENT '服务机构id',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '编号',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '名称',
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '电话',
`id_card_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '身份证号',
`certification_imgs` json DEFAULT NULL COMMENT '证明资料列表',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='机构下属服务人员';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `institution_staff`
--
LOCK TABLES `institution_staff` WRITE;
/*!40000 ALTER TABLE `institution_staff` DISABLE KEYS */;
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1694976080089214977,1694955099182362626,'1694976080063184896','3','13515551111','144122121212121212','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/533dda9f-67f3-4f0d-99ec-d3681474df87.png\"]','2023-08-25 15:32:43','2023-08-25 15:33:35',1);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1694978252793212929,1694955099182362626,'1694978252792348672','测试','13584451121','441212121215121212','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/2da97cee-c9a1-4aaa-b41e-80e4c30c6d0d.png\"]','2023-08-25 15:41:21','2023-08-25 15:41:21',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1695002536508944385,1694955099182362626,'1695002536508080128','123','13551212122','252312212222222222','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/51fb378c-b818-448e-bbc4-fb04a46f31fa.png\"]','2023-08-25 17:17:50','2023-08-25 17:17:50',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1695630550498308098,1695628302246506498,'1695630550501638144','张三','18888888888','360921199901014581','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/00a4b3ee-49fa-4c3c-a151-6357bb587a59.png\"]','2023-08-27 10:53:21','2023-08-27 10:53:21',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1696442084803973122,1696363919163170818,'1696442084745252864','张三','16712345678','412867123412341234','[\"https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/4866ee52-2289-48e2-b466-f77feffc8070.jpeg\"]','2023-08-29 16:38:06','2023-08-29 16:38:06',0);
INSERT INTO `institution_staff` (`id`, `institution_id`, `code`, `name`, `phone`, `id_card_no`, `certification_imgs`, `create_time`, `update_time`, `is_deleted`) VALUES (1701055493029523457,1696706462195150849,'1701055493020778496','','13851212111','145512121212122121','[]','2023-09-11 10:10:08','2023-09-11 10:10:08',0);
/*!40000 ALTER TABLE `institution_staff` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider`
--
DROP TABLE IF EXISTS `serve_provider`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider` (
`id` bigint NOT NULL COMMENT '主键',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '编号',
`type` int NOT NULL COMMENT '类型2服务人员3服务机构',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '姓名',
`phone` varchar(255) NOT NULL COMMENT '电话',
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '头像',
`status` int NOT NULL COMMENT '状态0正常1冻结',
`settings_status` int DEFAULT '0' COMMENT '首次设置状态0未完成设置1已完成设置',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机构登录密码',
`account_lock_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '账号冻结原因',
`score` double DEFAULT NULL COMMENT '综合评分',
`good_level_rate` varchar(50) DEFAULT NULL COMMENT '好评率',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `serve_provider_phone_type_uindex` (`phone`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务人员/机构表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider`
--
LOCK TABLES `serve_provider` WRITE;
/*!40000 ALTER TABLE `serve_provider` DISABLE KEYS */;
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1694955099182362626,'1694955099160526848',3,'机构00','18810966207',NULL,0,1,'$2a$10$QiglPrZ/6xxCBnaJXHojz.DGdp4O/KF3qcCecWnyXo6lLTalYFTrG','额度的多多多多多多多多多多多多多',NULL,NULL,'2023-08-25 14:09:21','2023-09-06 20:31:53',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1695006954969133057,'1695006954951491584',2,'服务人员00','18912345678',NULL,1,0,NULL,'哒哒哒哒哒哒多多多',NULL,NULL,'2023-08-25 17:35:24','2023-09-08 11:31:32',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1695007144950132737,'1695007144953462784',2,'服务人员01','18212345678',NULL,0,0,NULL,'2333333333',NULL,NULL,'2023-08-25 17:36:09','2023-09-06 20:21:34',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1695628302246506498,'1695628302237253632',3,'机构01','18810966904',NULL,0,1,'$2a$10$v633CoJ.eIMA8sTuZxN5fOkmls5K8JmyVa6LEOptHl80bs/JA4JxO',NULL,NULL,NULL,'2023-08-27 10:44:25','2023-09-06 20:32:07',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696338624494202882,'1696338624497532928',2,'服务人员02','15066699132',NULL,0,1,NULL,NULL,NULL,NULL,'2023-08-29 09:46:59','2023-09-06 20:21:48',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696363919163170818,'1696363919112839168',3,'机构02','18812345678',NULL,0,1,'$2a$10$KstuMypos1IimZlVpNAB7OwluzyPQ0jqfaYRfwNp8Lfkes6WTZnUO',NULL,NULL,NULL,'2023-08-29 11:27:27','2023-09-06 20:32:20',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696462691331239937,'1696462691326181376',2,'服务人员03','15066699131',NULL,0,1,NULL,NULL,NULL,NULL,'2023-08-29 17:59:59','2023-09-08 16:16:25',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1696706462195150849,'1696706462194286592',3,'机构03','15896123123',NULL,0,1,'$2a$10$H9ryMxCmbD9e4QdfKUrt3u6b42WrZN/b/YS7gpK8YWwW0wLyidL8G',NULL,NULL,NULL,'2023-08-30 10:08:38','2023-09-06 20:32:29',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1697864361936187393,'1697864361683664896',3,'机构04','18888888888',NULL,0,0,'$2a$10$22OsfxUUuG8gUYzooPh4v.qRtj2z3kXGY/lPs/d.U5MDguDG0lpwK',NULL,NULL,NULL,'2023-09-02 06:49:43','2023-09-06 20:32:33',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056628117663746,'1700056628100530176',3,NULL,'15631121121',NULL,0,0,'$2a$10$8q8augvySdRmDwUlkUGKYeM8cXbWR3PcyPHwffDq5q7u3sb3EWHhW',NULL,NULL,NULL,'2023-09-08 16:01:00','2023-09-08 16:01:00',0);
INSERT INTO `serve_provider` (`id`, `code`, `type`, `name`, `phone`, `avatar`, `status`, `settings_status`, `password`, `account_lock_reason`, `score`, `good_level_rate`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056806312669186,'1700056806316507136',3,NULL,'15812112112',NULL,0,0,'$2a$10$BdPkd.6V4fSjgJH7RPiNm.tWVSb8J6vZy9dLPaSsB/chIYas4Jji6',NULL,NULL,NULL,'2023-09-08 16:01:42','2023-09-08 16:01:42',0);
/*!40000 ALTER TABLE `serve_provider` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider_settings`
--
DROP TABLE IF EXISTS `serve_provider_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider_settings` (
`id` bigint NOT NULL COMMENT '服务人员/机构id',
`city_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '' COMMENT '城市码',
`city_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市名称',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`intention_scope` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '意向单范围',
`have_skill` int DEFAULT '0' COMMENT '是否有技能',
`can_pick_up` int DEFAULT '-1' COMMENT '是否可以接单,-0关闭接单1开启接单',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` int DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务人员/机构附属信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider_settings`
--
LOCK TABLES `serve_provider_settings` WRITE;
/*!40000 ALTER TABLE `serve_provider_settings` DISABLE KEYS */;
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1694955099182362626,'010','',116.34381,40.06071,'金燕龙科研楼',1,1,'2023-08-25 14:09:21','2023-08-29 10:35:46',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1695006954969133057,'','',NULL,NULL,NULL,1,-1,'2023-08-25 17:35:24','2023-08-26 15:53:42',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1695007144950132737,'','',NULL,NULL,NULL,1,-1,'2023-08-25 17:36:09','2023-08-26 15:53:42',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1695628302246506498,'010','',116.46226,39.97419,'北京金燕龙联合企业总公司',1,1,'2023-08-27 10:44:25','2023-09-07 15:40:38',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696338624494202882,'010','北京市',116.34337,40.06046,'金燕龙办公楼',1,1,'2023-08-29 09:46:59','2023-08-29 10:32:25',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696363919163170818,'010',NULL,116.34928,40.05997,'育新地铁站',1,1,'2023-08-29 11:27:28','2023-08-29 11:28:23',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696462691331239937,'010','北京市',116.39801,39.90930,'天安门服务部',1,1,'2023-08-29 17:59:59','2023-08-29 18:01:08',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1696706462195150849,'010',NULL,116.33504,40.06092,'金燕龙',1,1,'2023-08-30 10:08:38','2023-08-31 16:18:12',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1697864361936187393,'',NULL,NULL,NULL,NULL,1,-1,'2023-09-02 06:49:43','2023-09-06 19:28:06',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056628117663746,'',NULL,NULL,NULL,NULL,0,-1,'2023-09-08 16:01:00','2023-09-08 16:01:00',0);
INSERT INTO `serve_provider_settings` (`id`, `city_code`, `city_name`, `lon`, `lat`, `intention_scope`, `have_skill`, `can_pick_up`, `create_time`, `update_time`, `is_deleted`) VALUES (1700056806312669186,'',NULL,NULL,NULL,NULL,0,-1,'2023-09-08 16:01:42','2023-09-08 16:01:42',0);
/*!40000 ALTER TABLE `serve_provider_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_provider_sync`
--
DROP TABLE IF EXISTS `serve_provider_sync`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_provider_sync` (
`id` bigint NOT NULL COMMENT '服务人员或机构同步表',
`serve_item_ids` json DEFAULT NULL COMMENT '技能列表',
`serve_provider_type` int DEFAULT NULL COMMENT '服务者类型2服务人员3机构人员',
`lon` double(10,5) DEFAULT NULL COMMENT '经度',
`lat` double(10,5) DEFAULT NULL COMMENT '纬度',
`city_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '城市编码',
`pick_up` int DEFAULT NULL COMMENT '接单开关1接单开启0接单关闭',
`evaluation_score` double DEFAULT '50' COMMENT '评分,默认50分',
`setting_status` int DEFAULT NULL COMMENT '首次设置状态0未完成1已完成设置',
`status` int NOT NULL COMMENT '状态0正常1冻结',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='评分同步列表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_provider_sync`
--
LOCK TABLES `serve_provider_sync` WRITE;
/*!40000 ALTER TABLE `serve_provider_sync` DISABLE KEYS */;
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1694955099182362626,'[1685894105234755585, 1683432288440897537, 1685850705647194113, 1678727478181957634, 1692475107114487809]',3,116.34381,40.06071,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1695006954969133057,NULL,2,NULL,NULL,NULL,0,3,NULL,1);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1695007144950132737,NULL,2,NULL,NULL,NULL,0,3,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1695628302246506498,'[1685894105234755585, 1694549334674739202, 1683432288440897537, 1698885001328300033]',3,116.46226,39.97419,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696338624494202882,'[1685894105234755585, 1694549334674739202, 1698885001328300033, 1683432288440897537, 1685850705647194113, 1678727478181957634, 1692475107114487809]',2,116.34337,40.06046,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696363919163170818,'[1685894105234755585, 1683432288440897537, 1685850705647194113, 1678727478181957634, 1692475107114487809]',3,116.34928,40.05997,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696462691331239937,'[1685894105234755585]',2,116.39801,39.90930,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1696706462195150849,'[1685894105234755585, 1685850705647194113, 1692475107114487809]',3,116.33504,40.06092,'010',1,3,1,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1697864361936187393,NULL,3,NULL,NULL,NULL,NULL,3,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1700056628117663746,NULL,3,NULL,NULL,NULL,NULL,55,NULL,0);
INSERT INTO `serve_provider_sync` (`id`, `serve_item_ids`, `serve_provider_type`, `lon`, `lat`, `city_code`, `pick_up`, `evaluation_score`, `setting_status`, `status`) VALUES (1700056806312669186,NULL,3,NULL,NULL,NULL,NULL,55,NULL,0);
/*!40000 ALTER TABLE `serve_provider_sync` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serve_skill`
--
DROP TABLE IF EXISTS `serve_skill`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `serve_skill` (
`id` bigint NOT NULL COMMENT '主键',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人员/机构id',
`serve_provider_type` int DEFAULT NULL COMMENT '类型2服务人员3服务机构',
`serve_type_id` bigint DEFAULT NULL COMMENT '服务类型id',
`serve_type_name` varchar(50) DEFAULT NULL COMMENT '服务类型名称',
`serve_item_id` bigint DEFAULT NULL COMMENT '服务项id',
`serve_item_name` varchar(50) DEFAULT NULL COMMENT '服务项名称',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_delete` int NOT NULL DEFAULT '0' COMMENT '是否已删除0未删除1已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='服务技能表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serve_skill`
--
LOCK TABLES `serve_skill` WRITE;
/*!40000 ALTER TABLE `serve_skill` DISABLE KEYS */;
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800631533569,1694955099182362626,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-08-26 17:49:08','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800635727873,1694955099182362626,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-08-26 17:49:08','2023-09-07 11:31:41',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800639922178,1694955099182362626,3,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-08-26 17:49:08','2023-09-07 11:32:31',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800639922179,1694955099182362626,3,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-08-26 17:49:08','2023-09-07 11:33:13',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1695372800644116481,1694955099182362626,3,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-08-26 17:49:08','2023-09-07 11:33:44',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146360229889,1696363919163170818,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-08-29 11:28:22','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146360229890,1696363919163170818,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-08-29 11:28:22','2023-09-07 11:31:41',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146368618498,1696363919163170818,3,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-08-29 11:28:22','2023-09-07 11:32:31',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146368618499,1696363919163170818,3,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-08-29 11:28:22','2023-09-07 11:33:13',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696364146377007106,1696363919163170818,3,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-08-29 11:28:22','2023-09-07 11:33:44',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1696462990024404993,1696462691331239937,2,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-08-29 18:01:10','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062218629122,1695628302246506498,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-09-06 19:28:28','2023-09-07 11:30:43',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062218629123,1695628302246506498,3,1678649931106705409,'保洁清',1694549334674739202,'测试','2023-09-06 19:28:28','2023-09-07 11:34:29',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062227017729,1695628302246506498,3,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-09-06 19:28:28','2023-09-07 11:31:41',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699384062227017730,1695628302246506498,3,1678649931106705409,'保洁清',1698885001328300033,NULL,'2023-09-06 19:28:28','2023-09-07 11:26:58',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697573593090,1696338624494202882,2,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697577787394,1696338624494202882,2,1678649931106705409,'保洁清',1694549334674739202,'测试','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697581981697,1696338624494202882,2,1678649931106705409,'保洁清',1698885001328300033,'测试支付','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697586176001,1696338624494202882,2,1678649931106705409,'保洁清',1683432288440897537,'厨卫维修','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697586176002,1696338624494202882,2,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697590370305,1696338624494202882,2,1678654490336124929,'日常维修',1678727478181957634,'日常维修','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699682697594564609,1696338624494202882,2,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-09-07 15:15:08','2023-09-07 15:15:08',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699695762876690434,1696706462195150849,3,1678649931106705409,'保洁清',1685894105234755585,'日常保洁','2023-09-07 16:07:03','2023-09-07 16:07:03',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699695762880884737,1696706462195150849,3,1678654490336124929,'日常维修',1685850705647194113,'空调维修','2023-09-07 16:07:03','2023-09-07 16:07:03',0);
INSERT INTO `serve_skill` (`id`, `serve_provider_id`, `serve_provider_type`, `serve_type_id`, `serve_type_name`, `serve_item_id`, `serve_item_name`, `create_time`, `update_time`, `is_delete`) VALUES (1699695762880884738,1696706462195150849,3,1692473174681194497,'家居服务',1692475107114487809,'安装窗帘','2023-09-07 16:07:03','2023-09-07 16:07:03',0);
/*!40000 ALTER TABLE `serve_skill` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `worker_certification`
--
DROP TABLE IF EXISTS `worker_certification`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `worker_certification` (
`id` bigint NOT NULL DEFAULT '0' COMMENT '服务人员id',
`name` varchar(50) DEFAULT NULL COMMENT '姓名',
`id_card_no` varchar(50) DEFAULT NULL COMMENT '身份证号',
`front_img` varchar(100) DEFAULT NULL COMMENT '身份证正面',
`back_img` varchar(100) DEFAULT NULL COMMENT '身份证反面',
`certification_material` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '证明资料',
`certification_status` int NOT NULL DEFAULT '0' COMMENT '认证状态0初始态1认证中2认证成功3认证失败',
`certification_time` datetime DEFAULT NULL COMMENT '认证时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务人员认证信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `worker_certification`
--
LOCK TABLES `worker_certification` WRITE;
/*!40000 ALTER TABLE `worker_certification` DISABLE KEYS */;
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1695006954969133057,'服务人员00','110101199307282600','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1695007144950132737,'服务人员01','110101199307282601','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696338624494202882,'服务人员02','110101199307282602','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification` (`id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `certification_status`, `certification_time`, `create_time`, `update_time`) VALUES (1696462691331239937,'服务人员03','110101199307282603','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',2,'2023-09-06 20:18:50','2023-09-06 20:18:49','2023-09-08 16:21:28');
/*!40000 ALTER TABLE `worker_certification` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `worker_certification_audit`
--
DROP TABLE IF EXISTS `worker_certification_audit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `worker_certification_audit` (
`id` bigint NOT NULL COMMENT '主键',
`serve_provider_id` bigint DEFAULT NULL COMMENT '服务人员id',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '姓名',
`id_card_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '身份证号',
`front_img` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '身份证正面',
`back_img` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '身份证反面',
`certification_material` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '证明资料',
`audit_status` int DEFAULT '0' COMMENT '审核状态0未审核1已审核',
`auditor_id` bigint DEFAULT NULL COMMENT '审核人id',
`auditor_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '审核人姓名',
`audit_time` datetime DEFAULT NULL COMMENT '审核时间',
`certification_status` int DEFAULT '1' COMMENT '认证状态1认证中2认证成功3认证失败',
`reject_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '驳回原因',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务人员认证审核表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `worker_certification_audit`
--
LOCK TABLES `worker_certification_audit` WRITE;
/*!40000 ALTER TABLE `worker_certification_audit` DISABLE KEYS */;
INSERT INTO `worker_certification_audit` (`id`, `serve_provider_id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (2,1695006954969133057,'服务人员00','110101199307282600','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:18:50',2,NULL,'2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification_audit` (`id`, `serve_provider_id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (3,1695007144950132737,'服务人员01','110101199307282601','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:18:50',2,NULL,'2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification_audit` (`id`, `serve_provider_id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (4,1696338624494202882,'服务人员02','110101199307282602','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-06 20:18:50',2,NULL,'2023-09-06 20:18:49','2023-09-06 20:18:49');
INSERT INTO `worker_certification_audit` (`id`, `serve_provider_id`, `name`, `id_card_no`, `front_img`, `back_img`, `certification_material`, `audit_status`, `auditor_id`, `auditor_name`, `audit_time`, `certification_status`, `reject_reason`, `create_time`, `update_time`) VALUES (5,1696462691331239937,'服务人员03','110101199307282603','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png','https://yjy-xzbjzfw-oss.oss-cn-hangzhou.aliyuncs.com/e5ce7b4f-81a6-481c-b475-d35996188344.png',1,1674350264389750786,'李四','2023-09-08 16:20:50',2,NULL,'2023-09-06 20:18:49','2023-09-08 16:21:18');
/*!40000 ALTER TABLE `worker_certification_audit` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-12-24 18:38:13

BIN
讲义/OSS配置文档.docx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.