BUGFIX: retrive回参参数名统一;

This commit is contained in:
shahaibo
2023-10-17 13:42:41 +08:00
parent 8720fc5992
commit 89d3349b49
4 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ public class UserLike implements Serializable {
/** /**
* 关联的design_python_outfit ID * 关联的design_python_outfit ID
*/ */
private Long designPythonOutfitId; private Long designOutfitId;
/** /**
* 图片地址 * 图片地址
*/ */

View File

@@ -17,7 +17,7 @@ public class UserLikeVO {
@ApiModelProperty("designItemId") @ApiModelProperty("designItemId")
private Long designItemId; private Long designItemId;
@ApiModelProperty("designPythonOutfitId") @ApiModelProperty("designPythonOutfitId")
private Long designPythonOutfitId; private Long designOutfitId;
@ApiModelProperty("图片路径") @ApiModelProperty("图片路径")
private String url; private String url;
@ApiModelProperty("图片路径") @ApiModelProperty("图片路径")

View File

@@ -707,7 +707,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
} }
userLikeService.save(userLike); userLikeService.save(userLike);
groupDetailId = userLike.getId(); groupDetailId = userLike.getId();
String designUrl = designPythonOutfitMapper.selectById(userLike.getDesignPythonOutfitId()).getDesignUrl(); String designUrl = designPythonOutfitMapper.selectById(userLike.getDesignOutfitId()).getDesignUrl();
if (designUrl.contains("/")) { if (designUrl.contains("/")) {
int i = designUrl.lastIndexOf("/"); int i = designUrl.lastIndexOf("/");
pictureName = designUrl.substring(i + 1); pictureName = designUrl.substring(i + 1);
@@ -762,7 +762,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
userLike.setDesignId(designId); userLike.setDesignId(designId);
userLike.setUserLikeGroupId(userGroupId); userLike.setUserLikeGroupId(userGroupId);
userLike.setDesignItemId(designItemId); userLike.setDesignItemId(designItemId);
userLike.setDesignPythonOutfitId(designPythonOutfitId); userLike.setDesignOutfitId(designPythonOutfitId);
userLike.setUrl(designUrl); userLike.setUrl(designUrl);
return userLike; return userLike;
} }

View File

@@ -107,7 +107,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
Assert.notNull(group,"History does not exist!"); Assert.notNull(group,"History does not exist!");
List<UserLikeVO> userLikeVOS = userLikeService.getGroupDetail(userGroupId); List<UserLikeVO> userLikeVOS = userLikeService.getGroupDetail(userGroupId);
userLikeVOS.forEach(o -> { userLikeVOS.forEach(o -> {
TDesignPythonOutfit tDesignPythonOutfit1 = designPythonOutfitMapper.selectById(o.getDesignPythonOutfitId()); TDesignPythonOutfit tDesignPythonOutfit1 = designPythonOutfitMapper.selectById(o.getDesignOutfitId());
o.setUrl(tDesignPythonOutfit1.getDesignUrl()); o.setUrl(tDesignPythonOutfit1.getDesignUrl());
if (o.getUrl().contains("/")) { if (o.getUrl().contains("/")) {
int index = o.getUrl().lastIndexOf("/"); int index = o.getUrl().lastIndexOf("/");
@@ -119,7 +119,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
List<TDesignPythonOutfit> tDesignPythonOutfits = designPythonOutfitMapper.selectList(qw); List<TDesignPythonOutfit> tDesignPythonOutfits = designPythonOutfitMapper.selectList(qw);
if (CollectionUtil.isNotEmpty(tDesignPythonOutfits)) { if (CollectionUtil.isNotEmpty(tDesignPythonOutfits)) {
TDesignPythonOutfit tDesignPythonOutfit = tDesignPythonOutfits.get(0); TDesignPythonOutfit tDesignPythonOutfit = tDesignPythonOutfits.get(0);
o.setDesignPythonOutfitId(tDesignPythonOutfit.getId()); o.setDesignOutfitId(tDesignPythonOutfit.getId());
} }
}); });
UserLikeCollectionVO userLikeCollection = collectionService.chooseCollection(group.getCollectionId()); UserLikeCollectionVO userLikeCollection = collectionService.chooseCollection(group.getCollectionId());