From f49d074f651de74c6dc80f0c47c17af5502b8f52 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 8 Jan 2025 16:26:32 +0800 Subject: [PATCH] 1 --- .../controller/PartnerOwnController.java | 10 +-- .../impl/AppInspectionPartnerServiceImpl.java | 70 +++++++++---------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java index e417d375..19da2a91 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/controller/PartnerOwnController.java @@ -229,11 +229,11 @@ public class PartnerOwnController extends BaseController { public CommonResult goodsList(Long partnerId, String isListing, String goodsTitle, @RequestParam(value = "pageNum", required = false, defaultValue = "1") Integer pageNum, @RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize) { - LoginUser user = SecurityFrameworkUtils.getLoginUser(); - ShopMallPartners partners = partnerList.getById(partnerId); - if (!partners.getUserId().equals(user.getId())) { - return null; - } +// LoginUser user = SecurityFrameworkUtils.getLoginUser(); +// ShopMallPartners partners = partnerList.getById(partnerId); +// if (!partners.getUserId().equals(user.getId())) { +// return null; +// } Page page = new Page<>(pageNum, pageSize); IPage list = partnerList.goodsList(page, partnerId, isListing, goodsTitle); return success(list); diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionPartnerServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionPartnerServiceImpl.java index e6d3effc..301acfc2 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionPartnerServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/AppInspectionPartnerServiceImpl.java @@ -258,11 +258,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl categories =new ArrayList<>(); List series =new ArrayList<>(); @@ -440,11 +440,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl categories =new ArrayList<>(); List series =new ArrayList<>(); @@ -538,11 +538,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl categories =new ArrayList<>(); List series =new ArrayList<>(); @@ -603,11 +603,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl categories =new ArrayList<>(); List series =new ArrayList<>(); @@ -784,11 +784,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl categories =new ArrayList<>(); List series =new ArrayList<>(); @@ -975,11 +975,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl orderInfo(Long partnerId) { - LoginUser user = SecurityFrameworkUtils.getLoginUser(); - ShopMallPartners partners = baseMapper.selectById(partnerId); - if (!partners.getUserId().equals(user.getId())){ - return null; - } +// LoginUser user = SecurityFrameworkUtils.getLoginUser(); +// ShopMallPartners partners = baseMapper.selectById(partnerId); +// if (!partners.getUserId().equals(user.getId())){ +// return null; +// } LambdaQueryWrapper queryWrapper =new LambdaQueryWrapper<>(); queryWrapper.eq(OrderInfo::getPartnerId,partnerId).isNotNull(OrderInfo::getValidationTime).orderByDesc(OrderInfo::getValidationTime).last("limit 8"); List list = orderService.list(queryWrapper); @@ -988,11 +988,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl hotGoodsList(Long partnerId) { - LoginUser user = SecurityFrameworkUtils.getLoginUser(); - ShopMallPartners partners = baseMapper.selectById(partnerId); - if (!partners.getUserId().equals(user.getId())){ - return null; - } +// LoginUser user = SecurityFrameworkUtils.getLoginUser(); +// ShopMallPartners partners = baseMapper.selectById(partnerId); +// if (!partners.getUserId().equals(user.getId())){ +// return null; +// } String dateStr = DateUtil.format(new Date(), "yyyy-MM-dd"); return baseMapper.hotGoodsList(partnerId,dateStr); }