店铺信息返回霸王餐信息

This commit is contained in:
张松
2025-03-13 09:43:31 +08:00
parent f99c0b902a
commit 5da87d7d8a
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
private ShopInfoMapper shopInfoMapper;
@Resource
private ShopExtendService shopExtendService;
@Resource
private FreeDineConfigService freeDineConfigService;
private ShopUser getUserInfo(Long shopId, Long shopUserId) {
ShopUser shopUser = queryChain().eq(ShopUser::getShopId, shopId).eq(ShopUser::getId, shopUserId).one();
@@ -301,6 +303,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
shopUserDetailDTO.setShopExtendList(shopExtends);
}
shopUserDetailDTO.setFreeDineConfig(freeDineConfigService.getConfig(shopId));
shopUserDetailDTO.setPayPwd(userInfo.getPayPwd());
return shopUserDetailDTO;
}