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 2bbf0dd4
authored
Jun 05, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
策略中心:推送box消息逻辑调整、推送任务中心title调整
1 parent
e8c0ee44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mqlistener/StrategyCreatedConsumer.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/mqlistener/StrategyCreatedConsumer.java
View file @
2bbf0dd
...
@@ -384,11 +384,17 @@ public class StrategyCreatedConsumer extends KafkaConsumer {
...
@@ -384,11 +384,17 @@ public class StrategyCreatedConsumer extends KafkaConsumer {
private
CreateTaskRequest
buildCreateTaskRequest
(
StrategyInfo
strategyInfo
,
List
<
TaskAssigneeInputDTO
>
assignees
)
{
private
CreateTaskRequest
buildCreateTaskRequest
(
StrategyInfo
strategyInfo
,
List
<
TaskAssigneeInputDTO
>
assignees
)
{
String
bizTypeName
=
convertStrategyTypeToBizCode
(
strategyInfo
.
getStrategyType
());
String
bizTypeName
=
convertStrategyTypeToBizCode
(
strategyInfo
.
getStrategyType
());
// 构建标题:「执行人员姓名」+ 的 +「任务类型名称」+ 任务
String
assigneeName
=
CollectionUtils
.
isNotEmpty
(
assignees
)
?
assignees
.
get
(
0
).
getAssigneeName
()
:
""
;
String
typeDisplayName
=
StrategyTypeEnum
.
getStrategyByValue
(
strategyInfo
.
getStrategyType
()).
getDisplayName
();
String
title
=
assigneeName
+
"的"
+
typeDisplayName
+
"任务"
;
// 构建任务信息
// 构建任务信息
TaskDTO
task
=
new
TaskDTO
();
TaskDTO
task
=
new
TaskDTO
();
task
.
setBizType
(
bizTypeName
);
task
.
setBizType
(
bizTypeName
);
task
.
setBizInstanceId
(
String
.
valueOf
(
strategyInfo
.
getId
()));
task
.
setBizInstanceId
(
String
.
valueOf
(
strategyInfo
.
getId
()));
task
.
setTitle
(
strategyInfo
.
getTitle
()
);
task
.
setTitle
(
title
);
task
.
setDescription
(
strategyInfo
.
getDescription
());
task
.
setDescription
(
strategyInfo
.
getDescription
());
task
.
setStatus
(
"UNFINISHED"
);
task
.
setStatus
(
"UNFINISHED"
);
task
.
setCreatedBy
(
strategyInfo
.
getCreatedBy
());
task
.
setCreatedBy
(
strategyInfo
.
getCreatedBy
());
...
...
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/StrategyInfoService.java
View file @
2bbf0dd
...
@@ -1089,10 +1089,18 @@ public class StrategyInfoService {
...
@@ -1089,10 +1089,18 @@ public class StrategyInfoService {
}
}
private
Integer
convertToMessageBoxBusinessType
(
Integer
strategyBiz
)
{
private
Integer
convertToMessageBoxBusinessType
(
Integer
strategyBiz
)
{
if
(
strategyBiz
.
compareTo
(
1
)
==
0
)
{
if
(
strategyBiz
==
null
)
{
return
BusinessTypeEnums
.
EXTENDED_WARRANTY
.
getCode
();
throw
new
RpcServiceException
(
StrategyErrorEnum
.
BUSINESS_EXCEPTION
,
"业务类型不能为空"
);
}
else
{
}
throw
new
RpcServiceException
(
StrategyErrorEnum
.
BUSINESS_EXCEPTION
,
"不支持的业务类型"
);
switch
(
strategyBiz
)
{
case
1
:
return
BusinessTypeEnums
.
EXTENDED_WARRANTY
.
getCode
();
// 延保
case
2
:
return
BusinessTypeEnums
.
PREMIUM_PRODUCTS
.
getCode
();
// 轻改(精品)
case
3
:
return
BusinessTypeEnums
.
RIGHTS_PRODUCTS
.
getCode
();
// 权益
default
:
throw
new
RpcServiceException
(
StrategyErrorEnum
.
BUSINESS_EXCEPTION
,
"不支持的业务类型: "
+
strategyBiz
);
}
}
}
}
...
...
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