店铺信息返回补全

This commit is contained in:
张松 2025-04-27 14:45:45 +08:00
parent 91159b07c3
commit ea4df70444
1 changed files with 5 additions and 0 deletions

View File

@ -341,6 +341,11 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
if (shopInfo != null) {
shopUserDetailDTO.setShopName(shopInfo.getShopName());
shopUserDetailDTO.setShopId(shopInfo.getId());
ShopConfig config = shopConfigMapper.selectOneByQuery(new QueryWrapper().eq(ShopConfig::getMainId, shopId));
if (config != null) {
BeanUtil.copyProperties(config, shopUserDetailDTO, "id");
}
shopUserDetailDTO.setShopInfo(shopInfo);
List<ShopExtend> shopExtends = shopExtendService.list(new QueryWrapper().eq(ShopExtend::getShopId, shopInfo.getId()));
shopUserDetailDTO.setShopExtendList(shopExtends);