|
@@ -3,6 +3,7 @@ package com.zanxiang.manage.service.Impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.zanxiang.common.utils.bean.BeanUtils;
|
|
|
+import com.zanxiang.manage.domain.dto.PromoChannelDTO;
|
|
|
import com.zanxiang.manage.domain.vo.PromoChannelChoiceVO;
|
|
|
import com.zanxiang.manage.service.PromoChannelService;
|
|
|
import com.zanxiang.mybatis.entity.PromoChannel;
|
|
@@ -11,6 +12,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author : lingfeng
|
|
@@ -32,4 +34,15 @@ public class PromoChannelServiceImpl extends ServiceImpl<PromoChannelMapper, Pro
|
|
|
select(PromoChannel::getId, PromoChannel::getChannel));
|
|
|
return BeanUtils.copyList(promoChannelList, PromoChannelChoiceVO.class);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 注册渠道信息
|
|
|
+ *
|
|
|
+ * @return : 返回所有渠道信息
|
|
|
+ */
|
|
|
+ public Map<Long, PromoChannelDTO> promoChannelMap() {
|
|
|
+ List<PromoChannel> promoChannelList = super.list(new LambdaQueryWrapper<PromoChannel>().
|
|
|
+ select(PromoChannel::getId, PromoChannel::getChannel));
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|