1.mq新增消费组
2.用户组件功能调整
This commit is contained in:
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.system.api.DicDataFeignClient;
|
||||
import com.njcn.system.enums.SystemResponseEnum;
|
||||
import com.njcn.system.pojo.po.DictData;
|
||||
import com.njcn.user.enums.UserResponseEnum;
|
||||
import com.njcn.user.mapper.ComponentMapper;
|
||||
@@ -103,6 +104,9 @@ public class ComponentServiceImpl extends ServiceImpl<ComponentMapper, Component
|
||||
Map<String,List<ComponentVO>> map = list.stream().filter(m->!Objects.isNull(m.getSystemType())).collect(Collectors.groupingBy(ComponentVO::getSystemType));
|
||||
map.forEach((k,v)->{
|
||||
DictData dictData = dicDataFeignClient.getDicDataById(k).getData();
|
||||
if (Objects.isNull(dictData)){
|
||||
throw new BusinessException(SystemResponseEnum.SYSTEM_TYPE_EMPTY);
|
||||
}
|
||||
ComponentVO componentVO = new ComponentVO();
|
||||
componentVO.setId(dictData.getId());
|
||||
componentVO.setName(dictData.getName());
|
||||
@@ -145,6 +149,9 @@ public class ComponentServiceImpl extends ServiceImpl<ComponentMapper, Component
|
||||
Map<String,List<ComponentVO>> map = componentVOList.stream().collect(Collectors.groupingBy(ComponentVO::getSystemType));
|
||||
map.forEach((k, v)->{
|
||||
DictData dictData = dicDataFeignClient.getDicDataById(k).getData();
|
||||
if (Objects.isNull(dictData)){
|
||||
throw new BusinessException(SystemResponseEnum.SYSTEM_TYPE_EMPTY);
|
||||
}
|
||||
ComponentVO componentVO = new ComponentVO();
|
||||
componentVO.setName(dictData.getName());
|
||||
componentVO.setChildren(
|
||||
|
||||
Reference in New Issue
Block a user