Browse Source

展厅昵称

licailing 3 years ago
parent
commit
632cc342d0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/java/com/izouma/nineth/service/ShowroomService.java

+ 2 - 0
src/main/java/com/izouma/nineth/service/ShowroomService.java

@@ -83,6 +83,7 @@ public class ShowroomService {
         showroom.setUserId(userId);
         showroom.setUserId(userId);
         showroom.setShowroomBg(asset.getShowroomBg());
         showroom.setShowroomBg(asset.getShowroomBg());
         showroom.setMaxCollection(asset.getMaxCollection());
         showroom.setMaxCollection(asset.getMaxCollection());
+        showroom.setNickname(asset.getOwnerName());
         Showroom show = showroomRepo.save(showroom);
         Showroom show = showroomRepo.save(showroom);
 
 
         showCollections.forEach(showCollection -> {
         showCollections.forEach(showCollection -> {
@@ -118,6 +119,7 @@ public class ShowroomService {
                 .publish(false)
                 .publish(false)
                 .userId(asset.getUserId())
                 .userId(asset.getUserId())
                 .assetId(asset.getId())
                 .assetId(asset.getId())
+                .nickname(asset.getOwnerName())
                 .build();
                 .build();