Commit 73c676e3a67a145267d389f91ceba13ca2e74ba7
Merge remote-tracking branch 'origin/feature_v20240912' into feature_v20240912
Showing
1 changed file
with
4 additions
and
2 deletions
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/ShopCartImpl.java
... | ... | @@ -245,8 +245,10 @@ public class ShopCartImpl implements IShopCartService { |
245 | 245 | } |
246 | 246 | //存在相同商品信息,对商品信息进行更新操作 |
247 | 247 | ShopCartMessage shopCartMessageOld = shopCartMessages.get(0); |
248 | - //效验最大数量 | |
249 | - checkMaxProductWeight(shopCartMessageDto,shopCartMessageOld); | |
248 | + //效验最大数量 新增是效验,批量保存时不做修改 | |
249 | + if(checkflag){ | |
250 | + checkMaxProductWeight(shopCartMessageDto,shopCartMessageOld); | |
251 | + } | |
250 | 252 | shopCartMessageService.updateByOld(shopCartMessageOld, shopCartDto.getShopCartMessageDto(),shopCartDto.getBo()); |
251 | 253 | } |
252 | 254 | ... | ... |