| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import com.ruoyi.system.api.domain.poji.config.Activeness; |
| | | import com.ruoyi.system.domain.dto.MgtActivenessEditDto; |
| | | import com.ruoyi.system.domain.vo.MgtActivenessListVo; |
| | | import com.ruoyi.system.mapper.config.ActivenessMapper; |
| | | import com.ruoyi.system.service.config.ActivenessService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * @return List<String> |
| | | */ |
| | | @Override |
| | | public List<String> getActivenessList(){ |
| | | public List<MgtActivenessListVo> getActivenessList(){ |
| | | List<Activeness> activenessList = activenessMapper.selectList(new LambdaQueryWrapper<Activeness>().eq(Activeness::getDelFlag, 0)); |
| | | List<String> nameList = activenessList.stream().map(activeness ->{ |
| | | String name = activeness.getActivenessName(); |
| | | return name; |
| | | List<MgtActivenessListVo> nameList = activenessList.stream().map(activeness ->{ |
| | | MgtActivenessListVo mgtActivenessListVo = new MgtActivenessListVo(); |
| | | mgtActivenessListVo.setActivenessId(activeness.getActivenessId()); |
| | | mgtActivenessListVo.setActivenessName(activeness.getActivenessName()); |
| | | return mgtActivenessListVo; |
| | | }).collect(Collectors.toList()); |
| | | return nameList; |
| | | } |