店铺信息返回霸王餐信息
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.czg.account.dto.shopuser;
|
||||
|
||||
import com.czg.account.entity.FreeDineConfig;
|
||||
import com.czg.account.entity.ShopExtend;
|
||||
import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.account.entity.ShopUser;
|
||||
@@ -46,4 +47,9 @@ public class ShopUserDetailDTO extends ShopUser {
|
||||
*/
|
||||
private List<ShopExtend> shopExtendList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 霸王餐信息
|
||||
*/
|
||||
private FreeDineConfig freeDineConfig;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user