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