Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
think-tank
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
张京坤
think-tank
Commits
92411084
提交
92411084
authored
6月 04, 2025
作者:
yanxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
导出增加“智库机构采集统计信息”
上级
89e1b47c
全部展开
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
58 行增加
和
5 行删除
+58
-5
ThinktankBasicInfoController.java
...sn/thinktank/controller/ThinktankBasicInfoController.java
+0
-0
ThinktankBasicInfo.java
...in/java/com/zzsn/thinktank/entity/ThinktankBasicInfo.java
+4
-0
ThinktankBasicInfoMapper.java
...a/com/zzsn/thinktank/mapper/ThinktankBasicInfoMapper.java
+4
-0
ThinktankBasicInfoService.java
...com/zzsn/thinktank/service/ThinktankBasicInfoService.java
+7
-0
ThinktankBasicInfoServiceImpl.java
...thinktank/service/impl/ThinktankBasicInfoServiceImpl.java
+5
-0
CountVo.java
src/main/java/com/zzsn/thinktank/vo/CountVo.java
+16
-0
ThinkTankSourceVO.java
src/main/java/com/zzsn/thinktank/vo/ThinkTankSourceVO.java
+3
-0
application.yml
src/main/resources/application.yml
+5
-5
ThinktankBasicInfoMapper.xml
src/main/resources/mapper/ThinktankBasicInfoMapper.xml
+14
-0
没有找到文件。
src/main/java/com/zzsn/thinktank/controller/ThinktankBasicInfoController.java
浏览文件 @
92411084
差异被折叠。
点击展开。
src/main/java/com/zzsn/thinktank/entity/ThinktankBasicInfo.java
浏览文件 @
92411084
...
@@ -102,6 +102,10 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
...
@@ -102,6 +102,10 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
//是否展示(1-是;0-否)
//是否展示(1-是;0-否)
private
Integer
ynDisplay
;
private
Integer
ynDisplay
;
//信息源id
@TableField
(
exist
=
false
)
private
String
sourceId
;
public
List
<
String
>
toList
(){
public
List
<
String
>
toList
(){
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
getValue
(
id
));
list
.
add
(
getValue
(
id
));
...
...
src/main/java/com/zzsn/thinktank/mapper/ThinktankBasicInfoMapper.java
浏览文件 @
92411084
...
@@ -2,11 +2,13 @@ package com.zzsn.thinktank.mapper;
...
@@ -2,11 +2,13 @@ package com.zzsn.thinktank.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zzsn.thinktank.entity.ThinktankBasicInfo
;
import
com.zzsn.thinktank.entity.ThinktankBasicInfo
;
import
com.zzsn.thinktank.vo.CountVo
;
import
com.zzsn.thinktank.vo.ThinktankBasicInfoExportVo
;
import
com.zzsn.thinktank.vo.ThinktankBasicInfoExportVo
;
import
com.zzsn.thinktank.vo.ThinktankBasicInfoListVo
;
import
com.zzsn.thinktank.vo.ThinktankBasicInfoListVo
;
import
com.zzsn.thinktank.vo.ThinktankBasicInfoVo
;
import
com.zzsn.thinktank.vo.ThinktankBasicInfoVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
import
java.util.List
;
import
java.util.List
;
...
@@ -38,4 +40,6 @@ public interface ThinktankBasicInfoMapper extends BaseMapper<ThinktankBasicInfo>
...
@@ -38,4 +40,6 @@ public interface ThinktankBasicInfoMapper extends BaseMapper<ThinktankBasicInfo>
*/
*/
List
<
ThinktankBasicInfo
>
exportListByCondition
(
@Param
(
"ids"
)
List
<
String
>
ids
,
@Param
(
"codeId"
)
String
codeId
,
@Param
(
"typeId"
)
String
typeId
,
List
<
ThinktankBasicInfo
>
exportListByCondition
(
@Param
(
"ids"
)
List
<
String
>
ids
,
@Param
(
"codeId"
)
String
codeId
,
@Param
(
"typeId"
)
String
typeId
,
@Param
(
"thinktankName"
)
String
thinktankName
,
@Param
(
"tagId"
)
String
tagId
,
@Param
(
"keyword"
)
String
keyword
);
@Param
(
"thinktankName"
)
String
thinktankName
,
@Param
(
"tagId"
)
String
tagId
,
@Param
(
"keyword"
)
String
keyword
);
List
<
CountVo
>
bindInfoSource
(
@Param
(
"ids"
)
List
<
String
>
ids
);
}
}
src/main/java/com/zzsn/thinktank/service/ThinktankBasicInfoService.java
浏览文件 @
92411084
...
@@ -61,4 +61,11 @@ public interface ThinktankBasicInfoService extends IService<ThinktankBasicInfo>
...
@@ -61,4 +61,11 @@ public interface ThinktankBasicInfoService extends IService<ThinktankBasicInfo>
* @date 2024/8/23
* @date 2024/8/23
*/
*/
List
<
ThinkTankSourceVO
>
thinkTankCollectCount
(
List
<
ThinktankBasicInfo
>
dataList
);
List
<
ThinkTankSourceVO
>
thinkTankCollectCount
(
List
<
ThinktankBasicInfo
>
dataList
);
/**
* 根据智库id查询绑定的信息源id
* @param ids
* @return
*/
List
<
CountVo
>
bindInfoSource
(
List
<
String
>
ids
);
}
}
src/main/java/com/zzsn/thinktank/service/impl/ThinktankBasicInfoServiceImpl.java
浏览文件 @
92411084
...
@@ -539,6 +539,11 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
...
@@ -539,6 +539,11 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
}
}
@Override
@Override
public
List
<
CountVo
>
bindInfoSource
(
List
<
String
>
ids
)
{
return
this
.
baseMapper
.
bindInfoSource
(
ids
);
}
@Override
public
List
<
ThinktankBasicInfo
>
exportListByCondition
(
String
id
,
String
codeId
,
String
typeId
,
String
thinktankName
,
String
tagId
,
String
keyword
)
{
public
List
<
ThinktankBasicInfo
>
exportListByCondition
(
String
id
,
String
codeId
,
String
typeId
,
String
thinktankName
,
String
tagId
,
String
keyword
)
{
List
<
String
>
ids
=
new
ArrayList
<>();
List
<
String
>
ids
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotEmpty
(
id
))
{
if
(
StringUtils
.
isNotEmpty
(
id
))
{
...
...
src/main/java/com/zzsn/thinktank/vo/CountVo.java
0 → 100644
浏览文件 @
92411084
package
com
.
zzsn
.
thinktank
.
vo
;
import
lombok.Data
;
/**
* @Description: 统计
*/
@Data
public
class
CountVo
{
private
String
id
;
private
String
code
;
private
String
name
;
private
Integer
count
;
}
src/main/java/com/zzsn/thinktank/vo/ThinkTankSourceVO.java
浏览文件 @
92411084
...
@@ -43,6 +43,8 @@ public class ThinkTankSourceVO {
...
@@ -43,6 +43,8 @@ public class ThinkTankSourceVO {
private
Integer
infoMonthlyCount
;
private
Integer
infoMonthlyCount
;
/**智库下的资讯数量**/
/**智库下的资讯数量**/
private
Integer
groupCount
;
private
Integer
groupCount
;
/**信息源采集状态**/
private
String
abnormalName
;
public
List
<
String
>
toList
(){
public
List
<
String
>
toList
(){
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
...
@@ -74,6 +76,7 @@ public class ThinkTankSourceVO {
...
@@ -74,6 +76,7 @@ public class ThinkTankSourceVO {
}
else
{
}
else
{
list
.
add
(
String
.
valueOf
(
infoMonthlyCount
));
list
.
add
(
String
.
valueOf
(
infoMonthlyCount
));
}
}
list
.
add
(
getValue
(
abnormalName
));
return
list
;
return
list
;
}
}
...
...
src/main/resources/application.yml
浏览文件 @
92411084
...
@@ -12,12 +12,12 @@ spring:
...
@@ -12,12 +12,12 @@ spring:
max-request-size
:
1000MB
max-request-size
:
1000MB
datasource
:
datasource
:
url
:
jdbc:mysql://1
14.116.44.11
:3306/clb_project?useUnicode=true&characterEncoding=utf-8&AllowPublicKeyRetrieval=True&serverTimezone=Asia/Shanghai&autoReconnect=true&rewriteBatchedStatements=true
url
:
jdbc:mysql://1
.95.14.228
:3306/clb_project?useUnicode=true&characterEncoding=utf-8&AllowPublicKeyRetrieval=True&serverTimezone=Asia/Shanghai&autoReconnect=true&rewriteBatchedStatements=true
username
:
ciglobal
username
:
ciglobal
password
:
_PSuWVQ4CLpX
password
:
_PSuWVQ4CLpX
redis
:
redis
:
database
:
0
database
:
0
host
:
1
14.116.90.53
host
:
1
.95.69.2
password
:
RPHZgkDQ4zGJ
password
:
RPHZgkDQ4zGJ
port
:
6380
port
:
6380
mybatis-plus
:
mybatis-plus
:
...
@@ -28,12 +28,12 @@ mybatis-plus:
...
@@ -28,12 +28,12 @@ mybatis-plus:
#生产es集群
#生产es集群
es1
:
es1
:
endpoint1
:
1
14.115.215.250
endpoint1
:
1
.95.38.69
endpoint1port
:
9700
endpoint1port
:
9700
endpoint2
:
1.95.3.121
endpoint2
:
1.95.3.121
endpoint2port
:
9200
endpoint2port
:
9200
endpoint3
:
1
14.115.215.96
endpoint3
:
1
.95.87.177
endpoint3port
:
9
2
00
endpoint3port
:
9
7
00
username
:
elastic
username
:
elastic
password
:
zzsn9988
password
:
zzsn9988
...
...
src/main/resources/mapper/ThinktankBasicInfoMapper.xml
浏览文件 @
92411084
...
@@ -141,6 +141,20 @@
...
@@ -141,6 +141,20 @@
</if>
</if>
order by create_time desc
order by create_time desc
</select>
</select>
<select
id=
"bindInfoSource"
resultType=
"com.zzsn.thinktank.vo.CountVo"
>
SELECT
group_id id,source_id code
FROM
thinktank_info_source_group_map
WHERE 1=1
<if
test=
"ids != null and ids.size() > 0"
>
AND group_id in
<foreach
item=
"item"
index=
"index"
collection=
"ids"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</select>
</mapper>
</mapper>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论