Commit 38691092 by rongkailun

【修改】首页大小轮播列表

parent ab288e95
......@@ -158,5 +158,15 @@ public class IndexCarouselManageController extends AbstractController {
}
/**
* 列表
*/
@RequestMapping("/indexCarouselManageList")
public R indexCarouselManageList(@RequestBody IndexCarouselManageParams indexCarouselManage){
Page<IndexCarouselManageEntity> page = this.indexCarouselManageService.indexCarouselManageList(indexCarouselManage,
new Page(indexCarouselManage.getPage(),indexCarouselManage.getLimit()));
PageUtils pageUtils = new PageUtils(page);
return R.ok().put("page", pageUtils);
}
}
......@@ -20,4 +20,6 @@ import java.util.List;
public interface IndexCarouselManageDao extends BaseMapper<IndexCarouselManageEntity> {
List<IndexCarouselManageEntity> selectIndexCarouselManageList(@Param("indexCarouselManage") IndexCarouselManageParams indexCarouselManage, Page page);
List<IndexCarouselManageEntity> indexCarouselManageList(@Param("indexCarouselManage") IndexCarouselManageParams indexCarouselManage, Page page);
}
......@@ -22,4 +22,5 @@ public class IndexCarouselManageParams extends PageParams {
private Date startTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
private String type;
}
......@@ -33,5 +33,7 @@ public interface IndexCarouselManageService extends IService<IndexCarouselManage
R verifyIndexCarouselManage(IndexCarouselManageEntity indexCarouselManage, SysUserEntity user);
Page<IndexCarouselManageEntity> selectIndexCarouselManageList(IndexCarouselManageParams indexCarouselManage, Page page);
Page<IndexCarouselManageEntity> indexCarouselManageList(IndexCarouselManageParams indexCarouselManage, Page page);
}
......@@ -116,4 +116,11 @@ public class IndexCarouselManageServiceImpl extends ServiceImpl<IndexCarouselMan
return page;
}
@Override
public Page<IndexCarouselManageEntity> indexCarouselManageList(IndexCarouselManageParams indexCarouselManage, Page page) {
List<IndexCarouselManageEntity> list = this.indexCarouselManageDao.indexCarouselManageList(indexCarouselManage,page);
page.setRecords(list);
return page;
}
}
\ No newline at end of file
......@@ -54,4 +54,17 @@
ORDER BY
t.levels desc,t.starttime_index DESC,t.id desc
</select>
<select id="indexCarouselManageList" resultMap="indexCarouselManageMap">
SELECT
*
FROM
index_carousel_manage
WHERE
levels > 0
AND checkflag_index >= 0
AND classnum = #{indexCarouselManage.type}
ORDER BY
id DESC
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment