Commit c894b9ad authored by 赵啸非's avatar 赵啸非

添加级联删除事项材料

parent 2f08fdb5
...@@ -33,6 +33,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -33,6 +33,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.*; import java.util.*;
import java.util.stream.Collectors;
@RestController @RestController
@RequestMapping("home") @RequestMapping("home")
...@@ -150,7 +151,7 @@ public class HomeController extends BaseJsonBodyController { ...@@ -150,7 +151,7 @@ public class HomeController extends BaseJsonBodyController {
String busiDesc = "获取首页数据"; String busiDesc = "获取首页数据";
int code = VALUE_RESULT_SUCCESS; int code = VALUE_RESULT_SUCCESS;
try { try {
List<HotwordEntity> hotwordEntities = hotwordService.find(new HotwordQuery().siteId(homeQueryPdu.getSiteId())); List<String> hotwordEntities = hotwordService.find(new HotwordQuery().siteId(homeQueryPdu.getSiteId())).stream().map(HotwordEntity::getHotwords).collect(Collectors.toList());
model.put("hotWords", hotwordEntities); model.put("hotWords", hotwordEntities);
MatterQuery matterQuery = new MatterQuery(); MatterQuery matterQuery = new MatterQuery();
matterQuery.setSiteId(homeQueryPdu.getSiteId()); matterQuery.setSiteId(homeQueryPdu.getSiteId());
......
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