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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
14 deletions
+32
-14
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+32
-14
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
...
@@ -206,14 +206,23 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
return
result
;
return
result
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// 抛出异常,销毁redis缓存
// 抛出异常,销毁redis缓存
redisUtil
.
deleteObject
(
RedisConstants
.
EXPECTED_FORTUNE
+
request
.
getPolicyNo
());
try
{
redisUtil
.
deleteObject
(
RedisConstants
.
EXPECTED_FORTUNE
+
request
.
getPolicyNo
());
}
catch
(
Exception
redisEx
)
{
log
.
error
(
"删除Redis缓存失败: {}"
,
redisEx
.
getMessage
(),
redisEx
);
}
// 保存预计发佣日志记录(失败)
// 保存预计发佣日志记录(失败)
apiExpectedFortuneLogService
.
saveExpectedFortuneLog
(
ApiExpectedFortuneLogDto
.
builder
()
try
{
.
errorMsg
(
e
.
getMessage
())
apiExpectedFortuneLogService
.
saveExpectedFortuneLog
(
ApiExpectedFortuneLogDto
.
builder
()
.
policyNo
(
request
.
getPolicyNo
())
.
errorMsg
(
e
.
getMessage
())
.
status
(
1
)
.
policyNo
(
request
.
getPolicyNo
())
.
build
());
.
status
(
1
)
return
Result
.
fail
(
e
.
getMessage
());
.
build
());
}
catch
(
Exception
logEx
)
{
log
.
error
(
"保存预计发佣日志失败: {}"
,
logEx
.
getMessage
(),
logEx
);
}
// 重新抛出原始异常,确保上层事务能够回滚
throw
e
;
}
}
}
}
...
@@ -237,14 +246,23 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
...
@@ -237,14 +246,23 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
return
result
;
return
result
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// 抛出异常,销毁redis缓存
// 抛出异常,销毁redis缓存
redisUtil
.
deleteObject
(
RedisConstants
.
EXPECTED_FORTUNE
+
request
.
getPolicyNo
());
try
{
redisUtil
.
deleteObject
(
RedisConstants
.
EXPECTED_FORTUNE
+
request
.
getPolicyNo
());
}
catch
(
Exception
redisEx
)
{
log
.
error
(
"删除Redis缓存失败: {}"
,
redisEx
.
getMessage
(),
redisEx
);
}
// 保存预计发佣日志记录(失败)
// 保存预计发佣日志记录(失败)
apiExpectedFortuneLogService
.
saveExpectedFortuneLog
(
ApiExpectedFortuneLogDto
.
builder
()
try
{
.
errorMsg
(
e
.
getMessage
())
apiExpectedFortuneLogService
.
saveExpectedFortuneLog
(
ApiExpectedFortuneLogDto
.
builder
()
.
policyNo
(
request
.
getPolicyNo
())
.
errorMsg
(
e
.
getMessage
())
.
status
(
1
)
.
policyNo
(
request
.
getPolicyNo
())
.
build
());
.
status
(
1
)
throw
new
BusinessException
(
e
.
getMessage
());
.
build
());
}
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