店铺信息返回补全
This commit is contained in:
parent
91159b07c3
commit
ea4df70444
|
|
@ -341,6 +341,11 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
||||||
if (shopInfo != null) {
|
if (shopInfo != null) {
|
||||||
shopUserDetailDTO.setShopName(shopInfo.getShopName());
|
shopUserDetailDTO.setShopName(shopInfo.getShopName());
|
||||||
shopUserDetailDTO.setShopId(shopInfo.getId());
|
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);
|
shopUserDetailDTO.setShopInfo(shopInfo);
|
||||||
List<ShopExtend> shopExtends = shopExtendService.list(new QueryWrapper().eq(ShopExtend::getShopId, shopInfo.getId()));
|
List<ShopExtend> shopExtends = shopExtendService.list(new QueryWrapper().eq(ShopExtend::getShopId, shopInfo.getId()));
|
||||||
shopUserDetailDTO.setShopExtendList(shopExtends);
|
shopUserDetailDTO.setShopExtendList(shopExtends);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue