充值修改

This commit is contained in:
张松
2025-09-27 14:16:51 +08:00
parent daa7ad95cd
commit 3c9e8b93a7
2 changed files with 3 additions and 6 deletions

View File

@@ -39,10 +39,7 @@ import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
import java.util.stream.Collectors;
/**
@@ -141,7 +138,7 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
@Override
public BigDecimal checkRecharge(Long mainShopId, Long shopId, Long userId, Long rechargeDetailId, BigDecimal money) {
MkShopRechargeVO rechargeVO = detail(mainShopId);
if ("part".equals(rechargeVO.getUseType()) && !rechargeVO.getShopIdList().contains(shopId)) {
if (!Objects.equals(mainShopId, shopId) && "part".equals(rechargeVO.getUseType()) && !rechargeVO.getShopIdList().contains(shopId)) {
throw new CzgException("充值失败 该店铺不在充值店铺列表");
}