fix[订单模块]:订单状态等逻辑
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ public class OrderController {
|
|||||||
}else {
|
}else {
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
Long count = orderService.getOrderCountByStatus(OrderStatus.PAID.getId());
|
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("time",Math.multiplyExact(count,execTime));
|
||||||
map.put("price",price);
|
map.put("price",price);
|
||||||
return Result.succeed(map,"获取成功");
|
return Result.succeed(map,"获取成功");
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ mybatis-plus:
|
|||||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||||
#实体扫描,多个package用逗号或者分号分隔
|
#实体扫描,多个package用逗号或者分号分隔
|
||||||
typeAliasesPackage: com.central.device.model
|
typeAliasesPackage: com.central.device.model
|
||||||
configuration:
|
# configuration:
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
global-config:
|
global-config:
|
||||||
db-config:
|
db-config:
|
||||||
id-type: auto
|
id-type: auto
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ server:
|
|||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: order-center
|
name: order-center
|
||||||
# cloud:
|
cloud:
|
||||||
# nacos:
|
nacos:
|
||||||
# discovery:
|
discovery:
|
||||||
# ip: 81.70.164.178
|
ip: 81.70.164.178
|
||||||
# cloud:
|
# cloud:
|
||||||
# nacos:
|
# nacos:
|
||||||
# discovery:
|
# discovery:
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
########################## bootstrap级别通用配置 ##########################
|
########################## bootstrap级别通用配置 ##########################
|
||||||
# 默认开发环境
|
# 默认开发环境
|
||||||
spring.profiles.active=dev
|
spring.profiles.active=prod
|
||||||
|
|
||||||
##### nacos(注册中心和配置中心)地址
|
##### nacos(注册中心和配置中心)地址
|
||||||
#spring.cloud.nacos.server-addr=47.94.136.130:8848
|
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=127.0.0.1:8848
|
||||||
spring.cloud.nacos.username=nacos
|
spring.cloud.nacos.username=nacos
|
||||||
spring.cloud.nacos.password=nacos
|
spring.cloud.nacos.password=nacos
|
||||||
spring.cloud.nacos.config.file-extension=yml
|
spring.cloud.nacos.config.file-extension=yml
|
||||||
|
|||||||
Reference in New Issue
Block a user