From bfbfe7d5fd6c90d5f7359762223ce4bd1cc7cfa1 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期一, 15 八月 2022 09:56:49 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/lyq_battery_shop' into diandongche --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsAdvServiceImpl.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsAdvServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsAdvServiceImpl.java index befc432..0f72e5b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsAdvServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComOpsAdvServiceImpl.java @@ -126,9 +126,10 @@ * @return 广告列表 */ @Override - public R listAdvertisement() { + public R listAdvertisement(Integer type) { List<ComOpsAdvDO> comOpsAdvDOS = comOpsAdvDAO - .selectList(new QueryWrapper<ComOpsAdvDO>().last(" where SYSDATE() BETWEEN on_at and off_at ")); + .selectList(new QueryWrapper<ComOpsAdvDO>().lambda().eq(ComOpsAdvDO::getPosId,type) + .last(" and SYSDATE() BETWEEN on_at and off_at ")); List<ComOpsAdvVO> comOpsAdvVOS = new ArrayList<>(); if (!ObjectUtils.isEmpty(comOpsAdvDOS)) { comOpsAdvDOS.forEach(comOpsAdvDO -> { -- Gitblit v1.7.1