Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
9446a37a
Commit
9446a37a
authored
Jan 23, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新单跟进v2
parent
c81a21fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+20
-2
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
9446a37a
...
...
@@ -206,14 +206,23 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
return
result
;
}
catch
(
Exception
e
)
{
// 抛出异常,销毁redis缓存
try
{
redisUtil
.
deleteObject
(
RedisConstants
.
EXPECTED_FORTUNE
+
request
.
getPolicyNo
());
}
catch
(
Exception
redisEx
)
{
log
.
error
(
"删除Redis缓存失败: {}"
,
redisEx
.
getMessage
(),
redisEx
);
}
// 保存预计发佣日志记录(失败)
try
{
apiExpectedFortuneLogService
.
saveExpectedFortuneLog
(
ApiExpectedFortuneLogDto
.
builder
()
.
errorMsg
(
e
.
getMessage
())
.
policyNo
(
request
.
getPolicyNo
())
.
status
(
1
)
.
build
());
return
Result
.
fail
(
e
.
getMessage
());
}
catch
(
Exception
logEx
)
{
log
.
error
(
"保存预计发佣日志失败: {}"
,
logEx
.
getMessage
(),
logEx
);
}
// 重新抛出原始异常,确保上层事务能够回滚
throw
e
;
}
}
...
...
@@ -237,14 +246,23 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
return
result
;
}
catch
(
Exception
e
)
{
// 抛出异常,销毁redis缓存
try
{
redisUtil
.
deleteObject
(
RedisConstants
.
EXPECTED_FORTUNE
+
request
.
getPolicyNo
());
}
catch
(
Exception
redisEx
)
{
log
.
error
(
"删除Redis缓存失败: {}"
,
redisEx
.
getMessage
(),
redisEx
);
}
// 保存预计发佣日志记录(失败)
try
{
apiExpectedFortuneLogService
.
saveExpectedFortuneLog
(
ApiExpectedFortuneLogDto
.
builder
()
.
errorMsg
(
e
.
getMessage
())
.
policyNo
(
request
.
getPolicyNo
())
.
status
(
1
)
.
build
());
throw
new
BusinessException
(
e
.
getMessage
());
}
catch
(
Exception
logEx
)
{
log
.
error
(
"保存预计发佣日志失败: {}"
,
logEx
.
getMessage
(),
logEx
);
}
// 重新抛出原始异常,确保上层事务能够回滚
throw
e
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment