Commit 5ea264e5 authored by 赵啸非's avatar 赵啸非

添加级联删除事项材料

parent c894b9ad
......@@ -180,13 +180,7 @@ export default {
top2: require("../../assets/img/png_no.2.png"),
top3: require("../../assets/img/png_no.3.png"),
homeInfo: {}, // 首页数据
datumList: [
"多人有限公司新增申请单",
"城镇职工基本养老保险与城乡居民基本养老保险",
"营业执照变更",
"异地养老保险转移",
"个人社保明细打印",
],
datumList: [],
baseTitle: process.env.VUE_APP_API_BASE_title,
};
},
......@@ -219,7 +213,7 @@ export default {
let res = await getHomeInfo({});
let { data, code } = res.data;
if (code === 1) {
data.hotWords = data.hotWords.split(",");
// data.hotWords = data.hotWords.split(",");
this.homeInfo = data;
}
},
......
package com.mortals.xhx.module.home.web;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.UnAuth;
......@@ -151,7 +152,10 @@ public class HomeController extends BaseJsonBodyController {
String busiDesc = "获取首页数据";
int code = VALUE_RESULT_SUCCESS;
try {
List<String> hotwordEntities = hotwordService.find(new HotwordQuery().siteId(homeQueryPdu.getSiteId())).stream().map(HotwordEntity::getHotwords).collect(Collectors.toList());
List<String> hotwordEntities = hotwordService.find(new HotwordQuery().siteId(homeQueryPdu.getSiteId())).stream()
.map(HotwordEntity::getHotwords)
.flatMap(item-> StrUtil.split(item,",".charAt(0)).stream())
.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