充值修改
This commit is contained in:
@@ -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("充值失败 该店铺不在充值店铺列表");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user