Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
event
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
陈世强
event
Commits
4cd7c0ff
提交
4cd7c0ff
authored
3月 11, 2025
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/event_fusion' into event_fusion
上级
296710b2
15f461b5
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
31 行增加
和
9 行删除
+31
-9
SubjectSimpleController.java
...va/com/zzsn/event/controller/SubjectSimpleController.java
+16
-0
Subject.java
src/main/java/com/zzsn/event/entity/Subject.java
+2
-1
SubjectMapper.xml
src/main/java/com/zzsn/event/mapper/xml/SubjectMapper.xml
+2
-0
ConfigurationMessageService.java
.../zzsn/event/service/impl/ConfigurationMessageService.java
+5
-7
SubjectDetailVO.java
src/main/java/com/zzsn/event/vo/SubjectDetailVO.java
+2
-0
SubjectPage.java
src/main/java/com/zzsn/event/vo/SubjectPage.java
+2
-1
SubjectSimpleVO.java
src/main/java/com/zzsn/event/vo/SubjectSimpleVO.java
+2
-0
没有找到文件。
src/main/java/com/zzsn/event/controller/SubjectSimpleController.java
浏览文件 @
4cd7c0ff
...
@@ -109,6 +109,22 @@ public class SubjectSimpleController {
...
@@ -109,6 +109,22 @@ public class SubjectSimpleController {
return
Result
.
OK
(
subjectDetailVO
);
return
Result
.
OK
(
subjectDetailVO
);
}
}
/**
* 专题详情(无验证版本)
*
* @param subjectId 专题id
* @author lkg
* @date 2025/1/9
*/
@GetMapping
(
"/queryInfoNoSign"
)
public
Result
<?>
queryInfoNoSign
(
@RequestParam
String
subjectId
){
SubjectDetailVO
subjectDetailVO
=
subjectSimpleService
.
queryInfo
(
subjectId
);
return
Result
.
OK
(
subjectDetailVO
);
}
/**
/**
* 删除专题
* 删除专题
*
*
...
...
src/main/java/com/zzsn/event/entity/Subject.java
浏览文件 @
4cd7c0ff
...
@@ -109,7 +109,8 @@ public class Subject implements Serializable {
...
@@ -109,7 +109,8 @@ public class Subject implements Serializable {
private
Date
firstOpenTime
;
private
Date
firstOpenTime
;
/**预估状态*/
/**预估状态*/
private
String
estimateStatus
;
private
String
estimateStatus
;
/** 环境 1-测试 2-正式 */
private
String
environment
;
/**专题分类id*/
/**专题分类id*/
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
typeId
;
private
String
typeId
;
...
...
src/main/java/com/zzsn/event/mapper/xml/SubjectMapper.xml
浏览文件 @
4cd7c0ff
...
@@ -160,6 +160,7 @@
...
@@ -160,6 +160,7 @@
<result
column=
"library"
property=
"library"
/>
<result
column=
"library"
property=
"library"
/>
<result
column=
"face_public"
property=
"facePublic"
/>
<result
column=
"face_public"
property=
"facePublic"
/>
<result
column=
"first_open_time"
property=
"firstOpenTime"
/>
<result
column=
"first_open_time"
property=
"firstOpenTime"
/>
<result
column=
"estimate_status"
property=
"estimateStatus"
/>
<collection
property=
"sampleFileList"
ofType=
"com.zzsn.event.entity.SubjectSampleFile"
>
<collection
property=
"sampleFileList"
ofType=
"com.zzsn.event.entity.SubjectSampleFile"
>
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<result
column=
"file_name"
property=
"fileName"
/>
<result
column=
"file_name"
property=
"fileName"
/>
...
@@ -176,6 +177,7 @@
...
@@ -176,6 +177,7 @@
s.data_source,
s.data_source,
s.face_public,
s.face_public,
s.library,
s.library,
s.estimate_status,
s.first_open_time,
s.first_open_time,
c.id as subjectTypeId,
c.id as subjectTypeId,
c.type_name as subjectTypeName,
c.type_name as subjectTypeName,
...
...
src/main/java/com/zzsn/event/service/impl/ConfigurationMessageService.java
浏览文件 @
4cd7c0ff
...
@@ -403,7 +403,7 @@ public class ConfigurationMessageService {
...
@@ -403,7 +403,7 @@ public class ConfigurationMessageService {
if
(
CollectionUtil
.
isNotEmpty
(
excludeIds
))
{
if
(
CollectionUtil
.
isNotEmpty
(
excludeIds
))
{
bindIds
.
removeAll
(
excludeIds
);
bindIds
.
removeAll
(
excludeIds
);
}
}
return
bindIds
;
return
bindIds
.
stream
().
distinct
().
collect
(
Collectors
.
toList
())
;
}
}
...
@@ -422,8 +422,7 @@ public class ConfigurationMessageService {
...
@@ -422,8 +422,7 @@ public class ConfigurationMessageService {
}
}
//查询排除的标签信息源id
//查询排除的标签信息源id
List
<
SubjectInfoSourceMap
>
excludeInfoSourceLabel
=
iSubjectInfoSourceMapService
.
list
(
Wrappers
.<
SubjectInfoSourceMap
>
lambdaQuery
()
List
<
SubjectInfoSourceMap
>
excludeInfoSourceLabel
=
iSubjectInfoSourceMapService
.
list
(
Wrappers
.<
SubjectInfoSourceMap
>
lambdaQuery
()
.
select
(
SubjectInfoSourceMap:
:
getSourceId
)
.
select
(
SubjectInfoSourceMap:
:
getSourceId
,
SubjectInfoSourceMap:
:
getSourceItemId
)
.
select
(
SubjectInfoSourceMap:
:
getSourceItemId
)
.
eq
(
SubjectInfoSourceMap:
:
getSubjectId
,
subjectId
)
.
eq
(
SubjectInfoSourceMap:
:
getSubjectId
,
subjectId
)
.
eq
(
SubjectInfoSourceMap:
:
getType
,
BindTypeEnum
.
EXCLUDE_INFO_SOURCE_LABEL
.
getvalue
())
.
eq
(
SubjectInfoSourceMap:
:
getType
,
BindTypeEnum
.
EXCLUDE_INFO_SOURCE_LABEL
.
getvalue
())
);
);
...
@@ -441,7 +440,7 @@ public class ConfigurationMessageService {
...
@@ -441,7 +440,7 @@ public class ConfigurationMessageService {
);
);
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
List
<
String
>
infoSourceCodes
=
list
.
stream
().
map
(
ClbLabelInfoSourceMap:
:
getEntityCode
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
infoSourceCodes
=
list
.
stream
().
map
(
ClbLabelInfoSourceMap:
:
getEntityCode
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
InfoSource
>
list1
=
iInfoSourceService
.
list
(
Wrappers
.<
InfoSource
>
lambdaQuery
().
select
(
InfoSource:
:
getId
).
in
(
InfoSource:
:
getI
nfoSourceCode
,
infoSourceCodes
));
List
<
InfoSource
>
list1
=
iInfoSourceService
.
list
(
Wrappers
.<
InfoSource
>
lambdaQuery
().
select
(
InfoSource:
:
getId
).
in
(
InfoSource:
:
getI
d
,
infoSourceCodes
));
if
(
CollectionUtil
.
isNotEmpty
(
list1
)){
if
(
CollectionUtil
.
isNotEmpty
(
list1
)){
List
<
String
>
collect
=
list1
.
stream
().
map
(
InfoSource:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
collect
=
list1
.
stream
().
map
(
InfoSource:
:
getId
).
collect
(
Collectors
.
toList
());
excludeIds
.
addAll
(
collect
);
excludeIds
.
addAll
(
collect
);
...
@@ -478,8 +477,7 @@ public class ConfigurationMessageService {
...
@@ -478,8 +477,7 @@ public class ConfigurationMessageService {
}
}
//查询绑定的标签信息源id
//查询绑定的标签信息源id
List
<
SubjectInfoSourceMap
>
excludeInfoSourceLabel
=
iSubjectInfoSourceMapService
.
list
(
Wrappers
.<
SubjectInfoSourceMap
>
lambdaQuery
()
List
<
SubjectInfoSourceMap
>
excludeInfoSourceLabel
=
iSubjectInfoSourceMapService
.
list
(
Wrappers
.<
SubjectInfoSourceMap
>
lambdaQuery
()
.
select
(
SubjectInfoSourceMap:
:
getSourceId
)
.
select
(
SubjectInfoSourceMap:
:
getSourceId
,
SubjectInfoSourceMap:
:
getSourceItemId
)
.
select
(
SubjectInfoSourceMap:
:
getSourceItemId
)
.
eq
(
SubjectInfoSourceMap:
:
getSubjectId
,
subjectId
)
.
eq
(
SubjectInfoSourceMap:
:
getSubjectId
,
subjectId
)
.
in
(
SubjectInfoSourceMap:
:
getType
,
Arrays
.
asList
(
BindTypeEnum
.
INFO_SOURCE_LABEL
.
getvalue
(),
BindTypeEnum
.
DIRECTIONA_INFO_SOURCE_LABEL
.
getvalue
()))
.
in
(
SubjectInfoSourceMap:
:
getType
,
Arrays
.
asList
(
BindTypeEnum
.
INFO_SOURCE_LABEL
.
getvalue
(),
BindTypeEnum
.
DIRECTIONA_INFO_SOURCE_LABEL
.
getvalue
()))
);
);
...
@@ -497,7 +495,7 @@ public class ConfigurationMessageService {
...
@@ -497,7 +495,7 @@ public class ConfigurationMessageService {
);
);
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
if
(
CollectionUtil
.
isNotEmpty
(
list
)){
List
<
String
>
infoSourceCodes
=
list
.
stream
().
map
(
ClbLabelInfoSourceMap:
:
getEntityCode
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
infoSourceCodes
=
list
.
stream
().
map
(
ClbLabelInfoSourceMap:
:
getEntityCode
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
InfoSource
>
list1
=
iInfoSourceService
.
list
(
Wrappers
.<
InfoSource
>
lambdaQuery
().
select
(
InfoSource:
:
getId
).
in
(
InfoSource:
:
getI
nfoSourceCode
,
infoSourceCodes
));
List
<
InfoSource
>
list1
=
iInfoSourceService
.
list
(
Wrappers
.<
InfoSource
>
lambdaQuery
().
select
(
InfoSource:
:
getId
).
in
(
InfoSource:
:
getI
d
,
infoSourceCodes
));
if
(
CollectionUtil
.
isNotEmpty
(
list1
)){
if
(
CollectionUtil
.
isNotEmpty
(
list1
)){
List
<
String
>
collect
=
list1
.
stream
().
map
(
InfoSource:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
collect
=
list1
.
stream
().
map
(
InfoSource:
:
getId
).
collect
(
Collectors
.
toList
());
excludeIds
.
addAll
(
collect
);
excludeIds
.
addAll
(
collect
);
...
...
src/main/java/com/zzsn/event/vo/SubjectDetailVO.java
浏览文件 @
4cd7c0ff
...
@@ -50,4 +50,6 @@ public class SubjectDetailVO {
...
@@ -50,4 +50,6 @@ public class SubjectDetailVO {
private
List
<
SubjectSampleFile
>
sampleFileList
;
private
List
<
SubjectSampleFile
>
sampleFileList
;
/**关键词信息*/
/**关键词信息*/
private
List
<
SearchWordVO
>
keywords
;
private
List
<
SearchWordVO
>
keywords
;
/**预估状态*/
private
String
estimateStatus
;
}
}
src/main/java/com/zzsn/event/vo/SubjectPage.java
浏览文件 @
4cd7c0ff
...
@@ -181,5 +181,6 @@ public class SubjectPage {
...
@@ -181,5 +181,6 @@ public class SubjectPage {
private
List
<
ClbModelArrange
>
clbModelArranges
;
private
List
<
ClbModelArrange
>
clbModelArranges
;
/** 环境 1-测试 2-正式 */
private
String
environment
;
}
}
src/main/java/com/zzsn/event/vo/SubjectSimpleVO.java
浏览文件 @
4cd7c0ff
...
@@ -36,4 +36,6 @@ public class SubjectSimpleVO {
...
@@ -36,4 +36,6 @@ public class SubjectSimpleVO {
private
Integer
facePublic
;
private
Integer
facePublic
;
/**关键词*/
/**关键词*/
private
List
<
SearchWordVO
>
keywords
;
private
List
<
SearchWordVO
>
keywords
;
/** 环境 1-测试 2-正式 */
private
String
environment
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论