| | |
| | | cIds.add(pointsMerchandiseCity.getPointsMerchandiseId()); |
| | | } |
| | | |
| | | if (cIds.size()>0) { |
| | | // if (cIds.size()>0) { |
| | | |
| | | List<PointsMerchandise> merchandises = pmdsService.list(new QueryWrapper<PointsMerchandise>() |
| | | .eq("state", 1) |
| | | .eq("shelves", 1).in("id", cIds) |
| | | .eq("shelves", 1) |
| | | .gt("endTime", new Date())); |
| | | if (merchandises.size() > 0){ |
| | | for (PointsMerchandise merchandise : merchandises) { |
| | |
| | | integralCommodity.setGoodsType(merchandise.getType()); |
| | | commodity.add(integralCommodity); |
| | | } |
| | | } |
| | | // } |
| | | } |
| | | |
| | | System.out.println(commodity); |
| | |
| | | |
| | | // Print the result |
| | | if (isSameDate) { |
| | | |
| | | } else { |
| | | System.out.println("The two dates do not have the same date."); |
| | | detailsResponse.setUseStatus(3); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | }else { |
| | | detailsVo.setUseType(1); |
| | | detailsVo.setWriteOffTime(simpleDateFormat.format(byId.getVerificationTime())); |
| | | StoreDetailOfCourse courseOfStore = stoClient.getCourseOfStore(byId.getStoreId()); |
| | | detailsVo.setWriteOffName(courseOfStore.getStoreName()); |
| | | if (byId.getStoreId()!=null) { |
| | | StoreDetailOfCourse courseOfStore = stoClient.getCourseOfStore(byId.getStoreId()); |
| | | detailsVo.setWriteOffName(courseOfStore.getStoreName()); |
| | | } |
| | | } |
| | | switch (pmdsServiceById.getUseScope()){ |
| | | case 1: |