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

添加级联删除事项材料

parent 2f08fdb5
......@@ -33,6 +33,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
import java.util.stream.Collectors;
@RestController
@RequestMapping("home")
......@@ -150,7 +151,7 @@ public class HomeController extends BaseJsonBodyController {
String busiDesc = "获取首页数据";
int code = VALUE_RESULT_SUCCESS;
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);
MatterQuery matterQuery = new MatterQuery();
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