店铺会员返回会员折扣信息
This commit is contained in:
parent
826d91b64d
commit
ee219f637c
|
|
@ -158,5 +158,7 @@ public class ShopUser implements Serializable {
|
|||
private String openType;
|
||||
@Column(ignore = true)
|
||||
private Integer discount;
|
||||
@Column(ignore = true)
|
||||
private Integer isMemberPrice;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ import com.czg.enums.ShopUserFlowBizEnum;
|
|||
import com.czg.exception.ApiNotPrintException;
|
||||
import com.czg.market.entity.MemberLevelConfig;
|
||||
import com.czg.market.service.MemberLevelConfigService;
|
||||
import com.czg.market.service.TbMemberConfigService;
|
||||
import com.czg.market.vo.MemberConfigVO;
|
||||
import com.czg.service.account.mapper.ShopUserMapper;
|
||||
import com.czg.utils.MyQueryWrapper;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
|
|
@ -45,6 +47,8 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
|||
private ShopInfoService shopInfoService;
|
||||
@DubboReference
|
||||
private MemberLevelConfigService memberLevelConfigService;
|
||||
@DubboReference
|
||||
private TbMemberConfigService memberConfigService;
|
||||
|
||||
private ShopUser getUserInfo(Long shopUserId) {
|
||||
ShopUser shopUser = queryChain().eq(ShopUser::getId, shopUserId).one();
|
||||
|
|
@ -83,6 +87,8 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
|||
if (memberLevelConfig != null) {
|
||||
shopUser.setMemberName(memberLevelConfig.getName());
|
||||
shopUser.setDiscount(memberLevelConfig.getDiscount());
|
||||
MemberConfigVO configVO = memberConfigService.detail(memberLevelConfig.getShopId());
|
||||
shopUser.setIsMemberPrice(configVO.getIsMemberPrice());
|
||||
}
|
||||
}
|
||||
return shopUser;
|
||||
|
|
|
|||
Loading…
Reference in New Issue