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 44812240..464dea4b 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 @@ -187,6 +187,14 @@ public class PartnerOwnController extends BaseController { { return success(partnerList.hotGoodsList(partnerId)); } + /** + * 热销商品列表 + */ + @GetMapping("/newHotGoodsList") + public CommonResult newHotGoodsList() + { + return success(partnerList.newHotGoodsList()); + } /** diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/mapper/AppInspectionPartnerMapper.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/mapper/AppInspectionPartnerMapper.java index d3ecb3e2..bed6cd99 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/mapper/AppInspectionPartnerMapper.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/mapper/AppInspectionPartnerMapper.java @@ -20,6 +20,7 @@ import java.util.Map; @Mapper public interface AppInspectionPartnerMapper extends BaseMapper { ShopMallPartners selectById(@Param("id") Long id); + ShopMallPartners selectByIdNew(); IPage partnerList(Page page, @Param("vo") PartnerListQuery partnerListQuery); PartnerListVo shopDetail(PartnerListQuery partnerListQuery); void addSalesNum(@Param("partnerId") Long partnerId); @@ -32,6 +33,7 @@ public interface AppInspectionPartnerMapper extends BaseMapper Integer allAmount(@Param("partnerId") Long partnerId); Integer todayAmount(@Param("partnerId") Long partnerId,@Param("timeStr") String timeStr); List hotGoodsList(@Param("partnerId") Long partnerId,@Param("dateStr")String dateStr); + List newHotGoodsList(@Param("dateStr")String dateStr); IPage manageGoodsList(Page page,@Param("partnerId") Long partnerId, @Param("isListing")String isListing,@Param("goodsTitle") String goodsTitle); IPage orderList(Page page,@Param("partnerId") Long partnerId, @Param("phoneNum") String phoneNum,@Param("title") String title); List getWorkList(@Param("partnerId")Long partnerId, @Param("postId") Long postId, @Param("workName") String workName, @Param("phoneNum")String phoneNum); diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/AppInspectionPartnerService.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/AppInspectionPartnerService.java index b8877b1a..3c998583 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/AppInspectionPartnerService.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/AppInspectionPartnerService.java @@ -49,6 +49,7 @@ public interface AppInspectionPartnerService extends IService JSONObject newChartInfoRatio(String unit); List orderInfo(Long partnerId); List hotGoodsList(Long partnerId); + List newHotGoodsList(); void addGoods(ShopInspectionGoods goods) throws Exception; IPage goodsList(Page page,Long partnerId, String isListing, String goodsTitle); List canUseGoods(Long partnerId); 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 02e8e5e6..0e4d20d1 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 @@ -983,6 +983,11 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl newHotGoodsList() { + String dateStr = DateUtil.format(new Date(), "yyyy-MM-dd"); + return baseMapper.newHotGoodsList(dateStr); + } @Override @Transactional(rollbackFor = Exception.class) diff --git a/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml b/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml index bfaedf75..e19e3ebb 100644 --- a/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml +++ b/dl-module-inspection/src/main/resources/mapper/inspection/AppInspectionPartnerMapper.xml @@ -6,6 +6,9 @@ + +