Commit 31627be4 authored by 赵啸非's avatar 赵啸非

添加首页统计报表

parent 3ef31373
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<el-table-column label="标签名称" prop="labelId"> <el-table-column label="标签名称" prop="labelId">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.labelId" placeholder="请选择标签名称" > <el-select v-model="scope.row.labelId+''" placeholder="请选择标签名称" >
<el-option <el-option
v-for="($label, $value) in dict.labels" v-for="($label, $value) in dict.labels"
:key="$value" :key="$value"
...@@ -204,6 +204,7 @@ ...@@ -204,6 +204,7 @@
open: false, open: false,
direction:"rtl", direction:"rtl",
toString:[ toString:[
"labelId"
], ],
toDate:[ toDate:[
"establishDate", "establishDate",
......
...@@ -137,7 +137,7 @@ public class CompanyServiceImpl extends AbstractCRUDServiceImpl<CompanyDao, Comp ...@@ -137,7 +137,7 @@ public class CompanyServiceImpl extends AbstractCRUDServiceImpl<CompanyDao, Comp
if (!ObjectUtils.isEmpty(entity.getCompanyPatentsList())) { if (!ObjectUtils.isEmpty(entity.getCompanyPatentsList())) {
Long[] companyPantentIds = companyPatentService.find(new CompanyPatentQuery().companyId(entity.getId())).stream().map(CompanyPatentEntity::getId).toArray(Long[]::new); Long[] companyPantentIds = companyPatentService.find(new CompanyPatentQuery().companyId(entity.getId())).stream().map(CompanyPatentEntity::getId).toArray(Long[]::new);
companyPatentService.remove(companyPantentIds, context); companyPatentService.remove(companyPantentIds, context);
entity.getCompanyLabelsList().stream().peek(item -> { entity.getCompanyPatentsList().stream().peek(item -> {
item.setCompanyId(entity.getId()); item.setCompanyId(entity.getId());
item.setCreateUserId(this.getContextUserId(context)); item.setCreateUserId(this.getContextUserId(context));
item.setCreateTime(new Date()); item.setCreateTime(new Date());
......
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