fix[订单模块]:订单状态等逻辑
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user