Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
event
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
陈世强
event
Commits
65d82936
提交
65d82936
authored
2月 24, 2025
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
清空历史数据接口-增加删除中间库数据逻辑以及其他问题处理
上级
a034aaff
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
4 行删除
+29
-4
WebConfigure.java
src/main/java/com/zzsn/event/config/WebConfigure.java
+1
-1
RemoteModelService.java
...ain/java/com/zzsn/event/feign/api/RemoteModelService.java
+10
-0
SubjectSimpleServiceImpl.java
...com/zzsn/event/service/impl/SubjectSimpleServiceImpl.java
+15
-0
InfoDataSearchCondition.java
src/main/java/com/zzsn/event/vo/InfoDataSearchCondition.java
+2
-2
application-test.yml
src/main/resources/application-test.yml
+1
-1
没有找到文件。
src/main/java/com/zzsn/event/config/WebConfigure.java
浏览文件 @
65d82936
...
@@ -15,7 +15,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
...
@@ -15,7 +15,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
@Configuration
public
class
WebConfigure
implements
WebMvcConfigurer
{
public
class
WebConfigure
implements
WebMvcConfigurer
{
@Value
(
"${jeecg.shiro
,
excludeUrls:}"
)
@Value
(
"${jeecg.shiro
.
excludeUrls:}"
)
private
String
ALLOW_URL
;
private
String
ALLOW_URL
;
//服务部署环境 clb:克虏宝 yjzx:研究中心
//服务部署环境 clb:克虏宝 yjzx:研究中心
@Value
(
"${server.profiles:clb}"
)
@Value
(
"${server.profiles:clb}"
)
...
...
src/main/java/com/zzsn/event/feign/api/RemoteModelService.java
浏览文件 @
65d82936
...
@@ -20,4 +20,14 @@ public interface RemoteModelService {
...
@@ -20,4 +20,14 @@ public interface RemoteModelService {
*/
*/
@GetMapping
(
"/modelArrange/clbBiz/detailSubjectDataWithFlow"
)
@GetMapping
(
"/modelArrange/clbBiz/detailSubjectDataWithFlow"
)
String
reScoreRequest
(
@RequestParam
(
"subjectId"
)
String
subjectId
,
@RequestParam
(
"flowId"
)
String
flowId
,
@RequestHeader
HttpHeaders
headers
);
String
reScoreRequest
(
@RequestParam
(
"subjectId"
)
String
subjectId
,
@RequestParam
(
"flowId"
)
String
flowId
,
@RequestHeader
HttpHeaders
headers
);
/**
* 重新打分请求
*
* @param subjectId 专题id
* @author lkg
* @date 2025/2/7
*/
@GetMapping
(
"/modelArrange/clbBiz/delMiddelDataBySubjectId"
)
String
removeMiddleDataRequest
(
@RequestParam
(
"subjectId"
)
String
subjectId
,
@RequestHeader
HttpHeaders
headers
);
}
}
src/main/java/com/zzsn/event/service/impl/SubjectSimpleServiceImpl.java
浏览文件 @
65d82936
...
@@ -10,12 +10,16 @@ import com.zzsn.event.constant.Constants;
...
@@ -10,12 +10,16 @@ import com.zzsn.event.constant.Constants;
import
com.zzsn.event.entity.*
;
import
com.zzsn.event.entity.*
;
import
com.zzsn.event.enums.CodePrefixEnum
;
import
com.zzsn.event.enums.CodePrefixEnum
;
import
com.zzsn.event.es.EsService
;
import
com.zzsn.event.es.EsService
;
import
com.zzsn.event.feign.api.RemoteModelService
;
import
com.zzsn.event.service.*
;
import
com.zzsn.event.service.*
;
import
com.zzsn.event.util.CodeGenerateUtil
;
import
com.zzsn.event.util.CodeGenerateUtil
;
import
com.zzsn.event.util.EsOpUtil
;
import
com.zzsn.event.util.EsOpUtil
;
import
com.zzsn.event.util.PythonUtil
;
import
com.zzsn.event.util.PythonUtil
;
import
com.zzsn.event.util.user.UserUtil
;
import
com.zzsn.event.util.user.UserVo
;
import
com.zzsn.event.vo.*
;
import
com.zzsn.event.vo.*
;
import
com.zzsn.event.vo.es.SpecialInformation
;
import
com.zzsn.event.vo.es.SpecialInformation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.elasticsearch.index.query.BoolQueryBuilder
;
import
org.elasticsearch.index.query.BoolQueryBuilder
;
...
@@ -23,6 +27,7 @@ import org.elasticsearch.index.query.QueryBuilders;
...
@@ -23,6 +27,7 @@ import org.elasticsearch.index.query.QueryBuilders;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -36,6 +41,7 @@ import java.util.stream.Collectors;
...
@@ -36,6 +41,7 @@ import java.util.stream.Collectors;
* @author lkg
* @author lkg
* @date 2025/1/9
* @date 2025/1/9
*/
*/
@Slf4j
@Service
@Service
public
class
SubjectSimpleServiceImpl
implements
SubjectSimpleService
{
public
class
SubjectSimpleServiceImpl
implements
SubjectSimpleService
{
...
@@ -74,6 +80,8 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
...
@@ -74,6 +80,8 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
private
CodeGenerateUtil
codeGenerateUtil
;
private
CodeGenerateUtil
codeGenerateUtil
;
@Autowired
@Autowired
private
PythonUtil
pythonUtil
;
private
PythonUtil
pythonUtil
;
@Autowired
private
RemoteModelService
remoteModelService
;
@Value
(
"${clb.subject.default.processing.advanceMonth}"
)
@Value
(
"${clb.subject.default.processing.advanceMonth}"
)
private
Integer
defaultAdvanceMonth
;
private
Integer
defaultAdvanceMonth
;
...
@@ -434,6 +442,13 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
...
@@ -434,6 +442,13 @@ public class SubjectSimpleServiceImpl implements SubjectSimpleService {
boolQuery
.
must
(
QueryBuilders
.
termQuery
(
"subjectId.keyword"
,
subjectId
));
boolQuery
.
must
(
QueryBuilders
.
termQuery
(
"subjectId.keyword"
,
subjectId
));
esOpUtil
.
docDeleteByQuery
(
Constants
.
SUBJECT_INDEX
,
boolQuery
);
esOpUtil
.
docDeleteByQuery
(
Constants
.
SUBJECT_INDEX
,
boolQuery
);
});
});
UserVo
loginUser
=
UserUtil
.
getLoginUser
();
CompletableFuture
.
runAsync
(()
->{
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"loginUser"
,
JSON
.
toJSONString
(
loginUser
));
remoteModelService
.
removeMiddleDataRequest
(
subjectId
,
headers
);
log
.
info
(
"专题-{},删除中间库数据请求发送成功"
,
subjectId
);
});
}
}
//目标集合按照另一个集合的顺序排序
//目标集合按照另一个集合的顺序排序
...
...
src/main/java/com/zzsn/event/vo/InfoDataSearchCondition.java
浏览文件 @
65d82936
...
@@ -109,9 +109,9 @@ public class InfoDataSearchCondition {
...
@@ -109,9 +109,9 @@ public class InfoDataSearchCondition {
//排序参数
//排序参数
//排序字段
//排序字段
private
String
column
;
private
String
column
=
"publishDate"
;
//排序方式 asc/desc
//排序方式 asc/desc
private
String
order
;
private
String
order
=
"desc"
;
//置顶排序是否起效(1-是;0-否)
//置顶排序是否起效(1-是;0-否)
private
Integer
topSortValid
=
0
;
private
Integer
topSortValid
=
0
;
...
...
src/main/resources/application-test.yml
浏览文件 @
65d82936
...
@@ -161,7 +161,7 @@ python:
...
@@ -161,7 +161,7 @@ python:
clearDuplicateHistoryUrl
:
http://1.95.13.40:8080/subject/delete_history_data
clearDuplicateHistoryUrl
:
http://1.95.13.40:8080/subject/delete_history_data
jeecg
:
jeecg
:
shiro
:
shiro
:
excludeUrls
:
excludeUrls
:
/info/subjectPageList
kafka
:
kafka
:
topic
:
topic
:
subject
:
subject
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论