fix[订单模块]:订单状态等逻辑

This commit is contained in:
2025-02-08 08:21:33 +08:00
parent d97f2897b7
commit f0a716feb4
4 changed files with 10 additions and 10 deletions
@@ -236,7 +236,7 @@ public class OrderController {
}else {
Map<String, Object> map = new HashMap<>();
Long count = orderService.getOrderCountByStatus(OrderStatus.PAID.getId());
map.put("count", count);
map.put("count", count == 0 ? -1 : count);
map.put("time",Math.multiplyExact(count,execTime));
map.put("price",price);
return Result.succeed(map,"获取成功");
@@ -10,8 +10,8 @@ mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.central.device.model
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# configuration:
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: auto
@@ -4,10 +4,10 @@ server:
spring:
application:
name: order-center
# cloud:
# nacos:
# discovery:
# ip: 81.70.164.178
cloud:
nacos:
discovery:
ip: 81.70.164.178
# cloud:
# nacos:
# discovery:
@@ -1,10 +1,10 @@
########################## bootstrap级别通用配置 ##########################
# 默认开发环境
spring.profiles.active=dev
spring.profiles.active=prod
##### nacos(注册中心和配置中心)地址
#spring.cloud.nacos.server-addr=47.94.136.130:8848
spring.cloud.nacos.server-addr=127.0.0.1:8848
spring.cloud.nacos.server-addr=47.94.136.130:8848
#spring.cloud.nacos.server-addr=127.0.0.1:8848
spring.cloud.nacos.username=nacos
spring.cloud.nacos.password=nacos
spring.cloud.nacos.config.file-extension=yml