首页开关
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.czg.service.market.service.impl;
|
||||
|
||||
import com.czg.account.dto.user.userinfo.UserInfoDTO;
|
||||
import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.account.service.ShopInfoService;
|
||||
import com.czg.account.service.UserInfoService;
|
||||
import com.czg.market.entity.MkPointsConfig;
|
||||
import com.czg.market.entity.MkPointsUser;
|
||||
@@ -34,15 +36,21 @@ public class UserHomeServiceImpl implements UserHomeService {
|
||||
|
||||
@DubboReference
|
||||
private UserInfoService userInfoService;
|
||||
@DubboReference
|
||||
private ShopInfoService shopInfoService;
|
||||
|
||||
@Override
|
||||
public UserHomeDataVo getUserHomeData(Long userId, Long shopId) {
|
||||
UserHomeDataVo userHomeDataVo = new UserHomeDataVo()
|
||||
.setShopId(shopId)
|
||||
.setUserId(userId)
|
||||
.setGroup(0)
|
||||
.setTakeout(0);
|
||||
|
||||
ShopInfo shopInfo = shopInfoService.getById(shopId);
|
||||
if (shopInfo != null) {
|
||||
userHomeDataVo.setGroup(shopInfo.getIsGroupBuy());
|
||||
}
|
||||
|
||||
// 用户信息
|
||||
UserInfoDTO info = userInfoService.getInfo(userId);
|
||||
if (info != null) {
|
||||
|
||||
Reference in New Issue
Block a user