Commit 5dfd0754013ea9cccb5dbf3d97e588e3ec232823
1 parent
c6e0d69af0
Exists in
master
and in
8 other branches
提交代码
Showing 1 changed file with 6 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/LisCrisisItemController.java
View file @
5dfd075
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | 3 | import com.lyms.platform.biz.dal.LisCrisisItemDao; |
4 | -import com.lyms.platform.biz.dal.impl.LisCrisisItemDaoImpl; | |
5 | 4 | import com.lyms.platform.biz.service.LisCrisisItemService; |
6 | -import com.lyms.platform.common.result.IdTextModel; | |
5 | +import com.lyms.platform.common.annotation.TokenRequired; | |
7 | 6 | import com.lyms.platform.common.utils.DateUtil; |
8 | 7 | import com.lyms.platform.common.utils.ResultUtils; |
9 | 8 | import com.lyms.platform.pojo.LisCrisisItem; |
10 | 9 | |
11 | 10 | |
... | ... | @@ -34,14 +33,17 @@ |
34 | 33 | |
35 | 34 | |
36 | 35 | @RequestMapping(value = "/lisCrisisItems", method = RequestMethod.GET) |
37 | -// @TokenRequired | |
36 | + @TokenRequired | |
38 | 37 | public void getEmergenceTreatments(HttpServletResponse response, |
39 | 38 | @RequestParam("page") int page, |
40 | - @RequestParam("limit") int limit){ | |
39 | + @RequestParam("limit") int limit, | |
40 | + @RequestParam(value = "id",required = false) String id | |
41 | + ){ | |
41 | 42 | LisCrisisItemQuery query = new LisCrisisItemQuery(); |
42 | 43 | query.setSort("publishTime desc"); |
43 | 44 | query.setPage(page); |
44 | 45 | query.setLimit(limit); |
46 | + query.setId(id); | |
45 | 47 | List<LisCrisisItem> lisCrisisItemList = lisCrisisItemService.query(query); |
46 | 48 | |
47 | 49 | List<Map> list = new ArrayList<>(); |