Ver código fonte

卓美配置修改

yuhongqi 1 mês atrás
pai
commit
1799df0f0e

+ 7 - 5
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreAfterSalesScrmServiceImpl.java

@@ -977,12 +977,14 @@ public class FsStoreAfterSalesScrmServiceImpl implements IFsStoreAfterSalesScrmS
      * @param fsStoreOrderScrm 订单
      */
     private void deletePurchaseLimitRecordsForStoreOrder(FsStoreOrderScrm fsStoreOrderScrm) {
-        Long productId = fsStoreOrderItemMapper.selectProductIdByOrderCode(fsStoreOrderScrm.getOrderCode());
+        List<FsStoreOrderItemVO> fsStoreOrderItemVOS = fsStoreOrderItemMapper.selectFsStoreOrderItemListByOrderId(fsStoreOrderScrm.getId());
+        if (fsStoreOrderItemVOS != null && !fsStoreOrderItemVOS.isEmpty()) {
+            // 减少限购数量
+            for (FsStoreOrderItemVO fsStoreOrderItemVO : fsStoreOrderItemVOS) {
+                purchaseLimitService.decreasePurchaseLimit(fsStoreOrderItemVO.getProductId(), fsStoreOrderScrm.getUserId(), Math.toIntExact(fsStoreOrderItemVO.getNum()));
+            }
+        }
 
-        // 减少限购数量
-        Long userId = fsStoreOrderScrm.getUserId();
-        Integer num = Math.toIntExact(fsStoreOrderScrm.getTotalNum());
-        purchaseLimitService.decreasePurchaseLimit(productId, userId, num);
     }
     @Autowired
     private FsJstAftersalePushScrmMapper fsJstAftersalePushMapper;

+ 2 - 2
fs-service/src/main/resources/application-config-druid-bjzm.yml

@@ -10,8 +10,8 @@ logging:
 wx:
   miniapp:
     configs:
-      - appid: wxd791d5933ed42218   #北京卓美
-        secret: 3d2e220de33d67aeb2140edeec692b73 #北京卓美
+      - appid: wxe67df00c8a1e6bed   #北京卓美
+        secret: 7ded976d7aa1901cf5e73e8da70fb37d #北京卓美
         token: cbnd7lJvkripVOpyTFAna6NAWCxCrvC
         aesKey: HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E
         msgDataFormat: JSON