| | |
| | | package cc.mrbird.febs.mall.service.impl; |
| | | |
| | | import cc.mrbird.febs.common.enumerates.AgentLevelEnum; |
| | | import cc.mrbird.febs.common.enumerates.DataDictionaryEnum; |
| | | import cc.mrbird.febs.common.enumerates.FlowTypeEnum; |
| | | import cc.mrbird.febs.common.enumerates.MoneyFlowTypeEnum; |
| | | import cc.mrbird.febs.common.enumerates.*; |
| | | import cc.mrbird.febs.common.exception.FebsException; |
| | | import cc.mrbird.febs.common.utils.AppContants; |
| | | import cc.mrbird.febs.common.utils.RedisUtils; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | * 目前紧急修改成按照商品名称 |
| | | */ |
| | | BigDecimal basePercent = new BigDecimal("3"); |
| | | if(goodsName.equals("礼包一") || goodsName.equals("礼包二")){ |
| | | if(goodsName.equals("礼包一")){ |
| | | basePercent = new BigDecimal("1.5"); |
| | | } |
| | | if(goodsName.equals("礼包二")){ |
| | | basePercent = new BigDecimal("2.5"); |
| | | } |
| | | if(goodsName.equals("礼包三") || goodsName.equals("礼包四")){ |
| | |
| | | mallAchieveRecordMapper.insert(mallAchieveRecord); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<DataDictionaryCustom> findMemberDicByType() { |
| | | List<DataDictionaryCustom> dataDictionaryCustoms = new ArrayList<>(); |
| | | List<String> levelType = MemberLevelNewEnum.ZERO_LEVEL.getLevelType(); |
| | | if(CollUtil.isNotEmpty(levelType)){ |
| | | for(String level : levelType){ |
| | | DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | level, level |
| | | ); |
| | | dataDictionaryCustoms.add(dataDictionaryCustom); |
| | | } |
| | | } |
| | | return dataDictionaryCustoms; |
| | | } |
| | | } |