是否开启会员价

This commit is contained in:
张松
2025-11-11 10:01:10 +08:00
parent 69b9baffe7
commit 22db92133e

View File

@@ -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());
}
}