Browse Source

商城获取会员信息处理所属商家过滤业务

multiwx
dy-hu 6 months ago
parent
commit
7096ac212e
  1. 4
      cereshop-app/src/main/java/com/shop/cereshop/app/service/member/impl/CerePlatformMemberLevelServiceImpl.java

4
cereshop-app/src/main/java/com/shop/cereshop/app/service/member/impl/CerePlatformMemberLevelServiceImpl.java

@ -10,6 +10,8 @@ import com.shop.cereshop.app.dao.member.CerePlatformMemberLevelDAO;
import com.shop.cereshop.app.dao.member.CerePlatformMembershipDAO;
import com.shop.cereshop.app.param.member.MemberLevelInfo;
import com.shop.cereshop.app.service.member.CerePlatformMemberLevelService;
import com.shop.cereshop.app.utils.ContextUtil;
import com.shop.cereshop.commons.domain.activity.CereBuyerCoupon;
import com.shop.cereshop.commons.domain.member.CerePlatformMemberLevel;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -44,7 +46,9 @@ public class CerePlatformMemberLevelServiceImpl implements CerePlatformMemberLev
@Override
public List<MemberLevelInfo> getAllMemberLevelInfo() {
Long businessId = Long.valueOf(ContextUtil.getProject());
LambdaQueryWrapper<CerePlatformMemberLevel> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(CerePlatformMemberLevel::getBusinessId, businessId);
wrapper.orderByAsc(CerePlatformMemberLevel::getGrowth);
List<CerePlatformMemberLevel> memberLevelList = cerePlatformMemberLevelDAO.selectList(wrapper);
List<MemberLevelInfo> levelInfoList = new ArrayList<>();

Loading…
Cancel
Save