Browse Source

轮播图恢复

LiRong 3 months ago
parent
commit
3b3180e260

+ 13 - 2
leromro-core/src/main/java/com/leromro/core/controller/LSlideshowController.java

@@ -74,12 +74,23 @@ public class LSlideshowController extends BaseController
      */
     @ApiOperation("小程序端根据轮播图类型查询")
  //   @PreAuthorize("@ss.hasPermi('core:slideshow:query')")
-    @GetMapping(value = "/{slideshowType}")
-    public R<Slideshow> getInfo(@PathVariable("slideshowType") Long slideshowType)
+    @GetMapping(value = "/type/{slideshowType}")
+    public R<Slideshow> getInfo1(@PathVariable("slideshowType") Long slideshowType)
     {
         return R.ok(lSlideshowService.selectLSlideshowBySlideshowType(slideshowType));
     }
 
+    /**
+     * 获取主页轮播图或后续其他广告图片详细信息
+     */
+    @ApiOperation("小程序端根据轮播图id查询")
+    //   @PreAuthorize("@ss.hasPermi('core:slideshow:query')")
+    @GetMapping(value = "/{slideshowId}")
+    public R<Slideshow> getInfo(@PathVariable("slideshowId") Long slideshowId)
+    {
+        return R.ok(lSlideshowService.selectLSlideshowBySlideshowId(slideshowId));
+    }
+
     /**
      * 新增主页轮播图或后续其他广告图片
      */

+ 2 - 0
leromro-core/src/main/java/com/leromro/core/service/ILSlideshowService.java

@@ -64,4 +64,6 @@ public interface ILSlideshowService extends IService<Slideshow>
     R createSlideshow(Slideshow slideshow);
 
     R StartUsingSlideshow(Slideshow slideshow);
+
+    Slideshow selectLSlideshowBySlideshowId(Long slideshowId);
 }

+ 9 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/LSlideshowServiceImpl.java

@@ -154,4 +154,13 @@ public class LSlideshowServiceImpl extends ServiceImpl<LSlideshowMapper, Slidesh
         }
     }
 
+    /**
+     * @param slideshowId
+     * @return
+     */
+    @Override
+    public Slideshow selectLSlideshowBySlideshowId(Long slideshowId) {
+        return lSlideshowMapper.selectById(slideshowId);
+    }
+
 }

+ 1 - 1
leromro-core/src/main/resources/mapper/core/VolunteerInfoMapper.xml

@@ -95,7 +95,7 @@
             parameterType="com.leromro.core.domain.dto.VolunteerListDTO">
         select  lbm2.business_management_id as id,lbm2.parent_id,lbm2.business_name,lbm2.business_tier_name,lbm2.business_icon,lvi.project_type_name
         from l_volunteer_info lvi left join l_business_management  lbm2 on lvi.business_management_id = lbm2.business_management_id
-        where lvi.app_status = 2  and lvi.name like '%刘%'
+        where lvi.app_status = 2
         AND EXISTS (
         SELECT 1
         FROM l_volunteer_work_date lvw