Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
think-tank
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
张京坤
think-tank
Commits
1ce66c12
提交
1ce66c12
authored
9月 10, 2024
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加运营状态、人员规模字段以及es节点变更
上级
31defda5
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
29 行增加
和
12 行删除
+29
-12
ThinktankBasicInfoController.java
...sn/thinktank/controller/ThinktankBasicInfoController.java
+4
-2
ThinktankBasicInfo.java
...in/java/com/zzsn/thinktank/entity/ThinktankBasicInfo.java
+6
-0
ThinkTankFileVO.java
src/main/java/com/zzsn/thinktank/vo/ThinkTankFileVO.java
+4
-0
ThinktankBasicInfoVo.java
...main/java/com/zzsn/thinktank/vo/ThinktankBasicInfoVo.java
+5
-1
application.yml
src/main/resources/application.yml
+3
-3
ThinktankBasicInfoMapper.xml
src/main/resources/mapper/ThinktankBasicInfoMapper.xml
+7
-6
没有找到文件。
src/main/java/com/zzsn/thinktank/controller/ThinktankBasicInfoController.java
浏览文件 @
1ce66c12
...
@@ -144,10 +144,12 @@ public class ThinktankBasicInfoController {
...
@@ -144,10 +144,12 @@ public class ThinktankBasicInfoController {
header
.
put
(
"官网"
,
"officialWebsite"
);
header
.
put
(
"官网"
,
"officialWebsite"
);
header
.
put
(
"* 所属国家"
,
"belongCountry"
);
header
.
put
(
"* 所属国家"
,
"belongCountry"
);
header
.
put
(
"语言"
,
"lang"
);
header
.
put
(
"语言"
,
"lang"
);
header
.
put
(
"运营状态"
,
"operateStatus"
);
header
.
put
(
"营利性质"
,
"profitNature"
);
header
.
put
(
"营利性质"
,
"profitNature"
);
header
.
put
(
"智库性质"
,
"nature"
);
header
.
put
(
"智库性质"
,
"nature"
);
header
.
put
(
"研究领域"
,
"tagName"
);
header
.
put
(
"研究领域"
,
"tagName"
);
header
.
put
(
"影响力和地位"
,
"influencePosition"
);
header
.
put
(
"影响力和地位"
,
"influencePosition"
);
header
.
put
(
"人员规模"
,
"staffSize"
);
header
.
put
(
"智库规模"
,
"scale"
);
header
.
put
(
"智库规模"
,
"scale"
);
header
.
put
(
"成果类型"
,
"achievementType"
);
header
.
put
(
"成果类型"
,
"achievementType"
);
header
.
put
(
"资金来源"
,
"fundsSource"
);
header
.
put
(
"资金来源"
,
"fundsSource"
);
...
@@ -189,8 +191,8 @@ public class ThinktankBasicInfoController {
...
@@ -189,8 +191,8 @@ public class ThinktankBasicInfoController {
List
<
ThinktankBasicInfo
>
thinkTankBasicInfos
=
thinktankBasicInfoService
.
exportListByCondition
(
one
.
getId
(),
one
.
getCodeId
(),
List
<
ThinktankBasicInfo
>
thinkTankBasicInfos
=
thinktankBasicInfoService
.
exportListByCondition
(
one
.
getId
(),
one
.
getCodeId
(),
one
.
getTypeId
(),
one
.
getThinktankName
(),
one
.
getTagId
(),
one
.
getKeyword
());
one
.
getTypeId
(),
one
.
getThinktankName
(),
one
.
getTagId
(),
one
.
getKeyword
());
if
(
CollectionUtils
.
isNotEmpty
(
thinkTankBasicInfos
))
{
if
(
CollectionUtils
.
isNotEmpty
(
thinkTankBasicInfos
))
{
String
[]
arr
=
new
String
[]{
"智库机构id"
,
"智库机构编码"
,
"中文全称"
,
"中文简称"
,
"英文全称"
,
"英文简称"
,
"官网"
,
"所属国家"
,
"语言"
,
"营利性质"
,
String
[]
arr
=
new
String
[]{
"智库机构id"
,
"智库机构编码"
,
"中文全称"
,
"中文简称"
,
"英文全称"
,
"英文简称"
,
"官网"
,
"所属国家"
,
"语言"
,
"
经营状态"
,
"
营利性质"
,
"智库性质"
,
"研究领域"
,
"影响力和地位"
,
"智库规模"
,
"成果类型"
,
"资金来源"
,
"原文全称"
,
"原文简称"
,
"简介"
,
"成立时间"
,
"是否收费(1-是;0-否)"
,
"智库性质"
,
"研究领域"
,
"影响力和地位"
,
"
人员规模"
,
"
智库规模"
,
"成果类型"
,
"资金来源"
,
"原文全称"
,
"原文简称"
,
"简介"
,
"成立时间"
,
"是否收费(1-是;0-否)"
,
"地址"
,
"创办单位/所属单位"
};
"地址"
,
"创办单位/所属单位"
};
XSSFWorkbook
workbook
=
new
XSSFWorkbook
();
XSSFWorkbook
workbook
=
new
XSSFWorkbook
();
//基本信息
//基本信息
...
...
src/main/java/com/zzsn/thinktank/entity/ThinktankBasicInfo.java
浏览文件 @
1ce66c12
...
@@ -83,12 +83,16 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
...
@@ -83,12 +83,16 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
//语言
//语言
private
String
lang
;
private
String
lang
;
//运营状态
private
String
operateStatus
;
//营利性质
//营利性质
private
String
profitNature
;
private
String
profitNature
;
//智库性质
//智库性质
private
String
nature
;
private
String
nature
;
//影响力和地位
//影响力和地位
private
String
influencePosition
;
private
String
influencePosition
;
//人员规模
private
String
staffSize
;
//智库规模
//智库规模
private
String
scale
;
private
String
scale
;
//成果类型
//成果类型
...
@@ -107,10 +111,12 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
...
@@ -107,10 +111,12 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
list
.
add
(
getValue
(
officialWebsite
));
list
.
add
(
getValue
(
officialWebsite
));
list
.
add
(
getValue
(
belongCountry
));
list
.
add
(
getValue
(
belongCountry
));
list
.
add
(
getValue
(
lang
));
list
.
add
(
getValue
(
lang
));
list
.
add
(
getValue
(
operateStatus
));
list
.
add
(
getValue
(
profitNature
));
list
.
add
(
getValue
(
profitNature
));
list
.
add
(
getValue
(
nature
));
list
.
add
(
getValue
(
nature
));
list
.
add
(
getValue
(
tagName
));
list
.
add
(
getValue
(
tagName
));
list
.
add
(
getValue
(
influencePosition
));
list
.
add
(
getValue
(
influencePosition
));
list
.
add
(
getValue
(
staffSize
));
list
.
add
(
getValue
(
scale
));
list
.
add
(
getValue
(
scale
));
list
.
add
(
getValue
(
achievementType
));
list
.
add
(
getValue
(
achievementType
));
list
.
add
(
getValue
(
fundsSource
));
list
.
add
(
getValue
(
fundsSource
));
...
...
src/main/java/com/zzsn/thinktank/vo/ThinkTankFileVO.java
浏览文件 @
1ce66c12
...
@@ -29,6 +29,8 @@ public class ThinkTankFileVO {
...
@@ -29,6 +29,8 @@ public class ThinkTankFileVO {
private
String
belongCountry
;
private
String
belongCountry
;
//语言
//语言
private
String
lang
;
private
String
lang
;
//运营状态
private
String
operateStatus
;
//营利性质
//营利性质
private
String
profitNature
;
private
String
profitNature
;
//智库性质
//智库性质
...
@@ -37,6 +39,8 @@ public class ThinkTankFileVO {
...
@@ -37,6 +39,8 @@ public class ThinkTankFileVO {
private
String
tagName
;
private
String
tagName
;
//影响力和地位
//影响力和地位
private
String
influencePosition
;
private
String
influencePosition
;
//人员规模
private
String
staffSize
;
//智库规模
//智库规模
private
String
scale
;
private
String
scale
;
//成果类型
//成果类型
...
...
src/main/java/com/zzsn/thinktank/vo/ThinktankBasicInfoVo.java
浏览文件 @
1ce66c12
...
@@ -84,12 +84,16 @@ public class ThinktankBasicInfoVo extends Model<ThinktankBasicInfoVo> {
...
@@ -84,12 +84,16 @@ public class ThinktankBasicInfoVo extends Model<ThinktankBasicInfoVo> {
//语言
//语言
private
String
lang
;
private
String
lang
;
//运营状态
private
String
operateStatus
;
//营利性质
//营利性质
private
String
profitNature
;
private
String
profitNature
;
//智库性质
//智库性质
private
String
nature
;
private
String
nature
;
//影响力和地位
//影响力和地位
private
String
influencePosition
;
private
String
influencePosition
;;
//人员规模
private
String
staffSize
;
//智库规模
//智库规模
private
String
scale
;
private
String
scale
;
//成果类型
//成果类型
...
...
src/main/resources/application.yml
浏览文件 @
1ce66c12
...
@@ -30,9 +30,9 @@ mybatis-plus:
...
@@ -30,9 +30,9 @@ mybatis-plus:
es1
:
es1
:
endpoint1
:
114.115.215.250
endpoint1
:
114.115.215.250
endpoint1port
:
9700
endpoint1port
:
9700
endpoint2
:
1
14.116.19.92
endpoint2
:
1
.95.3.121
endpoint2port
:
9
7
00
endpoint2port
:
9
2
00
endpoint3
:
114.11
6.54.108
endpoint3
:
114.11
5.215.96
endpoint3port
:
9200
endpoint3port
:
9200
username
:
elastic
username
:
elastic
password
:
zzsn9988
password
:
zzsn9988
...
...
src/main/resources/mapper/ThinktankBasicInfoMapper.xml
浏览文件 @
1ce66c12
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
<select
id=
"getList"
resultType=
"com.zzsn.thinktank.vo.ThinktankBasicInfoVo"
>
<select
id=
"getList"
resultType=
"com.zzsn.thinktank.vo.ThinktankBasicInfoVo"
>
select
select
id,code_id,chinese_whole,chinese_simple,english_whole,english_simple,
id,code_id,chinese_whole,chinese_simple,english_whole,english_simple,
original_whole,original_simple,official_website,tag_id,tag_name,establish_time,charge,
original_whole,original_simple,official_website,tag_id,tag_name,establish_time,charge,
country_within_external,belong_country_id,belong_country,region,address,
country_within_external,belong_country_id,belong_country,region,address,
belong_unit_code,belong_unit,head_sculpture,biographical_notes,status,
belong_unit_code,belong_unit,head_sculpture,biographical_notes,status,
lang,
profit_nature,nature,influence_position
,scale,achievement_type,funds_source
lang,
operate_status,profit_nature,nature,influence_position,staff_size
,scale,achievement_type,funds_source
from thinktank_basic_info a
from thinktank_basic_info a
where 1 = 1
where 1 = 1
<if
test=
"codeId != null and codeId != ''"
>
<if
test=
"codeId != null and codeId != ''"
>
...
@@ -109,13 +109,14 @@
...
@@ -109,13 +109,14 @@
select
select
a.id, a.code_id, a.chinese_whole, a.chinese_simple, a.english_whole, a.english_simple, a.original_whole,
a.id, a.code_id, a.chinese_whole, a.chinese_simple, a.english_whole, a.english_simple, a.original_whole,
a.original_simple, a.official_website, a.belong_country_id, a.tag_id, a.biographical_notes, a.establish_time,
a.original_simple, a.official_website, a.belong_country_id, a.tag_id, a.biographical_notes, a.establish_time,
a.charge, a.address, a.belong_unit_code,lang,profit_nature,nature,influence_position,scale,achievement_type,funds_source
a.charge, a.address, a.belong_unit_code,a.lang,a.operate_status,a.profit_nature,a.nature,a.influence_position,
a.staff_size,a.scale,a.achievement_type,a.funds_source
from thinktank_basic_info a
from thinktank_basic_info a
where 1 = 1
where 1 = 1
<if
test=
"ids != null and ids.size() > 0"
>
<if
test=
"ids != null and ids.size() > 0"
>
AND a.id in
AND a.id in
<foreach
item=
"item"
index=
"index"
collection=
"ids"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"ids"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"codeId != null and codeId != ''"
>
<if
test=
"codeId != null and codeId != ''"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论