Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
cd80f09d
Commit
cd80f09d
authored
Aug 05, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resizeurl fix
parent
5bdd4c15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
BatchFeignCallService.java
...va/com/tanpu/community/service/BatchFeignCallService.java
+3
-3
RankLogService.java
...main/java/com/tanpu/community/service/RankLogService.java
+3
-0
No files found.
community-service/src/main/java/com/tanpu/community/service/BatchFeignCallService.java
View file @
cd80f09d
...
...
@@ -444,16 +444,16 @@ public class BatchFeignCallService {
//多图写入图片宽高,压缩图片url
List
<
ImagesDTO
>
imgList
=
themeContent
.
getImgList
();
for
(
ImagesDTO
imagesDTO
:
imgList
)
{
//压缩图片地址
imagesDTO
.
setResizeUrl
(
imagesDTO
.
getRemark
()
+
CommunityConstant
.
OSS_RESIZE_RATIO
);
if
(
imgUrlMap
.
containsKey
(
imagesDTO
.
getRelId
()))
{
FileRecordEntity
imgEntity
=
imgUrlMap
.
get
(
themeContent
.
getValue
());
FileRecordEntity
imgEntity
=
imgUrlMap
.
get
(
imagesDTO
.
getRelId
());
String
extInfo
=
imgEntity
.
getExtInfo
();
if
(!
StringUtils
.
isEmpty
(
extInfo
))
{
Map
<
String
,
Object
>
extMap
=
JsonUtil
.
toMap
(
extInfo
);
imagesDTO
.
setImgHeight
((
Integer
)
extMap
.
get
(
"height"
));
imagesDTO
.
setImgWidth
((
Integer
)
extMap
.
get
(
"width"
));
}
//压缩图片地址
imagesDTO
.
setResizeUrl
(
imgEntity
.
getUrl
()
+
CommunityConstant
.
OSS_RESIZE_RATIO
);
}
}
...
...
community-service/src/main/java/com/tanpu/community/service/RankLogService.java
View file @
cd80f09d
...
...
@@ -9,6 +9,7 @@ import com.tanpu.community.dao.mapper.community.RankLogMapper;
import
com.tanpu.community.util.BizUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.time.LocalDateTime
;
...
...
@@ -25,6 +26,7 @@ public class RankLogService {
//话题排序日志
@Transactional
public
void
logTopicRank
(
List
<
TopicRankQo
>
rankList
,
LocalDateTime
logTime
,
Long
cost
)
{
if
(
CollectionUtils
.
isEmpty
(
rankList
))
{
return
;
...
...
@@ -51,6 +53,7 @@ public class RankLogService {
}
//主题排序日志
@Transactional
public
void
logThemeRank
(
List
<
ThemeAnalysDO
>
themeList
,
LocalDateTime
logTime
,
Long
cost
)
{
if
(
CollectionUtils
.
isEmpty
(
themeList
))
{
return
;
...
...
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