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
4a3f0a20
Commit
4a3f0a20
authored
Sep 12, 2025
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.15-税友拆分社保、医保
parent
b7d69655
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
18 deletions
+32
-18
TSocialFriendPushServiceImpl.java
...ifu/social/service/impl/TSocialFriendPushServiceImpl.java
+32
-18
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TSocialFriendPushServiceImpl.java
View file @
4a3f0a20
...
...
@@ -1253,24 +1253,8 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
backLog
.
setSocialId
(
vo
.
getSocialId
());
backLog
.
setType
(
CommonConstants
.
SIX_INT
);
backLog
.
setCreateTime
(
LocalDateTime
.
now
());
try
{
String
key
=
"socialFriend/"
+
vo
.
getSocialId
()
+
"/"
+
System
.
currentTimeMillis
()
+
fileName
;
ossUtil
.
uploadFileByStream
(
inputStreamOut
,
key
,
null
);
TSocialFriendBackLog
backLogFile
=
new
TSocialFriendBackLog
();
backLogFile
.
setSocialId
(
vo
.
getSocialId
());
backLogFile
.
setType
(
19
);
backLogFile
.
setCreateTime
(
LocalDateTime
.
now
());
if
(
Common
.
isNotNull
(
key
))
{
URL
fileUrl
=
ossUtil
.
getObjectUrl
(
null
,
key
);
if
(
Common
.
isNotNull
(
fileUrl
))
{
key
+=
fileUrl
.
toString
();
}
}
backLogFile
.
setLogInfo
(
key
);
tSocialFriendBackLogService
.
save
(
backLogFile
);
}
catch
(
Exception
e
)
{
log
.
info
(
"花名册上传到阿里云失败,查看文件使用,没有找税友要也行"
);
}
// 上传花名册到阿里云
this
.
uploadHuaMingCeToOss
(
vo
,
fileName
,
inputStreamOut
);
R
<
String
>
ulrR
=
excelToImage
.
excelToImg
(
inputStreamOut
,
socialFriendConfig
,
restTemplate
,
backLog
);
tSocialFriendBackLogService
.
save
(
backLog
);
return
ulrR
;
...
...
@@ -1291,6 +1275,36 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
}
}
/**
* @param vo
* @param fileName
* @param inputStreamOut
* @Description: 上传花名册到阿里云
* @Author: hgw
* @Date: 2025/9/12 14:18
* @return: void
**/
private
void
uploadHuaMingCeToOss
(
SociaFriendYgsAddVo
vo
,
String
fileName
,
FileInputStream
inputStreamOut
)
{
try
{
String
key
=
"socialFriend/"
+
vo
.
getSocialId
()
+
"/"
+
System
.
currentTimeMillis
()
+
fileName
;
ossUtil
.
uploadFileByStream
(
inputStreamOut
,
key
,
null
);
TSocialFriendBackLog
backLogFile
=
new
TSocialFriendBackLog
();
backLogFile
.
setSocialId
(
vo
.
getSocialId
());
backLogFile
.
setType
(
19
);
backLogFile
.
setCreateTime
(
LocalDateTime
.
now
());
if
(
Common
.
isNotNull
(
key
))
{
URL
fileUrl
=
ossUtil
.
getObjectUrl
(
null
,
key
);
if
(
Common
.
isNotNull
(
fileUrl
))
{
key
+=
fileUrl
.
toString
();
}
}
backLogFile
.
setLogInfo
(
key
);
tSocialFriendBackLogService
.
save
(
backLogFile
);
}
catch
(
Exception
e
)
{
log
.
info
(
"花名册上传到阿里云失败,查看文件使用,没有找税友要也行"
);
}
}
/**
* 填充主表数据
*/
...
...
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