Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
60a22c1b
Commit
60a22c1b
authored
Apr 09, 2026
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.7.21-优化
parent
b47e1ded
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
TSocialFriendPushServiceImpl.java
...ifu/social/service/impl/TSocialFriendPushServiceImpl.java
+2
-1
ExcelToImage.java
...com/yifu/cloud/plus/v1/yifu/social/util/ExcelToImage.java
+6
-1
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendPushServiceImpl.java
View file @
60a22c1b
...
@@ -117,6 +117,8 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
...
@@ -117,6 +117,8 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
@Override
@Override
public
R
<
String
>
pushFriend
(
List
<
String
>
dispatchIdList
,
List
<
String
>
pushDispatchIdList
,
Integer
isAuto
,
String
userId
)
{
public
R
<
String
>
pushFriend
(
List
<
String
>
dispatchIdList
,
List
<
String
>
pushDispatchIdList
,
Integer
isAuto
,
String
userId
)
{
if
(
atomicPushFriend
.
incrementAndGet
()
<=
1
)
{
if
(
atomicPushFriend
.
incrementAndGet
()
<=
1
)
{
// 先清理上一次的文件
cleanSpireTempFiles
();
try
{
try
{
TSocialFreindSet
set
=
tSocialFreindSetService
.
getById
(
"1"
);
TSocialFreindSet
set
=
tSocialFreindSetService
.
getById
(
"1"
);
if
(
set
!=
null
&&
Common
.
isNotNull
(
set
.
getType
())
&&
1
==
set
.
getType
())
{
if
(
set
!=
null
&&
Common
.
isNotNull
(
set
.
getType
())
&&
1
==
set
.
getType
())
{
...
@@ -190,7 +192,6 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
...
@@ -190,7 +192,6 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
}
}
}
finally
{
}
finally
{
atomicPushFriend
.
decrementAndGet
();
atomicPushFriend
.
decrementAndGet
();
cleanSpireTempFiles
();
}
}
return
R
.
ok
();
return
R
.
ok
();
}
else
{
}
else
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/util/ExcelToImage.java
View file @
60a22c1b
...
@@ -90,7 +90,12 @@ public class ExcelToImage {
...
@@ -90,7 +90,12 @@ public class ExcelToImage {
return
R
.
failed
(
CommonConstants
.
RESULT_DATA_FAIL
+
toImagConvertError
+
e
.
getMessage
());
return
R
.
failed
(
CommonConstants
.
RESULT_DATA_FAIL
+
toImagConvertError
+
e
.
getMessage
());
}
finally
{
}
finally
{
if
(
wb
!=
null
)
{
if
(
wb
!=
null
)
{
wb
.
dispose
();
// 重要:释放资源并删除临时文件
try
{
wb
.
dispose
();
Thread
.
sleep
(
100
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
if
(
tempFile
!=
null
&&
tempFile
.
exists
()){
if
(
tempFile
!=
null
&&
tempFile
.
exists
()){
tempFile
.
delete
();
tempFile
.
delete
();
...
...
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