前端-胡立永 23 hours ago
parent
commit
4006a49d5f
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/service/impl/YaoDuApiServiceImpl.java
  2. +1
    -1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/service/impl/YaoDuShopServiceImpl.java

+ 2
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/service/impl/YaoDuApiServiceImpl.java View File

@ -477,7 +477,8 @@ public class YaoDuApiServiceImpl implements YaoDuApiService {
cityTrends.setIsComment(commentCountMap.getOrDefault(cityTrends.getId(), 0L).intValue());
// 设置浏览数量
cityTrends.setIsBrowse(browseCountMap.getOrDefault(cityTrends.getId(), 0L).intValue());
int b = cityTrends.getIsBrowse() == null ? 0 : cityTrends.getIsBrowse();
cityTrends.setIsBrowse(browseCountMap.getOrDefault(cityTrends.getId(), 0L).intValue() + b);
// 设置评论列表
cityTrends.setComments(commentsMap.getOrDefault(cityTrends.getId(), new ArrayList<>()));


+ 1
- 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/service/impl/YaoDuShopServiceImpl.java View File

@ -72,7 +72,7 @@ public class YaoDuShopServiceImpl implements YaoDuShopService {
Integer qrCodeBgHashCode = byId.getQrCodeBg() != null ? byId.getQrCodeBg().hashCode() : 0;
String finalPath = String.format("gourmet/gourmetDetail/final/%s_%s_%s_%s_%s.jpg",
id, qrCodeBgHashCode, x, y);
id, qrCodeBgHashCode, x, y, whl);
if (StringUtil.isNotEmpty(byId.getQrCodeBg())){


Loading…
Cancel
Save