Commit e2f349129529abff0ab19f9cca955f8ca669a5df

Authored by YunaiV
1 parent 714f0be5

【代码修复】MALL:更新库存时,同时更新销量,和 taobao 保持一致的逻辑

... ... @@ -15,12 +15,12 @@
15 15 <!-- 各种 module 拓展 -->
16 16 <module>yudao-module-system</module>
17 17 <module>yudao-module-infra</module>
18   -<!-- <module>yudao-module-member</module>-->
  18 + <module>yudao-module-member</module>
19 19 <!-- <module>yudao-module-bpm</module>-->
20 20 <!-- <module>yudao-module-report</module>-->
21 21 <!-- <module>yudao-module-mp</module>-->
22   -<!-- <module>yudao-module-pay</module>-->
23   -<!-- <module>yudao-module-mall</module>-->
  22 + <module>yudao-module-pay</module>
  23 + <module>yudao-module-mall</module>
24 24 <!-- <module>yudao-module-crm</module>-->
25 25 <!-- <module>yudao-module-erp</module>-->
26 26 <!-- <module>yudao-module-ai</module>-->
... ...
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/controller/app/spu/AppProductSpuController.java
... ... @@ -112,7 +112,7 @@ public class AppProductSpuController {
112 112 productBrowseHistoryService.createBrowseHistory(getLoginUserId(), id);
113 113  
114 114 // 拼接返回
115   - spu.setBrowseCount(spu.getBrowseCount() + spu.getVirtualSalesCount());
  115 + spu.setSalesCount(spu.getSalesCount() + spu.getVirtualSalesCount());
116 116 AppProductSpuDetailRespVO spuVO = BeanUtils.toBean(spu, AppProductSpuDetailRespVO.class)
117 117 .setSkus(BeanUtils.toBean(skus, AppProductSpuDetailRespVO.Sku.class));
118 118 // 处理 vip 价格
... ...
yudao-server/pom.xml
... ... @@ -33,11 +33,11 @@
33 33 </dependency>
34 34  
35 35 <!-- 会员中心。默认注释,保证编译速度 -->
36   -<!-- <dependency>-->
37   -<!-- <groupId>cn.iocoder.boot</groupId>-->
38   -<!-- <artifactId>yudao-module-member-biz</artifactId>-->
39   -<!-- <version>${revision}</version>-->
40   -<!-- </dependency>-->
  36 + <dependency>
  37 + <groupId>cn.iocoder.boot</groupId>
  38 + <artifactId>yudao-module-member-biz</artifactId>
  39 + <version>${revision}</version>
  40 + </dependency>
41 41  
42 42 <!-- 数据报表。默认注释,保证编译速度 -->
43 43 <!-- <dependency>-->
... ... @@ -52,11 +52,11 @@
52 52 <!-- <version>${revision}</version>-->
53 53 <!-- </dependency>-->
54 54 <!-- 支付服务。默认注释,保证编译速度 -->
55   -<!-- <dependency>-->
56   -<!-- <groupId>cn.iocoder.boot</groupId>-->
57   -<!-- <artifactId>yudao-module-pay-biz</artifactId>-->
58   -<!-- <version>${revision}</version>-->
59   -<!-- </dependency>-->
  55 + <dependency>
  56 + <groupId>cn.iocoder.boot</groupId>
  57 + <artifactId>yudao-module-pay-biz</artifactId>
  58 + <version>${revision}</version>
  59 + </dependency>
60 60  
61 61 <!-- 微信公众号模块。默认注释,保证编译速度 -->
62 62 <!-- <dependency>-->
... ... @@ -66,26 +66,26 @@
66 66 <!-- </dependency>-->
67 67  
68 68 <!-- 商城相关模块。默认注释,保证编译速度-->
69   -<!-- <dependency>-->
70   -<!-- <groupId>cn.iocoder.boot</groupId>-->
71   -<!-- <artifactId>yudao-module-promotion-biz</artifactId>-->
72   -<!-- <version>${revision}</version>-->
73   -<!-- </dependency>-->
74   -<!-- <dependency>-->
75   -<!-- <groupId>cn.iocoder.boot</groupId>-->
76   -<!-- <artifactId>yudao-module-product-biz</artifactId>-->
77   -<!-- <version>${revision}</version>-->
78   -<!-- </dependency>-->
79   -<!-- <dependency>-->
80   -<!-- <groupId>cn.iocoder.boot</groupId>-->
81   -<!-- <artifactId>yudao-module-trade-biz</artifactId>-->
82   -<!-- <version>${revision}</version>-->
83   -<!-- </dependency>-->
84   -<!-- <dependency>-->
85   -<!-- <groupId>cn.iocoder.boot</groupId>-->
86   -<!-- <artifactId>yudao-module-statistics-biz</artifactId>-->
87   -<!-- <version>${revision}</version>-->
88   -<!-- </dependency>-->
  69 + <dependency>
  70 + <groupId>cn.iocoder.boot</groupId>
  71 + <artifactId>yudao-module-promotion-biz</artifactId>
  72 + <version>${revision}</version>
  73 + </dependency>
  74 + <dependency>
  75 + <groupId>cn.iocoder.boot</groupId>
  76 + <artifactId>yudao-module-product-biz</artifactId>
  77 + <version>${revision}</version>
  78 + </dependency>
  79 + <dependency>
  80 + <groupId>cn.iocoder.boot</groupId>
  81 + <artifactId>yudao-module-trade-biz</artifactId>
  82 + <version>${revision}</version>
  83 + </dependency>
  84 + <dependency>
  85 + <groupId>cn.iocoder.boot</groupId>
  86 + <artifactId>yudao-module-statistics-biz</artifactId>
  87 + <version>${revision}</version>
  88 + </dependency>
89 89  
90 90 <!-- CRM 相关模块。默认注释,保证编译速度 -->
91 91 <!-- <dependency>-->
... ...