是否开启会员价
This commit is contained in:
@@ -17,6 +17,8 @@ import com.czg.market.entity.MkShopCouponRecord;
|
||||
import com.czg.market.entity.SmsPushEventUser;
|
||||
import com.czg.market.service.MemberLevelConfigService;
|
||||
import com.czg.market.service.MkShopCouponRecordService;
|
||||
import com.czg.market.service.TbMemberConfigService;
|
||||
import com.czg.market.vo.MemberConfigVO;
|
||||
import com.czg.order.entity.OrderInfo;
|
||||
import com.czg.order.service.OrderInfoService;
|
||||
import com.czg.sa.StpKit;
|
||||
@@ -63,6 +65,8 @@ public class AShopUserServiceImpl implements AShopUserService {
|
||||
private ShopInfoService shopInfoService;
|
||||
@DubboReference
|
||||
private MemberLevelConfigService memberLevelConfigService;
|
||||
@DubboReference
|
||||
private TbMemberConfigService memberConfigService;
|
||||
|
||||
private ShopUser getUserInfo(Long shopUserId) {
|
||||
ShopUser shopUser = shopUserService.queryChain().eq(ShopUser::getId, shopUserId).one();
|
||||
@@ -189,6 +193,8 @@ public class AShopUserServiceImpl implements AShopUserService {
|
||||
shopUserDTO.setMemberLevelName(memberLevelConfig == null ? null : memberLevelConfig.getName());
|
||||
if (memberLevelConfig != null) {
|
||||
shopUserDTO.setDiscount(memberLevelConfig.getDiscount());
|
||||
MemberConfigVO configVO = memberConfigService.detail(memberLevelConfig.getShopId());
|
||||
shopUserDTO.setIsMemberPrice(configVO == null ? 0 : configVO.getIsMemberPrice());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user