|
@@ -3,10 +3,13 @@ package org.dromara.system.dubbo;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
|
|
|
+import org.dromara.common.core.utils.MapstructUtils;
|
|
|
import org.dromara.system.api.RemoteComCustomerLevelService;
|
|
import org.dromara.system.api.RemoteComCustomerLevelService;
|
|
|
import org.dromara.system.api.domain.vo.RemoteComCustomerLevelVo;
|
|
import org.dromara.system.api.domain.vo.RemoteComCustomerLevelVo;
|
|
|
|
|
+import org.dromara.system.domain.bo.ComCustomerLevelBo;
|
|
|
import org.dromara.system.domain.vo.ComCustomerLevelVo;
|
|
import org.dromara.system.domain.vo.ComCustomerLevelVo;
|
|
|
import org.dromara.system.service.IComCustomerLevelService;
|
|
import org.dromara.system.service.IComCustomerLevelService;
|
|
|
|
|
+import org.dromara.common.core.utils.MapstructUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
@@ -39,4 +42,9 @@ public class RemoteComCustomerLevelServiceImpl implements RemoteComCustomerLevel
|
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
|
return list.stream().collect(Collectors.toMap(ComCustomerLevelVo::getId, ComCustomerLevelVo::getLevelName, (v1, v2) -> v1));
|
|
return list.stream().collect(Collectors.toMap(ComCustomerLevelVo::getId, ComCustomerLevelVo::getLevelName, (v1, v2) -> v1));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<RemoteComCustomerLevelVo> selectCustomerLevelList() {
|
|
|
|
|
+ return MapstructUtils.convert(comCustomerLevelService.queryList(new ComCustomerLevelBo()), RemoteComCustomerLevelVo.class);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|