fix: 创建订单会员价修改

This commit is contained in:
张松 2024-11-13 11:23:54 +08:00
parent a5434fcdf7
commit 2a6013f1dd
1 changed files with 3 additions and 3 deletions

View File

@ -570,7 +570,8 @@ public class TbShopTableServiceImpl implements TbShopTableService {
tbCashierCart.setCategoryId(product.getCategoryId());
tbCashierCart.setNote(addCartDTO.getNote());
tbCashierCart.setPlatformType(OrderPlatformTypeEnum.PC.getValue());
tbCashierCart.setIsMember(shopEatTypeInfoDTO.isMemberPrice() && addCartDTO.getVipUserId() == null ? 0 : 1);
// tbCashierCart.setIsMember(shopEatTypeInfoDTO.isMemberPrice() && addCartDTO.getVipUserId() == null ? 0 : 1);
tbCashierCart.setIsMember(addCartDTO.getVipUserId() == null ? 0 : 1);
if (tbCashierCart.getIsMember() == 1) {
tbCashierCart.setMemberPrice(productSku.getMemberPrice());
}
@ -1467,7 +1468,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
for (TbCashierCart cashierCart : fullCashierCarts) {
if (orderInfo != null && shopEatTypeInfoDTO != null) {
cashierCart.setIsMember(orderInfo.getMemberId() == null ? 0 : shopEatTypeInfoDTO.isMemberPrice() ? 1 : 0);
cashierCart.setIsMember(StrUtil.isBlank(orderInfo.getMemberId()) ? 0 : shopEatTypeInfoDTO.isMemberPrice() ? 1 : 0);
}
cashierCart.resetTotalAmount();
@ -2650,7 +2651,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderInfoMapper.updateById(returnOrder);
}
updateStockAndRecord(detailList);
mpOrderDetailService.updateBatchById(detailList);
HashMap<String, Object> data = new HashMap<>();