Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-strategy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7192ced8
authored
Jan 24, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.6.0版本 策略中心
1 parent
cc709b8f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/job/UnfinishedStrategyTaskJob.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
rpc-dj-strategy/src/main/resources/META-INF/orm/StrategyInfoMapper.xml
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/job/UnfinishedStrategyTaskJob.java
View file @
7192ced
...
@@ -29,20 +29,20 @@ public class UnfinishedStrategyTaskJob implements SimpleJob {
...
@@ -29,20 +29,20 @@ public class UnfinishedStrategyTaskJob implements SimpleJob {
log
.
info
(
"未完成策略任务定时查询任务开始执行"
);
log
.
info
(
"未完成策略任务定时查询任务开始执行"
);
try
{
try
{
// 查询未完成策略任务的策略-人员ID集合
// 查询未完成策略任务的策略-人员ID集合
List
<
Integer
>
unfinishedTasks
=
strategyInfoService
.
queryUnfinishedStrategyStaffList
();
List
<
Integer
>
strategyStaffRelIdList
=
strategyInfoService
.
queryUnfinishedStrategyStaffList
();
log
.
info
(
"查询到未完成策略任务的策略-人员数量: {}"
,
unfinishedTasks
.
size
());
log
.
info
(
"查询到未完成策略任务的策略-人员数量: {}"
,
strategyStaffRelIdList
.
size
());
// 遍历处理未完成的任务
// 遍历处理未完成的任务
for
(
Integer
task
:
unfinishedTasks
)
{
for
(
Integer
refId
:
strategyStaffRelIdList
)
{
try
{
try
{
strategyInfoService
.
sendUnfinishedStrategyStaffMessage
(
task
);
strategyInfoService
.
sendUnfinishedStrategyStaffMessage
(
refId
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// TODO
log
.
error
(
"未完成策略任务定时查询任务处理异常: {}"
,
e
.
getMessage
(),
e
);
}
}
}
}
log
.
info
(
"未完成策略任务定时查询任务执行完成,共处理 {} 条记录"
,
unfinishedTasks
.
size
());
log
.
info
(
"未完成策略任务定时查询任务执行完成,共处理 {} 条记录"
,
strategyStaffRelIdList
.
size
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"未完成策略任务定时查询任务执行异常: {}"
,
e
.
getMessage
(),
e
);
log
.
error
(
"未完成策略任务定时查询任务执行异常: {}"
,
e
.
getMessage
(),
e
);
}
}
...
...
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
View file @
7192ced
...
@@ -488,8 +488,8 @@ public class StrategyInfoService {
...
@@ -488,8 +488,8 @@ public class StrategyInfoService {
return
strategyStaffRelService
.
queryStrategyStaffRelList
(
strategyId
);
return
strategyStaffRelService
.
queryStrategyStaffRelList
(
strategyId
);
}
}
public
void
sendUnfinishedStrategyStaffMessage
(
Integer
task
)
{
public
void
sendUnfinishedStrategyStaffMessage
(
Integer
strategyStaffRelId
)
{
String
message
=
String
.
valueOf
(
task
);
String
message
=
String
.
valueOf
(
strategyStaffRelId
);
kafkaProducer
.
send
(
kafkaTopicConfig
.
getUnfinishedStrategyStaffTopic
(),
message
.
getBytes
());
kafkaProducer
.
send
(
kafkaTopicConfig
.
getUnfinishedStrategyStaffTopic
(),
message
.
getBytes
());
}
}
...
...
rpc-dj-strategy/src/main/resources/META-INF/orm/StrategyInfoMapper.xml
View file @
7192ced
...
@@ -183,9 +183,9 @@
...
@@ -183,9 +183,9 @@
and si.end_date is not null
and si.end_date is not null
and si.end_date >= now()
and si.end_date >= now()
and (
and (
TIMESTAMPDIFF(MINUTE,
si.end_date, NOW()
) = 1440
TIMESTAMPDIFF(MINUTE,
NOW(), si.end_date
) = 1440
or TIMESTAMPDIFF(MINUTE,
si.end_date, NOW()
) = 720
or TIMESTAMPDIFF(MINUTE,
NOW(), si.end_date
) = 720
or TIMESTAMPDIFF(MINUTE,
si.end_date, NOW()
) = 360
or TIMESTAMPDIFF(MINUTE,
NOW(), si.end_date
) = 360
)
)
AND ssr.deleted_flag = 'N'
AND ssr.deleted_flag = 'N'
AND scor.deleted_flag = 'N'
AND scor.deleted_flag = 'N'
...
@@ -209,9 +209,9 @@
...
@@ -209,9 +209,9 @@
and si.end_date is not null
and si.end_date is not null
and si.end_date >= now()
and si.end_date >= now()
and (
and (
TIMESTAMPDIFF(MINUTE,
si.end_date, NOW()
) = 1440
TIMESTAMPDIFF(MINUTE,
NOW(), si.end_date
) = 1440
or TIMESTAMPDIFF(MINUTE,
si.end_date, NOW()
) = 720
or TIMESTAMPDIFF(MINUTE,
NOW(), si.end_date
) = 720
or TIMESTAMPDIFF(MINUTE,
si.end_date, NOW()
) = 360
or TIMESTAMPDIFF(MINUTE,
NOW(), si.end_date
) = 360
)
)
AND ssr.deleted_flag = 'N'
AND ssr.deleted_flag = 'N'
AND srr.deleted_flag = 'N'
AND srr.deleted_flag = 'N'
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment