liujie
2023-10-17 a1e4cfc3de4f3f3f3956b769bc7af40d097c8a4c
cloud-server-activity/src/main/java/com/dsh/activity/controller/PointMercharsController.java
@@ -213,12 +213,12 @@
        list = pmdsService.list(new QueryWrapper<PointsMerchandise>()
                .eq("state", 1)
                .eq("shelves",1));
                .eq("shelves",1).le("startTime",new Date()).ge("endTime",new Date()));
        if (list.size() > 0 ){
            Iterator<PointsMerchandise> iterator = list.iterator();
            while (iterator.hasNext()) {
                PointsMerchandise merchandise = iterator.next();
                if (merchandise.getUseScope() == 2 && (!Objects.equals(merchandise.getCityCode(), cityCode) && !Objects.equals(merchandise.getProvinceCode(), provinceCode))) {
                if (merchandise.getUseScope() == 2 && (!cityCode.equals(merchandise.getCityCode()) || !provinceCode.equals(merchandise.getProvinceCode()))) {
                    iterator.remove(); // 移除符合条件的商品
                }
            }